:root{
  --blue:#045CAB;
  --blue-dark:#0A315E;
  --ink:#0B223F;
  --muted:#59708B;
  --bg:#F6FAFE;
  --card:#FFFFFF;
  --line:#E2ECF5;
  --green:#25D366;
  --shadow:0 20px 50px rgba(7,50,92,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Manrope',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink);
  background:#fff;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:min(1280px,calc(100% - 64px));margin-inline:auto}
.topbar{background:linear-gradient(90deg,#041b35,#0a2c54);color:#fff;font-size:12px}
.topbar-inner{min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.topbar-text{font-size:11px;font-weight:800;letter-spacing:.16em}
.topbar-contact{display:flex;align-items:center;gap:26px;color:#e8f2ff}
.topbar-contact a{color:#fff}
.header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid #edf2f8}
.nav{display:flex;align-items:center;justify-content:space-between;min-height:92px;gap:28px}
.brand{display:flex;align-items:center;gap:16px;min-width:0}
.brand img{width:68px;height:68px;object-fit:contain}
.brand-text strong{display:block;font-size:20px;line-height:1.05;font-weight:800;letter-spacing:-.03em;color:var(--blue)}
.brand-text strong span{color:var(--ink)}
.brand-text small{display:block;font-size:10px;font-weight:700;letter-spacing:.13em;color:#60748b;margin-top:6px}
.menu{display:flex;align-items:center;gap:30px}
.menu>a{font-size:15px;font-weight:700;color:#173050;position:relative}
.menu>a.active,.menu>a:hover{color:var(--blue)}
.menu>a.active::after{content:'';position:absolute;left:0;right:0;bottom:-10px;height:3px;border-radius:999px;background:var(--blue)}
.menu-toggle{display:none;background:transparent;border:0;padding:10px;cursor:pointer}
.menu-toggle span{display:block;width:26px;height:2px;background:var(--ink);margin:5px 0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;border-radius:14px;padding:16px 24px;font-weight:800;transition:.2s ease;border:1px solid transparent}
.btn:hover{transform:translateY(-2px)}
.btn-nav{background:var(--blue);color:#fff;padding:16px 22px;border-radius:12px;box-shadow:0 14px 30px rgba(4,92,171,.18)}
.btn-icon{font-size:18px;line-height:1}
.hero{background:linear-gradient(180deg,#f7fbff 0%,#eff6fc 100%);padding:32px 0 0}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(460px,640px);align-items:center;gap:34px}
.hero-copy{padding:30px 0 44px}
.eyebrow{display:flex;align-items:center;gap:12px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.19em}
.eyebrow .line{display:block;width:38px;height:3px;border-radius:999px;background:var(--blue)}
.hero h1{font-size:clamp(44px,5.4vw,84px);line-height:.98;letter-spacing:-.05em;margin:18px 0 24px;max-width:620px}
.hero h1 span{color:var(--blue);display:block}
.hero p{max-width:610px;font-size:18px;line-height:1.62;color:var(--muted);margin:0}
.hero-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:34px}
.btn-primary{background:var(--blue);color:#fff;box-shadow:0 20px 30px rgba(4,92,171,.18)}
.btn-primary small,.btn-primary strong{display:block}
.btn-primary small{font-size:14px;font-weight:700;opacity:.94;margin-top:2px}
.btn-secondary{background:#fff;color:var(--blue);border-color:#8fb4dd;box-shadow:0 10px 30px rgba(8,16,22,.05)}
.hero-photo-wrap{position:relative;min-height:540px;display:flex;align-items:flex-end;justify-content:flex-end;overflow:hidden}
.hero-photo{width:100%;height:100%;object-fit:cover;border-radius:0 0 0 28px;box-shadow:var(--shadow)}
.hero-photo-badge{position:absolute;top:56px;right:44px;color:#fff;font-size:28px;font-weight:700;font-style:italic;line-height:1.1;max-width:190px;text-align:right;text-shadow:0 8px 25px rgba(0,0,0,.18)}
.service-strip{margin-top:-36px;padding-bottom:34px}
.service-strip-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.mini-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px 22px;display:grid;grid-template-columns:72px 1fr 34px;align-items:center;gap:18px;box-shadow:0 10px 30px rgba(6,44,79,.06)}
.mini-card.featured{box-shadow:0 16px 40px rgba(4,92,171,.10)}
.mini-icon{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#f0f7ff;color:var(--blue);font-size:32px}
.mini-content h3{margin:0 0 6px;font-size:18px}
.mini-content p{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.mini-arrow{width:34px;height:34px;border-radius:50%;background:#ecf4fd;color:var(--blue);display:grid;place-items:center;font-size:30px;line-height:1}
.section{padding:72px 0}
.why-grid{display:grid;grid-template-columns:minmax(340px,560px) 1fr;gap:42px;align-items:center}
.clinic-photo-card{background:#fff;border-radius:26px;overflow:hidden;box-shadow:var(--shadow)}
.clinic-photo-card img{width:100%;height:100%;object-fit:cover}
.why-copy h2,.promo h2,.contact h2{font-size:clamp(34px,4vw,54px);line-height:1.04;letter-spacing:-.04em;margin:18px 0 26px}
.benefits-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px 28px}
.benefit-item{padding:8px 0}
.benefit-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#eff7ff;color:var(--blue);font-size:28px;margin-bottom:14px}
.benefit-item h3{margin:0 0 10px;font-size:22px;line-height:1.15}
.benefit-item p{margin:0;color:var(--muted);font-size:15px;line-height:1.6}
.promo{background:var(--bg)}
.promo-card{background:linear-gradient(135deg,#ffffff 0%,#f6fbff 100%);border:1px solid var(--line);border-radius:28px;padding:38px;display:grid;grid-template-columns:1.3fr .9fr;gap:30px;align-items:center;box-shadow:0 18px 48px rgba(4,92,171,.06)}
.promo-card p{max-width:760px;color:var(--muted);font-size:16px;line-height:1.7;margin:0}
.promo-prices{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.price-box{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:0 10px 24px rgba(10,49,94,.05)}
.price-box span{display:block;color:var(--muted);font-size:14px;font-weight:700;margin-bottom:8px}
.price-box strong{display:block;font-size:34px;line-height:1;color:var(--blue)}
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center}
.contact p{max-width:650px;color:var(--muted);font-size:17px;line-height:1.7}
.contact-box{background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px;box-shadow:var(--shadow)}
.btn-full{width:100%}
.contact-box ul{list-style:none;padding:0;margin:24px 0 0;display:grid;gap:12px}
.contact-box li{color:#29425e;font-size:15px}
.footer{background:#07192D;color:#d8e1ea;padding:24px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.footer p{margin:4px 0 0;font-size:14px;color:#aebccc}
.whatsapp-float{position:fixed;right:24px;bottom:24px;z-index:100;display:flex;align-items:center;gap:10px;background:var(--green);color:#fff;border-radius:999px;padding:14px 18px;box-shadow:0 18px 40px rgba(37,211,102,.34);font-weight:800}
.wa-icon{font-size:20px}
@media (max-width: 1120px){
  .container{width:min(100%,calc(100% - 40px))}
  .topbar-inner{flex-direction:column;align-items:flex-start;justify-content:center;padding:10px 0}
  .topbar-contact{flex-wrap:wrap;gap:10px 18px}
  .hero-grid,.why-grid,.promo-card,.contact-grid{grid-template-columns:1fr}
  .hero-photo-wrap{min-height:420px}
  .service-strip-grid{grid-template-columns:1fr}
}
@media (max-width: 900px){
  .menu-toggle{display:block}
  .menu{display:none;position:absolute;left:20px;right:20px;top:92px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:18px;flex-direction:column;align-items:flex-start;gap:18px}
  .menu.open{display:flex}
  .menu>a.active::after{display:none}
  .brand img{width:54px;height:54px}
  .hero{padding-top:18px}
  .hero-copy{padding-top:8px}
  .hero h1{font-size:clamp(38px,11vw,64px)}
  .hero p{font-size:16px}
  .hero-actions{flex-direction:column;align-items:stretch}
  .btn{width:100%}
  .hero-photo{border-radius:22px}
  .hero-photo-badge{top:26px;right:26px;font-size:24px}
  .benefits-grid,.promo-prices{grid-template-columns:1fr}
  .footer-inner{flex-direction:column;align-items:flex-start}
}
@media (max-width: 640px){
  .container{width:calc(100% - 28px)}
  .topbar{font-size:11px}
  .topbar-text{font-size:10px}
  .nav{min-height:82px}
  .brand{gap:12px}
  .brand-text strong{font-size:18px}
  .brand-text small{font-size:8px}
  .hero-photo-wrap{min-height:290px}
  .hero-photo-badge{font-size:18px;max-width:120px}
  .mini-card{grid-template-columns:58px 1fr 26px;padding:18px;gap:14px}
  .mini-icon{width:58px;height:58px;font-size:26px}
  .mini-content h3{font-size:16px}
  .why-copy h2,.promo h2,.contact h2{font-size:32px}
  .benefit-item h3{font-size:18px}
  .contact-box{padding:22px}
  .whatsapp-float{right:14px;bottom:14px;padding:12px 16px}
  .whatsapp-float span:last-child{display:none}
}



/* Corrección de superposición del hero sobre las tarjetas */
.hero{overflow:hidden}
.hero-photo-wrap{min-height:500px; height:500px; align-self:stretch}
.hero-photo{display:block; width:100%; height:100%; object-fit:cover}
.service-strip{position:relative; z-index:3; margin-top:0; padding-top:22px; padding-bottom:34px}
.service-strip-grid{align-items:stretch}

@media (min-width: 1121px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(420px,580px); align-items:stretch}
  .hero-copy{padding-bottom:28px}
}

@media (max-width: 1320px){
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(390px,540px); gap:28px}
  .hero-photo-wrap{min-height:440px; height:440px}
  .hero-photo-badge{top:28px; right:26px; font-size:24px; max-width:170px}
  .service-strip{margin-top:0; padding-top:18px}
}

@media (max-width: 1120px){
  .hero-photo-wrap{min-height:380px; height:380px}
  .service-strip{padding-top:14px}
}

@media (max-width: 900px){
  .hero-grid{gap:18px}
  .hero-copy{padding-bottom:8px}
  .hero-photo-wrap{min-height:320px; height:320px}
  .service-strip{margin-top:0; padding-top:14px}
}

@media (max-width: 640px){
  .hero-photo-wrap{min-height:260px; height:260px}
  .hero-photo-badge{top:18px; right:18px; font-size:17px; max-width:110px}
}



/* Responsive reforzado para móvil */
html, body { overflow-x: hidden; }
body { max-width: 100%; }
.hero-copy, .hero-photo-wrap, .mini-card, .clinic-photo-card, .contact-box, .promo-card, .price-box { min-width: 0; }

@media (max-width: 900px) {
  .topbar { display: none; }
  .header { position: sticky; top: 0; }
  .nav { min-height: 84px; }
  .brand { max-width: calc(100% - 70px); }
  .brand-text { min-width: 0; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { font-size: 8px; letter-spacing: .10em; }

  .hero { padding: 10px 0 0; }
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  .hero-copy {
    order: 1;
    width: 100%;
    padding: 8px 0 0 !important;
  }
  .hero-photo-wrap {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-height: auto !important;
    height: auto !important;
    display: block;
    margin-top: 4px;
    overflow: hidden;
    border-radius: 22px;
  }
  .hero-photo {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
  }
  .hero h1 {
    font-size: clamp(36px, 12vw, 54px) !important;
    line-height: 1.02;
    max-width: 100%;
    margin-bottom: 18px;
  }
  .hero p {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }
  .btn, .btn-primary, .btn-secondary, .btn-nav { width: 100%; }
  .hero-photo-badge {
    top: 18px !important;
    right: 18px !important;
    font-size: 20px !important;
    max-width: 140px !important;
  }
  .service-strip {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
  .service-strip-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .mini-card {
    grid-template-columns: 58px 1fr 26px;
    padding: 18px;
    gap: 14px;
  }
  .mini-content p { font-size: 13px; }

  .why-grid, .promo-card, .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .benefits-grid, .promo-prices {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .why-copy h2, .promo h2, .contact h2 {
    font-size: 32px;
    line-height: 1.08;
    margin-bottom: 18px;
  }
  .clinic-photo-card { border-radius: 20px; }
  .clinic-photo-card img { aspect-ratio: 16 / 10; object-fit: cover; }
  .promo-card, .contact-box { padding: 22px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 24px) !important; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 16px !important; }
  .brand-text small { font-size: 7px !important; }
  .menu { left: 12px !important; right: 12px !important; top: 82px !important; }
  .hero h1 { font-size: clamp(34px, 12vw, 46px) !important; }
  .hero p { font-size: 15px !important; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-photo-badge {
    font-size: 16px !important;
    max-width: 112px !important;
    right: 14px !important;
    top: 14px !important;
  }
  .mini-content h3 { font-size: 16px; }
  .why-copy h2, .promo h2, .contact h2 { font-size: 28px; }
  .benefit-item h3 { font-size: 18px; }
  .price-box strong { font-size: 28px; }
  .whatsapp-float { right: 12px; bottom: 12px; padding: 12px 14px; }
}



/* Optimización extra para móvil: header más compacto, hero más ligero y WhatsApp discreto */
@media (max-width: 900px) {
  .nav {
    min-height: 74px !important;
    gap: 12px;
  }
  .brand {
    gap: 10px !important;
    max-width: calc(100% - 58px) !important;
  }
  .brand img {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
  }
  .brand-text strong {
    font-size: 15px !important;
    line-height: 1.02;
    letter-spacing: -.03em;
  }
  .brand-text small {
    font-size: 6.8px !important;
    line-height: 1.35;
    letter-spacing: .08em;
    margin-top: 4px;
  }
  .menu-toggle {
    padding: 6px !important;
    margin-left: auto;
  }
  .menu-toggle span {
    width: 24px;
    margin: 4px 0;
  }
  .menu {
    top: 74px !important;
  }

  .hero-copy {
    padding-top: 2px !important;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: .14em;
    gap: 10px;
  }
  .eyebrow .line {
    width: 26px;
    height: 2px;
  }
  .hero h1 {
    font-size: clamp(31px, 10.6vw, 42px) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
    margin: 14px 0 14px !important;
    max-width: 100% !important;
  }
  .hero p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }
  .hero-actions {
    gap: 10px !important;
    margin-top: 18px !important;
  }
  .btn {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    gap: 10px !important;
    font-size: 14px;
  }
  .btn-primary small {
    font-size: 12px !important;
  }
  .btn-secondary strong,
  .btn-primary strong {
    font-size: 14px;
  }
  .hero-photo-wrap {
    border-radius: 18px !important;
  }
  .hero-photo {
    border-radius: 18px !important;
  }
  .hero-photo-badge {
    font-size: 15px !important;
    line-height: 1.05 !important;
    max-width: 105px !important;
    right: 12px !important;
    top: 12px !important;
  }

  .mini-card {
    border-radius: 16px;
    padding: 16px !important;
  }
  .mini-content h3 {
    font-size: 15px !important;
    line-height: 1.2;
  }
  .mini-content p {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
  }

  .whatsapp-float {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
    right: 12px !important;
    bottom: 12px !important;
    box-shadow: 0 12px 24px rgba(37,211,102,.30) !important;
  }
  .whatsapp-float .wa-icon {
    font-size: 24px !important;
  }
  .whatsapp-float span:last-child {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 20px) !important;
  }
  .nav {
    min-height: 70px !important;
  }
  .brand img {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }
  .brand-text strong {
    font-size: 14px !important;
  }
  .brand-text small {
    font-size: 6.2px !important;
    letter-spacing: .06em !important;
  }
  .menu {
    left: 10px !important;
    right: 10px !important;
    top: 70px !important;
    padding: 14px !important;
    gap: 14px !important;
  }
  .hero h1 {
    font-size: clamp(29px, 10.8vw, 38px) !important;
  }
  .hero p {
    font-size: 13.5px !important;
  }
  .hero-photo {
    aspect-ratio: 1 / 1.02 !important;
  }
  .mini-card {
    grid-template-columns: 50px 1fr 24px !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .mini-icon {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }
  .mini-arrow {
    width: 24px !important;
    height: 24px !important;
    font-size: 22px !important;
  }
  .why-copy h2, .promo h2, .contact h2 {
    font-size: 26px !important;
  }
}

/* SEO: encabezado solo para buscadores y lectores de pantalla */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Preguntas frecuentes */
.faq h2{font-size:clamp(30px,3.6vw,48px);line-height:1.06;letter-spacing:-.04em;margin:18px 0 26px}
.faq-list{display:grid;gap:12px;max-width:900px}
.faq details{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 22px;box-shadow:0 8px 22px rgba(6,44,79,.05)}
.faq summary{cursor:pointer;font-weight:800;font-size:16px;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';color:var(--blue);font-size:22px;line-height:1}
.faq details[open] summary::after{content:'–'}
.faq details p{margin:12px 0 0;color:var(--muted);line-height:1.65;font-size:15px}
@media (max-width:640px){.faq h2{font-size:26px}.faq summary{font-size:15px}}

/* Contacto y pie */
.contact-box address{font-style:normal}
.contact-box li a{color:var(--blue);font-weight:700}
.footer-right{text-align:right}
.footer-credit a{color:#fff;font-weight:700;border-bottom:1px solid rgba(255,255,255,.35)}
.footer-credit a:hover{border-bottom-color:#fff}
@media (max-width:900px){.footer-right{text-align:left}}
.footer-cofepris{font-size:12px !important;letter-spacing:.02em;color:#c9d6e3 !important}
.doctor-line{margin:-10px 0 26px;color:var(--muted);font-size:16px;line-height:1.6}
.doctor-line strong{color:var(--ink)}
.map-btn{margin-top:18px}
.map-section{padding:0 0 72px}
.map-frame{display:block;width:100%;height:380px;border:0;border-radius:24px;box-shadow:var(--shadow)}
.faq details p a{color:var(--blue);font-weight:700}
@media (max-width:640px){.map-frame{height:280px;border-radius:18px}.map-section{padding-bottom:48px}}

/* Páginas de servicio */
.mini-content h3 a{color:inherit}
.mini-content h3 a:hover{color:var(--blue)}
.service-hero{padding:48px 0 56px}
.service-hero h1{font-size:clamp(38px,5vw,68px);line-height:1;letter-spacing:-.05em;margin:18px 0 18px;max-width:820px}
.service-hero p{max-width:680px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:18px}
.breadcrumb a{color:var(--blue);font-weight:700}
.service-body{display:grid;grid-template-columns:1.4fr .8fr;gap:40px;align-items:start}
.service-text h2{font-size:clamp(24px,2.6vw,32px);letter-spacing:-.03em;margin:0 0 10px}
.service-text h2:not(:first-child){margin-top:30px}
.service-text p{color:var(--muted);font-size:16px;line-height:1.7;margin:0}
.service-text .doctor-line{margin-top:30px}
.contact-box .price-box{margin-bottom:6px}
.other-services{margin-top:28px;color:var(--muted)}
.other-services a{color:var(--blue);font-weight:700}
@media (max-width:900px){.service-body{grid-template-columns:1fr}.service-hero{padding:24px 0 32px}}
.menu>a.btn-nav,.menu>a.btn-nav:hover{color:#fff}
/* Aviso COFEPRIS más visible */
.footer .footer-cofepris{font-size:13px !important;color:#e8f0f8 !important;font-weight:600;margin-top:6px !important}
