:root {
  --wine: #7b2f52;
  --wine-dark: #51203a;
  --rose: #b66b88;
  --rose-soft: #f4e8ed;
  --blush: #fbf6f8;
  --cream: #fffdfd;
  --ink: #261c22;
  --muted: #6e5d66;
  --line: rgba(123, 47, 82, .14);
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(75, 32, 53, .12);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; width: 100%; height: 100%; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; }
.section-shell { position: relative; overflow: hidden; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 999; background: transparent; }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--rose), var(--wine)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 253, .88);
  border-bottom: 1px solid rgba(123, 47, 82, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { width: 43px; height: 43px; padding: 9px; border-radius: 14px; background: var(--wine); color: var(--white); flex: 0 0 auto; }
.brand-mark svg { fill: currentColor; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.12; }
.brand-copy strong { font-size: .95rem; letter-spacing: .01em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: .92rem; font-weight: 600; }
.main-nav a:not(.nav-call) { position: relative; color: #4c3c45; }
.main-nav a:not(.nav-call)::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 2px; background: var(--wine); transition: width .25s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-call { padding: 11px 17px; border-radius: 999px; color: var(--white); background: var(--wine); box-shadow: 0 10px 25px rgba(123,47,82,.18); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 12px; cursor: pointer; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--wine-dark); border-radius: 99px; transition: .25s ease; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { min-height: 730px; display: flex; align-items: center; background: linear-gradient(135deg, #fffdfd 0%, #fbf3f6 50%, #f6e8ef 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(123,47,82,.12) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to right, #000, transparent 72%); opacity: .42; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; padding: 100px 0 90px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--wine); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow.light { color: #f7dfe8; }
.hero h1, .section-heading h2, .ultrasound-intro h2, .pelvic-card h2, .contact-copy h2 { margin: 18px 0 22px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.03; letter-spacing: -.035em; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
.hero h1 span { color: var(--wine); }
.hero-specialty { max-width: 620px; margin: 9px 0; font-size: clamp(1rem, 1.7vw, 1.16rem); color: #5d4a55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: var(--white); box-shadow: 0 14px 30px rgba(123,47,82,.2); }
.button-secondary { border: 1px solid rgba(123,47,82,.2); background: rgba(255,255,255,.65); color: var(--wine-dark); }
.button-light { background: var(--white); color: var(--wine-dark); }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-card { position: relative; z-index: 3; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-card-main { width: min(360px, 82vw); aspect-ratio: 1/1.08; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 46% 46% 26% 26% / 38% 38% 22% 22%; }
.hero-card-main span { font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; color: var(--wine-dark); }
.hero-symbol { width: 118px; height: 118px; padding: 22px; margin-bottom: 10px; border-radius: 50%; background: linear-gradient(145deg, #f2dfe7, #fff); color: var(--wine); box-shadow: inset 0 0 0 1px var(--line); }
.hero-symbol svg { fill: currentColor; }
.hero-card-float { position: absolute; padding: 14px 18px; border-radius: 18px; font-size: .84rem; font-weight: 700; color: var(--wine-dark); }
.float-one { top: 18%; left: 0; }
.float-two { right: 0; bottom: 20%; }
.medical-orbit { position: absolute; border: 1px solid rgba(123,47,82,.17); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; animation: spin 24s linear infinite; }
.orbit-two { width: 520px; height: 300px; transform: rotate(38deg); animation: spinReverse 34s linear infinite; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .45; }
.hero-glow-one { width: 340px; height: 340px; right: -100px; top: 120px; background: #e8bfd0; }
.hero-glow-two { width: 260px; height: 260px; left: -100px; bottom: 30px; background: #f4dfe7; }

.stats-strip { position: relative; z-index: 3; margin-top: -1px; background: var(--wine-dark); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 28px 28px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 500; }
.stat span { display: block; margin-top: 4px; color: #dcbfca; font-size: .77rem; text-transform: uppercase; letter-spacing: .13em; }

.section-heading { max-width: 700px; margin-bottom: 46px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading.center .eyebrow { justify-content: center; }
.section-heading h2, .ultrasound-intro h2, .pelvic-card h2, .contact-copy h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature-card { min-height: 250px; padding: 34px; border-radius: var(--radius); background: linear-gradient(145deg, #fff, #fbf1f5); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(87,35,60,.07); transition: transform .25s ease, box-shadow .25s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-card h3 { max-width: 480px; margin: 26px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.2; }
.icon-wrap { width: 56px; height: 56px; padding: 15px; border-radius: 18px; background: var(--rose-soft); color: var(--wine); }
.icon-wrap svg { fill: currentColor; }

.section-soft { background: var(--blush); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.service-card { min-height: 210px; padding: 26px; border-radius: 24px; background: var(--white); border: 1px solid rgba(123,47,82,.1); box-shadow: 0 10px 28px rgba(71,31,51,.05); transition: transform .25s ease, border-color .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: rgba(123,47,82,.35); }
.service-index { display: inline-block; color: var(--rose); font-weight: 800; font-size: .74rem; letter-spacing: .12em; }
.service-card h3 { margin: 35px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 1.42rem; line-height: 1.22; font-weight: 500; }
.service-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.ultrasound-section { position: relative; overflow: hidden; background: #2c1b24; color: var(--white); }
.ultrasound-section::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(182,107,136,.23), transparent 38%), radial-gradient(circle at 85% 75%, rgba(123,47,82,.22), transparent 32%); }
.ultrasound-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.ultrasound-intro .eyebrow { color: #ddb8c7; }
.ultrasound-intro h2 { color: #fff; }
.ultrasound-emblem { width: 260px; height: 260px; margin-top: 36px; opacity: .5; color: #dca9bd; }
.ultrasound-emblem svg { fill: none; stroke: currentColor; stroke-width: 2.3; }
.ultrasound-list { display: grid; gap: 14px; }
.list-card { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.list-card > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #ebcddd; font-size: .72rem; font-weight: 800; }
.list-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 500; }

.care-section { background: #fff; }
.care-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.care-timeline::before { content: ""; position: absolute; left: 8%; right: 8%; top: 16px; height: 1px; background: rgba(123,47,82,.18); }
.care-step { position: relative; padding: 47px 18px 0; text-align: center; }
.care-dot { position: absolute; z-index: 2; top: 8px; left: 50%; width: 17px; height: 17px; transform: translateX(-50%); border: 4px solid var(--white); border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 1px rgba(123,47,82,.2); }
.care-step span { color: var(--rose); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.care-step h3 { margin: 13px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 500; line-height: 1.3; }

.pelvic-section { padding-top: 30px; }
.pelvic-card { position: relative; min-height: 340px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; overflow: hidden; padding: 58px 64px; border-radius: 36px; background: linear-gradient(135deg, var(--wine), #5c2440); color: var(--white); box-shadow: 0 28px 80px rgba(81,32,58,.2); }
.pelvic-card h2 { margin-bottom: 10px; }
.pelvic-card p { margin: 0; color: #efd8e1; font-size: 1.08rem; }
.pelvic-art { width: min(250px, 100%); justify-self: end; color: rgba(255,255,255,.48); }
.pelvic-art svg { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }

.contact-section { padding-bottom: 120px; }
.contact-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 60px; align-items: center; }
.contact-role { margin: -10px 0 30px; color: var(--wine); font-weight: 700; }
.contact-items { display: grid; gap: 18px; max-width: 560px; }
.contact-item { padding: 20px 0; border-top: 1px solid var(--line); }
.contact-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.contact-item strong, .contact-item a { font-size: 1.13rem; }
.contact-item a { color: var(--wine); font-weight: 800; }
.contact-action { display: grid; place-items: center; }
.contact-ring { width: min(390px, 88vw); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 50px; text-align: center; border-radius: 50%; background: linear-gradient(145deg, #8a3b5e, #5a223f); color: var(--white); box-shadow: 0 30px 70px rgba(81,32,58,.2); }
.contact-ring span { color: #eacbd7; text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 800; }
.contact-ring strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; }

.site-footer { padding: 34px 0; background: #21171c; color: #f8eff3; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-grid > div { display: flex; flex-direction: column; gap: 4px; }
.footer-grid strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.03rem; font-weight: 500; }
.footer-grid span, .footer-grid a { color: #cdbac2; font-size: .86rem; }
.footer-links { flex-direction: row !important; justify-content: flex-end; flex-wrap: wrap; gap: 14px !important; }
.footer-links a:hover { color: var(--white); }

.floating-call { position: fixed; z-index: 90; right: 22px; bottom: 22px; width: 56px; height: 56px; display: grid; place-items: center; padding: 16px; border-radius: 50%; background: var(--wine); color: var(--white); box-shadow: 0 14px 30px rgba(81,32,58,.28); transition: transform .2s ease; }
.floating-call:hover { transform: translateY(-3px) scale(1.03); }
.floating-call svg { fill: currentColor; }
.back-to-top { position: fixed; z-index: 89; right: 28px; bottom: 88px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--wine); font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; box-shadow: 0 10px 30px rgba(72,31,50,.1); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Contenido visible por defecto: si JavaScript no carga, la página sigue funcionando. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-ready { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.reveal-ready.visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: rotate(38deg); } to { transform: rotate(-322deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .reveal.reveal-ready { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 82px; left: 20px; right: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,253,253,.98); box-shadow: var(--shadow); transform: translateY(-15px); opacity: 0; visibility: hidden; transition: .25s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 13px 12px; }
  .main-nav a:not(.nav-call)::after { display: none; }
  .nav-call { margin-top: 8px; text-align: center; }
  .menu-toggle { display: block; }
  .hero-grid, .ultrasound-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-grid { gap: 20px; padding-top: 72px; }
  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-specialty { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 420px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ultrasound-intro { text-align: center; }
  .ultrasound-intro .eyebrow { justify-content: center; }
  .ultrasound-emblem { margin-left: auto; margin-right: auto; }
  .care-timeline { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
  .care-timeline::before { display: none; }
  .care-step { padding-top: 38px; }
  .pelvic-card { grid-template-columns: 1fr .7fr; }
  .contact-copy { text-align: center; }
  .contact-copy .eyebrow { justify-content: center; }
  .contact-items { margin: 0 auto; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 72px; }
  .main-nav { top: 72px; left: 14px; right: 14px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: .86rem; }
  .brand-copy small { font-size: .72rem; }
  .hero-grid { padding: 58px 0 70px; }
  .hero h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .hero-specialty { font-size: .98rem; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 360px; }
  .hero-card-main { width: min(300px, 84vw); }
  .hero-symbol { width: 98px; height: 98px; }
  .float-one { top: 8%; left: 0; }
  .float-two { right: 0; bottom: 9%; }
  .hero-card-float { max-width: 150px; padding: 11px 13px; font-size: .74rem; }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 360px; height: 230px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { text-align: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stat:last-child { border-bottom: 0; }
  .feature-grid, .services-grid, .care-timeline { grid-template-columns: 1fr; }
  .feature-card { min-height: 220px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .ultrasound-intro h2, .pelvic-card h2, .contact-copy h2 { font-size: clamp(2.15rem, 11vw, 3.1rem); }
  .service-card { min-height: 170px; }
  .service-card h3 { margin-top: 28px; }
  .ultrasound-grid { gap: 40px; }
  .ultrasound-emblem { width: 210px; height: 210px; }
  .list-card { grid-template-columns: 44px 1fr; padding: 18px; }
  .care-step { padding: 26px 12px 0; }
  .care-dot { top: 0; }
  .pelvic-section { padding-top: 0; }
  .pelvic-card { min-height: auto; grid-template-columns: 1fr; padding: 42px 28px; text-align: center; border-radius: 28px; }
  .pelvic-card .eyebrow { justify-content: center; }
  .pelvic-art { width: 180px; justify-self: center; }
  .contact-grid { gap: 44px; }
  .contact-ring { padding: 36px; }
  .floating-call { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .back-to-top { right: 20px; bottom: 78px; }
}
