/* ==========================================================================
   Donkey · Landing pública
   Paleta del proyecto: #0047AB primario, #102B3C navy, #5FA8D3, #62B6CB,
   #CAE9FF, #BEE9E8. Sin dependencias. Contrastes revisados para WCAG AA.
   ========================================================================== */

@font-face {
    font-family: "Google Sans";
    src: url("fonts/GoogleSans-VariableFont.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --blue: #0047AB;          /* primario · 8.4:1 con blanco */
    --blue-hover: #003C91;
    --blue-bright: #1E6FD9;   /* acentos y degradados · 4.9:1 con blanco */
    --navy: #102B3C;
    --navy-2: #163548;
    --navy-deep: #0B1D28;
    --ink: #050E14;
    --sky: #5FA8D3;           /* solo gráficos o sobre fondo oscuro */
    --sky-text: #8EC9EC;      /* texto pequeño sobre navy · 8.2:1 */
    --aqua: #62B6CB;          /* solo gráficos */
    --surface: #F5FBFF;
    --surface-2: #EDF4FF;
    --pale: #CAE9FF;
    --frozen: #BEE9E8;
    --muted: #42525E;         /* texto secundario · 7.7:1 */
    --on-dark: #C9DCE8;       /* texto secundario sobre navy · 10.4:1 */
    --line: #D6E2EC;
    --white: #FFFFFF;
    --wa: #0F7A3F;            /* 5.4:1 con blanco */
    --wa-hover: #0B6332;

    --st-pendiente-bg: #FEF9C3; --st-pendiente: #854D0E;
    --st-aceptado-bg: #DCFCE7;  --st-aceptado: #166534;
    --st-iniciado-bg: #D1FAE5;  --st-iniciado: #065F46;
    --st-terminado-bg: #DBEAFE; --st-terminado: #1E40AF;
    --st-finalizado-bg: #F3E8FF; --st-finalizado: #6B21A8;

    --font: "Google Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(64px, 9vw, 120px);
    --header-space: 96px;
    --shadow-lg: 0 24px 60px -24px rgba(16, 43, 60, .35), 0 2px 6px rgba(16, 43, 60, .08);
    --shadow-glow: 0 18px 40px -18px rgba(0, 71, 171, .55);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 55%, var(--sky) 100%);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barra de desplazamiento del navegador ---------- */
html { scrollbar-color: var(--blue) var(--surface-2); scrollbar-width: thin; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue-bright), var(--blue));
    border-radius: 999px; border: 3px solid var(--surface-2);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue-hover); }
