:root {
  --navy: #173552;
  --navy-deep: #10283f;
  --navy-soft: #244d6b;
  --gold: #c5a35a;
  --gold-light: #e9d5a5;
  --cream: #fbf8f3;
  --blush: #f4e7df;
  --sky: #dbeef1;
  --sage: #dfe9df;
  --ink: #1d2b35;
  --muted: #64717a;
  --white: #fff;
  --line: rgba(23, 53, 82, .12);
  --shadow-sm: 0 12px 34px rgba(20, 49, 70, .08);
  --shadow-lg: 0 24px 70px rgba(20, 49, 70, .16);
  --radius: 28px;
  --radius-sm: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open, body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 9999; padding: 12px 18px; background: var(--navy); color: white; border-radius: 10px; }
.skip-link:focus { top: 12px; }

h1, h2, h3 { margin: 0; font-family: "Playfair Display", serif; color: var(--navy); line-height: 1.12; font-weight: 600; }
h1 { font-size: clamp(3rem, 6vw, 5.75rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.35rem, 4.2vw, 4.25rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.45rem, 2.1vw, 2rem); }
p { margin: 0; }
.section { padding: 110px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span { width: 28px; height: 1px; background: currentColor; }
.eyebrow.light { color: var(--gold-light); }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading p { max-width: 650px; margin: 20px auto 0; color: var(--muted); font-size: 1.08rem; }

.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; line-height: 1.15; transition: transform .25s ease, box-shadow .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button i { font-size: 1.2em; }
.button-xl { min-height: 62px; padding: 18px 30px; font-size: 1.03rem; }
.button-primary { color: white; background: var(--navy); box-shadow: 0 12px 28px rgba(23, 53, 82, .2); }
.button-primary:hover { background: var(--navy-soft); box-shadow: 0 16px 32px rgba(23, 53, 82, .25); }
.button-whatsapp { color: white; background: #25d366; box-shadow: 0 12px 28px rgba(37, 211, 102, .25); }
.button-whatsapp:hover { background: #1ebe5d; }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--line); }
.button-light { color: var(--navy); background: white; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251, 248, 243, .92); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.announcement { background: var(--navy); color: white; font-size: .8rem; }
.announcement-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.announcement span, .announcement a { display: flex; align-items: center; gap: 8px; opacity: .9; }
.main-nav { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-family: "Playfair Display", serif; font-size: 1.25rem; letter-spacing: .09em; }
.brand small { margin-top: 6px; color: var(--gold); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { position: relative; color: var(--navy); font-size: .9rem; font-weight: 600; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--gold); transition: width .25s ease; }
.nav-links > a:hover::after, .nav-links > a.active::after { width: 100%; }
.nav-links .nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; color: white; background: var(--navy); border-radius: 999px; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: var(--navy); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 19px; height: 2px; background: white; transition: transform .25s ease, opacity .25s ease; }

.hero { position: relative; overflow: hidden; padding: 80px 0 42px; background: linear-gradient(135deg, var(--cream), #f8efe7 52%, #edf6f3); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none; background-image: radial-gradient(rgba(197,163,90,.35) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(to right, black, transparent 56%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(4px); pointer-events: none; }
.hero-orb-one { width: 380px; height: 380px; top: -180px; left: -120px; background: rgba(219, 238, 241, .75); }
.hero-orb-two { width: 220px; height: 220px; right: -70px; bottom: 90px; background: rgba(244, 231, 223, .95); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 70px; min-height: 650px; }
.hero-copy { position: relative; z-index: 2; }
.hero-message-banner { position: relative; isolation: isolate; overflow: hidden; margin-left: -34px; padding: 48px 38px 44px; color: white; background: url("../images/tlalnepantla-sonia.jpg") center 48% / cover no-repeat; border: 1px solid rgba(255,255,255,.38); border-radius: 28px; box-shadow: 0 24px 60px rgba(16,40,63,.24); }
.hero-message-banner::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, rgba(10,35,58,.94) 0%, rgba(18,56,84,.87) 54%, rgba(23,53,82,.58) 100%); }
.hero-message-banner::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 82% 24%, rgba(219,238,241,.18), transparent 40%); }
.hero-message-banner h1 { color: white; font-size: clamp(2.75rem, 4.7vw, 4.85rem); text-shadow: 0 3px 24px rgba(5,20,33,.24); }
.hero-message-banner .hero-lead { color: rgba(255,255,255,.86); }
.hero-message-banner .eyebrow { color: var(--gold-light); }
.hero-copy h1 em { color: var(--gold); font-weight: 500; }
.hero-lead { max-width: 650px; margin-top: 25px; color: var(--muted); font-size: clamp(1.06rem, 1.6vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; }
.hero-trust > div { display: flex; align-items: center; gap: 12px; }
.hero-trust i { display: grid; place-items: center; width: 44px; height: 44px; color: var(--gold); background: white; border-radius: 50%; box-shadow: var(--shadow-sm); font-size: 1.2rem; }
.hero-trust span { display: flex; flex-direction: column; }
.hero-trust strong { color: var(--navy); font-size: .88rem; }
.hero-trust small { color: var(--muted); font-size: .74rem; }
.hero-visual { position: relative; min-height: 580px; }
.hero-photo { position: absolute; margin: 0; overflow: hidden; background: #ddd; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { inset: 0 68px 68px 0; border-radius: 220px 220px 34px 34px; }
.hero-photo-main::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); border-radius: inherit; }
.hero-photo-side { width: 190px; height: 245px; right: 0; bottom: 0; border: 7px solid var(--cream); border-radius: 100px 100px 24px 24px; }
.hero-note { position: absolute; left: -38px; bottom: 94px; display: flex; align-items: center; gap: 12px; max-width: 270px; padding: 16px 18px; color: var(--navy); background: rgba(255,255,255,.95); border-radius: 16px; box-shadow: var(--shadow-sm); }
.hero-note > span { color: var(--gold); font-size: 1.5rem; }
.hero-note div { display: flex; flex-direction: column; }
.hero-note strong { font-size: .88rem; }
.hero-note small { margin-top: 2px; color: var(--muted); font-size: .72rem; }
.assurance-strip { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); margin-top: 42px; overflow: hidden; background: var(--white); border: 1px solid rgba(197,163,90,.22); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.assurance-strip > div { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 22px 16px; color: var(--navy); font-size: .88rem; font-weight: 600; }
.assurance-strip > div + div { border-left: 1px solid var(--line); }
.assurance-strip i { color: var(--gold); font-size: 1.25rem; }

