/* ============================================================
   HC MEDICA · Sistema Integral de Gestión Clínica
   Hoja de estilos principal — julio 2026
   Marca: azul profundo #0F70B5 · celeste #59C4EF
   ============================================================ */

:root {
    --navy: #082A44;
    --navy-deep: #051E32;
    --ink: #102536;
    --blue: #0F70B5;
    --blue-dark: #0A5A94;
    --sky: #59C4EF;
    --sky-soft: #EAF6FD;
    --sky-mist: #F3FAFE;
    --bg: #F7FBFE;
    --paper: #FFFFFF;
    --line: #DFEAF3;
    --line-soft: #E9F1F8;
    --text: #3D5266;
    --text-soft: #62788C;
    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 2px rgba(8, 42, 68, .05), 0 4px 14px rgba(8, 42, 68, .05);
    --shadow-md: 0 2px 6px rgba(8, 42, 68, .06), 0 14px 34px rgba(8, 42, 68, .09);
    --shadow-lg: 0 4px 10px rgba(8, 42, 68, .07), 0 28px 60px rgba(8, 42, 68, .14);
    --radius: 18px;
    --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
ul { list-style: none; }

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

section { scroll-margin-top: 96px; }

/* ---------- Tipografía base ---------- */
h1, h2, h3 { color: var(--navy); }

h1 {
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(2.5rem, 5.2vw, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(1.9rem, 3.4vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
}

h3 { font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }

.serif-accent { font-style: italic; color: var(--blue); }

/* ---------- Kicker de sección (numeración de brochure) ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.1rem;
}

.kicker .k-num {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0;
    color: var(--sky);
}

.kicker::after {
    content: "";
    width: 44px;
    height: 1px;
    background: linear-gradient(90deg, var(--sky), transparent);
}

.kicker.centered { justify-content: center; }
.kicker.centered::before {
    content: "";
    width: 44px; height: 1px;
    background: linear-gradient(-90deg, var(--sky), transparent);
}

.sec { padding: 6.5rem 0; }
.sec-tight { padding: 5rem 0; }

.sec-head { max-width: 720px; margin-bottom: 3.2rem; }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 1rem; font-size: 1.08rem; color: var(--text-soft); }

.bg-mist { background: linear-gradient(180deg, var(--sky-mist) 0%, var(--bg) 100%); }
.bg-paper { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------- Barra superior ---------- */
.topbar {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .85);
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    padding: .55rem 1rem;
}
.topbar .dot { color: var(--sky); margin: 0 .55rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(8, 42, 68, .06);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 2rem;
}

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 46px; width: auto; }
.brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .01em;
    color: var(--navy);
}
.brand-name em { font-style: normal; color: var(--blue); }

.main-nav ul { display: flex; align-items: center; gap: 1.9rem; }

.main-nav a {
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding: .35rem 0;
    transition: color .25s ease;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--sky));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-cta {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff !important;
    padding: .62rem 1.35rem !important;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(15, 112, 181, .3);
    transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 112, 181, .4); }

.nav-badge {
    background: linear-gradient(135deg, var(--sky), var(--blue));
    color: #fff;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: .18rem .45rem;
    border-radius: 999px;
    margin-left: .3rem;
    vertical-align: 2px;
}

.mobile-toggle {
    display: none;
    font-size: 1.35rem;
    color: var(--navy);
    cursor: pointer;
    padding: .4rem;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: .98rem;
    padding: .95rem 1.9rem;
    border-radius: 999px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(15, 112, 181, .32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(15, 112, 181, .42); }

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--line);
    background: rgba(255, 255, 255, .7);
}
.btn-ghost:hover { border-color: var(--sky); color: var(--blue); transform: translateY(-3px); }

.btn-light {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}
.btn-light:hover { transform: translateY(-3px); }

.btn-wa {
    background: #1EBE5D;
    color: #fff;
    box-shadow: 0 10px 26px rgba(30, 190, 93, .32);
}
.btn-wa:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30, 190, 93, .42); }

