/* =============================================================================
   Oculinexa — sitio comercial (home, funcionalidades, empresa, blog, legal)
   -----------------------------------------------------------------------------
   Hoja autónoma: NO depende de Bootstrap ni de app.css. La cargan las vistas
   que extienden layouts.site. Los colores y la tipografía salen del logotipo
   (tinta #0E1618, esmeralda #00A57F, Archivo 800); el motivo gráfico es la
   mira del isotipo: anillos concéntricos y cuadrado central.
   ============================================================================= */

:root {
    --ink: #0E1618;
    --ink-2: #1A272B;
    --ink-3: #2B3B40;
    --muted: #56676B;
    --muted-2: #7E8E92;
    --line: #E2E8E7;
    --line-2: #CFD8D6;
    --bg: #FFFFFF;
    --bg-soft: #F4F7F6;
    --bg-tint: #EAF5F1;

    --brand: #00A57F;
    --brand-600: #00805F;
    --brand-700: #006A4F;
    --brand-300: #3FD3A9;
    --brand-100: #D5F2E8;
    --brand-50: #EDF9F5;

    --od: #00A57F;          /* ojo derecho */
    --oi: #2F6FEB;          /* ojo izquierdo */
    --warn: #E59A1A;
    --danger: #D9465B;

    --dark: #0A1113;
    --dark-2: #111C1F;
    --dark-line: rgba(255, 255, 255, .09);
    --dark-muted: rgba(235, 244, 242, .64);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(14, 22, 24, .06), 0 1px 1px rgba(14, 22, 24, .04);
    --shadow: 0 12px 32px -12px rgba(14, 22, 24, .18), 0 2px 6px rgba(14, 22, 24, .05);
    --shadow-lg: 0 40px 80px -32px rgba(14, 22, 24, .35), 0 12px 24px -12px rgba(14, 22, 24, .12);

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1200px;
    --gutter: 24px;
    --header-h: 72px;
}

/* ---------------------------------------------------------------- base ---- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body.site {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.site img, .site svg { max-width: 100%; }
.site img { height: auto; display: block; }
.site a { color: inherit; text-decoration: none; }
.site p { margin: 0 0 1em; }
.site h1, .site h2, .site h3, .site h4 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 .5em;
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 800;
}
.site h3 { letter-spacing: -.015em; line-height: 1.2; font-weight: 700; }
.site h4 { letter-spacing: -.01em; line-height: 1.3; font-weight: 700; }
.site ul, .site ol.journey { margin: 0; padding: 0; list-style: none; }
.site button { font: inherit; color: inherit; }
.site :focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------- tipografía -- */

.kicker {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-body);
    font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-700);
    margin-bottom: 18px;
}
.kicker::before {
    content: ""; width: 8px; height: 8px; background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
}
.section--dark .kicker { color: var(--brand-300); }
.section--dark .kicker::before { box-shadow: 0 0 0 3px rgba(0, 165, 127, .25); }

.display {
    font-size: clamp(2.4rem, 4.4vw, 3.9rem);
    line-height: 1.03;
    letter-spacing: -.035em;
}
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.section--dark .lead { color: var(--dark-muted); }
.muted { color: var(--muted); }
.accent { color: var(--brand-600); }
.section--dark .accent { color: var(--brand-300); }
.marker {
    background: linear-gradient(transparent 62%, var(--brand-100) 62%, var(--brand-100) 92%, transparent 92%);
    padding-inline: .06em;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- botones -- */

.btn {
    --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1.2;
    color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd);
    border-radius: 999px; cursor: pointer; white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}
.site a.btn { color: var(--btn-fg); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(14, 22, 24, .45); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .18s ease; }
.btn:hover svg.icon--arrow { transform: translateX(3px); }

.btn--brand { --btn-bg: var(--brand); --btn-fg: var(--ink); --btn-bd: var(--brand); }
.btn--brand:hover { --btn-bg: var(--brand-300); --btn-bd: var(--brand-300); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: none; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); }
.btn--ghost-dark:hover { --btn-bd: #fff; box-shadow: none; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; color: var(--brand-700);
    border-bottom: 1px solid transparent; transition: border-color .18s ease, gap .18s ease;
}
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 12px; border-color: currentColor; }
.section--dark .link-arrow { color: var(--brand-300); }

.icon { width: 20px; height: 20px; flex: none; }

/* ------------------------------------------------------------- cabecera ---- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); background: rgba(255, 255, 255, .94); }

.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.nav__brand { display: inline-flex; align-items: center; flex: none; }
.nav__brand img { height: 34px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__link, .nav__trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px; border-radius: 999px;
    font-size: .94rem; font-weight: 500; color: var(--ink-3);
    background: none; border: 0; cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
}
.nav__link:hover, .nav__trigger:hover, .nav__trigger[aria-expanded="true"] { color: var(--ink); background: var(--bg-soft); }
.nav__trigger svg { width: 16px; height: 16px; transition: transform .2s ease; }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__wa {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .9rem; font-weight: 600; color: var(--ink-3);
    padding: 8px 12px; border-radius: 999px;
}
.nav__wa i { color: #25D366; font-size: 1.1rem; }
.nav__wa:hover { background: var(--bg-soft); color: var(--ink); }
.nav__login { font-size: .94rem; font-weight: 500; color: var(--ink-3); padding: 8px 12px; }
.nav__login:hover { color: var(--ink); }

.nav__toggle {
    display: none; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
    align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* Menú desplegable "Producto" */