::selection { background: var(--pale); color: var(--navy); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-space) + 8px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
b, strong { font-weight: 650; color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .contact :focus-visible, .views :focus-visible, .site-footer :focus-visible { outline-color: var(--frozen); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Logo Donkey: blanco en todo el sitio */
.donkey-logo { max-width: none; height: auto; --logo-ink: #FFFFFF; --logo-accent: #FFFFFF; }

.eyebrow {
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--blue); margin-bottom: 14px;
    display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: var(--sky-text); }

/* Resaltado de frases clave: subrayado tipo marcador que se dibuja al aparecer */
.hl {
    background: linear-gradient(transparent 62%, rgba(95, 168, 211, .35) 62%, rgba(95, 168, 211, .35) 92%, transparent 92%) no-repeat;
    background-size: 0% 100%; transition: background-size 1s var(--ease) .25s;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl--dark { background-image: linear-gradient(transparent 62%, rgba(95, 168, 211, .45) 62%, rgba(95, 168, 211, .45) 92%, transparent 92%); }
.is-visible .hl, html:not(.js) .hl, .hero .hl { background-size: 100% 100%; }

/* ---------- Progreso de lectura ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.scroll-progress span {
    display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
    background: var(--grad-brand); box-shadow: 0 0 12px rgba(30, 111, 217, .6);
}

/* ---------- Botones ---------- */
.btn {
    --btn-bg: var(--blue); --btn-fg: var(--white); --btn-bd: transparent;
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px;
    font: 600 1rem/1.2 var(--font); text-decoration: none; white-space: nowrap;
    color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd); border-radius: 12px;
    cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* El degradado no se puede animar: se oscurece con una sombra interior para que
   la transición sea suave al entrar y al salir, igual que en .btn--ghost. */
.btn--primary {
    background: linear-gradient(135deg, var(--blue), #0A5BC9);
    box-shadow: 0 18px 40px -18px rgba(0, 71, 171, 0), inset 0 0 0 100vmax rgba(0, 25, 70, 0);
}
.btn--primary:hover { box-shadow: var(--shadow-glow), inset 0 0 0 100vmax rgba(0, 25, 70, .22); }
.btn--primary:active { box-shadow: 0 10px 22px -12px rgba(0, 71, 171, .55), inset 0 0 0 100vmax rgba(0, 25, 70, .32); }
.btn--shine::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-120%);
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
    animation: shine 4.5s var(--ease) 1.5s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .7); --btn-fg: var(--navy); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--navy); background: var(--white); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--whatsapp { --btn-bg: var(--wa); }
.btn--whatsapp:hover { background: var(--wa-hover); box-shadow: 0 16px 34px -16px rgba(15, 122, 63, .8); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn__short { display: none; }

/* ---------- Pills de estatus ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .74rem; font-weight: 600; letter-spacing: .02em;
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
    transition: background-color .35s, color .35s;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--pendiente { background: var(--st-pendiente-bg); color: var(--st-pendiente); }
.pill--aceptado { background: var(--st-aceptado-bg); color: var(--st-aceptado); }
.pill--iniciado { background: var(--st-iniciado-bg); color: var(--st-iniciado); }
.pill--terminado { background: var(--st-terminado-bg); color: var(--st-terminado); }
.pill--finalizado { background: var(--st-finalizado-bg); color: var(--st-finalizado); }
.pill.is-changing { animation: pill-pop .45s var(--ease); }
@keyframes pill-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Chips informativos */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
    background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 999px;
    color: var(--navy); font-size: .92rem; box-shadow: 0 6px 16px -12px rgba(16, 43, 60, .5);
}
.chip .icon { width: 18px; height: 18px; color: var(--blue); }

/* Chip de WhatsApp con número (nunca se parte) */
.wa-chip {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px;
    border-radius: 999px; text-decoration: none; font-weight: 500;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
    transition: background-color .2s, transform .2s var(--ease);
}
.wa-chip .icon { width: 22px; height: 22px; color: #6EE7A0; }
.wa-chip:hover { background: rgba(255, 255, 255, .14); color: var(--white); transform: translateY(-1px); }
.wa-chip--light { margin-top: 22px; background: #E9F7EF; border-color: #B7E3C8; color: #0B4F2A; }
.wa-chip--light .icon { color: var(--wa); }
.wa-chip--light:hover { background: #DDF2E6; color: #0B4F2A; }

/* ---------- Encabezado: cápsula flotante ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50;
    padding: 14px var(--gutter) 0; pointer-events: none;
    transition: padding .3s var(--ease);
}
.nav-capsule {
    pointer-events: auto;
    max-width: 1200px; margin-inline: auto;
    display: flex; align-items: center; gap: 12px;
    min-height: 66px; padding: 8px 8px 8px 22px;
    background: rgba(16, 43, 60, .86);
    -webkit-backdrop-filter: saturate(170%) blur(14px); backdrop-filter: saturate(170%) blur(14px);
    border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
    box-shadow: 0 16px 36px -22px rgba(5, 14, 20, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: min-height .3s var(--ease), background-color .3s, box-shadow .3s, max-width .4s var(--ease);
}
.site-header.is-scrolled { padding-top: 8px; }
.site-header.is-scrolled .nav-capsule {
    min-height: 56px; max-width: 1080px; background: rgba(16, 43, 60, .92);
    box-shadow: 0 18px 40px -20px rgba(5, 14, 20, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.nav-capsule__brand { display: inline-flex; flex: none; border-radius: 8px; }
.nav-capsule__logo { height: 40px; width: auto; aspect-ratio: 386 / 190; transition: height .3s var(--ease); }
.site-header.is-scrolled .nav-capsule__logo { height: 34px; }

.site-nav { display: none; position: relative; margin-inline: auto; }
.site-nav__list { list-style: none; display: flex; gap: 2px; position: relative; z-index: 1; }
.site-nav__list a {
    display: block; padding: 9px 16px; border-radius: 999px;
    color: #D7E6F0; font-weight: 500; font-size: .96rem; text-decoration: none;
    transition: color .2s;
}
.site-nav__list a:hover, .site-nav__list a.is-active { color: var(--white); }
.site-nav__list a:focus:not(:focus-visible) { outline: none; }
.site-nav__indicator {
    position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
    opacity: 0; transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s;
}
.site-nav__indicator.is-on { opacity: 1; }

.nav-capsule__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn--nav-outline, .btn--nav-primary { min-height: 44px; padding: 9px 18px; border-radius: 999px; font-size: .95rem; }
.btn--nav-outline { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, .45); display: none; }
.btn--nav-outline .icon { width: 18px; height: 18px; }
.btn--nav-outline:hover { --btn-bd: var(--white); background: rgba(255, 255, 255, .1); }
.btn--nav-primary {
    --btn-bd: rgba(255, 255, 255, .25);
    background: var(--blue);
    box-shadow: 0 8px 20px -10px rgba(0, 71, 171, .9);
}
.btn--nav-primary:hover { background: var(--blue-bright); box-shadow: 0 12px 26px -10px rgba(30, 111, 217, 1); }

.menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; cursor: pointer; color: var(--white);
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s;
}
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    pointer-events: auto; max-width: 1200px; margin: 8px auto 0; padding: 8px 18px 18px;
    background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
    animation: drop .25s var(--ease);
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu ul { list-style: none; margin-bottom: 12px; }
.mobile-menu li a {
    display: flex; align-items: center; min-height: 52px; padding: 0 4px;
    color: var(--navy); font-size: 1.08rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--surface-2);
}
.mobile-menu :focus-visible { outline-color: var(--blue); }

@media (max-width: 379px) {
    .nav-capsule { padding-left: 14px; gap: 6px; }
    .nav-capsule__logo { height: 32px; }
    .btn--nav-primary { padding-inline: 14px; }
}
@media (max-width: 559px) {
    .btn__long { display: none; }
    .btn__short { display: inline; }
}
@media (min-width: 640px) { .btn--nav-outline { display: inline-flex; } .mobile-menu .btn--outline { display: none; } }
@media (min-width: 1024px) {
    .site-nav { display: block; }
    .nav-capsule__actions { margin-left: 0; }
    .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 52px); }
.section__title { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem); color: var(--navy); }
.section__lead { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.18rem); color: var(--muted); max-width: 66ch; }
.section__lead strong { color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; isolation: isolate;
    padding-block: calc(var(--header-space) + clamp(16px, 4vw, 56px)) clamp(56px, 8vw, 104px);
    background: linear-gradient(180deg, var(--surface) 0%, var(--white) 100%);
}
.hero::before { /* retícula de patio */
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
    background-image: linear-gradient(var(--surface-2) 1px, transparent 1px), linear-gradient(90deg, var(--surface-2) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 85%); mask-image: linear-gradient(180deg, #000 10%, transparent 85%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .05; pointer-events: none; }
.hero__glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__glow i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.hero__glow i:nth-child(1) { width: 520px; height: 520px; right: -120px; top: -160px; background: var(--pale); }
.hero__glow i:nth-child(2) { width: 380px; height: 380px; right: 22%; top: 30%; background: rgba(98, 182, 203, .35); animation-duration: 22s; }
.hero__glow i:nth-child(3) { width: 300px; height: 300px; left: -100px; bottom: -80px; background: rgba(190, 233, 232, .6); animation-duration: 26s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.12); } }

.hero__grid { position: relative; display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; margin-bottom: 20px;
    font-size: .85rem; font-weight: 600; color: var(--navy);
    background: var(--white); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 6px 16px -12px rgba(16, 43, 60, .5);
}
.badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.badge__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #16A34A; opacity: 0; animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__title { font-size: clamp(2.25rem, 1.35rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--navy); }
.hero__title span {
    display: block; padding-bottom: .06em;
    background: var(--grad-brand); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: grad-pan 8s ease-in-out infinite alternate;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) { .hero__title span { color: var(--blue); } }
@keyframes grad-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero__lead { margin-top: 22px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); color: var(--muted); max-width: 46ch; }
.hero__lead strong { color: var(--navy); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { margin-top: 26px; }

@media (min-width: 480px) { .hero__actions { flex-wrap: nowrap; } }
@media (max-width: 479px) { .hero__actions .btn { width: 100%; } }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }

/* Demostración */
.demo { margin: 0; }
.demo__label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .85rem; font-weight: 600; color: var(--navy); }
.demo__live { width: 8px; height: 8px; border-radius: 50%; background: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .15); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.demo__fake { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--muted); background: var(--white); border: 1px dashed #B9CCDB; padding: 2px 10px; border-radius: 999px; }

.hero__visual { position: relative; }
@media (min-width: 1024px) { .hero__visual { padding-bottom: 112px; } }
.app-window {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.app-window__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: var(--white); font-size: .85rem; }
.app-window__dots { display: inline-flex; gap: 6px; }
.app-window__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.app-window__title { font-weight: 600; }
.app-window__marker {
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--blue-bright); color: var(--white); font-size: .72rem; font-weight: 700; flex: none;
    box-shadow: 0 0 0 3px rgba(30, 111, 217, .2);
}
.app-window__bar .app-window__marker { margin-left: auto; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.app-table { font-size: .84rem; }
.app-table__row {
    display: grid; grid-template-columns: 5.6rem 1fr 6.2rem; gap: 12px; align-items: center;
    padding: 11px 16px; border-bottom: 1px solid var(--surface-2);
}
.app-table__row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-table__row > span:last-child { justify-self: start; overflow: visible; }
.app-table__head { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.app-table__row.is-active { background: linear-gradient(90deg, rgba(0, 71, 171, .09), transparent 75%); box-shadow: inset 3px 0 0 var(--blue); font-weight: 600; color: var(--navy); }
.app-table__row:last-child { border-bottom: 0; }
.hide-sm { display: none; }
@media (min-width: 560px) {
    .app-table__row { grid-template-columns: 5.6rem 1fr 8.2rem 6.4rem; }
    .hide-sm { display: block; }
}

.route-card {
    position: relative; z-index: 1; margin: -24px 0 0 auto; width: min(330px, 92%);
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 14px 16px 12px;
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
@media (min-width: 1024px) { .route-card { position: absolute; right: -8px; bottom: 0; margin: 0; } }
.route-card__head { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: .9rem; color: var(--navy); }
.route-card__head .mono { display: inline-flex; align-items: center; gap: 8px; }
.route-card__meta { list-style: none; display: grid; gap: 6px; margin-top: 6px; font-size: .8rem; color: var(--muted); }
.route-card__meta li { display: flex; align-items: center; gap: 8px; }
.route-card__meta .icon { width: 16px; height: 16px; color: var(--blue); }
.route-svg { width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.route-svg text { font: 500 11px var(--font); fill: var(--muted); }
.route-svg__track { fill: none; stroke: var(--surface-2); stroke-width: 6; stroke-linecap: round; }
.route-svg__line { fill: none; stroke: var(--blue-bright); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .5; }
.route-svg__stop { fill: var(--white); stroke: var(--navy); stroke-width: 2.5; }
.route-svg__stop--mid { stroke: var(--sky); }
.route-svg__truck { fill: var(--blue); stroke: var(--white); stroke-width: 2.5; filter: drop-shadow(0 2px 4px rgba(0, 71, 171, .45)); }

.demo__caption { margin-top: 18px; padding: 16px 18px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 24px -20px rgba(16, 43, 60, .6); }
.demo__stages { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: st; }
.demo__stages li {
    position: relative; padding-top: 10px; font-size: .7rem; font-weight: 600; color: #6B7B87; text-align: center;
    transition: color .3s;
}
.demo__stages li::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--surface-2);
    transition: background .4s;
}
.demo__stages li.is-done { color: var(--navy); }
.demo__stages li.is-done::before { background: var(--sky); }
.demo__stages li.is-current { color: var(--blue); }
.demo__stages li.is-current::before { background: var(--blue); box-shadow: 0 0 10px rgba(0, 71, 171, .5); }
.demo__now { margin-top: 12px; font-size: .92rem; color: var(--muted); min-height: 1.6em; }
.demo__now b { color: var(--navy); }
.demo__legend { list-style: none; display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.demo__legend li { display: flex; align-items: center; gap: 10px; }
.demo__legend b { color: var(--navy); }
@media (max-width: 479px) { .demo__stages li { font-size: 0; } .demo__stages li.is-current { font-size: .7rem; grid-column: span 1; } }

/* ---------- El día a día ---------- */
.problem { background: var(--white); }
.problem__grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.problem__main .section__head { margin-bottom: clamp(24px, 4vw, 36px); }
@media (min-width: 1024px) {
    /* la foto ocupa todo el alto: del título al último ejemplo */
    .problem__grid { grid-template-columns: 1.4fr .8fr; align-items: stretch; }
    .problem__photo { display: flex; flex-direction: column; }
    .problem__photo .photo__frame { flex: 1; min-height: 0; }
    .problem__photo img { height: 100%; aspect-ratio: auto; position: absolute; inset: 0; }
}

.compare { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(14px, 2vw, 20px); }
.compare__head, .compare__row { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 10px; align-items: stretch; }
.compare__head { margin-bottom: 10px; }
.compare__tag { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 12px 4px 8px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.compare__tag .icon { width: 16px; height: 16px; }
.compare__tag--before { background: #FDECEC; color: #9B1C1C; }
.compare__tag--after { background: var(--blue); color: var(--white); }
.compare__rows { list-style: none; display: grid; gap: 10px; }
.compare__row { border-radius: 14px; outline: none; }
.compare__before, .compare__after {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; min-height: 76px;
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, background-color .35s, opacity .35s;
}
.compare__before { background: var(--white); border: 1px dashed #C9B8B8; }
.compare__before p b { color: #5A2A2A; text-decoration: line-through; text-decoration-color: rgba(155, 28, 28, .45); text-decoration-thickness: 2px; }
.compare__after { background: linear-gradient(135deg, var(--navy), var(--navy-2)); border: 1px solid var(--navy); color: var(--white); }
.compare__after::before {
    content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: rgba(110, 231, 160, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EE7A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.compare p { display: grid; gap: 2px; font-size: .95rem; line-height: 1.3; }
.compare p span { font-size: .84rem; }
.compare__before p span { color: var(--muted); }
.compare__after p span { color: var(--on-dark); }
.compare__icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #FBF1F1; color: #9B1C1C; flex: none; }
.compare__icon .icon { width: 20px; height: 20px; }
.compare__arrow { display: grid; place-items: center; color: var(--blue); }
.compare__arrow .icon { transition: transform .35s var(--ease); }
.compare__row:hover .compare__after, .compare__row:focus-visible .compare__after, .compare__row.is-lit .compare__after {
    transform: translateX(4px); box-shadow: 0 16px 30px -18px rgba(0, 71, 171, .9); border-color: var(--blue-bright);
}
.compare__row:hover .compare__arrow .icon, .compare__row:focus-visible .compare__arrow .icon, .compare__row.is-lit .compare__arrow .icon { transform: translateX(4px) scale(1.15); }
.compare__row:hover .compare__before, .compare__row.is-lit .compare__before { opacity: .75; }
.compare__row:focus-visible { box-shadow: 0 0 0 3px var(--blue); }
@media (max-width: 639px) {
    .compare__head { display: none; }
    .compare__row { grid-template-columns: 1fr; gap: 0; }
    .compare__arrow { height: 26px; transform: rotate(90deg); }
    .compare__before { min-height: 0; }
    .compare__after { min-height: 0; }
}

.photo { margin: 0; }
.photo__frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-lg); }
.photo__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 43, 60, .35)); pointer-events: none; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.04); }
.photo figcaption, .contact__credit { font: 400 .75rem/1.4 var(--font); color: var(--muted); margin-top: 8px; }
@media (min-width: 1024px) { .problem__photo img { object-position: 65% center; } }

/* ---------- Cómo funciona (bucle) ---------- */
.flow { background: var(--surface); overflow: hidden; }
.flow::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(800px 380px at 100% 0%, rgba(202, 233, 255, .9), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(190, 233, 232, .6), transparent 60%);
}
.flow .container { position: relative; }
.flow__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.flow__counter { font-size: .95rem; color: var(--muted); }
.flow__counter b { font-size: 1.4rem; color: var(--blue); font-variant-numeric: tabular-nums; }
html:not(.js) .flow__controls { display: none; }

.steps { list-style: none; position: relative; display: grid; gap: 12px; --progress: 0; }
.steps::before, .steps::after { content: ""; position: absolute; z-index: 0; left: 21px; top: 22px; width: 3px; border-radius: 3px; }
.steps::before { bottom: 22px; background: var(--line); }
.steps::after {
    height: calc(100% - 44px); background: linear-gradient(180deg, var(--blue), var(--blue-bright), var(--sky));
    transform-origin: top; transform: scaleY(var(--progress));
    transition: transform var(--line-ms, 600ms) var(--line-ease, ease);
}
.step {
    position: relative; z-index: 1; padding: 18px 18px 22px 62px; overflow: hidden;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .35s, box-shadow .35s, transform .35s var(--ease), background-color .35s;
}
.step__hit { position: absolute; inset: 0; z-index: 2; width: 100%; background: transparent; border: 0; cursor: pointer; border-radius: inherit; }
.step__hit:focus-visible { outline-offset: -3px; }
.step__node {
    position: absolute; left: 10px; top: 14px; z-index: 1;
    display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--white); border: 2.5px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700;
    transition: background .35s, border-color .35s, color .35s, box-shadow .35s;
}
.step__node .icon { display: none; width: 14px; height: 14px; stroke-width: 3; }
.step__status { margin-bottom: 10px; }
.step__title { font-size: 1.2rem; color: var(--navy); }
.step p { margin-top: 6px; color: var(--muted); font-size: .96rem; }
.step p b { color: var(--navy); }

.step.is-done .step__node { background: var(--blue); border-color: var(--blue); color: var(--white); }
.step.is-done .step__node .icon { display: block; }
.step.is-done .step__node-num { display: none; }
.step.is-current { border-color: var(--blue); transform: translateY(-4px); box-shadow: 0 22px 40px -24px rgba(0, 71, 171, .75); background: linear-gradient(180deg, var(--white), #F7FAFF); }
.step.is-current .step__node { background: var(--white); border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 6px rgba(0, 71, 171, .14); animation: node-pulse 1.8s ease-out infinite; }
.step.is-current .flow__player.is-paused .step.is-current @keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 71, 171, .35); } 100% { box-shadow: 0 0 0 12px rgba(0, 71, 171, 0); } }
.step:hover { border-color: #A9C4E6; }
.step--accent.is-current { background: linear-gradient(180deg, #F8F3FF, var(--white)); }
.flow__player.is-complete .step { border-color: #A9C4E6; }

@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(5, 1fr); gap: 14px; padding-top: 46px; }
    /* la línea va del nodo 1 al nodo 5: 4 × (ancho de tarjeta + separación) */
    .steps::before, .steps::after { left: 30px; top: 12px; height: 3px; width: calc(80% + 11.2px); }
    .steps::before { bottom: auto; }
    .steps::after { transform-origin: left; transform: scaleX(var(--progress)); background: linear-gradient(90deg, var(--blue), var(--blue-bright), var(--sky)); }
    .step { padding: 22px 18px 24px; overflow: visible; }
    .step.is-current { transform: none; } /* el nodo se queda centrado sobre la línea */
    .step__node { left: 17px; top: -47px; }
    }

.flow__outcomes { list-style: none; display: grid; gap: 10px; margin-top: 18px; }
.flow__outcomes li {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: .95rem;
}
.flow__outcomes b { color: var(--navy); }
.flow__outcomes span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.flow__outcomes .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--surface-2); color: var(--blue); }
@media (min-width: 768px) { .flow__outcomes { grid-template-columns: repeat(3, 1fr); } }