.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 5.5rem 0 6rem;
    overflow: hidden;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(89, 196, 239, .18), transparent 60%),
        radial-gradient(700px 500px at -10% 30%, rgba(15, 112, 181, .10), transparent 55%),
        linear-gradient(180deg, #FDFEFF 0%, var(--sky-mist) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 112, 181, .10) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(700px 480px at 78% 18%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(700px 480px at 78% 18%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 4rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(255, 255, 255, .85);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .45rem 1.1rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.6rem;
}
.hero-eyebrow i { color: var(--sky); }

.hero h1 { margin-bottom: 1.4rem; }

.hero-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.22rem;
    color: var(--blue-dark);
    margin-bottom: 1.1rem;
}

.hero-sub {
    font-size: 1.06rem;
    color: var(--text-soft);
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }

.norm-pills { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.norm-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-right: .3rem;
}
.norm-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .4rem .95rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--navy);
    box-shadow: var(--shadow-sm);
}
.norm-pill i { color: var(--blue); font-size: .72rem; }

/* Visual del hero */
.hero-visual { position: relative; }

.hero-frame {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-4deg) rotateX(1.5deg);
    transition: transform .6s ease;
}
.hero-frame:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }

.hero-frame-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    background: var(--sky-mist);
    border-bottom: 1px solid var(--line-soft);
}
.hero-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero-frame-bar span:nth-child(1) { background: #FF8A80; }
.hero-frame-bar span:nth-child(2) { background: #FFD54F; }
.hero-frame-bar span:nth-child(3) { background: #81C784; }
.hero-frame-url {
    flex: 1;
    text-align: center;
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: .04em;
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .65rem;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .7rem 1rem;
    box-shadow: var(--shadow-md);
    font-size: .8rem;
    font-weight: 700;
    color: var(--navy);
    animation: floaty 6s ease-in-out infinite;
}
.float-chip small { display: block; font-weight: 600; color: var(--text-soft); font-size: .68rem; }
.float-chip .fc-icon {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: #fff;
    font-size: .85rem;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    flex-shrink: 0;
}
.chip-1 { top: -22px; right: 6%; animation-delay: 0s; }
.chip-2 { bottom: -20px; left: -4%; animation-delay: 2s; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Franja de métricas */
.stat-strip {
    position: relative;
    margin-top: 4.5rem;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    text-align: center;
    padding: 1.6rem 1rem;
    border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }
.stat b {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
}
.stat b i { font-style: italic; color: var(--blue); }
.stat span {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-soft);
}

/* ---------- Tarjetas "Por qué" ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.why-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(89, 196, 239, .6); }
.why-card:hover::before { transform: scaleX(1); }

.why-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 1.2rem;
    color: var(--blue);
    background: var(--sky-soft);
    margin-bottom: 1.2rem;
    transition: background .3s ease, color .3s ease;
}
.why-card:hover .why-icon { background: linear-gradient(135deg, var(--blue), var(--sky)); color: #fff; }

.why-card h3 { margin-bottom: .55rem; font-size: 1.08rem; }
.why-card p { font-size: .93rem; color: var(--text-soft); }

/* ---------- Banda oscura: seguridad ---------- */
.band-dark {
    position: relative;
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(89, 196, 239, .14), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(15, 112, 181, .22), transparent 60%),
        linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255, 255, 255, .82);
    overflow: hidden;
}
.band-dark::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(89, 196, 239, .16) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
    -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
}
.band-dark .container { position: relative; }

.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .kicker { color: var(--sky); }
.band-dark .sec-head p { color: rgba(255, 255, 255, .72); }

.security-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 4rem;
    align-items: center;
}