.nav__dropdown { position: relative; }
.mega {
    position: absolute; top: calc(100% + 12px); left: -24px;
    width: min(760px, calc(100vw - 48px));
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 14px;
    display: grid; grid-template-columns: 1fr 1fr 240px; gap: 4px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__dropdown.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__item {
    display: flex; gap: 14px; padding: 12px; border-radius: var(--radius);
    transition: background-color .15s ease;
}
.mega__item:hover { background: var(--bg-soft); }
.mega__icon {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand-700);
}
.mega__icon svg { width: 20px; height: 20px; }
.mega__item strong { display: block; font-size: .94rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mega__item span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega__aside {
    grid-row: 1 / span 4; grid-column: 3;
    background: var(--dark); color: #fff; border-radius: var(--radius);
    padding: 22px; display: flex; flex-direction: column; gap: 10px;
    position: relative; overflow: hidden;
}
.mega__aside::after {
    content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px;
    border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .03), 0 0 0 48px rgba(255, 255, 255, .02);
}
.mega__aside strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.mega__aside p { color: var(--dark-muted); font-size: .88rem; margin: 0; }
.mega__aside .link-arrow { color: var(--brand-300); margin-top: auto; position: relative; z-index: 1; }

/* -------------------------------------------------------------------- hero -- */

