/* =========================================================================
   MATROCONSULTAS — HOJA DE ESTILOS UNIFICADA
   Un solo sistema de diseño para todas las páginas (home, matronas, blog,
   calculadoras, políticas). Compartida vía <link rel="stylesheet" href=".../css/styles.css">
   ========================================================================= */

:root{
  --azul-oscuro:#1F2933;
  --azul:#6F91E8;
  --azul-secundario:#4A90E2;
  --azul-claro:#EAF4FF;
  --azul-pastel:#B8D0FF;
  --coral:#F8817C;
  --coral-oscuro:#EE645D;
  --magenta:#B00063;
  --rosa-vivo:#EC1E93;
  --gris-texto:#5b6472;
  --borde:#e4eaf5;
  --texto:#1F2933;
  --blanco:#FFFFFF;
  --radius:14px;
  --shadow:0 10px 30px rgba(31,41,51,.10);
  --teal:#167D8C;
  --teal-oscuro:#125F6B;
  --verde:#AFC75B;
  --verde-oscuro:#92A94B;
  --oro:#F5B400;
  --header-h:122px; /* valor de respaldo; layout.js puede recalcularlo en runtime si mide el header real */
}

/* ---------- Reset base ---------- */
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--texto);background:var(--blanco);}
body.menu-open{overflow:visible;}
h1,h2,h3,h4,h5{font-family:'Poppins','Inter',system-ui,sans-serif;margin:0;}
p{margin:0;}
a{color:inherit;text-decoration:none;}
ul,ol{margin:0;}
img{display:block;max-width:100%;}
button,input,select{font:inherit;}
button{cursor:pointer;border:0;background:none;}
.container{max-width:1180px;margin:0 auto;padding:0 24px;}

/* ---------- Iconos ---------- */
.ic{display:inline-block;vertical-align:middle;flex-shrink:0;}
.ic svg{width:100%;height:100%;display:block;}
.ic-14{width:14px;height:14px;}
.ic-16{width:16px;height:16px;}
.ic-18{width:18px;height:18px;}
.ic-20{width:20px;height:20px;}
.ic-22{width:22px;height:22px;}
.ic-44{display:inline-block;width:44px;height:44px;}
.ic-44 svg{width:100%;height:100%;display:block;}

/* =========================================================================
   HEADER — inyectado por layout.js dentro de #site-header
   Estructura esperada: .topbar > .site-header(.top-row + .navbar>.menu)
   ========================================================================= */
.topbar{background:#eef1f8;color:var(--gris-texto);font-size:14px;}
.topbar .container{display:flex;align-items:center;height:42px;}
.topbar-tabs{display:flex;gap:26px;}
.topbar-tabs a{cursor:pointer;padding:10px 2px;font-weight:600;color:var(--gris-texto);text-decoration:none;}
.topbar-tabs .active,
.topbar-tabs a.active{color:var(--azul-oscuro);border-bottom:2.5px solid var(--magenta);}

.site-header{position:sticky;top:0;z-index:50;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.05);}
.top-row{display:flex;align-items:center;justify-content:space-between;min-height:70px;gap:20px;}
.logo{display:inline-flex;align-items:center;gap:10px;min-width:0;overflow:hidden;}
.logo img{display:block;height:46px;max-height:46px;width:auto;max-width:100%;object-fit:contain;}
.top-actions{display:flex;align-items:center;gap:22px;color:var(--azul-oscuro);font-size:14px;font-weight:600;}
.contact-text{display:flex;align-items:center;white-space:nowrap;}
.contact-text.muted{font-weight:500;color:var(--texto);}
.icon-btn{display:inline-flex;align-items:center;gap:6px;}
.account-btn{color:var(--azul-oscuro);font-weight:600;}
.acc-text{white-space:nowrap;}

.hamburger{display:none;width:38px;height:38px;flex-direction:column;justify-content:center;gap:5px;padding:0;flex-shrink:0;}
.hamburger span{display:block;width:22px;height:2.5px;margin:0 auto;border-radius:2px;background:var(--azul-secundario);transition:transform .2s ease,opacity .2s ease;}
.hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7.5px) rotate(45deg);}
.hamburger[aria-expanded="true"] span:nth-child(2){opacity:0;}
.hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7.5px) rotate(-45deg);}