.inline-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
    margin-top: clamp(28px, 4vw, 40px); padding: 22px 24px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 34px -28px rgba(16, 43, 60, .7);
}
.inline-cta p { font-size: 1.15rem; font-weight: 600; color: var(--navy); }

/* ---------- App y web (bloque oscuro) ---------- */
.views { background: var(--navy); color: var(--white); overflow: hidden; }
.views::before {
    content: ""; position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
    background: radial-gradient(circle, rgba(95, 168, 211, .2), transparent 65%); pointer-events: none;
}
.views::after { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .06; pointer-events: none; mix-blend-mode: screen; }
.views .container { position: relative; z-index: 1; }
.section__head--light .section__title { color: var(--white); }
.section__head--light .section__lead { color: var(--on-dark); }
.section__head--light .section__lead strong { color: var(--white); }
.views__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .views__grid { grid-template-columns: repeat(3, 1fr); } }
.view-card {
    padding: 24px 24px 26px; border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .16);
    transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.view-card:hover { transform: translateY(-4px); border-color: rgba(142, 201, 236, .65); }
.view-card--accent { background: linear-gradient(180deg, rgba(30, 111, 217, .32), rgba(30, 111, 217, .14)); border-color: rgba(142, 201, 236, .5); }
.view-card__top { display: flex; align-items: center; gap: 12px; }
.view-card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(142, 201, 236, .16); color: var(--sky-text); flex: none; }
.view-card__icon .icon { width: 24px; height: 24px; }
.view-card__who { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-text); font-weight: 600; }
.view-card h3 { margin-top: 18px; font-size: 1.3rem; color: var(--white); }
.view-card__note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--navy); background: var(--frozen); }
.view-card__note .icon { width: 16px; height: 16px; }
.checklist { list-style: none; display: grid; gap: 10px; margin-top: 14px; color: #E2EDF4; font-size: .98rem; }
.checklist li { position: relative; padding-left: 28px; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(190, 233, 232, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BEE9E8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Funciones ---------- */
.features { background: var(--white); }
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-card--featured { grid-column: span 2; }
    .feature-card--roles { grid-column: 1 / -1; }
}
.feature-card {
    --mx: 50%; --my: 0%;
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; gap: 12px;
    padding: 24px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature-card::before { /* foco de luz que sigue al cursor */
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(95, 168, 211, .22), transparent 45%);
    transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-3px); border-color: #A9C4E6; box-shadow: 0 22px 44px -30px rgba(16, 43, 60, .7); }
.feature-card:hover::before { opacity: 1; }
.feature-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-height: 48px; }
.feature-card__head h3 { font-size: 1.2rem; color: var(--navy); }
.feature-card__icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none;
    background: var(--surface-2); color: var(--blue); transition: transform .3s var(--ease);
}
.feature-card__icon .icon { width: 24px; height: 24px; }
.feature-card:hover .feature-card__icon { transform: rotate(-6deg) scale(1.06); }
.feature-card__text { color: var(--muted); }
.feature-card__text b { color: var(--navy); }
.feature-card .tags, .feature-card .roles { margin-top: auto; padding-top: 6px; }