.hero {
    position: relative; overflow: hidden;
    padding-top: clamp(48px, 7vw, 96px);
    padding-bottom: clamp(64px, 8vw, 112px);
    background:
        radial-gradient(900px 480px at 85% 0%, rgba(0, 165, 127, .12), transparent 62%),
        radial-gradient(700px 420px at 0% 100%, rgba(47, 111, 235, .07), transparent 60%),
        linear-gradient(180deg, #F7FAF9 0%, #fff 100%);
}
.hero::before {
    /* retícula de fondo muy sutil */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(14, 22, 24, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 22, 24, .045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__grid {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 64px); align-items: center;
}
.hero__copy .lead { max-width: 560px; margin-bottom: 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__assurances { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.hero__assurances li { display: inline-flex; align-items: center; gap: 8px; }
.hero__assurances svg { width: 16px; height: 16px; color: var(--brand); }

.pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 6px; margin-bottom: 24px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    font-size: .86rem; color: var(--ink-3); box-shadow: var(--shadow-sm);
}
.pill b {
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px;
}
.pill:hover { border-color: var(--line-2); }

.hero__visual { position: relative; }
.hero__rings {
    position: absolute; z-index: 0; pointer-events: none;
    width: 680px; height: 680px; right: -180px; top: 50%; transform: translateY(-50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 165, 127, .18);
    box-shadow:
        0 0 0 70px rgba(0, 165, 127, .035),
        0 0 0 71px rgba(0, 165, 127, .12),
        0 0 0 150px rgba(0, 165, 127, .02),
        0 0 0 151px rgba(0, 165, 127, .08);
}
.hero__visual > .mock { position: relative; z-index: 1; }

.float-card {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 12px 16px 12px 12px; box-shadow: var(--shadow);
    font-size: .84rem; line-height: 1.35; max-width: 270px;
    animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .88rem; color: var(--ink); }
.float-card span { color: var(--muted); }
.float-card__icon {
    width: 38px; height: 38px; border-radius: 11px; flex: none;
    display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700);
}
.float-card__icon svg { width: 20px; height: 20px; }
.float-card__icon--wa { background: #E7F8EE; color: #128C4B; font-size: 1.2rem; }
.float-card--a { left: -40px; bottom: -28px; }
.float-card--b { right: -20px; top: -22px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* -------------------------------------------------------- franja confianza -- */

.trustbar { border-block: 1px solid var(--line); background: #fff; }
.trustbar__inner {
    display: grid; grid-template-columns: repeat(5, 1fr);
}
.trustbar__item {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 20px; font-size: .9rem; color: var(--ink-3); line-height: 1.35;
}
.trustbar__item + .trustbar__item { border-left: 1px solid var(--line); }
.trustbar__item svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.trustbar__item strong { display: block; color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ dolor -- */

.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain {
    position: relative; padding: 28px 24px 26px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
}
.pain__num {
    font-family: var(--font-display); font-weight: 800; font-size: .82rem; letter-spacing: .08em;
    color: var(--danger); margin-bottom: 18px; display: block;
}
.pain h3 { font-size: 1.12rem; margin-bottom: 10px; }
.pain p { color: var(--muted); font-size: .95rem; margin: 0; }
.pains-bridge {
    margin: 40px auto 0; max-width: 760px;
    font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 700;
    text-align: center; letter-spacing: -.015em;
}
.pains-bridge span { color: var(--brand-600); }

/* ------------------------------------------------------- tour de producto -- */

.tour { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 48px; align-items: start; }
.tour__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); }
.tour__tab {
    display: flex; align-items: flex-start; gap: 14px; text-align: left;
    padding: 16px 18px; border-radius: var(--radius); border: 1px solid transparent;
    background: none; cursor: pointer; width: 100%;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tour__tab:hover { background: rgba(255, 255, 255, .7); }
.tour__tab[aria-selected="true"] { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.tour__tab-icon {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted);
    transition: all .18s ease;
}
.tour__tab-icon svg { width: 20px; height: 20px; }
.tour__tab[aria-selected="true"] .tour__tab-icon { background: var(--ink); border-color: var(--ink); color: var(--brand-300); }
.tour__tab strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.3; margin-top: 2px; }
.tour__tab small { display: block; font-size: .86rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }

.tour__panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.tour__panel[hidden] { display: none; }
.tour__panel-copy { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.tour__panel-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin-bottom: 12px; }
.tour__panel-copy p { color: var(--muted); margin-bottom: 16px; }
.js .tour__panel { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; color: var(--ink-3); line-height: 1.45; }
.checklist li::before {
    content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300805F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--dark .checklist li { color: var(--dark-muted); }
.section--dark .checklist li::before { background-color: rgba(0, 165, 127, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233FD3A9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* --------------------------------------------------- recorrido (oscuro) ---- */

.journey-wrap { position: relative; overflow: hidden; }
.journey-wrap::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.journey { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; counter-reset: paso; }
.journey::before {
    content: ""; position: absolute; left: 20px; right: 20px; top: 22px; height: 1px;
    background: linear-gradient(90deg, var(--brand), rgba(0, 165, 127, .15));
}
.journey__step { position: relative; padding-top: 64px; }
.journey__dot {
    position: absolute; top: 0; left: 0;
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--dark-2); border: 1px solid var(--dark-line); color: var(--brand-300);
}
.journey__dot svg { width: 20px; height: 20px; }
.journey__step small {
    display: block; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-300); margin-bottom: 8px;
}
.journey__step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.journey__step p { font-size: .9rem; color: var(--dark-muted); margin: 0; line-height: 1.55; }

/* ------------------------------------------------------- recepción con IA -- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }

.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; }
.channel {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.channel__icon {
    width: 36px; height: 36px; border-radius: 10px; flex: none;
    display: grid; place-items: center; background: var(--bg-soft); color: var(--ink);
}
.channel__icon svg { width: 18px; height: 18px; }
.channel__icon i { font-size: 1.05rem; color: #128C4B; }
.channel strong { display: block; font-size: .94rem; line-height: 1.3; }
.channel span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* --------------------------------------------------------------- perfiles -- */

.roles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.role {
    grid-column: span 2;
    display: flex; flex-direction: column;
    padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.role:nth-child(4), .role:nth-child(5) { grid-column: span 3; }
.role:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.role__icon {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
    display: grid; place-items: center; background: var(--bg-tint); color: var(--brand-700);
}
.role__icon svg { width: 24px; height: 24px; }
.role h3 { font-size: 1.2rem; margin-bottom: 8px; }
.role > p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.role .checklist li { font-size: .9rem; }

/* ----------------------------------------------------------- comparativa -- */

.compare { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.compare table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--bg-soft); letter-spacing: .02em; }
.compare thead th.is-us { background: var(--ink); color: #fff; }
.compare td.is-us { background: var(--brand-50); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 19%; }
.compare tbody td:first-child { color: var(--ink-3); font-weight: 500; }
.yes, .no, .meh { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.yes { background: var(--brand); color: #fff; }
.no { background: #F7E3E6; color: var(--danger); }
.meh { background: #FBF0DC; color: var(--warn); }
.yes svg, .no svg, .meh svg { width: 14px; height: 14px; }

/* ------------------------------------------------------- puesta en marcha -- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: paso; }
.step {
    position: relative; padding: 32px 28px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line); counter-increment: paso;
}
.step::before {
    content: "0" counter(paso);
    display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
    letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-bottom: 24px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.step__tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600;
    color: var(--brand-700); background: var(--brand-50); padding: 4px 10px; border-radius: 999px;
}

/* ----------------------------------------------------------------- precios -- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: stretch; }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: 28px 24px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
}
.plan--featured { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: var(--shadow-lg); }
.plan--featured h3, .plan--featured .plan__price { color: #fff; }
.plan__badge {
    position: absolute; top: 20px; right: 20px;
    font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    background: var(--brand); color: var(--ink); padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 18px; }
.plan__price { font-family: var(--font-display); font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.plan__price small { font-family: var(--font-body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan--featured .plan__price small { color: var(--dark-muted); }
.plan__tax { font-size: .8rem; color: var(--muted-2); margin: 6px 0 22px; }
.plan--featured .plan__tax { color: var(--dark-muted); }
.plan__quota { display: grid; gap: 10px; padding: 18px 0; margin-bottom: 20px; border-block: 1px solid var(--line); }
.plan--featured .plan__quota { border-color: var(--dark-line); }
.plan__quota li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--muted); }
.plan--featured .plan__quota li { color: var(--dark-muted); }
.plan__quota b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.plan--featured .plan__quota b { color: #fff; }
.plan .btn { margin-top: auto; }

.included {
    margin-top: 24px; padding: 28px; border-radius: var(--radius-lg);
    background: var(--bg-soft); border: 1px solid var(--line);
    display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start;
}
.included h3 { font-size: 1.1rem; margin-bottom: 6px; }
.included p { font-size: .9rem; color: var(--muted); margin: 0; }
.included .checklist { grid-template-columns: repeat(3, 1fr); gap: 10px 20px; }
.included .checklist li { font-size: .9rem; }

.extras { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.extras summary {
    list-style: none; cursor: pointer; padding: 18px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-weight: 600; font-size: .95rem;
}
.extras summary::-webkit-details-marker { display: none; }
.extras summary svg { width: 18px; height: 18px; transition: transform .2s ease; }
.extras[open] summary svg { transform: rotate(180deg); }
.extras__table { overflow-x: auto; border-top: 1px solid var(--line); }
.extras table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 760px; }
.extras th, .extras td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.extras th:first-child, .extras td:first-child { text-align: left; }
.extras th { font-size: .72rem; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.extras tr:last-child td { border-bottom: 0; }
.pricing-note { margin-top: 18px; font-size: .86rem; color: var(--muted); text-align: center; }
.pricing-fallback { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: #fff; }

/* ------------------------------------------------------------- seguridad -- */

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features-grid--4 { grid-template-columns: repeat(4, 1fr); }
.feature {
    padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
}
.section--dark .feature { background: var(--dark-2); border-color: var(--dark-line); }
.feature__icon {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
    display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700);
}
.section--dark .feature__icon { background: rgba(0, 165, 127, .14); color: var(--brand-300); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.06rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }
.section--dark .feature p { color: var(--dark-muted); }

/* ------------------------------------------------------------------- FAQ -- */

.faq-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 22px 0; font-weight: 600; font-size: 1.04rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__sign {
    width: 32px; height: 32px; border-radius: 50%; flex: none; position: relative;
    border: 1px solid var(--line-2); transition: background-color .2s ease, border-color .2s ease, transform .25s ease;
}
.faq__sign::before, .faq__sign::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink);
    transform: translate(-50%, -50%);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }
.faq details[open] .faq__sign { background: var(--ink); border-color: var(--ink); }
.faq details[open] .faq__sign::before, .faq details[open] .faq__sign::after { background: #fff; }
.faq details[open] .faq__sign::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq summary:hover .faq__sign { border-color: var(--ink); }
.faq__answer { padding: 0 56px 24px 0; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* -------------------------------------------------------------- recursos -- */

.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.resource {
    display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--line);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.resource:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.resource small { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 12px; }
.resource h3 { font-size: 1.1rem; margin-bottom: 8px; }
.resource p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.resource .link-arrow { margin-top: auto; }

/* ------------------------------------------------------------- CTA final -- */

.cta-band {
    position: relative; overflow: hidden;
    border-radius: var(--radius-xl); background: var(--dark); color: #fff;
    padding: clamp(40px, 6vw, 80px);
    display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.cta-band::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px;
    border-radius: 50%; border: 1px solid rgba(0, 165, 127, .3);
    box-shadow: 0 0 0 60px rgba(0, 165, 127, .05), 0 0 0 61px rgba(0, 165, 127, .18), 0 0 0 130px rgba(0, 165, 127, .03), 0 0 0 131px rgba(0, 165, 127, .1);
}
.cta-band::after {
    content: ""; position: absolute; width: 22px; height: 22px; right: 99px; top: 69px; background: var(--brand);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band p { color: var(--dark-muted); font-size: 1.08rem; margin: 0; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band__actions .btn { min-width: 260px; }
.cta-band__note { font-size: .86rem; color: var(--dark-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.cta-band__note a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); }

/* ------------------------------------------------------------------ footer -- */

.site-footer { background: var(--dark); color: var(--dark-muted); padding: 80px 0 32px; font-size: .92rem; }
.site-footer a { transition: color .15s ease; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--dark-line); }
.footer__brand img { height: 34px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 300px; }
.footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact i { color: var(--brand-300); width: 16px; margin-top: 4px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social .social-icon {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid var(--dark-line); color: #fff;
}
.footer-social .social-icon:hover { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; padding-top: 28px; font-size: .85rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ------------------------------------------------------- botón WhatsApp ---- */

.wa-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center; background: #25D366; color: #fff; font-size: 1.6rem;
    box-shadow: 0 12px 28px -8px rgba(18, 140, 75, .6);
    transition: transform .2s ease;
}
.site a.wa-float { color: #fff; }
.wa-float:hover { transform: scale(1.06); }

/* --------------------------------------------------------- modal agenda ---- */

.agenda-modal { position: fixed; inset: 0; z-index: 1080; display: flex; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 32px); }
.agenda-modal[hidden] { display: none; }
.agenda-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 17, 19, .62); backdrop-filter: blur(4px); }
.agenda-modal__panel {
    position: relative; width: min(960px, 100%); max-height: 92vh; background: #fff;
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column;
}
.agenda-modal__frame { flex: 1 1 auto; width: 100%; height: 560px; border: 0; transition: height .2s ease; }
.agenda-modal__close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm);
}
.agenda-modal__close svg { width: 20px; height: 20px; }

/* ------------------------------------------------- páginas interiores ------ */

.page-hero {
    position: relative; overflow: hidden;
    padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 96px);
    background:
        radial-gradient(800px 420px at 90% 0%, rgba(0, 165, 127, .1), transparent 60%),
        linear-gradient(180deg, #F7FAF9, #fff);
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(14, 22, 24, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 22, 24, .04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 60% 70% at 70% 20%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 20%, #000 20%, transparent 75%);
}
.page-hero > .container { position: relative; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.032em; }
.page-hero .lead { max-width: 620px; margin-bottom: 28px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { color: var(--line-2); }

.prose { font-size: 1.04rem; color: var(--ink-3); line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--brand-700); border-bottom: 1px solid var(--brand-100); }
.prose a:hover { border-color: var(--brand-700); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); font-size: 1.1rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg-soft); }
.prose strong { color: var(--ink); }

/* Detalle alterno (funcionalidades) */
.detail-rows { display: grid; gap: clamp(64px, 8vw, 112px); }
.detail-rows .split h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }
.detail-rows .split p { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
    font-size: .92rem; font-weight: 500; transition: border-color .15s ease, box-shadow .15s ease;
}
.chip svg { width: 18px; height: 18px; color: var(--brand-700); }
.chip:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* Timeline (nosotros) */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--brand), var(--line)); }
.timeline__item { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 24px; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line-2);
    font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--ink); position: relative; z-index: 1;
}
.timeline__item:last-child .timeline__dot { background: var(--ink); color: var(--brand-300); border-color: var(--ink); }
.timeline__item small { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin: 4px 0 6px; }
.timeline__item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.timeline__item p { color: var(--muted); margin: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 24px; border-radius: var(--radius-lg); background: var(--dark-2); border: 1px solid var(--dark-line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--brand-300); margin-bottom: 14px; }
.stat span { color: var(--dark-muted); font-size: .94rem; line-height: 1.5; display: block; }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { display: flex; flex-direction: column; }
.member__photo {
    aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
    background: var(--bg-tint); display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: var(--brand-700);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); transition: filter .3s ease, transform .5s ease; }