.security-copy p.lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, .78);
    margin: 1.1rem 0 2rem;
}
.security-copy .lead strong { color: #fff; }

.sec-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.sec-feature {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    backdrop-filter: blur(6px);
    transition: background .3s ease, border-color .3s ease;
}
.sec-feature:hover { background: rgba(255, 255, 255, .09); border-color: rgba(89, 196, 239, .45); }
.sec-feature i { color: var(--sky); font-size: 1.05rem; margin-top: .2rem; }
.sec-feature b { display: block; color: #fff; font-size: .95rem; margin-bottom: .15rem; }
.sec-feature span { font-size: .85rem; color: rgba(255, 255, 255, .65); }

.shield-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
}
.shield-rings, .shield-rings::before, .shield-rings::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(89, 196, 239, .25);
}
.shield-rings { width: 240px; height: 240px; animation: pulse-ring 4s ease-in-out infinite; }
.shield-rings::before { inset: -45px; border-color: rgba(89, 196, 239, .15); }
.shield-rings::after { inset: -95px; border-color: rgba(89, 196, 239, .08); }

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: .85; }
}

.shield-core {
    position: relative;
    width: 150px; height: 150px;
    border-radius: 40px;
    display: grid; place-items: center;
    font-size: 3.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue) 0%, var(--sky) 130%);
    box-shadow: 0 24px 60px rgba(15, 112, 181, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.shield-tag {
    position: absolute;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .5rem .9rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    animation: floaty 7s ease-in-out infinite;
}
.shield-tag i { color: var(--sky); }
.st-1 { top: 8%; left: 6%; animation-delay: .5s; }
.st-2 { top: 16%; right: 2%; animation-delay: 1.8s; }
.st-3 { bottom: 14%; left: 2%; animation-delay: 3s; }
.st-4 { bottom: 6%; right: 8%; animation-delay: 4.2s; }

/* ---------- Marco legal ---------- */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-bottom: 3.5rem;
}

.legal-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.legal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.legal-abbr {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
}
.legal-role {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--sky);
    margin: .5rem 0 1.2rem;
}

.legal-block { margin-bottom: 1.1rem; }
.legal-block:last-child { margin-bottom: 0; }
.legal-block b {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .4rem;
}
.legal-block p { font-size: .89rem; color: var(--text-soft); }

/* Matriz de cumplimiento */
.matrix-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.matrix-head {
    padding: 1.8rem 2.2rem 1.4rem;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.matrix-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; }

.table-scroll { overflow-x: auto; }

.matrix-table { width: 100%; border-collapse: collapse; min-width: 720px; }

.matrix-table th {
    text-align: left;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--sky-mist);
    padding: .95rem 2.2rem;
    border-bottom: 1px solid var(--line);
}

.matrix-table td {
    padding: 1.15rem 2.2rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: .92rem;
    vertical-align: top;
}
.matrix-table tr:last-child td { border-bottom: none; }
.matrix-table tr:hover td { background: var(--sky-mist); }

.matrix-table td:first-child { width: 42%; }
.matrix-table td b { color: var(--navy); display: block; margin-bottom: .2rem; font-size: .94rem; }
.matrix-table td small {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sky);
}
.matrix-table td:last-child { color: var(--text-soft); }
.matrix-table .td-check { color: var(--blue); margin-right: .5rem; }

.matrix-note {
    padding: 1.2rem 2.2rem;
    background: var(--sky-mist);
    border-top: 1px solid var(--line-soft);
    font-size: .8rem;
    color: var(--text-soft);
    font-style: italic;
}

/* ---------- Historia clínica: pestañas ---------- */
.hc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 2.2rem;
}