.feature-card--featured {
    border: 1.5px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box, linear-gradient(135deg, var(--blue), var(--sky), var(--frozen), var(--blue)) border-box;
    background-size: 100% 100%, 300% 300%;
    animation: border-pan 8s linear infinite;
    box-shadow: 0 26px 50px -30px rgba(0, 71, 171, .6);
}
.feature-card--featured::after {
    content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit;
    background: radial-gradient(500px 220px at 100% 0%, rgba(202, 233, 255, .7), transparent 60%);
}
@keyframes border-pan { to { background-position: 0 0, 300% 0; } }
.feature-card--featured .feature-card__icon { background: var(--grad-brand); color: var(--white); box-shadow: var(--shadow-glow); }
.feature-card--featured h3 { font-size: 1.35rem; }
.feature-card__badge {
    margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    background: var(--navy); color: var(--white);
}
.feature-card__badge .icon { width: 14px; height: 14px; color: var(--sky-text); }

/* Flujo documental dentro de la tarjeta destacada */
.doc-flow { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px dashed #A9C4E6; }
.doc-flow li { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--navy); }
.doc-flow li:not(:last-child)::after { content: "→"; color: var(--blue); font-weight: 700; margin-left: 2px; }
.doc-flow li { padding: 6px 10px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); animation: doc-step 7.5s var(--ease) infinite; }
.doc-flow li:not(:last-child) { padding-right: 8px; }
.doc-flow li:nth-child(2) { animation-delay: 1.5s; } .doc-flow li:nth-child(3) { animation-delay: 3s; }
.doc-flow li:nth-child(4) { animation-delay: 4.5s; } .doc-flow li:nth-child(5) { animation-delay: 6s; }
@keyframes doc-step { 0%, 18% { background: var(--blue); color: var(--white); border-color: var(--blue); } 22%, 100% { background: var(--white); color: var(--navy); border-color: var(--line); } }
.doc-flow li:not(:last-child)::after { color: inherit; }

