/* ==========================================================================
   Whatbot IPS — estilos
   Colores de la especificación (aproximados; los exactos saldrán del archivo
   de Illustrator): azul oscuro #033C75–#0F4276, verde #01AC44, celestes
   #E7F5FE–#EEF8FE, degradado del título de verde azulado a verde.
   Móvil primero: los estilos base son de celular y crecen con min-width.
   ========================================================================== */

/* Fuentes servidas desde el propio sitio, no desde Google Fonts: así el
   navegador del visitante no le pasa su IP a Google. Son provisionales hasta
   confirmar la tipografía de la maqueta (licencia OFL en assets/fonts/). */
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700 800; font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700 800; font-display: swap;
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #033C75;
    --navy-2: #0F4276;
    --navy-deep: #022B55;
    --blue: #1F6FD1;            /* íconos de línea y enlaces */
    --blue-ink: #0B5BB5;        /* texto pequeño azul: contraste AA sobre blanco */
    --green: #01AC44;
    --green-hover: #01953B;
    --teal: #0BA5A0;
    --sky: #E7F5FE;
    --sky-2: #EEF8FE;
    --sky-line: #CFE6F8;
    --red: #E5484D;
    --ink: #0B2545;
    --text: #33475B;
    --muted: #5F7184;
    --line: #DCE6F0;
    --bg: #FFFFFF;

    --gradient-title: linear-gradient(90deg, var(--teal), var(--green));
    --gradient-head: linear-gradient(90deg, var(--navy-2), var(--teal));

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Plus Jakarta Sans", var(--font);

    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgb(11 37 69 / .06);
    --shadow: 0 12px 32px -14px rgb(11 37 69 / .22);
    --shadow-card: 0 1px 3px rgb(11 37 69 / .05), 0 14px 34px -20px rgb(11 37 69 / .25);
    --container: 1200px;
    --gutter: 16px;
    --nav-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.text-gradient { background: var(--gradient-title); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 46px; padding: 11px 22px; border: 1.5px solid transparent; border-radius: 999px;
    font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 10px 22px -12px rgb(1 172 68 / .9); }