.navbar{background:var(--azul);}
.menu{display:flex;align-items:center;gap:30px;min-height:52px;}
.menu a{font-size:14.5px;font-weight:500;color:#fff;opacity:.92;padding:4px 0;border-bottom:2px solid transparent;}
.menu a.active{opacity:1;border-bottom-color:#fff;font-weight:600;}
.menu a:hover{opacity:1;}

/* =========================================================================
   BOTONES (compartidos por todas las páginas)
   ========================================================================= */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:30px;padding:11px 22px;font-weight:600;font-size:14px;transition:transform .18s ease,background .18s ease,color .18s ease;}
.btn:hover{transform:translateY(-1px);}
.btn-coral{background:var(--coral);color:#fff;}
.btn-coral:hover{background:var(--coral-oscuro);}
.btn-blue{background:var(--azul-secundario);color:#fff;}
.btn-blue:hover{background:var(--azul-oscuro);}
.btn-outline{background:#fff;border:1.5px solid var(--azul-secundario);color:var(--azul-secundario);}
.btn-teal{background:var(--teal);color:#fff;}
.btn-teal:hover{background:var(--teal-oscuro);}
.btn-outline-teal{background:transparent;border:1.5px solid var(--teal);color:var(--teal);}
.btn-outline-teal.btn-fill{background:#e3f2f3;border-color:transparent;}
.btn-verde{background:var(--verde);color:#3a4310;}
.btn-verde:hover{background:var(--verde-oscuro);}
.btn-rosa{background:var(--rosa-vivo);color:#fff;padding:14px 30px;font-size:15px;}
.btn-block{width:100%;}

/* =========================================================================
   HERO (carrusel) — home
   ========================================================================= */
.hero{position:relative;height:460px;overflow:hidden;}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;background-repeat:no-repeat;display:flex;align-items:center;opacity:0;transition:opacity .8s ease;pointer-events:none;}
.hero-slide::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(31,41,51,.82),rgba(31,41,51,.35));}
.hero-slide.active{opacity:1;pointer-events:auto;}
.hero-content{position:relative;z-index:2;max-width:520px;color:#fff;padding:0 24px;margin-left:6%;}
.hero-content h1{font-size:38px;line-height:1.15;margin-bottom:14px;}
.hero-content p{font-size:16px;color:#eef2fb;margin-bottom:26px;line-height:1.5;}
.hero-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:5;}
.hero-dots span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer;}
.hero-dots span.active{background:#fff;}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.25);color:#fff;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;z-index:5;}
.hero-arrow.left{left:16px;}
.hero-arrow.right{right:16px;}

.promo{background:var(--azul);color:#fff;text-align:center;padding:11px 16px;font-size:14.5px;font-weight:500;}
.promo span{background:rgba(255,255,255,.18);padding:2px 8px;border-radius:6px;margin-right:8px;}

.promo-rotativo{background:#fff8f2;border-left:6px solid var(--coral);border-radius:8px;padding:22px 24px;}
.promo-rotativo p{font-size:16px;font-weight:600;color:#333;margin-bottom:14px;line-height:1.5;}
.promo-rotativo-actions{display:flex;gap:12px;flex-wrap:wrap;}

/* ---------- Popup modal del mensaje rotativo ---------- */
body.modal-open{overflow:hidden;}
.modal-overlay{position:fixed;inset:0;background:rgba(20,24,32,.55);z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;}
.modal-box{position:relative;background:#fff;border-radius:14px;max-width:480px;width:100%;padding:26px 24px 24px;box-shadow:0 20px 50px rgba(0,0,0,.25);}
.modal-close{position:absolute;top:12px;right:12px;width:28px;height:28px;border:1px solid var(--borde);border-radius:6px;background:#fff;color:var(--azul-oscuro);font-size:14px;display:flex;align-items:center;justify-content:center;}
.modal-box .promo-rotativo{border-radius:6px;padding:20px 20px 18px;}
.modal-box .promo-rotativo p{font-size:15px;}

.review-modal-box{max-width:520px;text-align:left;}
.rf-label{display:block;font-size:12.5px;font-weight:600;color:var(--gris-texto);margin:16px 0 6px;}
.rf-greeting{background:var(--azul-claro);color:var(--azul-oscuro);font-size:13px;padding:10px 14px;border-radius:8px;margin:16px 0;}
#review-form input[type="text"],
#review-form input[type="email"],
#review-form textarea{width:100%;padding:11px 13px;border-radius:8px;border:1px solid #d7deec;font-size:14px;color:var(--texto);background:#fafbfe;resize:vertical;}
.star-picker{display:flex;gap:6px;font-size:28px;color:#d7deec;line-height:1;}
.star-picker span{cursor:pointer;transition:color .15s ease;}
.star-picker span.active{color:var(--oro);}
.rf-toggle{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:13px;color:var(--texto);cursor:pointer;}
.rf-toggle input{position:absolute;opacity:0;width:0;height:0;}
.rf-toggle-track{position:relative;width:38px;height:20px;border-radius:20px;background:#d7deec;flex-shrink:0;transition:background .2s ease;}
.rf-toggle-track::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s ease;}
.rf-toggle input:checked + .rf-toggle-track{background:var(--teal);}
.rf-toggle input:checked + .rf-toggle-track::after{transform:translateX(18px);}
.btn-outline-review{display:block;width:100%;text-align:center;margin-top:20px;background:#fff;border:1.5px solid var(--rosa-vivo);color:var(--rosa-vivo);border-radius:30px;padding:11px 22px;font-weight:700;font-size:14px;}
.btn-outline-review:hover{background:var(--rosa-vivo);color:#fff;}
.btn-outline-review:disabled{opacity:.6;cursor:not-allowed;}
.rf-msg{font-size:13px;margin-top:14px;padding:10px 14px;border-radius:8px;display:none;}
.rf-msg:not(:empty){display:block;}
.rf-msg-ok{background:#e0f5e2;color:#1e7a2e;}
.rf-msg-error{background:#fdecec;color:#b23b3b;}

.mp-welcome{background:var(--azul-claro);color:var(--azul-oscuro);font-size:13.5px;padding:12px 16px;border-radius:8px;}
.mp-preloaded-note{background:#fff8ea;color:#8a6d1a;font-size:13px;padding:10px 14px;border-radius:8px;margin-bottom:20px;}
.mp-link-btn{background:none;border:0;color:var(--azul-secundario);font-weight:700;cursor:pointer;padding:0;font-size:13.5px;}

/* Panel de matrona / editor de admin — prefijo "mpp-" (matrona-panel) a
   proposito distinto de "mp-" (matrona-perfil mobile, ver mas abajo en este
   archivo) para no chocar con esas reglas. */
.mpp-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--borde);border-radius:var(--radius);padding:16px 22px;box-shadow:var(--shadow);margin-bottom:22px;flex-wrap:wrap;}
.mpp-topbar-identity{display:flex;align-items:center;gap:14px;min-width:0;}
.mpp-avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--teal),var(--azul-secundario));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;font-family:'Poppins',sans-serif;flex-shrink:0;}
.mpp-topbar-text{min-width:0;}
.mpp-toplabel{font-size:11px;color:var(--gris-texto);text-transform:uppercase;letter-spacing:.04em;font-weight:700;margin-bottom:1px;}
.mpp-topslug{font-size:15.5px;font-weight:700;color:var(--azul-oscuro);font-family:'Poppins',sans-serif;overflow-wrap:anywhere;}
.mpp-logout{background:#fdecec;color:#b23b3b;border:0;border-radius:20px;padding:9px 18px;font-weight:700;font-size:12.5px;cursor:pointer;transition:background .15s ease;white-space:nowrap;flex-shrink:0;}
.mpp-logout:hover{background:#fbd7d7;}

.mpp-card{background:#fff;border:1px solid var(--borde);border-radius:var(--radius);padding:24px 26px;box-shadow:var(--shadow);margin-bottom:20px;}
.mpp-card-header{display:flex;align-items:center;gap:12px;margin-bottom:6px;}
.mpp-card-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--azul-claro);color:var(--azul-secundario);}
.mpp-card-icon svg{width:18px;height:18px;display:block;}
.mpp-card-header h2{margin:0;font-size:16.5px;font-family:'Poppins','Inter',sans-serif;color:var(--azul-oscuro);}
.mpp-card-hint{font-size:12.5px;color:var(--gris-texto);margin:6px 0 18px;line-height:1.55;}
.mpp-card .mp-sched-row:last-of-type,.mpp-card .mp-cert-row:last-of-type{margin-bottom:0;}

.mpp-save-card{background:#fff;border:1px solid var(--borde);border-radius:var(--radius);padding:20px 26px;box-shadow:var(--shadow);margin-bottom:20px;}
.mpp-save-card .rf-msg{margin-top:0;margin-bottom:12px;}
.mpp-save-card .btn{margin-top:0;}

.mp-sched-row,.mp-cert-row{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap;}
.mp-sched-row select,.mp-sched-row input[type="time"]{padding:9px 10px;border-radius:8px;border:1px solid #d7deec;font-size:13.5px;}
.mp-cert-row input{flex:1;min-width:160px;padding:10px 12px;border-radius:8px;border:1px solid #d7deec;font-size:13.5px;}
.mp-remove-row{width:30px;height:30px;flex-shrink:0;border-radius:8px;background:#fdecec;color:#b23b3b;font-size:13px;}

.mp-service-row{position:relative;display:flex;align-items:flex-start;gap:12px;padding:12px 40px 12px 14px;border:1px solid #d7deec;border-radius:10px;margin-bottom:8px;cursor:pointer;transition:border-color .15s ease,background .15s ease;}
.mp-service-row:last-child{margin-bottom:0;}
.mp-service-row:hover{border-color:var(--azul-secundario);background:var(--azul-claro);}
.mp-service-row input[type="checkbox"]{width:17px;height:17px;flex-shrink:0;margin-top:2px;accent-color:var(--teal);}
.mp-service-row span{line-height:1.5;font-size:13.5px;color:#1F2933;}
.mp-service-row.is-selected{border-color:var(--teal);background:#e3f2f3;}
.mp-service-row.is-selected span strong{color:var(--teal-oscuro);}
.mp-service-row.is-selected::after{content:"\2713";position:absolute;top:12px;right:14px;color:var(--teal);font-weight:800;font-size:15px;}

.mp-panel-grid{display:grid;grid-template-columns:1fr 320px;gap:36px;align-items:start;}
.mp-panel-preview{position:sticky;top:calc(var(--header-h) + 16px);}
.mp-preview-label{font-size:12px;font-weight:700;color:var(--gris-texto);text-transform:uppercase;letter-spacing:.03em;margin-bottom:10px;}
.mp-preview-card{background:#f6f7fb;border-radius:16px;padding:20px;}
.mp-preview-card .mp-days-grid{display:flex;flex-direction:column;gap:8px;}
.mp-preview-card .mp-day-row{padding:9px 12px;}
.mp-preview-card .mp-certs{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px;}
.mp-preview-card .mp-certs li{font-size:12.5px;color:#3a4150;line-height:1.5;padding-left:14px;position:relative;}
.mp-preview-card .mp-certs li::before{content:"";position:absolute;left:0;top:6px;width:5px;height:5px;border-radius:50%;background:var(--coral);}
.mp-preview-card .mp-chips{margin-top:0;gap:8px;}
.mp-preview-card .mp-chips .chip{font-size:11.5px;padding:6px 12px;}

@media(max-width:900px){
  .mp-panel-grid{grid-template-columns:1fr;}
  .mp-panel-preview{position:static;order:-1;}
}

@media(max-width:600px){
  .mpp-card,.mpp-save-card{padding:18px 16px;}
  .mpp-topbar{padding:14px 16px;}
  .mp-sched-row select,.mp-sched-row input[type="time"]{flex:1;min-width:90px;}
}

.atencion-recomendada{font-size:17px;font-weight:700;padding:16px;border-radius:8px;color:#fff;background:var(--magenta);text-align:center;}
.atencion-urgencia{font-size:17px;font-weight:700;padding:16px;border-radius:8px;color:#fff;background:#d33;text-align:center;}
.atencion-otro{font-size:14.5px;padding:16px;border-radius:8px;color:var(--azul-oscuro);background:var(--azul-claro);text-align:center;line-height:1.6;}

/* =========================================================================
   SECCIONES GENÉRICAS
   ========================================================================= */
.section{padding:64px 0;}
.section-soft{background:var(--azul-claro);}
.section-muted{background:#f6f8fb;}
.section-title{text-align:center;font-size:30px;color:var(--azul-oscuro);margin-bottom:10px;}
.section-sub{max-width:650px;margin:0 auto 42px;text-align:center;color:var(--gris-texto);font-size:15px;line-height:1.65;}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}

/* =========================================================================
   ¿POR QUÉ ELEGIRNOS? — tarjetas de feature
   ========================================================================= */
.features{background:#fff;}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;}
.feature-card{border-radius:var(--radius);padding:28px 18px;text-align:center;color:#fff;box-shadow:var(--shadow);}
.feature-card:nth-child(1){background:var(--magenta);}
.feature-card:nth-child(n+2){background:#5077b5;}
.feature-card .icon{width:44px;height:44px;margin:0 auto 16px;display:flex;align-items:center;justify-content:center;}
.feature-card .icon svg{width:100%;height:100%;}
.feature-card h4{font-size:15px;font-weight:600;}

/* ---------- Isapres ---------- */
.isapres-row{display:flex;justify-content:center;align-items:center;gap:40px;margin-top:46px;flex-wrap:wrap;}
.isapres-row .lead{width:100%;text-align:center;font-size:16px;color:var(--gris-texto);margin-bottom:14px;font-weight:600;}
.isapres-row img{height:42px;width:auto;object-fit:contain;}

/* ---------- Isapres destacadas bajo “¿Por qué elegirnos?” ---------- */
.section.features{
  padding-bottom:28px;
}

.isapres-section-primary{
  background:#fff;
  padding:0 0 30px;
}

.isapres-row-primary{
  margin-top:0;
  display:block;
}

.isapres-row-primary .lead{
  width:auto;
  margin:0 0 17px;
  text-align:center;
  font-size:15.5px;
  line-height:1.4;
  font-weight:650;
  color:#4F5D72;
}

.isapres-logos{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:56px;
  min-height:64px;
}

.isapres-row-primary .isapres-logos img{
  display:block;
  width:auto;
  height:52px;
  max-width:175px;
  object-fit:contain;
  opacity:.82;
  filter:grayscale(1) brightness(.72) contrast(1.18);
  transition:opacity .18s ease,filter .18s ease,transform .18s ease;
}

@media (hover:hover) and (pointer:fine){
  .isapres-row-primary .isapres-logos img:hover{
    opacity:1;
    filter:grayscale(1) brightness(.62) contrast(1.22);
    transform:translateY(-1px);
  }
}

@media(max-width:900px){
  .section.features{padding-bottom:24px;}
  .isapres-section-primary{padding-bottom:28px;}
  .isapres-logos{gap:38px;}
  .isapres-row-primary .isapres-logos img{height:48px;max-width:155px;}
}

@media(max-width:640px){
  .section.features{padding-bottom:22px;}
  .isapres-section-primary{padding:0 0 24px;}
  .isapres-row-primary .lead{font-size:14px;margin-bottom:14px;}
  .isapres-logos{
    gap:22px;
    min-height:52px;
    flex-wrap:nowrap;
  }
  .isapres-row-primary .isapres-logos img{
    height:39px;
    max-width:29vw;
  }
}

@media(max-width:420px){
  .isapres-logos{gap:14px;}
  .isapres-row-primary .isapres-logos img{
    height:35px;
    max-width:30vw;
  }
}


/* =========================================================================
   WIDGET DE RESERVA — home
   ========================================================================= */
.booking{background:var(--azul-claro);}
.booking-inner{text-align:center;margin-bottom:30px;}
.booking-card{max-width:420px;margin:0 auto;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:28px;}
.booking-card label{display:block;font-size:13px;font-weight:600;margin:14px 0 6px;color:var(--texto);}
.booking-card select,.booking-card input{width:100%;padding:12px 14px;border-radius:8px;border:1px solid #d7deec;font-size:14px;color:var(--texto);background:#fafbfe;}
.booking-card .prices,.price-note{font-size:12.5px;color:var(--gris-texto);margin-top:14px;line-height:1.6;}
.booking-card .btn{width:100%;justify-content:center;margin-top:12px;}
.booking-links{text-align:center;margin-top:18px;font-size:13.5px;}
.booking-links a{color:var(--azul);font-weight:600;}
.old{opacity:.65;text-decoration:line-through;}
.new{color:var(--coral-oscuro);font-weight:800;}

/* =========================================================================
   RESEÑAS — home
   ========================================================================= */
.reviews-grid{display:flex;gap:40px;align-items:center;flex-wrap:wrap;}
.reviews-score{flex:1;min-width:220px;}
.reviews-score .num{font-size:44px;font-weight:800;color:var(--azul-oscuro);}
.stars{color:var(--oro);letter-spacing:1px;font-size:17px;font-weight:700;}
.review-grid{flex:1.4;min-width:280px;}
.review-slides{position:relative;min-height:180px;}
.review-slides .review-card{display:none;}
.review-slides .review-card.active{display:block;}
.review-card{background:var(--azul-claro);border-radius:var(--radius);padding:24px;margin-bottom:16px;}
.review-card .stars{margin-bottom:6px;display:block;}
.review-card h5{font-size:15px;margin-bottom:8px;}
.review-card p{font-size:13.5px;color:var(--gris-texto);line-height:1.6;margin-top:0;}
.review-card .author{margin-top:14px;font-size:12.5px;font-weight:700;color:var(--azul-oscuro);}
.review-nav{display:flex;align-items:center;gap:14px;margin-top:16px;}
.review-arrow{width:34px;height:34px;border-radius:50%;background:var(--azul-claro);color:var(--azul-oscuro);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;transition:background .18s ease;}
.review-arrow:hover{background:var(--azul-pastel);}
.review-counter{font-size:13px;color:var(--gris-texto);font-weight:600;}

/* =========================================================================
   "DESCUBRE NUESTROS SERVICIOS" — home
   ========================================================================= */
.team-intro{background:#f4f5f7;}
.team-flex{display:flex;align-items:flex-start;gap:50px;flex-wrap:wrap;}
.team-text{flex:1;min-width:280px;}
.dot-bullet{display:block;width:8px;height:8px;border-radius:50%;background:var(--coral);margin-bottom:14px;}
.team-text h2{font-size:26px;font-weight:800;color:#1a1a1a;line-height:1.35;margin:0 0 16px;}
.team-text h2 .subline{display:block;color:var(--azul);font-weight:800;margin-top:4px;}
.team-text p{color:#1a1a1a;line-height:1.6;font-size:15.5px;}
.team-text p .hl{color:var(--coral);}
.team-photos{flex:1;min-width:260px;display:flex;align-items:flex-start;gap:20px;padding-top:6px;}
.team-video{width:150px;aspect-ratio:9/16;border-radius:var(--radius);object-fit:cover;background:var(--azul-oscuro);box-shadow:var(--shadow);}
.team-video.v1{margin-top:50px;}
.team-video.v2{margin-top:0;}

/* =========================================================================
   MATRONAS DISPONIBLES — grilla de tarjetas (pagina de listado completo)
   ========================================================================= */
.hl-teal{color:var(--teal);}
.matronas-cta{color:var(--rosa-vivo);font-weight:700;text-decoration:underline;}

.matrona-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;max-width:1000px;margin:0 auto;}
.matrona-grid-card{position:relative;background:var(--azul-claro);border-radius:16px;padding:20px;display:flex;flex-direction:column;}
.mg-badge{position:absolute;top:14px;left:14px;display:flex;align-items:center;background:#e6e1fa;color:#5b4fc4;font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:8px;}
.mg-photo-wrap{display:flex;justify-content:center;margin:34px 0 10px;}
.mg-photo{width:110px;height:110px;border-radius:50%;object-fit:cover;object-position:top center;background:#fff;}
.mg-verified{display:flex;align-items:center;color:#9aa2b1;font-size:12px;font-weight:600;margin-bottom:10px;}
.mg-rating{display:flex;align-items:center;gap:6px;font-weight:800;color:var(--azul-oscuro);font-size:16px;margin-bottom:2px;}
.mg-rating .stars{color:var(--oro);font-size:14px;}
.mg-rating-sub{font-size:12px;color:var(--gris-texto);margin-bottom:8px;}
.mg-name{font-size:18px;font-weight:800;color:var(--azul-secundario);margin-bottom:2px;}
.mg-role{font-size:13px;font-weight:700;color:var(--rosa-vivo);margin-bottom:10px;}
.mg-quick{display:flex;align-items:flex-start;gap:2px;color:var(--teal);font-size:12.5px;font-weight:600;margin-bottom:16px;line-height:1.4;}
.matrona-grid-card .btn{margin-bottom:10px;}
.matrona-grid-card .btn:last-child{margin-bottom:0;}
.mg-btn-secondary{background:#e7e9ee;color:#5b6472;}

@media(max-width:980px){
  .matrona-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .matrona-grid{grid-template-columns:1fr;max-width:360px;}
}

/* =========================================================================
   MATRONAS — tarjeta usada en home, listado y footer de perfil
   ========================================================================= */
.matrona-list{display:flex;flex-direction:column;gap:20px;max-width:900px;margin:0 auto;}
.matrona-item{display:flex;align-items:center;gap:28px;background:var(--azul-claro);border-radius:20px;padding:24px;}
.matrona-item .matrona-photo{width:150px;height:190px;border-radius:16px;flex-shrink:0;object-fit:cover;object-position:top center;}
.matrona-item .info{flex:1;}
.matrona-item h4{font-size:23px;font-weight:800;color:var(--texto);margin-bottom:6px;}
.matrona-item .uni{font-size:14.5px;color:#3a4150;margin-bottom:10px;}
.matrona-item .quick{display:flex;align-items:center;gap:2px;color:var(--azul-secundario);font-size:13.5px;font-weight:600;margin-bottom:16px;}
.matrona-item .btn{background:var(--azul);color:#fff;border-radius:10px;padding:13px 24px;font-weight:700;font-size:14.5px;}
.see-all{display:block;text-align:center;margin-top:28px;color:var(--azul);font-weight:600;font-size:14px;}

/* Chips genéricos (etiquetas de servicios en tarjetas/listas) */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;}
.chip{display:inline-flex;align-items:center;border-radius:999px;background:var(--azul-claro);color:var(--azul-secundario);padding:8px 14px;font-size:12.5px;font-weight:700;}
.chip.chip-verde{background:#eef3d1;color:#5c6b1f;}

/* =========================================================================
   SERVICIOS DE ATENCIÓN ONLINE — home
   Responsive desde móviles pequeños hasta escritorio.
   ========================================================================= */
.services-band{
  background:#fff !important;
  padding:clamp(52px,6vw,72px) 0 clamp(60px,7vw,82px);
}

.services-band .container{
  width:100%;
}

.services-band .section-title{
  color:#12275B;
  font-size:clamp(27px,3vw,34px);
  line-height:1.18;
  margin-bottom:12px;
  font-weight:800;
  letter-spacing:-.025em;
  text-wrap:balance;
}

.services-band .section-title .title-online{
  color:#f97f7b;
}

.services-band .section-sub{
  max-width:680px;
  color:#5D687A;
  margin:0 auto clamp(30px,4vw,42px);
  font-size:clamp(14px,1.4vw,15.5px);
  line-height:1.7;
  text-wrap:balance;
}

.services-band .service-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}

.service-card{
  --service-accent:#4F78C8;
  position:relative;
  min-width:0;
  min-height:328px;
  border-radius:22px;
  padding:30px 28px 24px;
  display:flex;
  flex-direction:column;
  background:#f1f5f8 !important;
  border:1px solid #DDE5F1;
  box-shadow:0 4px 14px rgba(24,44,85,.025);
  overflow:hidden;
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}

.service-top{
  display:grid;
  grid-template-columns:106px minmax(0,1fr);
  gap:18px;
  align-items:start;
  margin-bottom:18px;
  min-width:0;
}

.service-icon{
  width:106px;
  height:106px;
  border-radius:50%;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:var(--service-accent) !important;
}

.service-icon svg{
  width:52px;
  height:52px;
  display:block;
  overflow:visible;
}

.service-copy{
  min-width:0;
  padding-top:7px;
}

.service-copy h4{
  font-family:'Poppins','Inter',sans-serif;
  font-size:21px;
  font-weight:700;
  line-height:1.28;
  color:#0F2458;
  margin:0;
  letter-spacing:-.01em;
  overflow-wrap:anywhere;
}

.service-copy p{
  margin:11px 0 0;
  font-size:14.2px;
  line-height:1.62;
  color:#556173;
  overflow-wrap:anywhere;
}

.service-card .price{
  display:flex;
  align-items:baseline;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:5px 9px;
  min-height:44px;
  margin-top:auto;
  margin-bottom:0;
  padding:2px 4px 14px;
  border-bottom:1px solid #E1E7EF;
}

.service-card .price .old{
  font-size:14px;
  font-weight:500;
  color:#8A94A3;
  text-decoration:line-through;
  text-decoration-thickness:1px;
  white-space:nowrap;
}

.service-card .price .new{
  font-size:19px;
  font-weight:800;
  color:#5192e3;
  white-space:nowrap;
}

.service-card .service-btn{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  width:100%;
  min-width:0;
  min-height:58px;
  margin:0;
  padding:10px 4px 0;
  background:transparent;
  color:#6F91E7;
  text-decoration:none;
  border-radius:0;
  box-shadow:none;
  transition:transform .18s ease;
}

.service-card .service-btn-label{
  min-width:0;
  font-family:'Poppins','Inter',sans-serif;
  font-size:17.5px;
  font-weight:700;
  line-height:1.2;
  color:#6F91E7;
  letter-spacing:-.01em;
  text-align:right;
  overflow-wrap:anywhere;
}

.service-card .service-btn-circle{
  width:42px;
  height:42px;
  min-width:42px;
  min-height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#6F91E7;
  color:#fff;
  box-shadow:none;
  flex:0 0 42px;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}

.service-card .service-btn svg{
  width:17px;
  height:17px;
  flex-shrink:0;
  transition:transform .18s ease;
}

.service-card .service-btn:focus-visible{
  outline:3px solid rgba(111,145,231,.26);
  outline-offset:3px;
}

/* Hover solo en dispositivos que realmente tienen cursor. */
@media (hover:hover) and (pointer:fine){
  .service-card:hover{
    transform:translateY(-2px);
    border-color:#C9D7EB;
    box-shadow:0 12px 30px rgba(24,44,85,.07);
  }
  .service-card .service-btn:hover{
    transform:translateY(-1px);
  }
  .service-card .service-btn:hover .service-btn-circle{
    background:#5E82DE;
    transform:scale(1.04);
    box-shadow:0 7px 16px rgba(79,120,200,.18);
  }
  .service-card .service-btn:hover svg{
    transform:translateX(1px);
  }
}

/* Notebook / tablet horizontal: 3 columnas, pero más compactas. */
@media (max-width:1180px){
  .services-band .service-grid{
    gap:16px;
  }
  .service-card{
    min-height:314px;
    padding:26px 23px 22px;
  }
  .service-top{
    grid-template-columns:92px minmax(0,1fr);
    gap:15px;
  }
  .service-icon{
    width:92px;
    height:92px;
  }
  .service-icon svg{
    width:47px;
    height:47px;
  }
  .service-copy{
    padding-top:4px;
  }
  .service-copy h4{
    font-size:19px;
  }
  .service-copy p{
    font-size:13.6px;
    line-height:1.58;
  }
  .service-card .service-btn-label{
    font-size:16.5px;
  }
}

/* Tablet: dos columnas cómodas. */
@media (max-width:980px){
  .services-band .service-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
  }
  .service-card{
    min-height:300px;
    padding:25px 24px 21px;
  }
  .service-top{
    grid-template-columns:88px minmax(0,1fr);
    gap:16px;
  }
  .service-icon{
    width:88px;
    height:88px;
  }
  .service-icon svg{
    width:44px;
    height:44px;
  }
}

/* Tablet vertical estrecha / teléfonos grandes: una sola columna. */
@media (max-width:720px){
  .services-band{
    padding-top:50px;
    padding-bottom:58px;
  }
  .services-band .section-sub{
    max-width:520px;
  }
  .services-band .service-grid{
    grid-template-columns:1fr;
    gap:14px;
    max-width:620px;
    margin:0 auto;
  }
  .service-card{
    min-height:0;
    padding:24px 22px 20px;
    border-radius:20px;
  }
  .service-top{
    grid-template-columns:82px minmax(0,1fr);
    gap:15px;
    margin-bottom:18px;
  }
  .service-icon{
    width:82px;
    height:82px;
  }
  .service-icon svg{
    width:42px;
    height:42px;
  }
  .service-copy{
    padding-top:2px;
  }
  .service-copy h4{
    font-size:18px;
  }
  .service-copy p{
    margin-top:8px;
    font-size:13.4px;
    line-height:1.55;
  }
  .service-card .price{
    min-height:42px;
    padding-bottom:12px;
  }
  .service-card .price .new{
    font-size:18px;
  }
  .service-card .service-btn{
    min-height:54px;
    gap:10px;
  }
  .service-card .service-btn-label{
    font-size:16.5px;
  }
  .service-card .service-btn-circle{
    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px;
    flex-basis:40px;
  }
}

/* Teléfonos estándar: 390–430 px aprox. */
@media (max-width:430px){
  .services-band{
    padding-top:44px;
    padding-bottom:50px;
  }
  .services-band .section-title{
    font-size:25px;
    padding:0 4px;
  }
  .services-band .section-sub{
    margin-bottom:25px;
    padding:0 4px;
    font-size:13.8px;
    line-height:1.6;
  }
  .services-band .service-grid{
    gap:12px;
  }
  .service-card{
    padding:21px 18px 17px;
    border-radius:18px;
  }
  .service-top{
    grid-template-columns:72px minmax(0,1fr);
    gap:13px;
    margin-bottom:15px;
  }
  .service-icon{
    width:72px;
    height:72px;
  }
  .service-icon svg{
    width:37px;
    height:37px;
  }
  .service-copy h4{
    font-size:17px;
    line-height:1.3;
  }
  .service-copy p{
    font-size:12.9px;
    line-height:1.5;
  }
  .service-card .price{
    gap:5px 8px;
    min-height:39px;
    padding:1px 2px 10px;
  }
  .service-card .price .old{
    font-size:13px;
  }
  .service-card .price .new{
    font-size:17px;
  }
  .service-card .service-btn{
    min-height:50px;
    gap:9px;
    padding:8px 2px 0;
  }
  .service-card .service-btn-label{
    font-size:15.5px;
  }
  .service-card .service-btn-circle{
    width:38px;
    height:38px;
    min-width:38px;
    min-height:38px;
    flex-basis:38px;
  }
  .service-card .service-btn svg{
    width:16px;
    height:16px;
  }
}

/* Teléfonos muy pequeños (320–360 px): evita cualquier desborde. */
@media (max-width:360px){
  .services-band .section-title{
    font-size:23px;
  }
  .services-band .section-sub{
    font-size:13.2px;
  }
  .service-card{
    padding:19px 16px 16px;
  }
  .service-top{
    grid-template-columns:64px minmax(0,1fr);
    gap:12px;
  }
  .service-icon{
    width:64px;
    height:64px;
  }
  .service-icon svg{
    width:33px;
    height:33px;
  }
  .service-copy h4{
    font-size:16px;
  }
  .service-copy p{
    font-size:12.4px;
  }
  .service-card .price .old{
    font-size:12.5px;
  }
  .service-card .price .new{
    font-size:16.5px;
  }
  .service-card .service-btn-label{
    font-size:15px;
  }
  .service-card .service-btn-circle{
    width:36px;
    height:36px;
    min-width:36px;
    min-height:36px;
    flex-basis:36px;
  }
}

/* Si el dispositivo está en landscape y tiene poca altura, compacta la sección. */
@media (max-height:500px) and (orientation:landscape) and (max-width:900px){
  .services-band{
    padding-top:38px;
    padding-bottom:42px;
  }
  .services-band .section-sub{
    margin-bottom:24px;
  }
}

@media (prefers-reduced-motion:reduce){
  .service-card,
  .service-card .service-btn,
  .service-card .service-btn-circle,
  .service-card .service-btn svg{
    transition:none !important;
  }
}

/* =========================================================================
   BLOG
   ========================================================================= */
.blog-banner{background:var(--azul);color:#fff;text-align:center;padding:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;}
.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px;margin-top:30px;}
.blog-card,.article-card{display:block;background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);}
.card-image{width:100%;object-fit:cover;background:var(--azul-claro);}
.blog-card .ph,.blog-card .card-image,.article-card .card-image{width:100%;height:170px;object-fit:cover;background:var(--azul-claro);}
.blog-card .body,.article-card .card-body{padding:18px 20px;}
.blog-card .date{font-size:12px;color:var(--gris-texto);margin-bottom:6px;}
.blog-card h4,.article-card h3{font-size:15.5px;line-height:1.4;margin-bottom:8px;}
.article-card p{color:var(--gris-texto);font-size:13.5px;line-height:1.6;}

/* =========================================================================
   MONITOREO A DOMICILIO — home
   ========================================================================= */
.domicilio-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:stretch;}
.domicilio-photo{border-radius:var(--radius);height:340px;width:100%;object-fit:cover;display:block;}
.domicilio-card{background:linear-gradient(135deg,#fff,var(--azul-claro));border-radius:var(--radius);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 30px;}
.domicilio-icon{width:76px;height:76px;border-radius:50%;background:#fff;box-shadow:0 6px 18px rgba(31,41,51,.12);display:flex;align-items:center;justify-content:center;color:var(--magenta);margin-bottom:22px;}
.domicilio-icon svg{width:34px;height:34px;}
.domicilio-card h4{font-size:24px;font-weight:800;color:var(--azul-secundario);line-height:1.35;margin-bottom:16px;}
.domicilio-card p{font-size:15px;font-weight:600;color:#8fb3e8;margin-bottom:24px;}

/* =========================================================================
   POLITICAS — layout de pestañas
   ========================================================================= */
.politicas-wrap{border:1px solid var(--borde);border-radius:12px;overflow:hidden;}
.politicas-layout{display:grid;grid-template-columns:280px 1fr;}
.politicas-tabs{display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--borde);}
.politicas-tab{text-align:left;padding:18px 22px;font-weight:700;font-size:14px;line-height:1.4;color:var(--texto);border-left:4px solid transparent;border-bottom:1px solid var(--borde);}
.politicas-tab:last-child{border-bottom:none;}
.politicas-tab.active{color:var(--coral-oscuro);border-left-color:var(--coral-oscuro);}
.politicas-content{background:#f4f5f7;padding:30px 34px;}
.politicas-panel{display:none;}
.politicas-panel.active{display:block;}
.politicas-panel > p{color:var(--texto);font-size:14.5px;line-height:1.75;margin-bottom:6px;}
.politicas-panel h3{font-size:18px;color:var(--azul-oscuro);margin:24px 0 10px;}
.politicas-panel h3:first-of-type{margin-top:22px;}
.politicas-panel ul{padding-left:20px;margin-bottom:6px;}
.politicas-panel ul ul{margin-top:8px;}
.politicas-panel li{color:var(--texto);font-size:14.5px;line-height:1.75;margin-bottom:12px;}

@media(max-width:767px){
  .politicas-layout{grid-template-columns:1fr;}
  .politicas-tabs{flex-direction:row;flex-wrap:wrap;border-right:none;border-bottom:1px solid var(--borde);}
  .politicas-tab{flex:1 1 50%;border-left:none;border-top:4px solid transparent;text-align:center;font-size:12.5px;padding:14px 10px;}
  .politicas-tab.active{border-top-color:var(--coral-oscuro);border-left:none;}
  .politicas-content{padding:22px 20px;}
}
.account-icon{color:var(--teal);display:flex;justify-content:center;margin-bottom:14px;}
.account-disabled{background:#dde1e8;color:#8b93a1;cursor:not-allowed;}
.service-card .account-promo-photo{display:flex;align-items:center;justify-content:center;}

.auth-tabs{display:flex;gap:8px;margin-bottom:18px;}
.auth-tab{flex:1;padding:10px;border-radius:8px;background:#f2f4f8;color:var(--gris-texto);font-weight:700;font-size:13.5px;}
.auth-tab.active{background:var(--azul-secundario);color:#fff;}
.auth-form input{width:100%;padding:11px 13px;border-radius:8px;border:1px solid #d7deec;font-size:14px;color:var(--texto);background:#fafbfe;box-sizing:border-box;}
.account-welcome{background:var(--azul-claro);border-radius:12px;padding:20px;text-align:center;}
.account-welcome p{font-size:15px;color:var(--azul-oscuro);margin-bottom:14px;}
.mr-status{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;margin-bottom:8px;}
.mr-status-pending{background:#fff3cd;color:#8a6d1a;}
.mr-status-approved{background:#e0f5e2;color:#1e7a2e;}
.mr-status-rejected{background:#fdecec;color:#b23b3b;}

/* =========================================================================
   PORTAL DE FUNCIONARIOS
   ========================================================================= */
.portal-card{background:#eef0f4;border-radius:var(--radius);padding:30px;}
.portal-card p{color:var(--gris-texto);font-size:14.5px;line-height:1.6;margin-bottom:22px;min-height:44px;}

/* ---------- Banner "No espere" ---------- */
.no-espere-banner{background:var(--azul-pastel);border-radius:var(--radius);text-align:center;padding:60px 20px;}
.no-espere-banner h3{font-size:26px;font-weight:800;color:#fff;line-height:1.4;margin-bottom:26px;}
.no-espere-banner .rosa{color:var(--rosa-vivo);}

/* =========================================================================
   PREGUNTAS FRECUENTES (FAQ) — home
   ========================================================================= */
.faq-list{max-width:820px;margin:0 auto;}
.faq-item{border-bottom:1px solid var(--borde);}
.faq-q{width:100%;display:flex;justify-content:space-between;align-items:center;gap:16px;text-align:left;padding:20px 4px;font-weight:700;font-size:15.5px;color:var(--texto);}
.faq-caret{flex-shrink:0;color:var(--gris-texto);font-size:18px;transition:transform .2s ease;}
.faq-item.open .faq-caret{transform:rotate(180deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease;}
.faq-a p{color:var(--gris-texto);font-size:14px;line-height:1.75;padding:0 4px 20px;}

/* ---------- Banner "No encuentra hora" (perfil de matrona) ---------- */
.no-hora{background:var(--azul-claro);border-radius:var(--radius);padding:32px 28px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;}
.no-hora h3{font-size:19px;color:var(--azul-oscuro);max-width:320px;}

/* =========================================================================
   CALCULADORAS y TARJETAS DE HERRAMIENTA
   ========================================================================= */
.tool-card{max-width:620px;margin:0 auto;padding:28px;background:#fff;border:1px solid var(--borde);border-radius:var(--radius);box-shadow:var(--shadow);}
.tool-card h3{font-size:17px;margin-bottom:8px;}
.tool-card .meta{color:var(--gris-texto);font-size:13.5px;line-height:1.6;}
.calc-card{max-width:820px;}
.calc-embarazo-grid{display:grid;grid-template-columns:1fr 220px;gap:30px;align-items:start;}
.calc-form .field{margin-bottom:14px;}
.calc-planta{display:flex;align-items:center;justify-content:center;padding-top:8px;}
.calc-planta img{max-width:180px;width:100%;height:auto;}
@media(max-width:640px){
  .calc-embarazo-grid{grid-template-columns:1fr;}
  .calc-planta{order:-1;max-width:160px;margin:0 auto;}
}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;}
.field{display:flex;flex-direction:column;gap:7px;}
.field label{font-size:13px;font-weight:700;}
.field input,.field select{border:1px solid #d7deec;border-radius:8px;padding:12px 13px;}
.result-box{margin-top:20px;padding:18px;border-radius:10px;background:var(--azul-claro);color:var(--azul-oscuro);font-weight:700;line-height:1.7;}

/* =========================================================================
   CONTENIDO LARGO — blog / políticas
   ========================================================================= */
.content{max-width:860px;margin:0 auto;color:var(--texto);}
.content h1{font-size:34px;margin-bottom:14px;}
.content h2{font-size:24px;margin:30px 0 12px;}
.content h3{font-size:19px;margin:22px 0 10px;}
.content p,.content li{color:var(--gris-texto);line-height:1.75;margin-bottom:12px;}
.content ul,.content ol{padding-left:22px;}
.notice{border-left:4px solid var(--azul-secundario);background:var(--azul-claro);padding:16px 18px;border-radius:8px;color:var(--azul-oscuro);line-height:1.7;margin-top:20px;}
.validated-box{border:1px solid var(--borde);background:#f7f8fa;border-radius:8px;padding:16px 18px;margin-top:24px;}
.validated-box p{color:var(--texto);font-size:13.5px;margin-bottom:4px;}
.validated-box p:last-child{margin-bottom:0;}

/* =========================================================================
   PERFIL DE MATRONA (desktop) — inyectado por profile.js dentro de #profile-root
   ========================================================================= */
.divider{border:none;border-top:1px solid #eaeef5;margin:32px 0;}
.h-section{font-size:24px;color:var(--azul-oscuro);margin-bottom:6px;}
.h-sub{font-size:16px;color:var(--gris-texto);font-weight:600;margin-bottom:10px;}
.body-text{color:#3a4150;line-height:1.7;font-size:15px;}

.desktop-profile{display:block;}
.mobile-profile{display:none;}

.profile-grid{display:grid;grid-template-columns:1fr 360px;gap:40px;align-items:start;padding-top:34px;}
.profile-main{min-width:0;}

.profile-top{display:flex;gap:22px;align-items:flex-start;margin-bottom:26px;}
.profile-photo{width:130px;height:160px;border-radius:14px;object-fit:cover;flex-shrink:0;box-shadow:var(--shadow);background:var(--azul-claro);}
.profile-name{display:flex;align-items:center;gap:8px;font-size:24px;color:var(--azul-oscuro);margin-bottom:6px;}
.profile-name .verified{color:var(--teal);}
.profile-uni{color:var(--gris-texto);font-size:14.5px;margin-bottom:10px;}
.profile-rating{display:flex;align-items:center;gap:8px;margin-bottom:8px;}
.profile-rating .num{font-weight:700;color:var(--azul-oscuro);}
.profile-quick{display:flex;align-items:center;gap:6px;color:var(--teal);font-size:13.5px;font-weight:600;margin-bottom:16px;}
.profile-actions{display:flex;gap:12px;flex-wrap:wrap;}

.quote-box{font-size:16px;font-style:italic;color:var(--azul-oscuro);border-left:3px solid var(--coral);padding-left:16px;margin:22px 0;}

.service-list{margin-top:12px;}
.service-list li{display:flex;gap:10px;margin-bottom:12px;line-height:1.6;font-size:15px;color:#3a4150;}
.service-list li .dot{width:6px;height:6px;border-radius:50%;background:var(--coral);margin-top:9px;flex-shrink:0;}
.service-list li strong{color:var(--azul-oscuro);}

.price-box{background:var(--azul-claro);border-radius:var(--radius);padding:20px 24px;display:inline-block;margin-top:10px;}
.price-box .amount{font-size:22px;font-weight:800;color:var(--magenta);}

.reviews-summary{display:flex;gap:40px;flex-wrap:wrap;align-items:center;margin-top:20px;}
.reviews-score .num{font-size:40px;font-weight:800;color:var(--azul-oscuro);line-height:1;}
.reviews-score .count{color:var(--gris-texto);font-size:13px;margin-top:4px;}
.bars{flex:1;min-width:240px;}
.bar-row{display:grid;grid-template-columns:80px 1fr 40px;align-items:center;gap:10px;font-size:13px;color:var(--gris-texto);margin-bottom:8px;}
.bar-track{background:#eef0f4;border-radius:6px;height:8px;overflow:hidden;}
.bar-fill{display:block;height:100%;background:var(--oro);border-radius:6px;}

.reviews-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:30px 0 18px;}
.write-review{display:flex;align-items:center;gap:6px;color:var(--teal);font-weight:600;font-size:14px;}

.pagination{display:flex;justify-content:center;gap:8px;margin-top:20px;}
.pagination button{width:36px;height:36px;border-radius:8px;background:#f2f4f8;color:var(--azul-oscuro);font-weight:600;font-size:14px;}
.pagination button.active{background:var(--azul-secundario);color:#fff;}
.pagination button.next{width:auto;padding:0 16px;}

.booking-sidebar{position:sticky;top:calc(var(--header-h) + 16px);}
.booking-box{background:#fff;border:1px solid var(--borde);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px;}
.booking-box h3{font-size:19px;color:var(--azul-oscuro);margin-bottom:14px;}
.teleconsulta-badge{display:inline-flex;align-items:center;gap:6px;background:var(--azul-claro);color:var(--azul-secundario);font-size:12.5px;font-weight:700;padding:6px 12px;border-radius:20px;margin-bottom:18px;}
.booking-box label{display:block;font-size:13px;font-weight:700;color:var(--azul-oscuro);margin:16px 0 8px;}
.day-tabs{display:flex;gap:6px;}
.day-tabs button{flex:1;padding:10px 4px;border-radius:8px;background:#f2f4f8;color:var(--gris-texto);font-size:12.5px;font-weight:700;text-align:center;}
.day-tabs button.active{background:var(--azul-oscuro);color:#fff;}
.slot-list{margin-top:12px;display:flex;flex-direction:column;gap:8px;}
.slot-item{display:flex;justify-content:space-between;align-items:center;border:1px solid #e6eaf2;border-radius:8px;padding:9px 12px;font-size:13px;color:var(--azul-oscuro);}
.slot-item .hasta{color:var(--gris-texto);}
.slot-empty{font-size:13px;color:var(--gris-texto);padding:10px 2px;}
.booking-box select{width:100%;padding:11px 12px;border-radius:8px;border:1px solid #d7deec;font-size:13.5px;color:var(--texto);background:#fafbfe;}

/* =========================================================================
   PERFIL DE MATRONA (mobile) — diseño propio, no un reflow del desktop
   ========================================================================= */
.mp-hero-photo-wrap{position:relative;background:var(--teal);height:340px;overflow:hidden;}
.mp-hero-photo{width:100%;height:100%;object-fit:contain;}
.mp-back{position:absolute;top:16px;left:16px;width:36px;height:36px;border-radius:50%;background:#fff;color:var(--azul-oscuro);display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(0,0,0,.18);}
.mp-badge{position:absolute;top:22px;right:16px;color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;gap:6px;}
.mp-card{background:#fff;border-radius:28px 28px 0 0;margin-top:-40px;position:relative;z-index:2;padding:26px 22px 24px;box-shadow:0 -10px 24px rgba(0,0,0,.06);}
.mp-card h1{font-size:21px;color:var(--azul-oscuro);margin-bottom:6px;}
.mp-uni{color:var(--gris-texto);font-size:14px;margin-bottom:10px;}
.mp-rating{display:flex;align-items:center;gap:8px;margin-bottom:16px;}
.mp-rating .num{font-weight:700;color:var(--azul-oscuro);font-size:17px;}
.mp-rating .stars{font-size:17px;}
.mp-certs{margin-bottom:16px;}
.mp-certs li{display:flex;gap:10px;align-items:flex-start;color:#8b93a1;font-size:13.5px;line-height:1.5;margin-bottom:8px;}
.mp-certs li .ic{color:#c3cad4;margin-top:1px;}
.mp-quick{display:flex;align-items:flex-start;gap:6px;color:var(--teal);font-size:13.5px;font-weight:600;margin-bottom:18px;}
.mp-card .btn{margin-bottom:12px;}

.mp-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.mp-days-grid{display:flex;flex-direction:column;gap:12px;margin-top:14px;}
.mp-days-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px;}
.mp-day-row{display:flex;flex-direction:column;align-items:flex-start;gap:7px;border:1px solid #e6eaf2;border-radius:12px;padding:12px 14px;}
.mp-day-row .pill{display:inline-block;background:var(--azul-oscuro);color:#fff;font-weight:700;font-size:12.5px;padding:6px 14px;border-radius:16px;}
.mp-day-row .time{display:flex;flex-direction:column;gap:2px;font-size:12.5px;color:var(--gris-texto);font-weight:600;}
.mp-quote-card{background:#f6f7fb;border-radius:var(--radius);padding:22px;}
.mp-quote-card .quote-box{margin:14px 0;}

/* =========================================================================
   FOOTER — inyectado por layout.js dentro de #site-footer
   ========================================================================= */
.site-footer{background:#1f2c4a;color:#c9d2e8;padding:56px 0 24px;}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:40px;}
.footer-logo{display:inline-flex;background:#fff;border-radius:10px;padding:10px 14px;margin-bottom:14px;}
.footer-logo img{height:34px;width:auto;}
.site-footer h3,.site-footer h5{color:#fff;font-size:15px;margin-bottom:16px;}
.site-footer p,.site-footer a{color:#aebadb;font-size:13.5px;line-height:1.8;}
.footer-links{display:grid;gap:8px;}
.social-row{display:flex;gap:12px;margin-top:14px;}
.social-row a{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;color:#fff;}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:36px;padding-top:20px;text-align:center;color:#8592b4;font-size:12.5px;}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media(max-width:980px){
  .feature-grid,.service-grid,.grid-3{grid-template-columns:repeat(2,1fr);}
  .blog-grid,.domicilio-grid,.grid-2{grid-template-columns:1fr;}
  .reviews-grid,.team-flex{flex-direction:column;align-items:flex-start;}
  .footer-grid{grid-template-columns:1fr;gap:32px;}
  .profile-grid{grid-template-columns:1fr;}
  .booking-sidebar{position:static;}
  .hero{height:400px;}

  .top-row{display:grid;grid-template-columns:40px 1fr auto;align-items:center;column-gap:10px;padding:12px 0;}
  .hamburger{display:flex;justify-self:start;}
  .logo{justify-self:center;}
  .logo img{max-height:38px;}
  .top-actions{justify-self:end;gap:12px;}
  .contact-text{display:none;}
  .account-btn{width:38px;height:38px;border:1.5px solid #cfd4dc;border-radius:50%;justify-content:center;color:#8b93a1;flex-shrink:0;}
  .acc-text{display:none;}
  .reserva-label{display:none;}
  .reserva-btn{width:46px;height:46px;padding:0;justify-content:center;border-radius:14px;flex-shrink:0;}
  /*
   * Menú móvil desplegable:
   * queda anclado al header sticky y NO aumenta su altura.
   * De esta forma puede abrirse después de hacer scroll sin que el header
   * salte al comienzo de la página.
   */
  .site-header{
    position:relative;
    overflow:visible;
  }

  .navbar{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    z-index:1600;
    max-height:0;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    transform:translateY(-6px);
    background:var(--azul);
    box-shadow:0 14px 28px rgba(31,41,51,.16);
    transition:
      max-height .28s ease,
      opacity .18s ease,
      transform .18s ease,
      visibility 0s linear .28s;
  }

  .navbar.open{
    max-height:min(70dvh,420px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    opacity:1;
    visibility:visible;
    transform:translateY(0);
    transition:
      max-height .28s ease,
      opacity .18s ease,
      transform .18s ease,
      visibility 0s linear 0s;
  }

  .menu{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:6px 0 14px;
  }

  .menu a{
    width:100%;
    padding:12px 4px;
    border-bottom:1px solid rgba(255,255,255,.15);
  }
}

@media(max-width:767px){
  .desktop-profile{display:none;}
  .mobile-profile{display:block;}
}

@media(max-width:640px){
  .container{padding:0 18px;}
  .section{padding:44px 0;}
  .section-title{font-size:24px;}
  .feature-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .feature-card{padding:20px 10px;}
  .feature-card h4{font-size:13px;}
  .feature-card .icon{width:38px;height:38px;margin-bottom:10px;}
  .service-grid,.grid-2,.review-grid,.grid-3,.form-grid{grid-template-columns:1fr;}
  .isapres-row{gap:26px;}
  .isapres-row img{height:32px;}
  .topbar{font-size:12.5px;}
  .topbar .container{height:auto;padding:6px 0;}

  .hero{height:360px;}
  .hero-content{max-width:88%;margin-left:5%;padding:0;}
  .hero-content h1{font-size:24px;}
  .hero-content p{font-size:14px;margin-bottom:18px;}
  .hero-arrow{width:32px;height:32px;font-size:16px;}
  .promo{font-size:13px;padding:10px 12px;}
  .booking-card,.tool-card{padding:22px;}

  .team-photos{width:100%;gap:20px;padding-top:0;}
  .team-video{flex:1;width:auto;min-width:0;}
  .team-video.v1{margin-top:40px;}

  .matrona-item{align-items:flex-start;padding:16px;gap:14px;}
  .matrona-item .matrona-photo{width:110px;height:140px;}
  .matrona-item h4{font-size:16.5px;line-height:1.25;margin-bottom:6px;}
  .matrona-item .uni{font-size:12.5px;line-height:1.35;margin-bottom:8px;}
  .matrona-item .quick{font-size:11.5px;}
  .matrona-item .btn{width:100%;justify-content:center;padding:12px 10px;font-size:13.5px;}

  .domicilio-photo{height:220px;}
  .domicilio-card{padding:32px 22px;}
  .domicilio-card h4{font-size:20px;}
  .no-espere-banner{padding:40px 20px;}
  .no-espere-banner h3{font-size:21px;}
  .no-hora{flex-direction:column;text-align:center;}
  .no-hora .btn{width:100%;justify-content:center;}

  .profile-top{flex-direction:column;align-items:flex-start;}
  .profile-photo{width:110px;height:135px;}
  .profile-actions .btn{flex:1;justify-content:center;}
  .reviews-summary{flex-direction:column;align-items:flex-start;gap:16px;}

  .footer-bottom{padding-top:16px;}
}

/* =========================================================================
   FIX HEADER ACTUAL
   layout.js envuelve topbar + header dentro de #site-header para que TODO
   quede fijo al hacer scroll. Este bloque evita duplicados y corrige mobile.
   ========================================================================= */
#site-header{
  position:-webkit-sticky;
  position:sticky;
  top:0;
  z-index:1500;
  width:100%;
  background:#fff;
  box-shadow:0 2px 12px rgba(31,41,51,.08);
  isolation:isolate;
  overflow:visible;
}

.site-header-shell{
  position:relative;
  width:100%;
  background:#fff;
  overflow:visible;
}

.site-header{
  position:relative;
  top:auto;
  z-index:auto;
  width:100%;
  background:#fff;
  box-shadow:none;
  overflow:visible;
}

.ic{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;}
.ic svg{width:100%;height:100%;display:block;}
.icon-btn{display:inline-flex;align-items:center;gap:6px;}
.reserva-btn{border-radius:30px;}
.reserva-label{white-space:nowrap;}

@media(max-width:980px){
  .topbar .container{height:44px;padding:0 20px;}
  .topbar-tabs{width:100%;gap:26px;}
  .topbar-tabs a{font-size:15px;padding:13px 2px 12px;}

  .top-row{
    min-height:64px;
    display:grid;
    grid-template-columns:44px minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    padding:8px 0;
  }

  .hamburger{
    display:flex;
    width:40px;
    height:40px;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:5px;
    justify-self:start;
  }

  .hamburger span{width:22px;height:2.5px;margin:0;}
  .logo{justify-self:center;min-width:0;overflow:visible;}
  .logo img{height:42px;max-height:42px;max-width:190px;object-fit:contain;}
  .top-actions{justify-self:end;display:flex;align-items:center;gap:10px;}
  .contact-text{display:none;}
  .acc-text,.reserva-label{display:none;}

  .account-btn{
    width:42px;
    height:42px;
    border:1.5px solid #cfd4dc;
    border-radius:50%;
    justify-content:center;
    color:#8b93a1;
    background:#fff;
    flex-shrink:0;
  }

  .reserva-btn{
    width:52px;
    height:52px;
    padding:0;
    border-radius:16px;
    justify-content:center;
    flex-shrink:0;
  }
}

@media(max-width:640px){
  .container{padding-left:20px;padding-right:20px;}
  .topbar .container{height:46px;}
  .topbar-tabs{gap:28px;}
  .topbar-tabs a{font-size:15px;padding-top:13px;padding-bottom:11px;}

  .top-row{
    min-height:62px;
    grid-template-columns:42px minmax(120px,1fr) auto;
    gap:8px;
    padding:7px 0;
  }

  .logo img{height:38px;max-height:38px;max-width:160px;}
  .top-actions{gap:8px;}
  .account-btn{width:42px;height:42px;}
  .reserva-btn{width:48px;height:48px;border-radius:14px;}

  .hero{height:360px;}
  .hero-slide::before{background:linear-gradient(90deg,rgba(31,41,51,.84),rgba(31,41,51,.58));}
  .hero-content{max-width:calc(100% - 84px);margin-left:20px;padding:0;}
  .hero-content h1{font-size:26px;line-height:1.12;margin-bottom:10px;}
  .hero-content p{font-size:15px;line-height:1.42;margin-bottom:18px;}
  .hero-content .btn{max-width:100%;min-height:44px;padding:12px 22px;white-space:normal;text-align:center;}
  .hero-arrow.left{display:none;}
  .hero-arrow.right{right:14px;width:36px;height:36px;}
  .promo{font-size:15px;line-height:1.2;padding:10px 20px 12px;}
}

@media(max-width:420px){
  .topbar-tabs{gap:24px;}
  .topbar-tabs a{font-size:15px;}
  .top-row{grid-template-columns:40px minmax(96px,1fr) auto;}
  .logo img{height:36px;max-height:36px;max-width:138px;}
  .account-btn{width:40px;height:40px;}
  .reserva-btn{width:46px;height:46px;}
  .hero-content{max-width:calc(100% - 74px);}
  .hero-content h1{font-size:24px;}
  .hero-content p{font-size:14px;}
}

/* Overrides finales: mantener visibles las Isapres principales frente a reglas genéricas mobile */
@media(max-width:640px){
  .isapres-row-primary .isapres-logos img{height:39px;}
}
@media(max-width:420px){
  .isapres-row-primary .isapres-logos img{height:35px;}
}


/* =========================================================================
   CALCULADORA DE EMBARAZO — CUTE APP WEB
   ========================================================================= */
.preg-cute-section{
  --preg-ink:#44315f;
  --preg-sub:#776987;
  --preg-coral:#f97f7b;
  --preg-coral-2:#ff676d;
  --preg-soft-coral:#fff0ed;
  --preg-lilac:#f3efff;
  --preg-lilac-2:#e9e2ff;
  --preg-purple:#7565dd;
  --preg-green:#91b86f;
  --preg-green-soft:#eff6df;
  --preg-yellow:#ffc85d;
  --preg-blue-soft:#edf6ff;
  --preg-border:#eadfe8;
  --preg-shadow:0 16px 42px rgba(89,70,110,.08);
  background:
    radial-gradient(circle at 8% 20%,rgba(255,219,207,.62),transparent 26%),
    radial-gradient(circle at 92% 30%,rgba(229,219,255,.52),transparent 28%),
    #fffaf7;
  padding:42px 0 60px;
  overflow:hidden;
}
.preg-cute-shell{
  max-width:1180px;
  margin:0 auto;
}
.preg-cute-top{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:18px;
  align-items:stretch;
}
.preg-cute-card{
  position:relative;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(234,223,232,.95);
  border-radius:28px;
  box-shadow:var(--preg-shadow);
}
.preg-input-card{
  padding:30px 30px 28px;
  overflow:visible;
}
.preg-title-row{
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin-bottom:28px;
}
.preg-title-icon{
  width:66px;
  height:66px;
  flex:0 0 66px;
}
.preg-title-icon svg{
  width:100%;
  height:100%;
  display:block;
}
.preg-title-row h1{
  color:var(--preg-ink);
  font-size:30px;
  line-height:1.16;
  letter-spacing:-.025em;
  margin:3px 0 8px;
}
.preg-mini-hearts{
  display:inline-block;
  color:#f7a4a2;
  font-size:14px;
  letter-spacing:3px;
  vertical-align:5px;
}
.preg-title-row p{
  color:var(--preg-sub);
  font-size:14px;
  line-height:1.6;
  max-width:510px;
}
.preg-question{
  color:var(--preg-ink);
  font-size:16px;
  margin-bottom:12px;
}
.preg-mode-tabs{
  display:grid;
  grid-template-columns:1.3fr 1fr;
  gap:10px;
  margin-bottom:22px;
}
.preg-mode-tab{
  min-height:50px;
  padding:11px 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid #e9dcda;
  border-radius:999px;
  background:#fff;
  color:#6b6076;
  font-size:12.6px;
  font-weight:700;
  line-height:1.25;
  text-align:center;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease,color .18s ease;
}
.preg-mode-tab:hover{
  transform:translateY(-1px);
}
.preg-mode-tab.active{
  color:#e45f64;
  background:#fff0ef;
  border-color:#f6aaa7;
  box-shadow:0 6px 14px rgba(249,127,123,.08);
}
.preg-mode-tab-icon{
  width:22px;
  height:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.preg-mode-tab-icon svg{width:100%;height:100%;}
.preg-hidden-select{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.preg-field-block label{
  display:block;
  color:#51445e;
  font-size:12.8px;
  font-weight:800;
  margin-bottom:8px;
}
.preg-date-box{
  position:relative;
}
.preg-date-box input{
  width:100%;
  min-height:54px;
  padding:13px 48px 13px 18px;
  border:1px solid #ded8df;
  border-radius:18px;
  background:#fff;
  color:#443b4b;
  font-size:16px;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.preg-date-box input:focus{
  border-color:#eeaaa7;
  box-shadow:0 0 0 4px rgba(249,127,123,.09);
}
.preg-date-box-icon{
  position:absolute;
  right:16px;
  top:50%;
  width:21px;
  height:21px;
  transform:translateY(-50%);
  color:#41384a;
  pointer-events:none;
}
.preg-date-box-icon svg{width:100%;height:100%;}
.preg-calc-button{
  width:min(100%,300px);
  min-height:50px;
  margin:20px auto 0;
  padding:12px 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--preg-coral),var(--preg-coral-2));
  color:#fff;
  font-size:14px;
  font-weight:800;
  box-shadow:0 10px 20px rgba(249,127,123,.21);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.preg-calc-button:hover{
  transform:translateY(-1px);
  box-shadow:0 13px 25px rgba(249,127,123,.26);
  filter:saturate(1.05);
}
.preg-sparkle{font-size:17px;color:#ffe4a0;}
.preg-form-message{
  display:none;
  margin-top:12px;
  padding:10px 13px;
  border-radius:12px;
  font-size:12px;
  font-weight:700;
}
.preg-form-message.show{display:block;}
.preg-form-message.error{
  background:#fff0ef;
  color:#b75455;
  border:1px solid #f6d1cf;
}
.preg-soft-note{
  max-width:calc(100% - 44px);
  margin:18px 0 0 44px;
  padding:11px 14px;
  display:flex;
  align-items:flex-start;
  gap:9px;
  border-radius:14px;
  background:linear-gradient(90deg,#f8efff,#f4f1ff);
  color:#7c6d94;
  font-size:11.4px;
  line-height:1.45;
}
.preg-note-bulb{
  width:25px;
  height:25px;
  flex:0 0 25px;
  color:#9a81e4;
}
.preg-note-bulb svg{width:100%;height:100%;}
.preg-deco-pot{
  position:absolute;
  left:-20px;
  bottom:6px;
  width:86px;
  height:104px;
  pointer-events:none;
  filter:drop-shadow(0 7px 8px rgba(111,84,72,.08));
}
.preg-deco-pot svg{width:100%;height:100%;}

.preg-progress-card{
  padding:28px 30px 24px;
  background:
    radial-gradient(circle at 75% 35%,rgba(255,233,230,.88),transparent 30%),
    linear-gradient(135deg,#f7f1ff 0%,#eee9ff 100%);
  overflow:hidden;
}
.preg-progress-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.preg-cloud{
  width:62px;
  height:42px;
  flex:0 0 62px;
}
.preg-cloud svg{width:100%;height:100%;}
.preg-progress-heading h2{
  color:#5a3c79;
  font-size:19px;
  margin:0;
}
.preg-week-summary{
  position:relative;
  z-index:2;
  max-width:230px;
}
.preg-week-summary>span:first-child{
  display:block;
  color:#6d5e82;
  font-size:12px;
  margin-bottom:5px;
}
.preg-week-summary strong{
  display:block;
  color:#6547b8;
  font-size:31px;
  line-height:1.05;
  margin-bottom:8px;
}
.preg-week-summary strong small{
  font-size:20px;
  font-weight:800;
}
.preg-stage-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 12px;
  border-radius:999px;
  background:#eef5db;
  color:#6a9655;
  font-size:11px;
  font-weight:800;
}
.preg-plant-stage{
  position:absolute;
  right:38px;
  top:66px;
  width:225px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.preg-plant-halo{
  position:absolute;
  inset:9px;
  border-radius:50%;
  background:rgba(255,255,255,.48);
}
.preg-plant-stage img{
  position:relative;
  z-index:2;
  width:210px;
  height:210px;
  object-fit:contain;
}
.preg-floating-heart,
.preg-star{
  position:absolute;
  z-index:3;
  color:#f78c8e;
}
.heart-one{left:15px;top:104px;font-size:23px;}
.heart-two{left:45px;top:65px;font-size:13px;}
.preg-star{color:#ffc96e;}
.star-one{right:8px;top:22px;font-size:18px;}
.preg-progress-labels{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:105px;
  color:#554767;
  font-size:11.5px;
  font-weight:800;
}
.preg-progress-track{
  position:relative;
  height:13px;
  margin-top:10px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  overflow:visible;
}
.preg-progress-track>span{
  display:block;
  width:0;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#aa8df3,#7b6ae5);
  transition:width .45s ease;
}
.preg-progress-track>span::after{
  content:"";
  position:absolute;
  top:50%;
  left:var(--dummy,0);
}
.preg-progress-end{
  display:flex;
  justify-content:space-between;
  margin-top:6px;
  color:#837595;
  font-size:10px;
}
.preg-week-selector{
  margin-top:21px;
}
.preg-week-selector-title{
  color:#4f4260;
  font-size:12px;
  font-weight:800;
  margin-bottom:10px;
}
.preg-week-chips{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  min-width:0;
}
.preg-week-chip{
  width:39px;
  height:39px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.82);
  color:#75658d;
  font-size:11px;
  font-weight:800;
  flex:0 0 39px;
}
.preg-week-chip.active{
  background:linear-gradient(135deg,#8e79ed,#6d61d8);
  color:#fff;
  box-shadow:0 7px 15px rgba(112,94,215,.2);
}
.preg-week-chip.nav{
  background:rgba(255,255,255,.62);
  font-size:20px;
  font-weight:500;
}

.preg-results-section{
  margin-top:22px;
}
.preg-results-section[hidden]{display:none!important;}
.preg-results-section>h2{
  color:#58426e;
  font-size:18px;
  margin:0 0 11px 12px;
}
.preg-results-grid{
  display:grid;
  grid-template-columns:1.45fr .85fr .9fr;
  gap:14px;
}
.preg-result-card{
  position:relative;
  min-width:0;
  min-height:214px;
  border-radius:24px;
  border:1px solid #eadfe5;
  box-shadow:0 12px 30px rgba(89,70,110,.055);
  overflow:hidden;
}
.preg-result-main{
  display:grid;
  grid-template-columns:42% 58%;
  align-items:center;
  padding:18px;
  background:linear-gradient(135deg,#fff7f2,#fffdfb);
}
.preg-baby-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
}
.preg-baby-illustration svg{
  width:min(100%,175px);
  height:auto;
}
.preg-result-main-list{
  display:flex;
  flex-direction:column;
}
.preg-result-line{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid #efdeda;
}
.preg-result-line:last-child{border-bottom:0;}
.preg-result-line-icon{
  width:31px;
  height:31px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  font-size:14px;
  flex:0 0 31px;
}
.preg-result-line-icon.coral{background:#fff0e8;color:#ef8178;}
.preg-result-line-icon.green{background:#eef5e4;color:#77a65c;}
.preg-result-line-icon.yellow{background:#fff6dc;color:#eeb649;}
.preg-result-line small{
  display:block;
  color:#8c7d8d;
  font-size:10.3px;
  margin-bottom:2px;
}
.preg-result-line strong{
  display:block;
  color:#4a3f50;
  font-size:12.5px;
  line-height:1.35;
}
.preg-baby-week-card{
  padding:20px;
  background:linear-gradient(135deg,#eef7ff,#f8fbff);
}
.preg-card-heading{
  display:flex;
  align-items:center;
  gap:8px;
  color:#564366;
  font-size:12.8px;
  margin-bottom:12px;
}
.preg-card-icon{
  width:25px;
  height:25px;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.preg-card-icon.yellow{background:#fff4cf;color:#eeb94d;}
.preg-card-icon.green{background:#eef5e2;color:#78a55e;}
.preg-fruit-orb{
  width:100px;
  height:100px;
  margin:0 auto 8px;
}
.preg-fruit-orb svg{width:100%;height:100%;}
.preg-baby-week-text{
  text-align:center;
}
.preg-baby-week-text small{
  display:block;
  color:#8b7f91;
  font-size:10px;
  margin-bottom:3px;
}
.preg-baby-week-text strong{
  display:block;
  color:#574466;
  font-size:13px;
  line-height:1.35;
  margin-bottom:4px;
}
.preg-baby-week-text span{
  color:#8b8291;
  font-size:10.4px;
}
.preg-advice-card{
  padding:20px;
  background:linear-gradient(135deg,#f8fbf1,#f4f8e9);
}
.preg-advice-card p{
  max-width:82%;
  color:#665a67;
  font-size:12px;
  line-height:1.62;
}
.preg-cup-flowers{
  position:absolute;
  right:4px;
  bottom:-7px;
  width:126px;
  height:100px;
}
.preg-cup-flowers svg{width:100%;height:100%;}
.preg-cta-strip{
  margin-top:14px;
  padding:13px 17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border:1px dashed #f0d3ce;
  border-radius:22px;
  background:rgba(255,255,255,.72);
}
.preg-cta-copy{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.preg-cta-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:#fff0e7;
  color:#ee837a;
}
.preg-cta-icon svg{width:21px;height:21px;}
.preg-cta-copy strong{
  display:block;
  color:#574366;
  font-size:13.5px;
  margin-bottom:2px;
}
.preg-cta-copy span{
  display:block;
  color:#8b7e8e;
  font-size:11px;
}
.preg-cta-button{
  min-height:46px;
  padding:11px 23px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius:999px;
  background:linear-gradient(135deg,var(--preg-coral),var(--preg-coral-2));
  color:#fff;
  font-size:12.5px;
  font-weight:800;
  box-shadow:0 9px 18px rgba(249,127,123,.18);
  white-space:nowrap;
}
.preg-cta-button span{font-size:18px;}
.preg-educational-note{
  margin:18px auto 0;
  text-align:center;
  color:#95899a;
  font-size:10.8px;
}
.preg-educational-note>span{
  color:#ef9090;
  margin-right:5px;
}

@media(max-width:1050px){
  .preg-plant-stage{
    right:15px;
    width:195px;
    height:195px;
  }
  .preg-plant-stage img{
    width:185px;
    height:185px;
  }
  .preg-progress-labels{margin-top:90px;}
  .preg-results-grid{
    grid-template-columns:1.2fr .8fr;
  }
  .preg-advice-card{
    grid-column:1/-1;
    min-height:150px;
  }
  .preg-advice-card p{max-width:70%;}
}
@media(max-width:820px){
  .preg-cute-section{padding-top:28px;}
  .preg-cute-top{
    grid-template-columns:1fr;
  }
  .preg-input-card,
  .preg-progress-card{
    padding:24px;
  }
  .preg-progress-card{
    min-height:455px;
  }
  .preg-plant-stage{
    right:32px;
    top:70px;
    width:220px;
    height:210px;
  }
  .preg-plant-stage img{
    width:205px;
    height:205px;
  }
  .preg-progress-labels{margin-top:110px;}
  .preg-results-grid{
    grid-template-columns:1fr 1fr;
  }
  .preg-result-main{grid-column:1/-1;}
}
@media(max-width:640px){
  .preg-cute-section{
    padding:18px 0 38px;
  }
  .preg-cute-card,
  .preg-result-card{
    border-radius:22px;
  }
  .preg-input-card,
  .preg-progress-card{
    padding:20px;
  }
  .preg-title-row{
    gap:12px;
    margin-bottom:22px;
  }
  .preg-title-icon{
    width:52px;
    height:52px;
    flex-basis:52px;
  }
  .preg-title-row h1{
    font-size:24px;
  }
  .preg-title-row p{
    font-size:12.5px;
  }
  .preg-mode-tabs{
    grid-template-columns:1fr;
  }
  .preg-mode-tab{
    justify-content:flex-start;
    min-height:48px;
    border-radius:16px;
  }
  .preg-calc-button{
    width:100%;
  }
  .preg-soft-note{
    max-width:100%;
    margin-left:0;
  }
  .preg-deco-pot{
    display:none;
  }
  .preg-progress-card{
    min-height:430px;
  }
  .preg-progress-heading h2{
    font-size:17px;
  }
  .preg-week-summary strong{
    font-size:27px;
  }
  .preg-week-summary strong small{
    font-size:17px;
  }
  .preg-plant-stage{
    width:175px;
    height:175px;
    right:8px;
    top:84px;
  }
  .preg-plant-stage img{
    width:170px;
    height:170px;
  }
  .preg-progress-labels{
    margin-top:98px;
  }
  .preg-week-chips{
    overflow-x:auto;
    justify-content:flex-start;
    scrollbar-width:none;
    padding-bottom:2px;
  }
  .preg-week-chips::-webkit-scrollbar{display:none;}
  .preg-results-grid{
    grid-template-columns:1fr;
  }
  .preg-result-main{
    grid-column:auto;
    grid-template-columns:1fr;
  }
  .preg-baby-illustration svg{
    width:145px;
  }
  .preg-advice-card{
    grid-column:auto;
    min-height:190px;
  }
  .preg-advice-card p{max-width:65%;}
  .preg-cta-strip{
    align-items:flex-start;
    flex-direction:column;
  }
  .preg-cta-button{
    width:100%;
  }
}
@media(max-width:420px){
  .preg-input-card,
  .preg-progress-card{
    padding:17px;
  }
  .preg-title-row h1{
    font-size:21px;
  }
  .preg-progress-card{
    min-height:410px;
  }
  .preg-plant-stage{
    width:150px;
    height:150px;
    right:-4px;
    top:94px;
  }
  .preg-plant-stage img{
    width:145px;
    height:145px;
  }
  .preg-week-summary{
    max-width:185px;
  }
  .preg-progress-labels{
    margin-top:89px;
  }
  .preg-advice-card p{max-width:58%;}
}


/* =========================================================================
   V2 — Refinamiento de ilustraciones, geometría y responsive tipo app
   ========================================================================= */
.preg-cute-section{
  padding-top:34px;
  padding-bottom:54px;
}
.preg-cute-top{
  align-items:stretch;
  gap:20px;
}
.preg-input-card,
.preg-progress-card{
  border-radius:30px;
}
.preg-input-card{
  padding:28px 28px 26px;
}
.preg-title-row{
  margin-bottom:24px;
}
.preg-title-row h1{
  font-size:31px;
}
.preg-title-row p{
  max-width:500px;
}
.preg-question{
  margin-bottom:14px;
}
.preg-mode-tabs{
  gap:12px;
  margin-bottom:18px;
}
.preg-mode-tab{
  min-height:56px;
  padding:12px 16px;
  font-size:13px;
}
.preg-field-block label{
  font-size:13.5px;
}
.preg-date-box input{
  min-height:56px;
  border-radius:18px;
}
.preg-calc-button{
  min-height:54px;
  margin-top:22px;
}
.preg-soft-note{
  margin-top:18px;
  max-width:calc(100% - 36px);
}
.preg-progress-card{
  padding:26px 28px 24px;
}
.preg-progress-heading{
  margin-bottom:18px;
}
.preg-progress-heading h2{
  font-size:20px;
}
.preg-week-summary strong{
  font-size:34px;
}
.preg-plant-stage{
  right:30px;
  top:60px;
  width:220px;
  height:220px;
}
.preg-plant-halo{
  inset:12px;
  background:rgba(255,255,255,.45);
}
.preg-plant-stage img{
  width:205px;
  height:205px;
  filter:drop-shadow(0 10px 16px rgba(131,96,134,.08));
}
.preg-progress-labels{
  margin-top:100px;
}
.preg-progress-track{
  height:12px;
}
.preg-progress-track > span{
  position:relative;
}
.preg-progress-track > span::after{
  content:"";
  position:absolute;
  right:-8px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  background:#fff;
  border-radius:50%;
  box-shadow:0 4px 10px rgba(109,97,216,.22);
  border:4px solid #a391f3;
}
.preg-week-chips{
  gap:10px;
}
.preg-week-chip{
  width:38px;
  height:38px;
  flex-basis:38px;
  font-size:11px;
}
.preg-week-chip.nav{
  background:rgba(255,255,255,.55);
  color:#75658d;
}

.preg-results-section{
  margin-top:18px;
}
.preg-results-section > h2{
  margin-left:8px;
  margin-bottom:10px;
  font-size:18px;
}
.preg-results-grid{
  grid-template-columns:1.3fr .76fr .82fr;
  gap:14px;
}
.preg-result-card{
  min-height:194px;
  border-radius:24px;
}
.preg-result-main{
  grid-template-columns:36% 64%;
  padding:16px 18px;
  min-height:194px;
}
.preg-baby-illustration{
  justify-content:flex-start;
  padding-left:6px;
}
.preg-baby-illustration svg{
  width:min(100%,158px);
}
.preg-result-main-list{
  gap:0;
  padding-left:2px;
}
.preg-result-line{
  gap:12px;
  padding:11px 0;
}
.preg-result-line:last-child{
  padding-bottom:0;
}
.preg-result-line-icon{
  width:34px;
  height:34px;
  flex-basis:34px;
  border-radius:12px;
}
.preg-result-line-icon svg{
  width:17px;
  height:17px;
  display:block;
}
.preg-result-line small{
  font-size:10.8px;
}
.preg-result-line strong{
  font-size:13px;
  line-height:1.4;
}
.preg-result-main .preg-result-line{
  border-bottom-color:#edd9d3;
}
.preg-baby-week-card,
.preg-advice-card{
  min-height:194px;
  padding:18px;
}
.preg-baby-week-card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.preg-fruit-orb{
  width:92px;
  height:92px;
  margin:8px auto 6px;
}
.preg-baby-week-text strong{
  font-size:13.2px;
  margin-bottom:5px;
}
.preg-baby-week-text span{
  display:block;
  max-width:180px;
  margin:0 auto;
  line-height:1.45;
}
.preg-advice-card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
.preg-advice-card p{
  max-width:76%;
  font-size:12.2px;
  line-height:1.65;
}
.preg-cup-flowers{
  right:8px;
  bottom:-3px;
  width:118px;
  height:95px;
}
.preg-cta-strip{
  margin-top:14px;
  border-radius:24px;
  padding:14px 16px;
}
.preg-cta-copy strong{
  font-size:13.8px;
}
.preg-cta-button{
  min-height:48px;
  padding:12px 24px;
}
.preg-educational-note{
  margin-top:16px;
}

/* tablet */
@media (max-width: 980px){
  .preg-cute-top{
    grid-template-columns:1fr;
  }
  .preg-progress-card{
    min-height:420px;
  }
  .preg-plant-stage{
    right:28px;
    top:54px;
  }
  .preg-progress-labels{
    margin-top:92px;
  }
  .preg-results-grid{
    grid-template-columns:1fr 1fr;
  }
  .preg-result-main{
    grid-column:1 / -1;
    grid-template-columns:34% 66%;
  }
  .preg-advice-card{
    grid-column:1 / -1;
    min-height:170px;
  }
  .preg-advice-card p{
    max-width:70%;
  }
}

/* mobile app feel */
@media (max-width: 640px){
  .preg-cute-section{
    padding:16px 0 34px;
    background:
      radial-gradient(circle at 12% 10%,rgba(255,219,207,.55),transparent 30%),
      radial-gradient(circle at 88% 15%,rgba(229,219,255,.44),transparent 28%),
      #fffaf7;
  }
  .preg-cute-shell{
    max-width:100%;
  }
  .preg-cute-top,
  .preg-results-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .preg-input-card,
  .preg-progress-card,
  .preg-result-card{
    border-radius:26px;
    box-shadow:0 12px 28px rgba(89,70,110,.07);
  }
  .preg-input-card,
  .preg-progress-card{
    padding:20px 18px;
  }
  .preg-title-row{
    align-items:flex-start;
    margin-bottom:20px;
  }
  .preg-title-row h1{
    font-size:25px;
  }
  .preg-title-row p{
    font-size:13px;
    line-height:1.55;
  }
  .preg-title-icon{
    width:56px;
    height:56px;
    flex-basis:56px;
  }
  .preg-mode-tabs{
    grid-template-columns:1fr;
    gap:10px;
  }
  .preg-mode-tab{
    justify-content:flex-start;
    text-align:left;
    border-radius:18px;
    min-height:54px;
  }
  .preg-date-box input{
    font-size:15px;
  }
  .preg-calc-button{
    width:100%;
    margin-top:18px;
  }
  .preg-soft-note{
    max-width:100%;
    margin-left:0;
    border-radius:16px;
  }
  .preg-deco-pot{
    display:none;
  }

  .preg-progress-card{
    min-height:auto;
  }
  .preg-progress-heading{
    margin-bottom:14px;
  }
  .preg-progress-heading h2{
    font-size:18px;
  }
  .preg-week-summary{
    max-width:100%;
  }
  .preg-week-summary strong{
    font-size:30px;
  }
  .preg-plant-stage{
    position:relative;
    width:100%;
    height:auto;
    right:auto;
    top:auto;
    margin:8px 0 8px;
  }
  .preg-plant-halo{
    width:174px;
    height:174px;
    inset:auto;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    border-radius:50%;
  }
  .preg-plant-stage img{
    width:170px;
    height:170px;
    margin:0 auto;
  }
  .heart-one{
    left:calc(50% - 78px);
    top:78px;
  }
  .heart-two{
    left:calc(50% - 58px);
    top:44px;
  }
  .star-one{
    right:calc(50% - 84px);
    top:16px;
  }
  .preg-progress-labels{
    margin-top:8px;
  }
  .preg-progress-track{
    height:12px;
  }
  .preg-week-selector{
    margin-top:18px;
  }
  .preg-week-selector-title{
    margin-bottom:8px;
  }
  .preg-week-chips{
    overflow-x:auto;
    padding-bottom:4px;
    justify-content:flex-start;
    scroll-snap-type:x proximity;
  }
  .preg-week-chip{
    scroll-snap-align:start;
  }

  .preg-results-section{
    margin-top:16px;
  }
  .preg-results-section > h2{
    margin-left:4px;
    font-size:17px;
  }
  .preg-result-card{
    min-height:auto;
  }
  .preg-result-main{
    grid-template-columns:1fr;
    gap:8px;
    padding:18px;
  }
  .preg-baby-illustration{
    justify-content:center;
    padding-left:0;
  }
  .preg-baby-illustration svg{
    width:142px;
  }
  .preg-result-main-list{
    padding-left:0;
  }
  .preg-result-line{
    padding:10px 0;
  }
  .preg-baby-week-card,
  .preg-advice-card{
    min-height:auto;
    padding:18px;
  }
  .preg-baby-week-card{
    text-align:center;
  }
  .preg-card-heading{
    margin-bottom:10px;
  }
  .preg-advice-card p{
    max-width:66%;
  }
  .preg-cup-flowers{
    width:108px;
    height:86px;
    right:8px;
    bottom:0;
  }

  .preg-cta-strip{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding:16px;
  }
  .preg-cta-copy{
    align-items:flex-start;
  }
  .preg-cta-button{
    width:100%;
    min-height:50px;
  }
}

@media (max-width: 420px){
  .preg-input-card,
  .preg-progress-card,
  .preg-result-main,
  .preg-baby-week-card,
  .preg-advice-card{
    padding:16px;
  }
  .preg-title-row h1{
    font-size:22px;
  }
  .preg-week-summary strong{
    font-size:27px;
  }
  .preg-week-summary strong small{
    font-size:17px;
  }
  .preg-plant-halo{
    width:158px;
    height:158px;
  }
  .preg-plant-stage img{
    width:154px;
    height:154px;
  }
  .heart-one{
    left:calc(50% - 72px);
    top:72px;
    font-size:20px;
  }
  .heart-two{
    left:calc(50% - 50px);
    top:44px;
    font-size:12px;
  }
  .star-one{
    right:calc(50% - 74px);
    top:18px;
    font-size:16px;
  }
  .preg-advice-card p{
    max-width:60%;
    font-size:11.7px;
  }
  .preg-cup-flowers{
    width:98px;
    height:78px;
  }
}


/* =========================================================================
   V3 — Ajustes finos de ilustraciones (planta y bebé)
   ========================================================================= */
.preg-baby-illustration{
  align-items:center;
}
.preg-baby-illustration svg{
  width:min(100%,150px);
}
.preg-result-main{
  grid-template-columns:34% 66%;
}
.preg-plant-stage{
  width:214px;
  height:214px;
}
.preg-plant-stage img{
  width:196px;
  height:196px;
}
.preg-plant-halo{
  inset:16px;
  background:rgba(255,255,255,.36);
}
.heart-one{
  left:28px;
  top:104px;
}
.heart-two{
  left:58px;
  top:78px;
}
.star-one{
  right:28px;
  top:28px;
}

@media (max-width: 980px){
  .preg-result-main{
    grid-template-columns:32% 68%;
  }
}
@media (max-width: 640px){
  .preg-result-main{
    grid-template-columns:1fr;
  }
  .preg-baby-illustration svg{
    width:136px;
  }
  .preg-plant-stage{
    width:100%;
    height:auto;
  }
  .preg-plant-stage img{
    width:164px;
    height:164px;
  }
  .heart-one{
    left:calc(50% - 70px);
    top:80px;
  }
  .heart-two{
    left:calc(50% - 48px);
    top:52px;
  }
  .star-one{
    right:calc(50% - 76px);
    top:22px;
  }
}


/* =========================================================================
   V4 — GEOMETRÍA CORREGIDA DE ILUSTRACIONES + PROGRESO
   ========================================================================= */

/* La ilustración SVG ya contiene su propio halo. */
.preg-plant-halo{
  display:none !important;
}

.preg-plant-stage{
  width:214px;
  height:214px;
}
.preg-plant-stage img{
  width:202px;
  height:202px;
  object-fit:contain;
  filter:drop-shadow(0 10px 15px rgba(111,84,96,.07));
}

/* El fill es el sistema de coordenadas del indicador. */
.preg-progress-track > span{
  position:relative;
}

/* Corregimos la sobredefinición left/right de versiones anteriores. */
.preg-progress-track > span::after{
  content:"";
  position:absolute;
  left:100% !important;
  right:auto !important;
  top:50%;
  width:18px;
  height:18px;
  box-sizing:border-box;
  transform:translate(-50%,-50%) !important;
  border-radius:50%;
  background:#fff;
  border:3px solid #A391F3;
  box-shadow:0 3px 9px rgba(109,97,216,.22);
}

/* Bebé: más figura y menos círculo vacío. */
.preg-baby-illustration{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-left:0;
}
.preg-baby-illustration svg{
  width:min(100%,158px);
  height:auto;
  display:block;
}
.preg-result-main{
  grid-template-columns:35% 65%;
}

/* Decorativos externos de la planta: secundarios. */
.heart-one{
  left:24px;
  top:108px;
  font-size:20px;
}
.heart-two{
  left:54px;
  top:78px;
  font-size:12px;
}
.star-one{
  right:23px;
  top:31px;
  font-size:16px;
}

/* Tablet */
@media(max-width:980px){
  .preg-result-main{
    grid-template-columns:33% 67%;
  }
}

/* Móvil: comportamiento tipo app. */
@media(max-width:640px){
  .preg-result-main{
    grid-template-columns:1fr;
  }
  .preg-baby-illustration svg{
    width:148px;
  }

  .preg-plant-stage{
    width:100%;
    height:auto;
    margin:6px 0 8px;
  }
  .preg-plant-stage img{
    width:174px;
    height:174px;
    margin:0 auto;
  }

  .heart-one{
    left:calc(50% - 78px);
    top:83px;
  }
  .heart-two{
    left:calc(50% - 53px);
    top:54px;
  }
  .star-one{
    right:calc(50% - 80px);
    top:22px;
  }

  .preg-progress-track > span::after{
    width:17px;
    height:17px;
    border-width:3px;
  }
}

@media(max-width:420px){
  .preg-baby-illustration svg{
    width:138px;
  }
  .preg-plant-stage img{
    width:158px;
    height:158px;
  }
}


/* =========================================================================
   V5 — REDIBUJO DE ILUSTRACIONES PRINCIPALES
   ========================================================================= */

.preg-plant-stage{
  width:216px;
  height:216px;
}
.preg-plant-stage img{
  width:206px;
  height:206px;
  object-fit:contain;
  filter:drop-shadow(0 10px 15px rgba(111,84,96,.06));
}

/* El SVG ya trae su halo. */
.preg-plant-halo{
  display:none!important;
}

/* Resultado principal: mayor protagonismo del bebé, menos espacio muerto */
.preg-result-main{
  grid-template-columns:36% 64%;
}
.preg-baby-illustration{
  justify-content:center;
  padding-left:0;
}
.preg-baby-illustration svg{
  width:min(100%,164px);
  height:auto;
}

/* Progreso: knob exactamente en el extremo del fill */
.preg-progress-track > span{
  position:relative;
}
.preg-progress-track > span::after{
  content:"";
  position:absolute;
  left:100%!important;
  right:auto!important;
  top:50%;
  width:18px;
  height:18px;
  box-sizing:border-box;
  transform:translate(-50%,-50%)!important;
  border-radius:50%;
  background:#fff;
  border:3px solid #A391F3;
  box-shadow:0 3px 9px rgba(109,97,216,.2);
}

/* Reduce el peso de adornos flotantes alrededor de la planta */
.heart-one{
  left:28px;
  top:112px;
  font-size:18px;
}
.heart-two{
  left:58px;
  top:80px;
  font-size:11px;
}
.star-one{
  right:28px;
  top:30px;
  font-size:15px;
}

/* Tablet */
@media(max-width:980px){
  .preg-result-main{
    grid-template-columns:34% 66%;
  }
  .preg-baby-illustration svg{
    width:158px;
  }
}

/* Móvil tipo app */
@media(max-width:640px){
  .preg-result-main{
    grid-template-columns:1fr;
  }
  .preg-baby-illustration svg{
    width:150px;
  }

  .preg-plant-stage{
    width:100%;
    height:auto;
    margin:8px 0 10px;
  }
  .preg-plant-stage img{
    width:176px;
    height:176px;
    margin:0 auto;
  }

  .heart-one{
    left:calc(50% - 78px);
    top:86px;
  }
  .heart-two{
    left:calc(50% - 54px);
    top:56px;
  }
  .star-one{
    right:calc(50% - 80px);
    top:22px;
  }
}

@media(max-width:420px){
  .preg-baby-illustration svg{
    width:140px;
  }
  .preg-plant-stage img{
    width:160px;
    height:160px;
  }
}


/* =========================================================================
   V6 — RESULTADO SIN ILUSTRACIÓN FETAL
   Más limpio, clínico y estable visualmente.
   ========================================================================= */

.preg-result-main{
  display:block !important;
  min-height:0 !important;
  padding:20px 22px !important;
}

.preg-result-main-list{
  width:100%;
  max-width:none;
  padding:0 !important;
}

.preg-result-line{
  min-height:58px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:12px;
  padding:10px 0;
}

.preg-result-line:first-child{
  padding-top:0;
}

.preg-result-line:last-child{
  padding-bottom:0;
}

.preg-result-line-icon{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:12px;
}

.preg-result-line-icon svg{
  width:18px;
  height:18px;
}

.preg-result-line small{
  font-size:11px;
  line-height:1.25;
  margin-bottom:3px;
}

.preg-result-line strong{
  font-size:13.5px;
  line-height:1.35;
}

/* Evita que reglas antiguas de la ilustración afecten el layout */
.preg-baby-illustration{
  display:none !important;
}

@media(max-width:980px){
  .preg-result-main{
    display:block !important;
  }
}

@media(max-width:640px){
  .preg-result-main{
    padding:18px !important;
  }

  .preg-result-line{
    min-height:56px;
    grid-template-columns:34px minmax(0,1fr);
    gap:11px;
  }

  .preg-result-line-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
  }

  .preg-result-line strong{
    font-size:13px;
  }
}


/* =========================================================================
   V7 — RESPONSIVE FINAL / MOBILE APP
   - Corrige overflow del input date en iPhone/Safari.
   - Evita cualquier desborde horizontal.
   - Tablet, móviles grandes, iPhone estándar y pantallas pequeñas.
   - No cambia la identidad visual aprobada.
   ========================================================================= */

/* ---------- Base robusta ---------- */
html,
body{
  max-width:100%;
}

/*
 * Corta únicamente el desborde horizontal sin transformar html/body en
 * contenedores de scroll. Esto es importante para position:sticky.
 */
html,
body{
  overflow-x:clip;
}

@supports not (overflow:clip){
  .preg-cute-section{
    overflow-x:hidden;
  }
}

.preg-cute-section{
  width:100%;
  max-width:100%;
  overflow-x:clip;
}

@supports not (overflow:clip){
  .preg-cute-section{overflow-x:hidden;}
}

.preg-cute-section .container{
  width:100%;
  max-width:1228px;
}

.preg-cute-section *,
.preg-cute-section *::before,
.preg-cute-section *::after{
  box-sizing:border-box;
}

.preg-cute-shell,
.preg-cute-top,
.preg-cute-card,
.preg-input-card,
.preg-progress-card,
.preg-results-section,
.preg-results-grid,
.preg-result-card,
.preg-result-main,
.preg-result-main-list,
.preg-baby-week-card,
.preg-advice-card,
.preg-cta-strip,
.preg-mode-tabs,
.preg-mode-tab,
.preg-field-block,
.preg-date-box,
.preg-soft-note{
  min-width:0;
  max-width:100%;
}

.preg-cute-card{
  width:100%;
}

/* Los SVG e imágenes nunca pueden forzar el ancho del viewport. */
.preg-cute-section img,
.preg-cute-section svg{
  max-width:100%;
}

/* ---------- Input date: corrección específica Safari/iPhone ---------- */
.preg-date-box{
  width:100%;
  overflow:hidden;
  border-radius:18px;
}

.preg-date-box input[type="date"]{
  display:block;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  inline-size:100% !important;
  min-inline-size:0 !important;
  height:56px;
  min-height:56px;
  margin:0;
  padding:13px 48px 13px 18px;
  border-radius:18px;
  font-size:16px; /* evita zoom automático en iOS */
  line-height:1.2;
  -webkit-appearance:none;
  appearance:none;
  background:#fff;
}

/* Conservamos el selector nativo, pero invisible sobre el extremo derecho.
   El usuario sigue pudiendo abrir el calendario normalmente. */
.preg-date-box input[type="date"]::-webkit-calendar-picker-indicator{
  position:absolute;
  right:0;
  top:0;
  width:52px;
  height:100%;
  margin:0;
  padding:0;
  opacity:0;
  cursor:pointer;
}

.preg-date-box input[type="date"]::-webkit-date-and-time-value{
  text-align:left;
  min-height:1.2em;
}

.preg-date-box-icon{
  display:flex;
  right:17px;
  z-index:2;
}

/* Tabs: el texto largo nunca debe ensanchar la tarjeta. */
.preg-mode-tab{
  overflow:hidden;
}

.preg-mode-tab > span:last-child{
  min-width:0;
  max-width:100%;
  overflow-wrap:break-word;
}

/* Textos largos de resultados/consejos. */
.preg-result-line > div,
.preg-cta-copy > div{
  min-width:0;
}

.preg-result-line strong,
.preg-result-line small,
.preg-advice-card p,
.preg-baby-week-text strong,
.preg-baby-week-text span,
.preg-cta-copy strong,
.preg-cta-copy span{
  overflow-wrap:anywhere;
}

/* ---------- Desktop / notebook pequeño ---------- */
@media (max-width:1100px){
  .preg-cute-section .container{
    padding-left:22px;
    padding-right:22px;
  }

  .preg-cute-top{
    gap:16px;
  }

  .preg-input-card,
  .preg-progress-card{
    padding-left:24px;
    padding-right:24px;
  }
}

/* ---------- Tablet ---------- */
@media (max-width:900px){
  .preg-cute-section{
    padding-top:28px;
  }

  .preg-cute-top{
    grid-template-columns:1fr !important;
  }

  .preg-progress-card{
    min-height:0 !important;
  }

  .preg-progress-labels{
    margin-top:8px !important;
  }

  .preg-plant-stage{
    position:relative !important;
    inset:auto !important;
    width:100% !important;
    height:205px !important;
    margin:4px auto 2px !important;
  }

  .preg-plant-stage img{
    width:195px !important;
    height:195px !important;
    margin:0 auto !important;
  }

  .heart-one{
    left:calc(50% - 88px) !important;
    top:102px !important;
  }

  .heart-two{
    left:calc(50% - 63px) !important;
    top:70px !important;
  }

  .star-one{
    right:calc(50% - 88px) !important;
    top:24px !important;
  }

  .preg-results-grid{
    grid-template-columns:1fr 1fr !important;
  }

  .preg-result-main{
    grid-column:1/-1;
  }

  .preg-advice-card{
    grid-column:auto !important;
  }
}

/* ---------- Móvil / experiencia tipo app ---------- */
@media (max-width:640px){
  .preg-cute-section{
    padding:
      14px
      0
      calc(34px + env(safe-area-inset-bottom,0px));
  }

  .preg-cute-section .container{
    padding-left:max(14px, env(safe-area-inset-left,0px)) !important;
    padding-right:max(14px, env(safe-area-inset-right,0px)) !important;
  }

  .preg-cute-shell{
    width:100%;
  }

  .preg-cute-top,
  .preg-results-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
  }

  .preg-cute-card,
  .preg-result-card{
    width:100%;
    border-radius:25px !important;
  }

  /* La tarjeta no permite que controles nativos sobresalgan. */
  .preg-input-card{
    overflow:hidden !important;
    padding:20px 18px !important;
  }

  .preg-progress-card{
    overflow:hidden;
    padding:20px 18px !important;
  }

  /* Header */
  .preg-title-row{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:12px;
    margin-bottom:22px !important;
  }

  .preg-title-icon{
    width:52px !important;
    height:52px !important;
    flex-basis:auto !important;
  }

  .preg-title-row h1{
    margin-top:2px;
    font-size:clamp(22px,7vw,27px) !important;
    line-height:1.1 !important;
    letter-spacing:-.035em;
  }

  .preg-title-row p{
    grid-column:2;
    font-size:13px !important;
    line-height:1.55 !important;
  }

  .preg-mini-hearts{
    font-size:11px;
    vertical-align:3px;
  }

  .preg-question{
    font-size:17px !important;
    line-height:1.25;
    margin-bottom:14px !important;
  }

  /* Tabs con comportamiento de controles de app */
  .preg-mode-tabs{
    display:grid;
    grid-template-columns:minmax(0,1fr) !important;
    gap:10px !important;
    width:100%;
    margin-bottom:22px !important;
  }

  .preg-mode-tab{
    width:100%;
    min-width:0;
    min-height:58px !important;
    padding:11px 16px !important;
    justify-content:flex-start !important;
    border-radius:18px !important;
    font-size:14px !important;
    text-align:left !important;
  }

  .preg-mode-tab-icon{
    width:25px;
    height:25px;
    flex:0 0 25px;
  }

  .preg-mode-tab > span:last-child{
    flex:1 1 auto;
  }

  /* Campo de fecha */
  .preg-field-block{
    width:100%;
  }

  .preg-field-block label{
    font-size:14px !important;
    line-height:1.35;
  }

  .preg-date-box{
    width:100%;
    min-width:0;
  }

  .preg-date-box input[type="date"]{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    height:58px;
    min-height:58px;
    padding-left:16px;
    padding-right:50px;
    border-radius:18px;
  }

  /* CTA */
  .preg-calc-button{
    width:100% !important;
    max-width:none !important;
    min-height:56px !important;
    margin-top:20px !important;
    padding-left:16px;
    padding-right:16px;
    font-size:15px !important;
  }

  .preg-soft-note{
    width:100%;
    max-width:none !important;
    margin:18px 0 0 !important;
    padding:13px 14px !important;
    gap:10px;
    border-radius:17px !important;
    font-size:12px !important;
  }

  .preg-note-bulb{
    width:26px;
    height:26px;
    flex-basis:26px;
  }

  /* Progreso */
  .preg-progress-heading{
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    align-items:center;
    gap:10px;
    margin-bottom:13px !important;
  }

  .preg-cloud{
    width:54px;
    height:auto;
  }

  .preg-progress-heading h2{
    min-width:0;
    margin:0;
    font-size:20px !important;
    line-height:1.12;
    overflow-wrap:anywhere;
  }

  .preg-week-summary{
    width:100%;
    max-width:none !important;
  }

  .preg-week-summary > span:first-child{
    font-size:12px;
  }

  .preg-week-summary strong{
    font-size:30px !important;
  }

  .preg-week-summary strong small{
    font-size:18px !important;
  }

  .preg-plant-stage{
    width:100% !important;
    height:176px !important;
    margin:5px 0 2px !important;
  }

  .preg-plant-stage img{
    width:168px !important;
    height:168px !important;
  }

  .heart-one{
    left:calc(50% - 76px) !important;
    top:83px !important;
  }

  .heart-two{
    left:calc(50% - 53px) !important;
    top:53px !important;
  }

  .star-one{
    right:calc(50% - 78px) !important;
    top:20px !important;
  }

  .preg-progress-labels{
    margin-top:4px !important;
    align-items:flex-end;
    gap:8px;
  }

  .preg-progress-labels span,
  .preg-progress-labels strong{
    font-size:11px;
  }

  .preg-progress-track{
    width:100%;
    max-width:100%;
  }

  .preg-progress-end{
    font-size:9.5px;
  }

  /* Semanas: scroll horizontal real, sin ampliar el viewport */
  .preg-week-selector{
    width:100%;
    min-width:0;
    overflow:hidden;
  }

  .preg-week-chips{
    width:100%;
    max-width:100%;
    display:flex;
    justify-content:flex-start !important;
    gap:9px !important;
    overflow-x:auto !important;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding:2px 1px 6px;
  }

  .preg-week-chips::-webkit-scrollbar{
    display:none;
  }

  .preg-week-chip{
    flex:0 0 39px !important;
    width:39px !important;
    height:39px !important;
    scroll-snap-align:start;
  }

  /* Resultados */
  .preg-results-section{
    width:100%;
    margin-top:15px !important;
  }

  .preg-results-section > h2{
    margin:0 0 10px 4px !important;
    font-size:18px !important;
  }

  .preg-result-main{
    width:100%;
    padding:17px !important;
  }

  .preg-result-line{
    width:100%;
    grid-template-columns:34px minmax(0,1fr) !important;
  }

  .preg-baby-week-card,
  .preg-advice-card{
    width:100%;
    min-height:0 !important;
    padding:18px !important;
  }

  .preg-advice-card p{
    max-width:68% !important;
  }

  .preg-cup-flowers{
    max-width:105px;
  }

  /* CTA inferior */
  .preg-cta-strip{
    width:100%;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
    gap:14px !important;
    align-items:stretch !important;
    padding:16px !important;
    border-radius:22px !important;
  }

  .preg-cta-copy{
    width:100%;
  }

  .preg-cta-button{
    width:100% !important;
    max-width:100%;
    min-height:52px !important;
    white-space:normal !important;
    text-align:center;
  }

  .preg-educational-note{
    padding:0 10px;
    line-height:1.45;
  }
}

/* ---------- iPhone pequeño / 320–390 px ---------- */
@media (max-width:390px){
  .preg-cute-section .container{
    padding-left:max(10px, env(safe-area-inset-left,0px)) !important;
    padding-right:max(10px, env(safe-area-inset-right,0px)) !important;
  }

  .preg-input-card,
  .preg-progress-card{
    padding:17px 15px !important;
    border-radius:23px !important;
  }

  .preg-title-row{
    grid-template-columns:46px minmax(0,1fr);
    gap:10px;
  }

  .preg-title-icon{
    width:46px !important;
    height:46px !important;
  }

  .preg-title-row h1{
    font-size:21px !important;
  }

  .preg-title-row p{
    font-size:12.5px !important;
  }

  .preg-question{
    font-size:16px !important;
  }

  .preg-mode-tab{
    padding:10px 13px !important;
    font-size:13px !important;
  }

  .preg-date-box input[type="date"]{
    height:56px;
    min-height:56px;
    font-size:16px;
  }

  .preg-calc-button{
    min-height:54px !important;
    font-size:14px !important;
  }

  .preg-progress-heading{
    grid-template-columns:48px minmax(0,1fr);
  }

  .preg-cloud{
    width:48px;
  }

  .preg-progress-heading h2{
    font-size:18px !important;
  }

  .preg-week-summary strong{
    font-size:27px !important;
  }

  .preg-plant-stage{
    height:160px !important;
  }

  .preg-plant-stage img{
    width:154px !important;
    height:154px !important;
  }

  .preg-advice-card p{
    max-width:62% !important;
    font-size:11.8px !important;
  }

  .preg-cup-flowers{
    width:92px !important;
    height:auto !important;
  }

  .preg-result-line strong{
    font-size:12.8px !important;
  }
}

/* ---------- Móviles ultracompactos ---------- */
@media (max-width:340px){
  .preg-title-row{
    grid-template-columns:42px minmax(0,1fr);
  }

  .preg-title-icon{
    width:42px !important;
    height:42px !important;
  }

  .preg-title-row h1{
    font-size:19.5px !important;
  }

  .preg-mode-tab{
    font-size:12.4px !important;
  }

  .preg-progress-heading h2{
    font-size:17px !important;
  }

  .preg-advice-card p{
    max-width:100% !important;
    padding-bottom:78px;
  }

  .preg-cup-flowers{
    right:8px !important;
    bottom:0 !important;
  }
}

/* ---------- Landscape móvil ---------- */
@media (max-height:520px) and (orientation:landscape) and (max-width:950px){
  .preg-cute-section{
    padding-top:12px;
  }

  .preg-cute-top{
    gap:12px;
  }

  .preg-plant-stage{
    height:145px !important;
  }

  .preg-plant-stage img{
    width:138px !important;
    height:138px !important;
  }
}

/* Respeta accesibilidad del sistema. */
@media (prefers-reduced-motion:reduce){
  .preg-cute-section *,
  .preg-cute-section *::before,
  .preg-cute-section *::after{
    scroll-behavior:auto !important;
    transition-duration:.01ms !important;
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
  }
}


/* =========================================================================
   HEADER MOBILE V2 — estabilidad iPhone / Safari
   ========================================================================= */
@media(max-width:980px){
  /*
   * Nunca se bloquea el body al abrir el menú. El scroll actual se conserva
   * y #site-header continúa pegado al viewport.
   */
  body.menu-open{
    overflow:visible !important;
    position:static !important;
    height:auto !important;
  }

  #site-header{
    top:0;
    overflow:visible;
    transform:none;
    will-change:auto;
  }

  .site-header-shell,
  .site-header{
    overflow:visible;
    transform:none;
  }

  /*
   * El dropdown queda debajo de la fila principal del header.
   * La topbar sigue formando parte del bloque sticky.
   */
  .navbar{
    width:100%;
  }

  .navbar.open{
    overscroll-behavior:contain;
  }
}


/* =========================================================================
   PROFESIONAL NUEVA / SIN RESEÑAS
   ========================================================================= */
.mg-new-professional{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin-bottom:4px;
  padding:5px 10px;
  border-radius:999px;
  background:#eef3ff;
  color:#5f7fd3;
  font-size:12px;
  font-weight:800;
}

.profile-new-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:3px 0 12px;
  padding:7px 12px;
  border-radius:999px;
  background:#eef3ff;
  color:#5f7fd3;
  font-size:12.5px;
  font-weight:800;
  line-height:1.3;
}

.reviews-empty-state{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:18px;
  padding:18px 20px;
  border:1px solid var(--borde);
  border-radius:12px;
  background:#f8faff;
}

.reviews-empty-state strong{
  color:var(--azul-oscuro);
  font-size:14px;
}

.reviews-empty-state span{
  color:var(--gris-texto);
  font-size:13px;
  line-height:1.5;
}

@media(max-width:640px){
  .profile-new-badge{
    margin-bottom:15px;
    white-space:normal;
  }

  .reviews-empty-state{
    padding:16px;
  }
}