/* Etiquetas con significado (tooltip accesible) */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tip {
    position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: help;
    font-size: .84rem; font-weight: 600; color: var(--navy);
    background: var(--surface); border: 1px solid #A9C4E6; padding: 5px 12px; border-radius: 999px;
    transition: background-color .2s, border-color .2s, color .2s;
}
.tip::after {
    content: "i"; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
    font: italic 700 .64rem/1 Georgia, serif; color: var(--white); background: var(--blue);
}
.tip:hover, .tip:focus-visible { background: var(--blue); border-color: var(--blue); color: var(--white); outline: none; }
.tip:hover::after, .tip:focus-visible::after { background: var(--white); color: var(--blue); }
.tip__text {
    position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: 240px;
    padding: 9px 12px; border-radius: 10px; font-size: .82rem; font-weight: 500; line-height: 1.4; text-align: left;
    color: var(--white); background: var(--navy-deep); box-shadow: 0 14px 30px -12px rgba(5, 14, 20, .6);
    opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
    pointer-events: none;
}
.tip__text::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--navy-deep); }
.tip:hover .tip__text, .tip:focus-visible .tip__text, .tip:focus .tip__text { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.tip.is-edge-left .tip__text { left: 0; transform: translate(0, 6px); }
.tip.is-edge-left:hover .tip__text, .tip.is-edge-left:focus .tip__text { transform: none; }
.tip.is-edge-left .tip__text::after { left: 22px; }
.tip.is-edge-right .tip__text { left: auto; right: 0; transform: translate(0, 6px); }
.tip.is-edge-right:hover .tip__text, .tip.is-edge-right:focus .tip__text { transform: none; }
.tip.is-edge-right .tip__text::after { left: auto; right: 16px; }

/* Roles */
.roles { list-style: none; display: grid; gap: 10px; }
@media (min-width: 640px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role {
    display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line);
    transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.role:hover { border-color: var(--blue); transform: translateY(-2px); background: var(--white); }
.role__name {
    justify-self: start; display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 8px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--white); background: var(--blue);
}
.role__name::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--frozen); }
.role__desc { font-size: .9rem; color: var(--muted); line-height: 1.4; }