.btn--primary:hover { background: var(--green-hover); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--sky-line); }
.btn--outline:hover { border-color: var(--navy); }
.btn--blue { background: var(--navy-2); color: #fff; }
.btn--blue:hover { background: var(--navy); }
.btn--bright { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgb(31 111 209 / .9); }
.btn--bright:hover { background: var(--blue-ink); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--sky); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn--lg .icon { width: 1.4em; height: 1.4em; }
.btn--sm { min-height: 38px; padding: 7px 18px; font-size: .88rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Comunes ---------- */
.pill { display: inline-block; padding: 6px 14px; border: 1px solid var(--sky-line); border-radius: 999px; background: #fff; color: var(--navy-2); font-size: .85rem; font-weight: 600; }
.section { padding-block: 56px; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.55rem, 4vw, 2.1rem); line-height: 1.18; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }
.section__title--sm { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.section__subtitle { margin-top: 8px; color: var(--muted); }
.section__subtitle--lg { font-size: 1.1rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.card__text { margin-top: 6px; font-size: .92rem; color: var(--text); }

/* Fotos (views/partials/foto.php). */
.foto { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-lg); background: #DCEFFD; }
.foto--hero { aspect-ratio: 5 / 4; box-shadow: var(--shadow-card); }
.foto--phone { aspect-ratio: 3 / 4; max-width: 360px; margin-inline: auto; }
.foto--photo { aspect-ratio: 4 / 3; object-position: 50% 30%; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field select {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgb(31 111 209 / .18); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); }
.field.is-invalid legend, .field.is-invalid .check span { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   1. Menú superior
   ========================================================================== */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .95); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; gap: 10px; min-height: var(--nav-h); }

.logo { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--navy); text-decoration: none; }
.logo__mark { display: block; width: 40px; height: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.logo__tagline { margin-top: 3px; font-size: .7rem; font-weight: 600; color: var(--blue-ink); }
.logo--white, .logo--white .logo__tagline { color: #fff; }

.nav__menu { display: none; }
.nav__menu a { padding: 8px 2px; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; transition: color .2s; }
.nav__menu a:hover { color: var(--blue-ink); }
/* En celular el botón de la demo sigue visible (solo el ícono si no cabe). */
.nav__cta { min-height: 42px; padding: 9px 14px; font-size: .85rem; }
.nav__cta span { display: none; }
.nav__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav__toggle .icon { width: 22px; height: 22px; }
.nav__close { display: none; }
.nav.is-open .nav__menu { display: flex; flex-direction: column; position: absolute; inset: var(--nav-h) 0 auto 0; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.nav.is-open .nav__menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
.nav.is-open .nav__open { display: none; }
.nav.is-open .nav__close { display: block; }

@media (min-width: 480px) { .nav__cta span { display: inline; } }
@media (min-width: 1140px) {
    .nav__menu { display: flex; gap: 24px; margin-inline: auto; }
    .nav__toggle { display: none; }
    .nav__cta { min-height: 44px; padding: 10px 18px; }
}

/* ==========================================================================
   2. Encabezado
   ========================================================================== */
.hero { padding-block: 32px 48px; background: radial-gradient(120% 90% at 85% 10%, #DDF0FE 0%, var(--sky-2) 45%, #fff 100%); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__title { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 5.2vw, 2.55rem); line-height: 1.12; letter-spacing: -.03em; color: var(--navy); }
.hero__title > span { display: block; }
.hero__subtitle { margin-top: 18px; max-width: 54ch; font-size: 1.05rem; color: var(--text); }
.hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
@media (min-width: 560px) { .hero__actions { flex-direction: row; flex-wrap: wrap; } }
@media (min-width: 1000px) {
    .hero { padding-block: 56px 72px; }
    .hero__grid { grid-template-columns: 1.15fr 1fr; gap: 40px; }
}

/* ==========================================================================
   3. Franja de confianza
   ========================================================================== */
.trust { background: var(--navy); color: #fff; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding-block: 18px; }
.trust__list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.trust__list .icon { width: 24px; height: 24px; }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, auto); justify-content: space-around; } }

/* ==========================================================================
   4. El dolor
   ========================================================================== */
.pain__grid { display: grid; gap: 28px; align-items: stretch; }
.pain__body { display: flex; flex-direction: column; gap: 20px; }
.pain__cards { display: grid; gap: 14px; }
.pain__cards .card { padding: 18px; }
.card__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 10px; background: var(--sky); color: var(--blue); }
.card__icon .icon { width: 24px; height: 24px; }
.alert { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: var(--radius); background: var(--sky); color: var(--navy); }
.alert strong { font-weight: 700; }
.alert__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; }
.alert__icon .icon { width: 22px; height: 22px; }
@media (min-width: 600px) { .pain__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) {
    .pain__grid { grid-template-columns: 300px 1fr; gap: 32px; }
    .pain__media .foto { height: 100%; aspect-ratio: auto; }
    .pain__cards { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   5 y 6. Cifras en banner (foto detrás, tarjetas encima)
   ========================================================================== */
.stats-banner { position: relative; overflow: hidden; padding-block: 56px; isolation: isolate; }
/* Fondo provisional en lugar de la foto del estetoscopio: al recibirla, va como
   background-image aquí y el velo de ::after mantiene el texto legible. */
.stats-banner__photo { position: absolute; inset: 0; z-index: -2; background: #CFE7FA url("../img/consultorio-1200.webp") 70% center / cover no-repeat; }
@media (min-width: 1200px) { .stats-banner__photo { background-image: url("../img/consultorio-2400.webp"); } }
.stats-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(238 248 254 / .94) 0%, rgb(238 248 254 / .8) 50%, rgb(238 248 254 / .35) 100%); }
.stats-banner__title { max-width: 34ch; }
.stats-banner__subtitle { margin-top: 10px; font-size: 1.08rem; color: var(--muted); }
.stats-banner__subtitle strong { color: var(--blue-ink); font-weight: 700; }
.stats-banner__cards { display: grid; gap: 14px; margin-top: 26px; }
.kpi { display: flex; flex-direction: column; padding: 20px; background: rgb(255 255 255 / .94); }
.kpi__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }
.kpi__icon .icon { width: 26px; height: 26px; }
.kpi__icon--blue { background: var(--sky); color: var(--navy-2); }
.kpi__icon--green { background: #E3F7EB; color: var(--green-hover); }
.kpi__value { margin-top: 14px; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--blue-ink); }
.kpi__label { margin-top: 8px; font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--navy); }
.kpi__detail { margin-top: 8px; font-size: .85rem; color: var(--muted); }
@media (min-width: 600px) { .stats-banner__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
    .stats-banner { padding-block: 72px; }
    .stats-banner__cards { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   7. La solución
   ========================================================================== */
.solution__grid { display: grid; gap: 32px; align-items: center; }
.steps { display: grid; gap: 14px; margin-top: 24px; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.step__num { position: absolute; left: -6px; top: -10px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--blue); background: #fff; padding-inline: 4px; }
.step__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--sky); color: var(--blue); }
.step__icon .icon { width: 24px; height: 24px; }
.step__title { font-family: var(--font-display); font-size: .98rem; font-weight: 700; line-height: 1.3; color: var(--navy); }
.step__text { margin-top: 6px; font-size: .9rem; }
.solution__action { margin-top: 24px; text-align: center; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .solution__grid { grid-template-columns: 1fr 320px; gap: 40px; } }

/* ==========================================================================
   8. La demo
   ========================================================================== */
.demo { background: linear-gradient(180deg, #fff, var(--sky-2)); }
.demo__cards { display: grid; gap: 16px; margin-top: 26px; }
.demo-card { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.demo-card__head { display: flex; gap: 16px; align-items: flex-start; }
.demo-card__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--sky); color: var(--navy-2); }
.demo-card__icon .icon { width: 30px; height: 30px; }
.demo-card .btn { margin-top: auto; }
@media (min-width: 760px) { .demo__cards { grid-template-columns: repeat(2, 1fr); max-width: 980px; } }

/* ==========================================================================
   9. El ecosistema
   ========================================================================== */
.eco__cards { display: grid; gap: 14px; margin-top: 26px; }
.eco-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; }
.eco-card__head { display: flex; align-items: center; gap: 12px; }
.eco-card__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px; }
.eco-card__icon .icon { width: 26px; height: 26px; }
.eco-card__icon--green { background: #E3F7EB; color: var(--green); }
.eco-card__icon--blue { background: var(--sky); color: var(--blue); }
.eco-card__title { font-family: var(--font-display); font-size: .98rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
.eco-card__btn { align-self: flex-start; margin-top: auto; }
.eco-card .card__text { margin-bottom: 14px; }
@media (min-width: 600px) { .eco__cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .eco__cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1140px) { .eco__cards { grid-template-columns: repeat(5, 1fr); } }

/* ==========================================================================
   10 y 11. Comparativo + preguntas frecuentes
   ========================================================================== */
.compare { background: var(--sky-2); }
.compare__grid { display: grid; gap: 40px; }
.vs { width: 100%; margin-top: 20px; border-collapse: separate; border-spacing: 0; }
.vs thead { display: none; }
.vs tbody, .vs tr, .vs th, .vs td { display: block; }
/* Celular: cada fila es una tarjeta con el nombre de la columna encima de cada valor. */
.vs tr { margin-bottom: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
.vs th[scope="row"] { padding-bottom: 8px; font-family: var(--font-display); font-weight: 700; color: var(--navy); text-align: left; }
.vs td { padding-block: 6px; font-size: .92rem; }
.vs td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.vs__cell { display: flex; gap: 8px; align-items: flex-start; }
.vs__no { color: var(--red); } .vs__yes { color: var(--green); }
.vs__no .icon, .vs__yes .icon { width: 22px; height: 22px; display: block; }
@media (min-width: 720px) {
    .vs { display: table; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); }
    .vs thead { display: table-header-group; }
    .vs tbody { display: table-row-group; }
    .vs tr { display: table-row; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
    .vs th, .vs td { display: table-cell; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
    .vs tbody tr:last-child > * { border-bottom: 0; }
    .vs thead th { background: var(--gradient-head); color: #fff; font-size: .9rem; font-weight: 700; white-space: nowrap; }
    .vs thead th .icon { vertical-align: -4px; margin-right: 4px; }
    .vs th[scope="row"] { font-size: .92rem; }
    .vs td::before { content: none; }
}

.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--blue); transition: transform .2s; }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding-bottom: 16px; font-size: .92rem; }
.faq .section__title { margin-bottom: 4px; }
@media (min-width: 1000px) { .compare__grid { grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; } }

/* ==========================================================================
   12 y 13. Datos de los pacientes + formulario
   ========================================================================== */
.contact__grid { display: grid; gap: 24px; }
.security { display: grid; overflow: hidden; }
.security__media .foto { border-radius: 0; }
.security__body { padding: 22px; }
.security__title { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.25; color: var(--navy); }
.security__shield { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; }
.security__shield .icon { width: 26px; height: 26px; }
.security__body p { margin-top: 14px; font-size: .95rem; }
.security__link { font-weight: 700; color: var(--blue-ink); }

.lead-card { padding: 22px; }
.lead-card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; line-height: 1.25; color: var(--navy); }
.lead-card__title span { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.lead-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.lead-form__grid { display: grid; gap: 14px; }
.radios { display: flex; gap: 22px; min-height: 46px; align-items: center; }
.radio, .check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; }
.radio input, .check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; }
.check { align-items: flex-start; font-size: .9rem; }
.check a { color: var(--blue-ink); }
.lead-form__error { padding: 10px 14px; border-radius: 10px; background: #FDECEC; color: #B4232A; font-size: .9rem; font-weight: 600; }
.lead-card__success { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 12px; text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.lead-card__success .icon { width: 56px; height: 56px; color: var(--green); }
.meeting { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; }
.meeting__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; }
.meeting__icon .icon { width: 28px; height: 28px; }
.meeting__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.25; color: var(--navy); }
.meeting__text { font-size: 1rem; }
.meeting .btn { margin-top: 6px; }
@media (min-width: 600px) {
    .lead-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
    .contact__grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
    .security { grid-template-columns: 220px 1fr; }
    .security__media .foto { height: 100%; aspect-ratio: auto; }
    .lead-card { padding: 26px 28px; }
    .meeting { justify-content: center; padding: 30px 32px; }
}

/* ==========================================================================
   14. Cierre
   ========================================================================== */
.cta { padding-block: 44px; color: #fff; background: linear-gradient(90deg, rgb(10 22 48 / .92), rgb(10 22 48 / .75)), url("../img/cierre-1200.webp") right center / cover no-repeat, var(--navy-deep); }
@media (min-width: 900px) { .cta { padding-block: 72px; background: url("../img/cierre-2400.webp") right center / cover no-repeat, var(--navy-deep); } }
.cta__inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.cta .logo { margin: 0 0 18px; }
.cta__title { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 1.9rem); font-weight: 800; line-height: 1.2; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
@media (min-width: 560px) { .cta__actions { flex-direction: row; flex-wrap: wrap; } }

/* ==========================================================================
   Pie de página
   ========================================================================== */
.footer { background: var(--navy-deep); color: rgb(255 255 255 / .82); font-size: .92rem; }
.footer__grid { display: grid; gap: 28px; padding-block: 40px; }
.footer__about { margin-top: 14px; max-width: 40ch; }
.footer__maker { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .82rem; color: rgb(255 255 255 / .75); }
.footer__maker:hover { text-decoration: none; }
.footer__maker img { width: 150px; height: auto; }
.footer__social { display: flex; gap: 10px; margin-top: 16px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; transition: background-color .2s, border-color .2s; }
.footer__social a:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.footer__social .icon { width: 18px; height: 18px; }
.footer__heading { margin-bottom: 12px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: #fff; }
.footer__contact li, .footer__links li { display: flex; align-items: center; gap: 10px; padding-block: 5px; }
.footer__contact .icon { width: 18px; height: 18px; color: #7FC4F5; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 18px; font-size: .82rem; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (max-width: 719px) { .footer__bottom { padding-bottom: 92px; } }

/* ==========================================================================
   Botón flotante, aviso de cookies y ventana de video
   ========================================================================== */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 12px 26px -10px rgb(1 120 48 / .8); transition: transform .2s, background-color .2s; }
.wa-float:hover { transform: scale(1.06); background: var(--green-hover); }
.wa-float .icon { width: 30px; height: 30px; }

.cookies { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: flex; flex-direction: column; gap: 12px; max-width: 560px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); font-size: .88rem; }
.cookies a { color: var(--blue-ink); }
.cookies__actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (min-width: 640px) { .cookies { left: 18px; right: auto; } }

.video-modal { width: min(960px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: visible; }
.video-modal::backdrop { background: rgb(2 20 40 / .78); }
.video-modal__frame { aspect-ratio: 16 / 9; }
.video-modal__soon { display: grid; place-items: center; height: 100%; padding: 24px; color: #fff; font-size: 1.15rem; font-weight: 600; text-align: center; }
.video-modal__frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.video-modal__close { position: absolute; top: -48px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer; }

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.legal__inner { max-width: 780px; }
.legal__head { margin-bottom: 28px; }
.legal .section__title { text-align: left; }
.legal__updated { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.legal__section { margin-top: 24px; }
.legal__section h2 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.legal__section p { margin-top: 10px; }
.legal__section ul { margin-top: 10px; padding-left: 20px; list-style: disc; }
.legal__section li { margin-top: 6px; }
.legal a { color: var(--blue-ink); }

@media (min-width: 900px) { .section { padding-block: 72px; } }