.hc-tab-btn {
    font-family: var(--sans);
    font-size: .84rem;
    font-weight: 700;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .62rem 1.25rem;
    cursor: pointer;
    transition: all .25s ease;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.hc-tab-btn i { color: var(--sky); transition: color .25s ease; }
.hc-tab-btn:hover { border-color: var(--sky); color: var(--blue); }
.hc-tab-btn.active {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(15, 112, 181, .3);
}
.hc-tab-btn.active i { color: var(--sky); }

.hc-panel { display: none; animation: fadeUp .45s ease; }
.hc-panel.active { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.hc-panel-intro {
    font-size: .98rem;
    color: var(--text-soft);
    max-width: 760px;
    margin-bottom: 1.8rem;
}
.hc-panel-intro strong { color: var(--navy); }

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.format-item {
    display: flex;
    gap: .95rem;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.15rem 1.25rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.format-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(89, 196, 239, .55); }

.format-code {
    flex-shrink: 0;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .05em;
    color: var(--blue);
    background: var(--sky-soft);
    border-radius: 8px;
    padding: .4rem .55rem;
    line-height: 1.2;
    text-align: center;
    min-width: 58px;
    margin-top: .1rem;
}
.format-item b { display: block; font-size: .92rem; color: var(--navy); margin-bottom: .15rem; }
.format-item span { font-size: .84rem; color: var(--text-soft); }

.hc-cta-note {
    margin-top: 2.4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: linear-gradient(135deg, var(--sky-soft), #fff);
    border: 1px dashed rgba(15, 112, 181, .4);
    border-radius: var(--radius);
    padding: 1.4rem 1.8rem;
}
.hc-cta-note i { font-size: 1.6rem; color: var(--blue); }
.hc-cta-note p { font-size: .95rem; color: var(--text); }
.hc-cta-note p strong { color: var(--navy); }

/* ---------- Secciones con video (split) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }

.split-media { position: relative; }

.video-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    background: #fff;
}
.video-frame video { width: 100%; height: auto; }

.video-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
    pointer-events: none;
}

.media-halo {
    position: absolute;
    inset: -8% -6%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(89, 196, 239, .25), transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.split-copy .kicker { margin-bottom: .9rem; }
.split-copy h2 { margin-bottom: 1.1rem; }
.split-copy > p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 1.6rem; }

.check-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
}
.check-list li:last-child { border-bottom: none; }

.check-ico {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-size: .72rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    margin-top: .15rem;
}
.check-list b { display: block; color: var(--navy); font-size: .98rem; margin-bottom: .15rem; }
.check-list p { font-size: .9rem; color: var(--text-soft); }

/* ---------- Grillas de módulos ---------- */
.mod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
}
.mod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.mod-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1.5rem 1.4rem;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.mod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(89, 196, 239, .55); }

.mod-icon {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: grid; place-items: center;
    font-size: .95rem;
    color: var(--blue);
    background: var(--sky-soft);
    margin-bottom: 1rem;
}
.mod-card h3 { font-size: .98rem; margin-bottom: .4rem; }
.mod-card p { font-size: .86rem; color: var(--text-soft); }

/* Encabezado de subsección dentro de una sección */
.sub-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 3.6rem 0 1.8rem;
}
.sub-head:first-child { margin-top: 0; }
.sub-head .k-num {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--sky);
}
.sub-head h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.sub-head .badge-plus {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: #fff;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    border-radius: 999px;
    padding: .3rem .7rem;
    text-transform: uppercase;
    transform: translateY(-3px);
}

/* ---------- Catálogos precargados ---------- */
.catalog-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.catalog-chip {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    transition: transform .25s ease, border-color .25s ease;
}
.catalog-chip:hover { transform: translateY(-3px); border-color: rgba(89, 196, 239, .55); }
.catalog-chip i { color: var(--blue); font-size: 1.05rem; width: 22px; text-align: center; }
.catalog-chip b { display: block; font-size: .9rem; color: var(--navy); }
.catalog-chip span { font-size: .78rem; color: var(--text-soft); }

/* ---------- Aliado tecnológico ---------- */
.ally-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: 2.5rem;
}
.ally-card {
    text-align: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    padding: 2.2rem 1.8rem;
    backdrop-filter: blur(6px);
    transition: background .3s ease, transform .3s ease;
}
.ally-card:hover { background: rgba(255, 255, 255, .1); transform: translateY(-5px); }
.ally-icon {
    width: 58px; height: 58px;
    margin: 0 auto 1.2rem;
    border-radius: 16px;
    display: grid; place-items: center;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    box-shadow: 0 12px 30px rgba(15, 112, 181, .4);
}
.ally-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: .5rem; }
.ally-card p { font-size: .88rem; color: rgba(255, 255, 255, .68); }