/* ---------- Por qué Donkey ---------- */
.why { background: linear-gradient(180deg, var(--surface), var(--white)); overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: var(--noise); opacity: .035; pointer-events: none; }
.why__grid { position: relative; display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) { .why__grid { grid-template-columns: .85fr 1.15fr; align-items: start; } .why__head { position: sticky; top: calc(var(--header-space) + 24px); } }
.why__list { list-style: none; display: grid; gap: 14px; counter-reset: why; }
@media (min-width: 640px) { .why__list { grid-template-columns: 1fr 1fr; } }
.why-card {
    --mx: 50%; --my: 0%;
    counter-increment: why; position: relative; isolation: isolate; overflow: hidden;
    padding: 22px 22px 24px; border-radius: var(--radius);
    background: var(--white); border: 1px solid var(--line);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.why-card::before {
    content: counter(why, decimal-leading-zero); position: absolute; right: 16px; top: 8px; z-index: -1;
    font-size: 3.6rem; font-weight: 700; line-height: 1; color: var(--surface-2); letter-spacing: -0.04em;
    transition: color .3s;
}
.why-card::after {
    content: ""; position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity .3s;
    background: radial-gradient(380px circle at var(--mx) var(--my), rgba(95, 168, 211, .2), transparent 45%);
}
.why-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 24px 44px -28px rgba(0, 71, 171, .7); }
.why-card:hover::before { color: var(--pale); }
.why-card:hover::after { opacity: 1; }
.why-card__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--white); }
.why-card__icon .icon { width: 22px; height: 22px; }
.why-card__key {
    margin-top: 16px; font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
    background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-card h3 { margin-top: 6px; font-size: 1.05rem; color: var(--navy); }
.why-card p:last-child { margin-top: 6px; color: var(--muted); font-size: .97rem; }
.why-card p b { color: var(--navy); }

/* ---------- Preguntas ---------- */
.faq__grid { display: grid; gap: clamp(28px, 5vw, 64px); }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: .85fr 1.15fr; } .faq__grid > header { position: sticky; top: calc(var(--header-space) + 24px); align-self: start; } }
.faq__list { display: grid; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: var(--white); transition: border-color .25s, box-shadow .25s; }
.faq__item[open] { border-color: #A9C4E6; box-shadow: 0 16px 34px -26px rgba(16, 43, 60, .7); }
.faq__item summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 62px; padding: 14px 18px; font-weight: 600; font-size: 1.04rem; color: var(--navy); border-radius: 14px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230047AB' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
    transition: transform .25s var(--ease), background-color .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--pale); }
