/* =========================================================
   Encuestas HonduSalud · página publicitaria
   ========================================================= */
:root {
  --hs: #1a9cb6;
  --hs-2: #13819a;
  --hs-ink: #0f2a33;
  --hs-muted: #5b7680;
  --hs-soft: #e6f6f9;
  --hs-line: #e3eef1;
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body.landing { font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--hs-ink); background: #fff; -webkit-font-smoothing: antialiased; }
.landing h1, .landing h2, .landing h3 { font-weight: 600; letter-spacing: -.02em; }
.landing .text-muted { color: var(--hs-muted) !important; }
.landing section { padding: 5rem 0; }
.sec-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.sec-head .eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-2); margin-bottom: .6rem; }
.sec-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: .8rem; }
.sec-head p { color: var(--hs-muted); font-size: 1.08rem; }

/* Botones */
.btn-hs { background: linear-gradient(135deg, var(--hs), var(--hs-2)); color: #fff; border: 0; border-radius: 14px; font-weight: 600; padding: .8rem 1.4rem; box-shadow: 0 10px 24px rgba(26,156,182,.28); }
.btn-hs:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(26,156,182,.36); }
.btn-hs-out { border: 1.5px solid #cfe0e5; color: var(--hs-ink); background: #fff; border-radius: 14px; font-weight: 600; padding: .8rem 1.4rem; }
.btn-hs-out:hover { border-color: var(--hs); background: var(--hs-soft); color: var(--hs-ink); }

/* Navegación */
.nav-hs { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hs-line); }
.nav-hs .nav-link { color: var(--hs-ink); font-weight: 500; padding: .5rem .9rem !important; }
.nav-hs .nav-link:hover { color: var(--hs-2); }
.brand-hs { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--hs-ink); }
.brand-hs img { width: 44px; border-radius: 10px; }
.brand-hs b { display: block; font-family: "Fredoka", "Figtree", sans-serif; font-weight: 700; font-size: 1.55rem; line-height: 1; }
.brand-hs small { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .48em; color: var(--hs); }
.brand-hs .tag { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hs-2); border: 1.5px solid var(--hs); border-radius: 2rem; padding: .15rem .55rem; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #eef9fb 0%, #f7fcfd 50%, #fff 100%); padding: 4.5rem 0 5rem !important; }
.hero::after { content: ""; position: absolute; right: -200px; top: -120px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(26,156,182,.16), transparent 65%); }
.hero > .container { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: .5rem; background: #dff3f7; color: var(--hs-2); font-weight: 600; font-size: .85rem; border-radius: 2rem; padding: .35rem .9rem; }
.pill i { font-size: .5rem; color: #22c55e; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.06; margin: 1.1rem 0 1.2rem; }
.hero h1 span { color: var(--hs-2); }
.hero .lead { color: var(--hs-muted); font-size: 1.18rem; line-height: 1.6; max-width: 36rem; }
.checks { display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--hs-muted); font-size: .95rem; margin-top: 1.4rem; }
.checks i { color: var(--hs); margin-right: .35rem; }

/* Maquetas */
.mock-wrap { position: relative; min-height: 430px; }
.mock-browser { background: #fff; border: 1px solid var(--hs-line); border-radius: 18px; box-shadow: 0 30px 70px rgba(15,42,51,.14); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: .4rem; background: #f3f8f9; padding: .6rem .9rem; border-bottom: 1px solid var(--hs-line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6e1e4; display: inline-block; }
.mock-bar span { margin-left: .6rem; background: #fff; border: 1px solid var(--hs-line); border-radius: 8px; font-size: .75rem; color: var(--hs-muted); padding: .15rem .7rem; flex: 1; }
.mock-body { display: grid; grid-template-columns: 54px 1fr; min-height: 340px; }
.mock-side { background: #0f3a47; padding: .8rem .55rem; display: grid; gap: .55rem; align-content: start; }
.mock-side i { display: block; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); }
.mock-side i:first-child { background: var(--hs); }
.mock-main { padding: 1rem 1.1rem; }
.mock-main .hi { font-weight: 600; margin-bottom: .7rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpis div { border: 1px solid var(--hs-line); border-radius: 12px; padding: .55rem .7rem; }
.kpis small { display: block; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--hs-muted); }
.kpis strong { font-size: 1.35rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; margin-top: .9rem; padding: .6rem; border: 1px solid var(--hs-line); border-radius: 12px; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--hs), #6fd0e3); }
.alert-row { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; border: 1px solid #fde2e2; background: #fff7f7; border-radius: 12px; padding: .5rem .7rem; font-size: .8rem; }
.alert-row b { color: #dc2626; }
.mock-phone { position: absolute; right: -10px; bottom: -20px; width: 210px; background: #fff; border: 9px solid #102a33; border-radius: 30px; box-shadow: 0 24px 60px rgba(15,42,51,.28); overflow: hidden; }
.mock-phone .ph-top { background: var(--hs); color: #fff; text-align: center; padding: .9rem .5rem 1.4rem; font-size: .72rem; }
.mock-phone .ph-top b { display: block; font-size: .85rem; }
.mock-phone .ph-body { background: #fff; margin: -.8rem .5rem .6rem; border-radius: 12px; padding: .6rem; font-size: .7rem; box-shadow: 0 2px 6px rgba(0,0,0,.06); }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin: .35rem 0 .6rem; }
.faces span { border: 1.5px solid #e3e7ea; border-radius: 8px; text-align: center; font-size: 1.05rem; padding: 2px 0; }
.faces span.on { border-color: var(--hs); background: var(--hs-soft); }
.ph-btn { background: var(--hs); color: #fff; border-radius: 8px; text-align: center; padding: .4rem; font-weight: 600; }
.mock-toast { position: absolute; left: -24px; bottom: 30px; background: #fff; border: 1px solid var(--hs-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(15,42,51,.16); padding: .65rem .85rem; display: flex; gap: .6rem; align-items: center; font-size: .82rem; animation: flotar 6s ease-in-out infinite; }
.mock-toast .e { font-size: 1.6rem; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 991.98px) { .mock-phone { right: 6px; } .mock-toast { left: 6px; } }
@media (prefers-reduced-motion: reduce) { .mock-toast { animation: none; } html { scroll-behavior: auto; } }

/* Cifras */
.stats { background: #0f2a33; color: #fff; padding: 2.6rem 0 !important; }
.stats .n { font-size: 2.2rem; font-weight: 600; color: #6fd8ec; line-height: 1.1; }
.stats .t { color: #b7cfd6; font-size: .95rem; }

/* Funciones */
.feat { height: 100%; border: 1px solid var(--hs-line); border-radius: 18px; padding: 1.5rem; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,42,51,.08); border-color: #cde6ec; }
.feat .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--hs-soft); color: var(--hs-2); margin-bottom: 1rem; }
.feat h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.feat p { color: var(--hs-muted); margin: 0; font-size: .95rem; line-height: 1.55; }

/* Cómo funciona */
.bg-soft { background: #f5fafb; }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step .num { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 20px; background: #fff; border: 1.5px solid #cfe6ec; color: var(--hs-2); display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(26,156,182,.12); }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--hs-muted); font-size: .95rem; }
@media (min-width: 992px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 44px); width: calc(100% - 88px); border-top: 2px dashed #cfe6ec; } }

/* Métricas explicadas */
.metric { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hs-line); }
.metric:last-child { border-bottom: 0; }
.metric .b { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.metric h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.metric p { color: var(--hs-muted); margin: 0; font-size: .93rem; }
.panel-demo { border: 1px solid var(--hs-line); border-radius: 20px; padding: 1.5rem; background: #fff; box-shadow: 0 24px 60px rgba(15,42,51,.08); }
.nps-bar { display: flex; height: 16px; border-radius: 10px; overflow: hidden; gap: 2px; }
.dist { display: flex; align-items: flex-end; gap: 10px; height: 140px; }
.dist div { flex: 1; text-align: center; font-size: .72rem; color: var(--hs-muted); }
.dist i { display: block; border-radius: 6px 6px 0 0; margin-bottom: .3rem; }

/* Para quién */
.who { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--hs-line); border-radius: 16px; padding: 1rem 1.1rem; background: #fff; height: 100%; }
.who i { font-size: 1.6rem; color: var(--hs-2); }
.who b { display: block; }
.who small { color: var(--hs-muted); }

/* Marca propia */
.brand-demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.brand-demo .c { border-radius: 16px; overflow: hidden; border: 1px solid var(--hs-line); background: #fff; }
.brand-demo .c .h { height: 56px; display: grid; place-items: center; color: #fff; font-weight: 600; }
.brand-demo .c .b { padding: .7rem; }
.brand-demo .c .b i { display: block; height: 8px; border-radius: 4px; background: #e9f0f2; margin-bottom: .4rem; }
.brand-demo .c .b em { display: block; height: 22px; border-radius: 7px; margin-top: .5rem; }

/* Planes (usa .plan-card de app.css) */
.planes-sec .plan-card { text-align: left; }

/* FAQ */
.faq .accordion-item { border: 1px solid var(--hs-line); border-radius: 14px !important; margin-bottom: .7rem; overflow: hidden; }
.faq .accordion-button { font-weight: 600; color: var(--hs-ink); padding: 1.1rem 1.25rem; }
.faq .accordion-button:not(.collapsed) { background: var(--hs-soft); color: var(--hs-ink); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(26,156,182,.2); }
.faq .accordion-body { color: var(--hs-muted); }

/* CTA y contacto */
.cta { background: radial-gradient(900px 500px at 80% 0%, #11566a 0%, #0d3542 50%, #0a2129 100%); color: #fff; border-radius: 28px; padding: 3.5rem 2rem; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.cta p { color: #b9d3da; font-size: 1.08rem; }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 1.4rem; }
.contact-card .form-control { background: rgba(255,255,255,.95); border: 0; border-radius: 12px; min-height: 48px; }
.contact-line { display: flex; align-items: center; gap: .7rem; color: #e6f1f4; text-decoration: none; padding: .45rem 0; }
.contact-line i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); font-size: 1.15rem; }
.contact-line:hover { color: #fff; }

footer.foot { padding: 2.5rem 0; color: var(--hs-muted); font-size: .9rem; border-top: 1px solid var(--hs-line); }
footer.foot a { color: var(--hs-muted); text-decoration: none; }
footer.foot a:hover { color: var(--hs-2); }


/* Aparición suave al desplazarse */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.dist div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
@media (max-width: 575.98px) { .landing section { padding: 3.5rem 0; } .cta { padding: 2.2rem 1.2rem; border-radius: 22px; } .mock-phone { width: 170px; } }
@media (max-width: 575.98px) { .mock-toast { display: none; } }

/* Planes con diseño claro */
.bg-crema { background: #f1ebe2; }
.planes-sec .planes-vitrina { --plan-acc: #0f7f99; }
.planes-sec .plan-card { text-align: left; }

/* Contacto */
.contact-h { font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; gap: .55rem; margin-bottom: .35rem; }
.contact-sub { color: #b9d3da !important; font-size: .95rem !important; margin-bottom: .5rem; }
.contact-num { display: block; color: #7fdcef; font-size: 1.35rem; font-weight: 600; text-decoration: none; line-height: 1.6; }
.contact-num:hover, .contact-mail:hover { color: #fff; }
.contact-mail { display: block; color: #7fdcef; text-decoration: none; font-weight: 500; line-height: 1.8; word-break: break-all; }
.demo-lbl { display: block; font-size: .82rem; color: #cfe3e8; margin: .2rem 0 .25rem; }
.contact-card .form-control::placeholder { color: #9aa9ad; }
.demo-err { background: #fde8e8; color: #9b1c1c; border-radius: 12px; padding: .6rem .8rem; font-size: .9rem; margin-bottom: .8rem; }
.demo-ok { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 2.4rem; color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Pasos de la demo */
.demo-pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.demo-pasos li { display: flex; gap: .8rem; align-items: flex-start; }
.demo-pasos span { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #7fdcef; font-weight: 600; }
.demo-pasos b { display: block; font-weight: 600; }
.demo-pasos small { color: #b9d3da; }

/* Sección de contacto (final de la página) */
.contacto-sec { background: #f5fafb; border-top: 1px solid var(--hs-line); padding: 4rem 0 !important; }
.eyebrow-s { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-2); margin-bottom: .5rem; }
.contacto-sec h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.contacto-sec .contact-h { color: var(--hs-ink); }
.contacto-sec .contact-h i { color: var(--hs-2); }
.contacto-sec .contact-sub { color: var(--hs-muted) !important; }
.contacto-sec .contact-num { color: var(--hs-2); }
.contacto-sec .contact-mail { color: var(--hs-2); }
.contacto-sec .contact-num:hover, .contacto-sec .contact-mail:hover { color: var(--hs-ink); }

/* Verificación "No soy un robot" */
.rc-wrap { position: relative; }
.rc-box { display: flex; align-items: center; gap: .8rem; width: 100%; max-width: 320px; background: #f9f9f9; border: 1px solid #d3d3d3; border-radius: 6px; padding: .8rem .9rem; color: #222; box-shadow: 0 0 4px rgba(0,0,0,.08); }
.rc-box.falta { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.35); }
.rc-check { position: relative; width: 28px; height: 28px; flex-shrink: 0; background: #fff; border: 2px solid #c1c1c1; border-radius: 3px; padding: 0; display: grid; place-items: center; }
.rc-check:hover { border-color: #b2b2b2; box-shadow: inset 0 1px 1px rgba(0,0,0,.1); }
.rc-check i { display: none; color: #0f9d58; font-size: 1.6rem; line-height: 1; }
.rc-spin { display: none; width: 24px; height: 24px; border: 3px solid #cfe3f9; border-top-color: #4a90e2; border-radius: 50%; animation: rcgira .8s linear infinite; }
.rc-box.cargando .rc-check { border-color: transparent; }
.rc-box.cargando .rc-spin { display: block; }
.rc-box.ok .rc-check { border-color: transparent; }
.rc-box.ok .rc-check i { display: block; }
@keyframes rcgira { to { transform: rotate(360deg); } }
.rc-txt { flex: 1; font-size: .95rem; }
.rc-logo { display: flex; flex-direction: column; align-items: center; color: #555; line-height: 1.1; }
.rc-logo i { font-size: 1.6rem; color: var(--hs); }
.rc-logo small { font-size: .55rem; }
.rc-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 100%; max-width: 340px; background: #fff; color: #222; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 4px 22px rgba(0,0,0,.35); padding: 8px; }
.rc-head { background: #4a90e2; color: #fff; padding: 14px 16px; margin-bottom: 8px; }
.rc-head small { display: block; font-size: .8rem; }
.rc-head strong { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.2; text-transform: lowercase; }
.rc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.rc-tile { position: relative; padding: 0; border: 0; background: #fff; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.rc-tile img { width: 100%; height: 100%; display: block; transition: transform .12s; }
.rc-tile i { position: absolute; top: 2px; left: 2px; font-size: 1.35rem; color: #4a90e2; background: #fff; border-radius: 50%; line-height: 1; opacity: 0; }
.rc-tile.on img { transform: scale(.8); }
.rc-tile.on i { opacity: 1; }
.rc-msg { color: #d93025; font-size: .85rem; padding: 6px 4px 0; }
.rc-foot { display: flex; align-items: center; gap: .3rem; border-top: 1px solid #e5e5e5; margin-top: 8px; padding-top: 8px; }
.rc-ico { background: none; border: 0; color: #666; font-size: 1.35rem; width: 38px; height: 38px; border-radius: 50%; }
.rc-ico:hover { background: #f1f1f1; color: #333; }
.rc-ok { margin-left: auto; background: #4a90e2; color: #fff; border: 0; border-radius: 2px; padding: .6rem 1.4rem; font-weight: 600; text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; }
.rc-ok:hover { background: #3b7fd0; }
.cta { overflow: visible; }