/* ---------- Planes ---------- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 460px));
    justify-content: center;
    gap: 1.8rem;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2.6rem 2.4rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.plan-card.featured {
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(89, 196, 239, .16), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    border: 1px solid rgba(89, 196, 239, .35);
    box-shadow: 0 30px 70px rgba(8, 42, 68, .35);
    color: rgba(255, 255, 255, .8);
}
.plan-card.featured:hover { box-shadow: 0 36px 80px rgba(8, 42, 68, .45); }

.plan-flag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--sky), var(--blue));
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .45rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 112, 181, .45);
    white-space: nowrap;
}

.plan-icon {
    width: 54px; height: 54px;
    border-radius: 15px;
    display: grid; place-items: center;
    font-size: 1.25rem;
    color: var(--blue);
    background: var(--sky-soft);
    margin-bottom: 1.4rem;
}
.plan-card.featured .plan-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    box-shadow: 0 10px 26px rgba(15, 112, 181, .45);
}

.plan-name { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; }
.plan-card.featured .plan-name { color: #fff; }
.plan-for { font-size: .9rem; color: var(--text-soft); margin: .3rem 0 1.6rem; }
.plan-card.featured .plan-for { color: rgba(255, 255, 255, .6); }

.plan-price { display: flex; align-items: baseline; gap: .5rem; }
.plan-amount {
    font-family: var(--serif);
    font-size: 3.4rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.02em;
}
.plan-card.featured .plan-amount { color: #fff; }
.plan-cur { font-size: .95rem; font-weight: 700; color: var(--text-soft); }
.plan-card.featured .plan-cur { color: var(--sky); }
.plan-terms { font-size: .82rem; color: var(--text-soft); margin-top: .5rem; }
.plan-card.featured .plan-terms { color: rgba(255, 255, 255, .55); }

.plan-divider {
    height: 1px;
    background: var(--line-soft);
    margin: 1.7rem 0;
}
.plan-card.featured .plan-divider { background: rgba(255, 255, 255, .14); }

.plan-features { flex: 1; }
.plan-features li {
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    padding: .5rem 0;
    font-size: .93rem;
}
.plan-features i { color: var(--blue); margin-top: .3rem; font-size: .8rem; }
.plan-card.featured .plan-features { color: rgba(255, 255, 255, .82); }
.plan-card.featured .plan-features i { color: var(--sky); }
.plan-features strong { color: var(--navy); }
.plan-card.featured .plan-features strong { color: #fff; }

.plan-renewal {
    margin: 1.6rem 0;
    background: var(--sky-mist);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    padding: .95rem 1.2rem;
    font-size: .84rem;
    color: var(--text-soft);
}
.plan-renewal strong { display: block; color: var(--navy); font-size: .88rem; }
.plan-card.featured .plan-renewal {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .6);
}
.plan-card.featured .plan-renewal strong { color: #fff; }

.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--navy);
    transition: all .28s ease;
}
.plan-cta:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.plan-card.featured .plan-cta {
    background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 12px 30px rgba(15, 112, 181, .5);
}
.plan-card.featured .plan-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(15, 112, 181, .6); }

.plans-foot {
    text-align: center;
    margin-top: 2.4rem;
    font-size: .9rem;
    color: var(--text-soft);
}
.plans-foot i { color: var(--blue); margin-right: .4rem; }

/* ---------- CTA final ---------- */
.final-cta {
    position: relative;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(700px 380px at 50% -20%, rgba(89, 196, 239, .3), transparent 65%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(89, 196, 239, .14) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: radial-gradient(60% 80% at 50% 20%, #000, transparent);
    -webkit-mask-image: radial-gradient(60% 80% at 50% 20%, #000, transparent);
}
.final-cta .container { position: relative; max-width: 760px; }

.final-cta h2 { color: #fff; margin-bottom: 1.2rem; }
.final-cta .quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--sky);
    margin-bottom: 2.2rem;
}
.final-cta p.sub { color: rgba(255, 255, 255, .72); margin-bottom: 2.4rem; font-size: 1.04rem; }
.final-cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .6);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand img {
    height: 64px;
    margin-bottom: 1rem;
    background: #fff;
    padding: .55rem .85rem;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.footer-brand p { font-size: .88rem; max-width: 320px; }
.footer-brand .f-tagline {
    font-family: var(--serif);
    font-style: italic;
    color: var(--sky);
    margin-top: .8rem;
    font-size: .95rem;
}

.footer-col h4 {
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: .65rem; }
.footer-col a { color: rgba(255, 255, 255, .6); font-size: .9rem; transition: color .25s ease; }
.footer-col a:hover { color: var(--sky); }
.footer-col i { width: 20px; color: var(--sky); margin-right: .4rem; font-size: .85rem; }

.social-row { display: flex; gap: .7rem; margin-top: 1.4rem; }
.social-row a {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: all .28s ease;
}
.social-row a:hover { background: linear-gradient(135deg, var(--blue), var(--sky)); transform: translateY(-3px); border-color: transparent; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.8rem;
    font-size: .8rem;
}
.footer-bottom .norm-mini { letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: .7rem; }
.footer-bottom .norm-mini span { color: var(--sky); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 300;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.6rem;
    color: #fff;
    background: #1EBE5D;
    box-shadow: 0 12px 30px rgba(30, 190, 93, .45);
    transition: transform .28s ease;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(30, 190, 93, .5);
    animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
    0% { transform: scale(.9); opacity: 1; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Popup de oferta ---------- */
.offer-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 1.2rem;
    background: rgba(5, 30, 50, .6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}
.offer-overlay.open { opacity: 1; visibility: visible; }

.offer-modal {
    position: relative;
    width: min(600px, 100%);
    max-height: calc(100vh - 2.4rem);
    overflow-y: auto;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 40px 100px rgba(5, 30, 50, .5);
    transform: translateY(26px) scale(.96);
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}
.offer-overlay.open .offer-modal { transform: translateY(0) scale(1); }

.offer-close {
    position: absolute;
    top: 14px; right: 14px;
    z-index: 2;
    width: 38px; height: 38px;
    border: none;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}
.offer-close:hover { background: rgba(255, 255, 255, .3); transform: rotate(90deg); }

.offer-head {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 1.9rem 2rem 1.5rem;
    background:
        radial-gradient(500px 260px at 50% -30%, rgba(89, 196, 239, .35), transparent 65%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    overflow: hidden;
}
.offer-head::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(89, 196, 239, .18) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent);
    -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent);
}
.offer-head > * { position: relative; }

.offer-flag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--sky), var(--blue));
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .45rem 1.1rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 22px rgba(15, 112, 181, .5);
    animation: offer-blink 1.6s ease-in-out infinite;
}
@keyframes offer-blink {
    0%, 100% { box-shadow: 0 8px 22px rgba(15, 112, 181, .5); }
    50% { box-shadow: 0 8px 30px rgba(89, 196, 239, .85); }
}