.faq__item summary:hover { color: var(--blue); }
.faq__item p { padding: 0 18px 20px; color: var(--muted); max-width: 64ch; }
.faq__item p b { color: var(--navy); }
.faq__item[open] p { animation: drop .3s var(--ease); }

/* ---------- Contacto ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--navy-deep); padding-block: clamp(80px, 11vw, 140px) clamp(56px, 7vw, 80px); }
.contact__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(11, 29, 40, .97) 0%, rgba(16, 43, 60, .9) 55%, rgba(16, 43, 60, .74) 100%);
}
.contact__inner > * { max-width: 900px; }
.contact__logo { width: 140px; margin-bottom: 26px; }
.contact__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.1; text-wrap: balance; }
.contact__title span { color: var(--sky-text); }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.contact__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 1rem; color: var(--on-dark); }
.contact__meta b { color: var(--white); font-size: 1.1rem; letter-spacing: .01em; }
.contact__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }
.contact__hours { display: inline-flex; align-items: center; gap: 8px; color: var(--frozen); }
.contact__hours .icon { width: 18px; height: 18px; }
.contact__credit { position: relative; max-width: 1200px; margin: clamp(40px, 6vw, 64px) auto 0; padding-inline: var(--gutter); color: #9FB6C6; text-align: right; }
@media (max-width: 479px) { .contact__actions .btn { width: 100%; } .contact__sep { display: none; } }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark); padding-top: 56px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--frozen); text-decoration: underline; }
.site-footer strong { color: var(--white); }
.site-footer__inner { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__logo { width: 130px; margin-bottom: 14px; }
.site-footer__brand p { max-width: 38ch; }
.site-footer__heading { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sky-text); margin-bottom: 10px; }
.site-footer__nav ul { list-style: none; display: grid; gap: 2px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer .wa-chip:hover { text-decoration: none; }
.site-footer__hours { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--frozen); font-size: .9rem; }
.site-footer__hours .icon { width: 18px; height: 18px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 20px 26px; font-size: .85rem; color: #B4C8D6; }
.site-footer__legal a { color: var(--white); }

/* ---------- WhatsApp flotante (móvil/tableta) ---------- */
.wa-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
    background: var(--wa); color: var(--white); font-weight: 600; text-decoration: none; border-radius: 999px;
    box-shadow: 0 12px 28px -10px rgba(5, 14, 20, .55);
    opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { color: var(--white); background: var(--wa-hover); }