.intro-section { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.service-card { position: relative; min-height: 275px; padding: 32px 28px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(20,49,70,.045); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(197,163,90,.55); box-shadow: var(--shadow-sm); }
.service-card > i { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 30px; color: var(--navy); background: var(--blush); border-radius: 50%; font-size: 1.6rem; }
.service-card:nth-child(2n) > i { background: var(--sky); }
.service-card:nth-child(3n) > i { background: var(--sage); }
.service-card h3 { font-size: 1.45rem; }
.service-card p { margin-top: 13px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.service-number { position: absolute; top: 24px; right: 24px; color: rgba(23,53,82,.18); font-family: "Playfair Display",serif; font-size: 1.1rem; }
.section-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 26px; padding: 25px 30px; background: var(--blush); border-radius: var(--radius-sm); }
.section-cta > div { display: flex; flex-direction: column; }
.section-cta span { color: var(--muted); font-size: .85rem; }
.section-cta strong { color: var(--navy); font-family: "Playfair Display",serif; font-size: 1.2rem; }

.team-section { position: relative; overflow: hidden; background: var(--navy); }
.team-section::before { content: ""; position: absolute; inset: 0; opacity: .09; background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0); background-size: 32px 32px; }
.team-section .shell { position: relative; }
.team-section h2, .team-section .section-heading p { color: white; }
.team-section .section-heading p { opacity: .72; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.doctor-card { overflow: hidden; background: white; border-radius: var(--radius-sm); transition: transform .3s ease, box-shadow .3s ease; }
.doctor-card:hover { transform: translateY(-7px); box-shadow: 0 20px 44px rgba(0,0,0,.2); }
.doctor-photo { position: relative; height: 340px; overflow: hidden; background: #e9e4dc; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .5s ease; }
.doctor-card:hover .doctor-photo img { transform: scale(1.035); }
.doctor-photo > span { position: absolute; left: 18px; bottom: 18px; padding: 8px 13px; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .69rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.doctor-info { padding: 25px 26px 28px; }
.doctor-info h3 { font-size: 1.65rem; }
.doctor-info p { margin-top: 7px; color: var(--gold); font-size: .88rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.doctor-info small { display: block; margin-top: 12px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.doctor-monogram { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); background: radial-gradient(circle at 45% 35%, #fff 0 9%, transparent 10%), linear-gradient(145deg, #f7eee4, #dceef0); font-family: "Playfair Display",serif; font-size: 6rem; letter-spacing: -.08em; }

.experience-section { background: white; }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 100px; }
.experience-collage { position: relative; min-height: 610px; }
.experience-collage > img { position: absolute; object-fit: cover; box-shadow: var(--shadow-lg); }
.experience-a { width: 69%; height: 86%; left: 0; top: 0; border-radius: 180px 180px 26px 26px; }
.experience-b { width: 51%; height: 47%; right: 0; bottom: 0; border: 8px solid white; border-radius: 26px; }
.experience-badge { position: absolute; right: 0; top: 70px; width: 190px; padding: 22px; color: white; background: var(--navy); border-radius: 18px; box-shadow: var(--shadow-sm); }
.experience-badge strong { display: block; color: var(--gold-light); font-family: "Playfair Display",serif; font-size: 1.4rem; letter-spacing: .08em; }
.experience-badge span { display: block; margin-top: 5px; font-size: .76rem; line-height: 1.45; opacity: .8; }
.experience-copy > p { margin-top: 25px; color: var(--muted); font-size: 1.06rem; }
.check-list { display: grid; gap: 17px; margin: 30px 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; color: var(--muted); }
.check-list i { margin-top: 4px; color: var(--gold); font-size: 1.25rem; }
.check-list strong { color: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 700; border-bottom: 1px solid var(--gold); }

.locations-section { background: var(--blush); }
.location-block { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 56px; padding: 48px; background: rgba(255,255,255,.74); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.location-block + .location-block { margin-top: 34px; }
.location-reverse .location-copy { order: 2; }
.location-reverse .location-gallery { order: 1; }
.location-label { color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.location-copy h3 { margin-top: 12px; font-size: clamp(2rem, 3vw, 3rem); }
.location-copy > p { margin-top: 18px; color: var(--muted); }
.location-meta { display: grid; gap: 9px; margin: 24px 0; color: var(--navy); font-size: .9rem; }
.location-meta span { display: flex; align-items: flex-start; gap: 9px; }
.location-meta i { margin-top: 4px; color: var(--gold); }
.location-gallery { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: repeat(2, 190px); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 16px; background: #ddd; cursor: zoom-in; }
.gallery-item::after { content: "+"; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; display: grid; place-items: center; color: white; background: rgba(16,40,63,.72); border-radius: 50%; opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .25s ease; }
.gallery-item:hover::after { opacity: 1; transform: translateY(0); }
.gallery-large { grid-row: 1 / 3; }
.gallery-esmeralda .gallery-item:not(.gallery-large) { grid-row: 1 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }

.testimonials-section { color: white; background: var(--navy-deep); }
.testimonials-section h2, .testimonials-section .section-heading p { color: white; }
.rating-pill { width: fit-content; display: flex; align-items: center; gap: 8px; margin: 20px auto 0; padding: 10px 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; }
.rating-pill .stars, .review-stars { color: #f4c768; letter-spacing: .08em; }
.rating-pill small { opacity: .7; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.review-card { margin: 0; padding: 32px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-sm); }
.review-card p { min-height: 112px; margin-top: 20px; font-family: "Playfair Display",serif; font-size: 1.25rem; line-height: 1.5; }
.review-card footer { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.review-card footer > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--navy); background: var(--gold-light); border-radius: 50%; font-weight: 700; }
.review-card footer div { display: flex; flex-direction: column; }
.review-card footer small { opacity: .58; }
.centered-action { margin-top: 32px; text-align: center; }

.booking-section { position: relative; overflow: hidden; background: var(--sky); }
.booking-section::after { content: ""; position: absolute; width: 350px; height: 350px; right: -100px; bottom: -180px; background: var(--blush); border-radius: 50%; }
.booking-card { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; padding: 55px 60px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.booking-copy h2 { max-width: 700px; }
.booking-copy p { margin-top: 18px; color: var(--muted); }
.booking-actions { display: grid; gap: 12px; min-width: 265px; }
.doctoralia-panel { position: relative; z-index: 2; margin-top: 28px; padding: 42px 48px 48px; background: white; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.doctoralia-heading { max-width: 680px; margin: 0 auto 30px; text-align: center; }
.doctoralia-heading .eyebrow { margin-bottom: 12px; }
.doctoralia-heading h3 { font-size: clamp(1.75rem, 3vw, 2.55rem); }
.doctoralia-heading p { margin-top: 10px; color: var(--muted); }
.doctoralia-container { min-height: 540px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doctoralia-container > a { min-height: 540px; display: grid; place-items: center; color: var(--navy); font-weight: 700; }
.doctoralia-container iframe { width: 100% !important; min-height: 620px !important; border: 0 !important; }

.site-footer { padding: 75px 0 0; color: rgba(255,255,255,.72); background: #0c2133; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.1fr; gap: 70px; }
.footer-brand img { width: 270px; max-width: 100%; height: auto; object-fit: contain; object-position: left center; border-radius: 14px; }
.footer-brand p { max-width: 350px; margin-top: 18px; }
.footer-grid h3 { margin-bottom: 18px; color: white; font-family: "DM Sans",sans-serif; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-grid a i { width: 20px; color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; }
.mobile-booking-bar { display: none; }
.desktop-floating-actions { position: fixed; z-index: 1100; right: 18px; bottom: 22px; display: grid; gap: 10px; }
.desktop-floating-actions a { min-height: 50px; display: flex; align-items: center; gap: 9px; padding: 12px 18px; color: white; background: var(--navy); border-radius: 999px; box-shadow: 0 14px 32px rgba(16,40,63,.24); font-size: .82rem; font-weight: 700; transition: transform .25s ease; }
.desktop-floating-actions a:hover { transform: translateX(-4px); }
.desktop-floating-actions .whatsapp-btn { background: #25d366; }

.lightbox { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 45px; background: rgba(8,22,34,.94); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 28px; width: 48px; height: 48px; padding: 0; color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.3,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1050px) {
  .nav-links { gap: 18px; }
  .nav-links > a { font-size: .82rem; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 530px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .experience-grid { gap: 55px; }
  .location-block { grid-template-columns: 1fr; }
  .location-reverse .location-copy, .location-reverse .location-gallery { order: initial; }
  .booking-card { grid-template-columns: 1fr; gap: 30px; }
  .booking-actions { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 820px) {
  :root { --shell: min(100% - 28px, 680px); }
  html { scroll-padding-top: 82px; }
  .section { padding: 82px 0; }
  .announcement { display: none; }
  .main-nav { min-height: 76px; }
  .brand img { width: 48px; height: 48px; }
  .menu-toggle { display: flex; position: relative; z-index: 2; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 76px 0 auto 0; display: grid; gap: 0; padding: 18px 22px 28px; background: var(--cream); border-top: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: all .25s ease; }
  .menu-open .nav-links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links > a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links .nav-cta { margin-top: 16px; justify-content: center; padding: 16px; }
  .hero { padding-top: 55px; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-message-banner { margin-left: 0; padding: 42px 30px 38px; background-position: 56% center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { width: min(100%, 580px); min-height: 580px; margin: 10px auto 0; }
  .hero-note { left: 10px; }
  .assurance-strip { grid-template-columns: repeat(2,1fr); }
  .assurance-strip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .assurance-strip > div:nth-child(4) { border-top: 1px solid var(--line); }
  .section-cta { align-items: flex-start; flex-direction: column; }
  .experience-grid { grid-template-columns: 1fr; }
  .experience-collage { width: min(100%, 560px); margin: 0 auto; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-card p { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / 3; }
}

@media (max-width: 580px) {
  body { padding-bottom: 0; }
  h1 { font-size: clamp(2.75rem, 14vw, 4rem); }
  h2 { font-size: clamp(2.15rem, 11vw, 3.1rem); }
  .section { padding: 72px 0; }
  .brand strong { font-size: 1.08rem; }
  .brand small { font-size: .62rem; }
  .hero-actions { display: grid; }
  .hero-message-banner { padding: 38px 20px 34px; border-radius: 22px; }
  .hero-message-banner h1 { font-size: clamp(2.45rem, 12vw, 3.45rem); }
  .hero-actions { width: 100%; justify-content: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-trust { display: grid; grid-template-columns: 1fr; text-align: left; }
  .hero-visual { min-height: 455px; }
  .hero-photo-main { inset: 0 38px 48px 0; border-radius: 145px 145px 25px 25px; }
  .hero-photo-side { width: 140px; height: 180px; }
  .hero-note { left: 8px; bottom: 60px; max-width: 220px; padding: 12px; }
  .hero-note small { display: none; }
  .assurance-strip { grid-template-columns: 1fr; }
  .assurance-strip > div { justify-content: flex-start; padding: 15px 20px; }
  .assurance-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .services-grid, .team-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; }
  .doctor-photo { height: 390px; }
  .experience-collage { min-height: 480px; }
  .experience-badge { top: 30px; width: 160px; padding: 16px; }
  .location-block { padding: 22px; gap: 30px; }
  .location-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 130px; }
  .gallery-large { grid-row: auto; grid-column: 1 / 3; }
  .gallery-esmeralda .gallery-item:not(.gallery-large) { grid-row: auto; }
  .booking-card { padding: 38px 24px; }
  .doctoralia-panel { padding: 30px 18px 24px; }
  .doctoralia-container { min-height: 600px; }
  .booking-actions { grid-template-columns: 1fr; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .site-footer { padding-bottom: 78px; }
  .desktop-floating-actions { display: none; }
  .mobile-booking-bar { position: fixed; z-index: 1200; left: 10px; right: 10px; bottom: 9px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--navy); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; box-shadow: 0 16px 40px rgba(0,0,0,.28); }
  .mobile-booking-bar a { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; color: white; font-weight: 700; }
  .mobile-booking-bar a + a { background: #25d366; }
  .lightbox { padding: 20px; }
}

/* Specialty navigation and conversion-first drilldowns */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; color: var(--navy); background: transparent; border: 0; font-size: .9rem; font-weight: 600; cursor: pointer; }
.nav-dropdown-toggle i { transition: transform .2s ease; }
.nav-dropdown.open .nav-dropdown-toggle i { transform: rotate(180deg); }
.nav-dropdown-menu { position: absolute; z-index: 10; top: calc(100% + 13px); left: 50%; width: min(620px, 88vw); display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
.nav-dropdown.open .nav-dropdown-menu, .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 13px; }
.nav-dropdown-menu a:hover { background: var(--cream); }
.nav-dropdown-menu > a > i { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; color: var(--navy); background: var(--blush); border-radius: 50%; }
.nav-dropdown-menu a span { display: flex; flex-direction: column; color: var(--navy); font-size: .85rem; font-weight: 700; line-height: 1.25; }
.nav-dropdown-menu a small { margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 500; }

.hero-slideshow img { position: absolute; inset: 0; opacity: 0; animation: heroCrossfade 15s infinite; transform: scale(1.025); }
.hero-slideshow img:nth-child(1) { opacity: 1; animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 5s; }
.hero-slideshow img:nth-child(3) { animation-delay: 10s; }
@keyframes heroCrossfade { 0% { opacity: 0; transform: scale(1.025); } 6%, 30% { opacity: 1; } 36%, 100% { opacity: 0; transform: scale(1.105); } }
.service-card { display: block; }
.service-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--navy); font-size: .78rem; font-weight: 700; }
.service-link i { transition: transform .2s ease; }
.service-card:hover .service-link i { transform: translateX(4px); }
.gallery-esmeralda { grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, 190px); }
.gallery-esmeralda .gallery-item:not(.gallery-large) { grid-row: auto; }

/* Specialty pages */
.specialty-page { --specialty-soft: #e8f3f1; background: var(--cream); }
.specialty-pediatria-integral { --specialty-soft: #f4e7df; }
.specialty-endocrinologia-pediatrica { --specialty-soft: #dbeef1; }
.specialty-nutricion-pediatrica { --specialty-soft: #dfe9df; }
.specialty-cirugia-pediatrica { --specialty-soft: #d9e4ed; }
.specialty-alergologia-pediatrica { --specialty-soft: #e6e0ee; }
.specialty-pruebas-cutaneas { --specialty-soft: #e8edf4; }
.specialty-neurodesarrollo { --specialty-soft: #f0e5dc; }
.specialty-sueno-lactancia { --specialty-soft: #e3e5f1; }
.specialty-hero { position: relative; overflow: hidden; padding: 72px 0 86px; background: linear-gradient(135deg, #fbf8f3 0%, #f5e9e1 54%, var(--specialty-soft) 100%); }
.specialty-hero::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(197,163,90,.5) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(90deg, #000, transparent 60%); }
.specialty-orb { position: absolute; right: -120px; top: -180px; width: 500px; height: 500px; border-radius: 50%; background: rgba(219,238,241,.75); }
.specialty-hero-grid { position: relative; display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: 75px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: var(--muted); font-size: .76rem; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs strong { color: var(--navy); }
.specialty-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 24px; color: var(--navy); background: rgba(255,255,255,.85); background: color-mix(in srgb, var(--specialty-soft) 72%, white); border: 1px solid rgba(197,163,90,.3); border-radius: 24px; box-shadow: var(--shadow-sm); font-size: 2rem; }
.specialty-copy h1 { font-size: clamp(3.3rem, 6vw, 6rem); }
.specialty-copy .hero-lead { max-width: 690px; }
.microcopy { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--muted); font-size: .78rem; }
.microcopy i { color: var(--gold); }
.specialty-photo { position: relative; min-height: 590px; margin: 0; overflow: hidden; border: 10px solid rgba(255,255,255,.75); border-radius: 210px 210px 30px 30px; box-shadow: var(--shadow-lg); }
.specialty-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.specialty-photo figcaption { position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 16px 18px; color: white; background: rgba(16,40,63,.82); border-radius: 14px; font-size: .78rem; backdrop-filter: blur(8px); }
.specialty-overview { background: white; }
.answer-block { max-width: 900px; margin: 0 auto 55px; padding: 34px 40px; text-align: center; background: var(--sky); border-radius: var(--radius); }
.answer-block > span { color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.answer-block h2 { margin-top: 8px; font-size: clamp(2rem, 3.8vw, 3.5rem); }
.answer-block p { margin-top: 15px; color: var(--muted); font-size: 1.05rem; }
.specialty-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-panel { padding: 42px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-icon { width: 56px; height: 56px; display: grid; place-items: center; color: var(--navy); background: var(--blush); border-radius: 18px; font-size: 1.5rem; }
.info-panel h2 { margin-top: 24px; font-size: clamp(1.8rem, 2.7vw, 2.65rem); }
.info-panel ul, .info-panel ol { display: grid; gap: 14px; margin: 25px 0 0; padding: 0; list-style: none; }
.info-panel li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); }
.info-panel li i { margin-top: 5px; color: var(--gold); }
.info-panel ol li > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; font-size: .72rem; font-weight: 700; }
.decision-section { background: var(--blush); }
.decision-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 85px; }
.decision-image { position: relative; min-height: 590px; overflow: hidden; border-radius: 32px 180px 32px 32px; box-shadow: var(--shadow-lg); }
.decision-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.decision-image > span { position: absolute; left: 20px; bottom: 20px; padding: 11px 15px; color: var(--navy); background: rgba(255,255,255,.92); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.decision-copy > p { margin-top: 22px; color: var(--muted); font-size: 1.05rem; }
.notice { display: flex; gap: 14px; margin-top: 30px; padding: 20px; background: white; border-left: 4px solid var(--gold); border-radius: 14px; }
.notice > i { color: var(--gold); font-size: 1.45rem; }
.notice p { color: var(--muted); font-size: .84rem; }
.notice strong { color: var(--navy); }
.faq-section { background: white; }
.faq-layout { max-width: 920px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 0 25px; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; }
.faq-item summary { display: flex; justify-content: space-between; gap: 25px; padding: 22px 0; color: var(--navy); font-family: "Playfair Display", serif; font-size: 1.18rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--gold); font-family: "DM Sans", sans-serif; font-size: 1.5rem; transition: transform .2s ease; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { padding: 0 0 23px; color: var(--muted); }
.medical-source { margin-top: 26px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: .76rem; }
.medical-source a { color: var(--navy); text-decoration: underline; }
.specialty-booking { padding-bottom: 90px; }

@media (max-width: 1050px) {
  .specialty-hero-grid, .decision-grid { gap: 45px; }
  .specialty-photo { min-height: 510px; }
}
@media (max-width: 820px) {
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 1rem; }
  .nav-dropdown-menu { position: static; width: 100%; max-height: 0; display: grid; grid-template-columns: 1fr; overflow: hidden; padding: 0 8px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: max-height .3s ease, padding .3s ease; }
  .nav-dropdown.open .nav-dropdown-menu { max-height: 680px; padding: 4px 8px 14px; transform: none; }
  .nav-dropdown-menu a { padding: 10px; }
  .specialty-hero { padding-top: 45px; }
  .specialty-hero-grid, .decision-grid { grid-template-columns: 1fr; }
  .specialty-photo { width: min(100%, 580px); min-height: 560px; margin: 0 auto; }
  .specialty-info-grid { grid-template-columns: 1fr; }
  .decision-image { min-height: 520px; }
}
@media (max-width: 580px) {
  .specialty-copy h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .specialty-photo { min-height: 430px; border-radius: 120px 120px 24px 24px; }
  .answer-block, .info-panel { padding: 28px 22px; }
  .decision-image { min-height: 430px; border-radius: 26px 110px 26px 26px; }
  .faq-item { padding-inline: 18px; }
  .faq-item summary { font-size: 1.05rem; }
  .gallery-esmeralda { grid-template-columns: 1fr 1fr; grid-template-rows: 230px 130px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { animation: none; opacity: 0; transform: none; }
  .hero-slideshow img:first-child { opacity: 1; }
}

/* Home hero: full-width editorial banner, actions and clinic collage */
.hero-grid-stacked { grid-template-columns: 1fr; align-items: stretch; gap: 34px; min-height: auto; }
.hero-grid-stacked .hero-message-banner { min-height: 540px; display: flex; flex-direction: column; justify-content: center; margin-left: 0; padding: 68px 72px; background: #dfc9a6; }
.hero-grid-stacked .hero-message-banner::before { background: linear-gradient(90deg, rgba(239,225,202,.99) 0%, rgba(229,210,180,.96) 48%, rgba(218,194,157,.78) 68%, rgba(218,194,157,.22) 100%), url("../images/tlalnepantla-sonia.jpg") right center / auto 100% no-repeat; }
.hero-grid-stacked .hero-message-banner::after { background: radial-gradient(circle at 82% 24%, rgba(255,248,234,.34), transparent 42%); }
.hero-grid-stacked .hero-message-banner h1 { max-width: 860px; font-size: clamp(3.45rem, 5.2vw, 5.45rem); }
.hero-grid-stacked .hero-message-banner h1 { color: var(--navy); text-shadow: none; }
.hero-grid-stacked .hero-message-banner h1 em { color: #956b2c; }
.hero-grid-stacked .hero-message-banner .hero-lead { color: rgba(23,53,82,.88); }
.hero-grid-stacked .hero-message-banner .eyebrow { color: #835f2b; }
.hero-grid-stacked .hero-message-banner .hero-lead { max-width: 720px; }
.hero-grid-stacked .hero-actions { align-items: center; gap: 16px; margin: 24px 0 0; padding-inline: 8px; }
.hero-grid-stacked .hero-actions .button { min-width: 230px; }
.hero-grid-stacked .hero-trust { margin-top: 20px; padding-inline: 8px; }
.hero-grid-stacked .hero-visual { width: 100%; min-height: 470px; margin: 2px auto 0; }
.hero-grid-stacked .hero-photo-main { inset: 0 185px 0 0; border-radius: 38px 180px 38px 38px; }
.hero-grid-stacked .hero-photo-side { width: 270px; height: 330px; right: 0; bottom: 0; border-radius: 140px 140px 26px 26px; }
.hero-grid-stacked .hero-note { left: auto; right: 215px; bottom: 28px; }

@media (max-width: 820px) {
  .hero-grid-stacked { gap: 30px; }
  .hero-grid-stacked .hero-message-banner { min-height: 480px; padding: 54px 42px; }
  .hero-grid-stacked .hero-message-banner::before { background: linear-gradient(90deg, rgba(239,225,202,.99) 0%, rgba(229,210,180,.94) 58%, rgba(218,194,157,.55) 100%), url("../images/tlalnepantla-sonia.jpg") right center / auto 100% no-repeat; }
  .hero-grid-stacked .hero-message-banner h1 { font-size: clamp(3rem, 9vw, 4.5rem); }
  .hero-grid-stacked .hero-visual { min-height: 430px; }
  .hero-grid-stacked .hero-photo-main { inset: 0 115px 0 0; border-radius: 32px 130px 32px 32px; }
  .hero-grid-stacked .hero-photo-side { width: 205px; height: 255px; }
  .hero-grid-stacked .hero-note { right: 150px; bottom: 24px; }
}

@media (max-width: 580px) {
  .hero-grid-stacked .hero-message-banner { min-height: 0; padding: 40px 20px 36px; }
  .hero-grid-stacked .hero-message-banner::before { background: linear-gradient(rgba(235,218,190,.9), rgba(226,204,169,.94)), url("../images/tlalnepantla-sonia.jpg") center / cover no-repeat; }
  .hero-grid-stacked .hero-message-banner h1 { font-size: clamp(2.45rem, 12vw, 3.45rem); }
  .hero-grid-stacked .hero-actions { gap: 12px; margin-top: 20px; padding-inline: 0; }
  .hero-grid-stacked .hero-actions .button { min-width: 0; }
  .hero-grid-stacked .hero-trust { margin-top: 18px; padding-inline: 4px; }
  .hero-grid-stacked .hero-visual { min-height: 455px; }
  .hero-grid-stacked .hero-photo-main { inset: 0 38px 48px 0; border-radius: 145px 145px 25px 25px; }
  .hero-grid-stacked .hero-photo-side { width: 140px; height: 180px; }
  .hero-grid-stacked .hero-note { left: 8px; right: auto; bottom: 60px; }
}