.offer-head h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.65rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: .6rem;
}
.offer-head h3 em { font-style: italic; color: var(--sky); }
.offer-head p { font-size: .93rem; color: rgba(255, 255, 255, .75); max-width: 440px; margin: 0 auto; }
.offer-head p strong { color: #fff; }

.offer-count {
    display: flex;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.1rem;
}
.oc-box {
    min-width: 66px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(89, 196, 239, .35);
    border-radius: 14px;
    padding: .55rem .5rem .5rem;
    backdrop-filter: blur(6px);
}
.oc-box b {
    display: block;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.oc-box span {
    display: block;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sky);
    margin-top: .3rem;
}
.offer-deadline {
    margin-top: .8rem;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .55);
}

.offer-body { padding: 1.5rem 1.8rem 1.6rem; }

.offer-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.op-card {
    position: relative;
    text-align: center;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    padding: 1.3rem 1rem 1.1rem;
    background: var(--sky-mist);
}
.op-card.op-featured {
    border-color: var(--blue);
    background: linear-gradient(180deg, var(--sky-soft), #fff);
    box-shadow: 0 14px 34px rgba(15, 112, 181, .16);
}
.op-tag {
    position: absolute;
    top: -11px; left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--sky));
    padding: .28rem .8rem;
    border-radius: 999px;
}
.op-name { font-size: .88rem; font-weight: 800; color: var(--navy); margin-bottom: .55rem; }
.op-old {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: line-through;
    text-decoration-color: #E25563;
    text-decoration-thickness: 2px;
    margin-bottom: .1rem;
}
.op-new {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 2.3rem;
    line-height: 1.05;
    color: var(--blue-dark);
    letter-spacing: -0.02em;
}
.op-new small { font-family: var(--sans); font-size: .72rem; font-weight: 800; color: var(--text-soft); letter-spacing: .04em; }
.op-save {
    display: inline-block;
    margin-top: .5rem;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #10863F;
    background: #E4F7EC;
    border-radius: 999px;
    padding: .28rem .7rem;
}