.member:hover .member__photo img { filter: none; transform: scale(1.03); }
.member small { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.member h3 { font-size: 1.12rem; margin: 6px 0 4px; }
.member p { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.member a { font-size: .86rem; font-weight: 600; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.member a:hover { color: var(--brand-700); }

/* Blog */
.blog-search { display: flex; gap: 8px; max-width: 520px; margin-top: 8px; }
.blog-search input {
    flex: 1; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
    font: inherit; background: #fff;
}
.blog-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--brand-50); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter a {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); font-size: .88rem; font-weight: 500; background: #fff;
}
.cat-filter a:hover, .cat-filter a.is-active { border-color: var(--ink); }
.cat-filter a.is-active { background: var(--ink); color: #fff; }
.cat-filter i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cat-filter em { font-style: normal; font-size: .78rem; color: var(--muted-2); }
.cat-filter a.is-active em { color: rgba(255, 255, 255, .7); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; position: relative; }
.post-card__media {
    aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--brand-50), var(--bg-tint));
    display: grid; place-items: center; color: var(--brand-700);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__media svg { width: 48px; height: 48px; opacity: .5; }
.post-card__cat { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.post-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--brand-700); }
.post-card p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; color: var(--muted-2); margin-top: auto; }
.post-card--featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.post-card--featured .post-card__media { margin: 0; aspect-ratio: 16 / 11; }
.post-card--featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.025em; }