.wa-float .icon { width: 24px; height: 24px; }
html:not(.js) .wa-float { display: none; }
@media (min-width: 1024px) { .wa-float { display: none; } }

/* ---------- Volver arriba ---------- */
.to-top {
    position: fixed; right: 16px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 41;
    display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--navy); color: var(--white); box-shadow: 0 14px 30px -12px rgba(5, 14, 20, .6);
    opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease), background-color .2s;
}
.to-top[hidden] { display: grid; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top .icon { position: relative; width: 22px; height: 22px; transition: transform .25s var(--ease); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__track { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 3; }
.to-top__bar { fill: none; stroke: var(--sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
@media (min-width: 1024px) { .to-top { right: 28px; bottom: 28px; } }

/* ---------- Página legal ---------- */
.legal { padding-block: calc(var(--header-space) + clamp(24px, 5vw, 64px)) clamp(40px, 7vw, 96px); background: var(--surface); }
.legal__inner { max-width: 820px; }
.legal__title { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--navy); }
.legal__meta { margin-top: 10px; color: var(--muted); }
.legal h2 { margin-top: 36px; font-size: 1.25rem; color: var(--navy); }
.legal p, .legal ul { margin-top: 12px; color: #26343E; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal__back { margin-top: 40px !important; }

/* ---------- Apariciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .compare__row { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .compare.is-visible .compare__row { opacity: 1; transform: none; }
.js .compare.is-visible .compare__row:nth-child(2) { transition-delay: .12s; }
.js .compare.is-visible .compare__row:nth-child(3) { transition-delay: .24s; }
.js .compare.is-visible .compare__row:nth-child(4) { transition-delay: .36s; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal, .js .compare__row { opacity: 1; transform: none; }
    .hero__glow i, .route-card, .btn--shine::after { animation: none !important; }
    .btn:hover, .view-card:hover, .feature-card:hover, .why-card:hover, .step.is-current { transform: none; }
    .hl { background-size: 100% 100%; }
}

/* ---------- Impresión ---------- */
@media print {
    .site-header, .wa-float, .to-top, .scroll-progress, .contact__bg, .menu-toggle, .flow__controls { display: none !important; }
    .hero { padding-top: 24px; }
    .views, .contact, .site-footer { background: #fff !important; color: #000 !important; }
}