.offer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    width: 100%;
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, #1EBE5D 0%, #13984A 100%);
    border: none;
    border-radius: 999px;
    padding: 1.05rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(30, 190, 93, .4);
    transition: transform .25s ease, box-shadow .25s ease;
}
.offer-cta:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(30, 190, 93, .5); }

.offer-skip {
    display: block;
    width: max-content;
    margin: .9rem auto 0;
    background: none;
    border: none;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .25s ease;
}
.offer-skip:hover { color: var(--blue); }

@media (max-width: 560px) {
    .offer-head { padding: 2rem 1.2rem 1.5rem; }
    .offer-body { padding: 1.4rem 1.2rem 1.6rem; }
    .offer-prices { grid-template-columns: 1fr; gap: 1.1rem; }
    .oc-box { min-width: 58px; }
    .oc-box b { font-size: 1.4rem; }
    .offer-head h3 { font-size: 1.35rem; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .hero-grid, .security-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
    .split.reverse .split-media { order: 1; }
    .split.reverse .split-copy { order: 2; }
    .hero-frame { transform: none; }
    .mod-grid { grid-template-columns: repeat(3, 1fr); }
    .format-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .legal-grid, .ally-grid, .catalog-strip { grid-template-columns: repeat(2, 1fr); }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
    .shield-visual { min-height: 320px; }
    .plans-grid { grid-template-columns: minmax(0, 520px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .sec { padding: 4.5rem 0; }
    .hero { padding: 3.5rem 0 4.5rem; }

    .main-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(320px, 84vw);
        background: #fff;
        box-shadow: -20px 0 60px rgba(8, 42, 68, .18);
        transform: translateX(105%);
        transition: transform .35s cubic-bezier(.22, .61, .36, 1);
        padding: 6rem 2.2rem 2rem;
        z-index: 250;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
    .main-nav a { font-size: 1.05rem; }

    .mobile-toggle { display: block; position: relative; z-index: 260; }

    .mod-grid, .mod-grid.cols-3, .format-grid, .why-grid, .legal-grid,
    .ally-grid, .catalog-strip, .sec-features { grid-template-columns: 1fr; }

    .hero-actions .btn { width: 100%; justify-content: center; }
    .float-chip { display: none; }
    .stat b { font-size: 1.6rem; }
    .stat { padding: 1.2rem .6rem; }
    .matrix-head, .matrix-table th, .matrix-table td, .matrix-note { padding-left: 1.2rem; padding-right: 1.2rem; }
    .plan-card { padding: 2.2rem 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
    .footer-bottom { justify-content: center; text-align: center; }
    .topbar { font-size: .62rem; letter-spacing: .12em; }
    .sub-head { flex-wrap: wrap; }
}