.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination-wrap .page-link, .pagination-wrap .pagination a, .pagination-wrap .pagination span {
    display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: 999px; border: 1px solid var(--line); font-size: .9rem; background: #fff;
}
.pagination-wrap .active .page-link, .pagination-wrap .active span { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination-wrap .disabled span { opacity: .4; }

.article-head { max-width: 820px; }
.article-cover { border-radius: var(--radius-xl); overflow: hidden; margin-top: 40px; aspect-ratio: 16 / 8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.aside-card--dark { background: var(--dark); color: #fff; border-color: var(--dark); }
.aside-card--dark h3 { color: #fff; }
.aside-card--dark p { color: var(--dark-muted); }
.aside-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.aside-card p { font-size: .9rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-3); }

/* Reveal al hacer scroll */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .float-card { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===================================================== MOCKUPS DE PRODUCTO ===
   Pantallas dibujadas en HTML/CSS: nítidas a cualquier tamaño, sin capturas
   que se queden viejas y sin datos reales de pacientes.
   ============================================================================ */

.mock {
    background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--ink);
}
.mock__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #F7F9F9; border-bottom: 1px solid var(--line); }
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: #E1E6E5; display: block; }
.mock__url {
    flex: 1; max-width: 320px; margin-inline: auto; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px;
    font-size: 11px; color: var(--muted-2);
}
.mock__app { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 380px; }
.mock__side { background: var(--dark); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.mock__side i { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .07); display: block; }
.mock__side i.is-on { background: var(--brand); }
.mock__side i:first-child { background: none; border: 2px solid rgba(255, 255, 255, .8); width: 20px; height: 20px; border-radius: 3px; position: relative; margin-bottom: 8px; }
.mock__body { padding: 16px 18px; display: grid; gap: 12px; align-content: start; background: #FBFCFC; }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock__patient { display: flex; align-items: center; gap: 10px; }
.mock__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-tint); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 11px; }
.mock__patient b { display: block; font-size: 13px; }
.mock__patient span { color: var(--muted); font-size: 11px; }
.mock__tag { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.mock__tag--warn { background: #FBF0DC; color: #9A640B; }
.mock__tag--blue { background: #E7EEFD; color: #2556B8; }
.mock__tag--dark { background: var(--ink); color: #fff; }
.mock__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.mock__tabs span { padding: 6px 10px; font-size: 11.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.mock__tabs span.is-on { color: var(--ink); font-weight: 600; border-color: var(--brand); }
.mock__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mock__card-title { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.mock__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock__grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.eye-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.eye-table th, .eye-table td { padding: 6px 6px; text-align: center; border-bottom: 1px solid var(--line); font-size: 12px; }
.eye-table tr:last-child td { border-bottom: 0; }
.eye-table th { font-size: 10px; color: var(--muted-2); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.eye-table td:first-child { text-align: left; }
.eye { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11px; }
.eye::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--od); }
.eye--oi::before { background: var(--oi); }

.kpi b { display: block; font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 10.5px; }
.kpi small { font-size: 10.5px; font-weight: 600; color: var(--brand-600); }

.spark { width: 100%; height: 72px; display: block; }

.mock-agenda { display: grid; grid-template-columns: 38px repeat(3, 1fr); gap: 0; font-size: 11px; }
.mock-agenda__col-head { padding: 6px 8px; font-weight: 600; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mock-agenda__hour { padding: 0 6px; height: 40px; color: var(--muted-2); font-size: 10px; border-top: 1px solid var(--line); }
.mock-agenda__cell { position: relative; height: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.appt {
    position: absolute; left: 4px; right: 4px; top: 3px; z-index: 1;
    border-radius: 7px; padding: 5px 7px; font-size: 10.5px; line-height: 1.25;
    background: var(--brand-50); border-left: 3px solid var(--brand); color: var(--ink);
}
.appt b { display: block; font-size: 10.5px; }
.appt span { color: var(--muted); }
.appt--blue { background: #E9F0FE; border-color: var(--oi); }
.appt--dark { background: var(--ink); border-color: var(--brand-300); color: #fff; }
.appt--dark span { color: rgba(255, 255, 255, .7); }
.appt--warn { background: #FDF3E1; border-color: var(--warn); }
.appt--h2 { height: 74px; }
.appt--h3 { height: 114px; }

.flow { display: grid; gap: 8px; }
.flow__row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.flow__check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--brand); color: #fff; }
.flow__check svg { width: 12px; height: 12px; }
.flow__check--todo { background: #fff; border: 1.5px dashed var(--line-2); }
.flow__row b { font-size: 12px; }
.flow__row span { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.flow__row.is-now { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }

.signature { height: 54px; border: 1px dashed var(--line-2); border-radius: 10px; display: grid; place-items: center; background: #fff; }
.signature svg { width: 140px; height: 40px; color: var(--ink); }

.chat { display: grid; gap: 8px; padding: 14px; background: #F2EEE7; background-image: radial-gradient(rgba(0, 0, 0, .025) 1px, transparent 1px); background-size: 14px 14px; }
.chat__msg { max-width: 82%; padding: 8px 10px 6px; border-radius: 12px; font-size: 12.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); background: #fff; }
.chat__msg small { display: block; text-align: right; font-size: 9.5px; color: var(--muted-2); margin-top: 2px; }
.chat__msg--out { margin-left: auto; background: #DCF7C5; }
.chat__msg--sys { margin: 4px auto; max-width: none; background: rgba(255, 255, 255, .85); font-size: 11px; color: var(--muted); padding: 4px 10px; border-radius: 8px; box-shadow: none; }
.chat__slots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat__slots span { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--brand); color: var(--brand-700); background: #fff; }
.chat__slots span.is-on { background: var(--brand); color: #fff; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0B5C4A; color: #fff; }
.chat-head__avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.chat-head__avatar svg { width: 16px; height: 16px; }
.chat-head b { display: block; font-size: 12.5px; }
.chat-head span { font-size: 10.5px; opacity: .8; }

.inbox { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 340px; }
.inbox__list { border-right: 1px solid var(--line); background: #fff; }
.inbox__item { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 10px; border-bottom: 1px solid var(--line); }
.inbox__item.is-on { background: var(--brand-50); }
.inbox__item i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--bg-soft); color: var(--muted); font-style: normal; }
.inbox__item b { font-size: 11.5px; display: block; }
.inbox__item span { font-size: 10.5px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.invoice { display: grid; gap: 10px; }
.invoice__row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.invoice__row span { color: var(--muted); }
.invoice__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.invoice__total b { font-size: 20px; letter-spacing: -.02em; }
.qr { width: 56px; height: 56px; border-radius: 6px; background:
    conic-gradient(from 90deg at 2px 2px, var(--ink) 25%, transparent 0) 0 0 / 8px 8px,
    #fff; border: 4px solid #fff; outline: 1px solid var(--line); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: var(--brand-100); display: block; }
.bars i.is-on { background: var(--brand); }

.progress { height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }

/* ================================================================ RESPONSIVE */

@media (max-width: 1120px) {
    .nav__wa span, .nav__login { display: none; }
    .trustbar__inner { grid-template-columns: repeat(3, 1fr); }
    .trustbar__item:nth-child(4) { border-left: 0; }
    .trustbar__item:nth-child(n + 4) { border-top: 1px solid var(--line); }
    .journey { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .journey::before { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .included { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .team { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
    :root { --header-h: 64px; }
    .nav__menu, .nav__actions { display: none; }
    .nav__toggle { display: inline-flex; }
    /* Menú abierto: la cabecera entera pasa a ser un panel a pantalla completa.
       (No se usan hijos position:fixed: el backdrop-filter de la cabecera crea
       un bloque contenedor y los dejaría pegados a ella.) */
    .nav { flex-wrap: wrap; height: auto; min-height: var(--header-h); gap: 0 16px; }
    .nav__brand { height: var(--header-h); }
    .nav__toggle { order: 2; }
    .nav__menu { order: 3; }
    .nav__actions { order: 4; }
    .site-header.is-open {
        position: fixed; inset: 0; overflow-y: auto; background: #fff;
        backdrop-filter: none; -webkit-backdrop-filter: none;
    }
    .site-header.is-open .nav__menu,
    .site-header.is-open .nav__actions { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 0; }
    .site-header.is-open .nav__menu { gap: 0; border-top: 1px solid var(--line); }
    .site-header.is-open .nav__actions { padding: 24px 0 32px; gap: 10px; }
    .site-header.is-open .nav__link, .site-header.is-open .nav__trigger { padding: 16px 4px; font-size: 1.08rem; border-radius: 0; border-bottom: 1px solid var(--line); justify-content: space-between; width: 100%; }
    .site-header.is-open .nav__wa span, .site-header.is-open .nav__login { display: inline; }
    .site-header.is-open .nav__actions .btn { width: 100%; min-height: 52px; }
    .site-header.is-open .nav__wa, .site-header.is-open .nav__login { justify-content: center; text-align: center; }
    .nav__dropdown { width: 100%; }
    .mega { position: static; width: 100%; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; }
    .nav__dropdown.is-open .mega { display: grid; }
    .mega__aside { display: none; }

    .hero__grid, .page-hero__grid, .split, .tour, .tour__panel-copy, .faq-layout, .cta-band, .post-card--featured, .article-layout { grid-template-columns: minmax(0, 1fr); }
    .split--reverse > :first-child { order: 0; }
    .hero__visual { margin-top: 16px; }
    .hero__rings { width: 520px; height: 520px; right: -200px; }
    .float-card--a { left: -8px; bottom: -24px; }
    .float-card--b { right: -8px; top: -28px; }
    .pains { grid-template-columns: 1fr 1fr; }
    .tour__tabs { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
    .tour__tabs::-webkit-scrollbar { display: none; }
    .tour__tab { flex: none; width: auto; padding: 10px 14px; align-items: center; }
    .tour__tab small { display: none; }
    .tour__tab-icon { width: 32px; height: 32px; }
    .roles { grid-template-columns: 1fr 1fr; }
    .role, .role:nth-child(4), .role:nth-child(5) { grid-column: auto; }
    .role:nth-child(5) { grid-column: 1 / -1; }
    .steps, .features-grid, .features-grid--4, .resources, .posts { grid-template-columns: 1fr 1fr; }
    .faq-layout .section-head { position: static; }
    .included .checklist { grid-template-columns: 1fr 1fr; }
    .article-aside { position: static; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    .section { padding-block: 64px; }
    .hero__ctas .btn { width: 100%; }
    .hero__rings { display: none; }
    .float-card { display: none; }
    .trustbar__inner { grid-template-columns: 1fr 1fr; }
    .trustbar__item { padding: 16px 12px; font-size: .84rem; }
    .trustbar__item:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
    .trustbar__item:nth-child(even) { border-left: 1px solid var(--line); }
    .trustbar__item:nth-child(-n + 2) { border-top: 0; }
    .trustbar__item:last-child { grid-column: 1 / -1; border-left: 0; }
    .pains, .roles, .steps, .features-grid, .features-grid--4, .resources, .posts, .channels, .stats, .included .checklist { grid-template-columns: 1fr; }
    .role:nth-child(5) { grid-column: auto; }
    .journey { grid-template-columns: 1fr 1fr; }
    .team { grid-template-columns: 1fr 1fr; gap: 16px; }
    .compare { overflow-x: auto; }
    .compare table { min-width: 560px; font-size: .88rem; }
    .compare th, .compare td { padding: 12px 12px; }
    .faq__answer { padding-right: 0; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .cta-band { border-radius: var(--radius-lg); }
    .cta-band__actions, .cta-band__actions .btn { width: 100%; min-width: 0; }
    .cta-band::before, .cta-band::after { opacity: .5; }
    .mock { font-size: 11.5px; }
    .mock__app { grid-template-columns: 40px minmax(0, 1fr); }
    .mock__side i { width: 22px; height: 22px; }
    .mock__body { padding: 12px; }
    .mock__grid2 { grid-template-columns: 1fr; }
    .inbox { grid-template-columns: 1fr; }
    .inbox__list { display: none; }
    .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* FAQ: la columna de título es estrecha; el h2 baja un punto para no partirse en cinco líneas */
.faq-layout .h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); }

/* ------------------------------------------------- precios por usuarios -- */

.pricing-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; font-size: .9rem; color: var(--ink-3); }
.pricing-pills li { display: inline-flex; align-items: center; gap: 8px; }
.pricing-pills svg { width: 16px; height: 16px; color: var(--brand); }

.billing-toggle {
    display: flex; width: max-content; max-width: 100%; margin: -16px auto 32px; padding: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.billing-toggle button {
    border: 0; background: none; cursor: pointer; padding: 10px 20px; border-radius: 999px;
    font-weight: 600; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
    transition: background-color .18s ease, color .18s ease;
}
.billing-toggle button[aria-checked="true"] { background: var(--ink); color: #fff; }
.billing-toggle span { font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); }
.billing-toggle button[aria-checked="true"] span { background: var(--brand); color: var(--ink); }

.plans--4 { grid-template-columns: repeat(4, 1fr); }
.plan__text { font-size: .9rem; color: var(--muted); margin: -8px 0 22px; min-height: 4.2em; }
.plan--featured .plan__text { color: var(--dark-muted); }
.plan__price--custom { font-size: 2rem; }
.plan__users {
    display: flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 14px 0;
    border-block: 1px solid var(--line); font-weight: 600; font-size: .98rem; color: var(--ink);
}
.plan__users svg { width: 20px; height: 20px; color: var(--brand-600); }
.plan--featured .plan__users { color: #fff; border-color: var(--dark-line); }
.plan--featured .plan__users svg { color: var(--brand-300); }

.included-groups { margin-top: 32px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.included-groups h3 { font-size: 1.3rem; margin-bottom: 24px; }
.included-groups__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.included-groups__title { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 14px; }
.included-groups .checklist li { font-size: .9rem; }
.included-groups__note { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink-3); }

@media (max-width: 1120px) {
    .plans--4, .included-groups__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .plans--4, .included-groups__grid { grid-template-columns: 1fr; }
    .plan__text { min-height: 0; }
    .billing-toggle button { padding: 10px 14px; font-size: .86rem; }
}

/* Recepción con IA: tarifas por uso bajo los planes */
.ai-usage {
    margin-top: 16px; padding: 24px 28px; border-radius: var(--radius-lg);
    background: var(--dark); color: #fff;
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center;
}
.ai-usage__intro { display: flex; gap: 16px; align-items: flex-start; }
.ai-usage__icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: rgba(0, 165, 127, .16); color: var(--brand-300); }
.ai-usage__icon svg { width: 22px; height: 22px; }
.ai-usage h3 { color: #fff; font-size: 1.12rem; margin-bottom: 6px; }
.ai-usage p { color: var(--dark-muted); font-size: .92rem; margin: 0; }
.ai-usage__rates { display: grid; gap: 10px; }
.ai-usage__rates li {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius);
    background: var(--dark-2); border: 1px solid var(--dark-line); font-size: .94rem;
}
.ai-usage__rates svg { width: 18px; height: 18px; color: var(--brand-300); flex: none; }
.ai-usage__rates span { color: var(--dark-muted); }
.ai-usage__rates b { margin-left: auto; font-family: var(--font-display); font-size: 1.15rem; color: #fff; white-space: nowrap; }
.ai-usage__rates small { font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--dark-muted); }
.ai-usage__rates span small { display: block; margin-top: 2px; color: var(--brand-300); }
@media (max-width: 960px) { .ai-usage { grid-template-columns: 1fr; } }
