/* BusCórdoba · portada 2026 */

:root {
    /* Marca (se mantienen los colores originales) */
    --green-50: #E6F7ED;
    --green-100: #CCEFDC;
    --green-400: #33BF73;
    --green-500: #00AF50;
    --green-600: #008C40;
    --green-700: #006930;
    --blue-50: #E6F0F9;
    --blue-500: #006DC8;
    --blue-700: #004178;

    /* Superficies y texto */
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --ink: #1D1D1F;
    --ink-2: #424245;
    --ink-3: #6E6E73;
    --line: #D2D2D7;
    --line-soft: #E8E8ED;

    --accent-text: var(--green-700);
    --btn: var(--green-600);
    --btn-hover: var(--green-700);
    --btn-2-bg: #E8E8ED;
    --btn-2-hover: #DCDCE1;
    --icon-bg: var(--green-50);
    --tag-bg: var(--blue-50);
    --tag-ink: var(--blue-700);
    --alert-bg: #FFF1F0;
    --alert-ink: #B42318;
    --nav-bg: rgba(245, 245, 247, 0.72);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 48px rgba(0, 0, 0, 0.08);
    --focus: 0 0 0 4px rgba(0, 175, 80, 0.32);

    --radius-l: 28px;
    --radius-m: 18px;
    --radius-s: 14px;
    --pill: 980px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-sign: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    color-scheme: light dark;
}

/* Oscuro: elegido por el usuario, o el del sistema si no ha elegido nada */
:root[data-theme="dark"] {
    --bg: #000000;
    --surface: #1C1C1E;
    --ink: #F5F5F7;
    --ink-2: #C7C7CC;
    --ink-3: #98989D;
    --line: #3A3A3C;
    --line-soft: #2C2C2E;

    --accent-text: var(--green-400);
    --btn-2-bg: #2C2C2E;
    --btn-2-hover: #3A3A3C;
    --icon-bg: rgba(0, 175, 80, 0.16);
    --tag-bg: rgba(0, 109, 200, 0.22);
    --tag-ink: #9CC7F0;
    --alert-bg: rgba(255, 69, 58, 0.14);
    --alert-ink: #FF8A80;
    --nav-bg: rgba(22, 22, 23, 0.72);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #000000;
        --surface: #1C1C1E;
        --ink: #F5F5F7;
        --ink-2: #C7C7CC;
        --ink-3: #98989D;
        --line: #3A3A3C;
        --line-soft: #2C2C2E;

        --accent-text: var(--green-400);
        --btn-2-bg: #2C2C2E;
        --btn-2-hover: #3A3A3C;
        --icon-bg: rgba(0, 175, 80, 0.16);
        --tag-bg: rgba(0, 109, 200, 0.22);
        --tag-ink: #9CC7F0;
        --alert-bg: rgba(255, 69, 58, 0.14);
        --alert-ink: #FF8A80;
        --nav-bg: rgba(22, 22, 23, 0.72);
        --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 48px rgba(0, 0, 0, 0.5);
    }
}

:root[data-theme="light"] {
    color-scheme: light;
}

/* Sin transiciones durante el cambio de modo */
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
    transition: none !important;
}

/* ---------- Base ---------- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

a {
    color: var(--accent-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--bg);
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
}

.eyebrow {
    color: var(--accent-text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

/* ---------- Botones y enlaces ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--pill);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--btn);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--btn-hover);
}

.btn-secondary {
    background: var(--btn-2-bg);
    color: var(--ink);
}

.btn-secondary:hover {
    background: var(--btn-2-hover);
}

.btn-small {
    min-height: 32px;
    padding: 6px 16px;
    font-size: 14px;
    background: var(--btn);
    color: #FFFFFF;
}

.btn-small:hover {
    background: var(--btn-hover);
}

.btn-block {
    width: 100%;
    min-height: 52px;
}

.link-chevron {
    font-weight: 500;
    white-space: nowrap;
}

.link-chevron::after {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.link-button:hover {
    text-decoration: underline;
}

/* Estado de envío */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.is-loading .spinner {
    display: inline-block;
}

.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---------- Navegación ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}

.nav.is-scrolled {
    border-bottom-color: var(--line-soft);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1120px;
    height: 56px;
    margin-inline: auto;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.nav-links a {
    color: var(--ink-2);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--ink);
    text-decoration: none;
}

@media (max-width: 760px) {
    .nav-links a:not(.nav-test) {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        gap: 12px;
    }
}

@media (max-width: 420px) {
    .nav-links {
        display: none;
    }

    .nav .theme-toggle {
        margin-left: auto;
    }
}

/* Botón de modo claro / oscuro */
.theme-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    background: var(--btn-2-bg);
    color: var(--ink);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Se muestra la luna en claro y el sol en oscuro */
.theme-toggle .i-sun,
:root[data-theme="dark"] .theme-toggle .i-moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .i-sun {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .theme-toggle .i-moon {
        display: none;
    }

    :root:not([data-theme]) .theme-toggle .i-sun {
        display: block;
    }
}

/* ---------- Portada + acceso ---------- */

.hero {
    padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hero h1 {
    font-size: clamp(40px, 3.2vw + 26px, 72px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.hero h1 .accent {
    color: var(--accent-text);
}

.lead {
    margin-top: 20px;
    max-width: 34ch;
    color: var(--ink-2);
    font-size: clamp(19px, 0.6vw + 16px, 23px);
    line-height: 1.4;
    letter-spacing: -0.02em;
    text-wrap: pretty;
}

.formats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.formats li {
    padding: 6px 14px;
    border-radius: var(--pill);
    background: var(--surface);
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    box-shadow: inset 0 0 0 1px var(--line-soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    margin-top: 32px;
}

/* Tarjeta de acceso */
.login-card {
    position: relative;
    padding: clamp(28px, 3vw, 40px);
    border-radius: var(--radius-l);
    background: var(--surface);
    box-shadow: var(--shadow-card);
    scroll-margin-top: 80px;
}

.login-card h2 {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.card-sub {
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

/* Rótulo de puerta, como el de "ENTRADA" del autobús */
.door-sign {
    display: inline-block;
    margin-bottom: 20px;
    padding: 5px 12px 4px;
    border-radius: 6px;
    background: #111111;
    color: #FFFFFF;
    font-family: var(--font-sign);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-form {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.login-form .btn-block {
    margin-top: 8px;
}

.forgot {
    display: block;
    margin: 8px auto 0;
    font-size: 15px;
}

.legal {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0;
}

/* Campos con etiqueta flotante */
.field {
    position: relative;
}

.field input {
    width: 100%;
    height: 56px;
    padding: 22px 16px 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    letter-spacing: -0.01em;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

.field input:hover {
    border-color: var(--ink-3);
}

.field input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: var(--focus);
}

.field label {
    position: absolute;
    left: 17px;
    top: 50%;
    color: var(--ink-3);
    font-size: 17px;
    pointer-events: none;
    transform: translateY(-50%);
    transform-origin: left top;
    transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field input:-webkit-autofill + label {
    transform: translateY(-122%) scale(0.72);
}

.field input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 100px var(--surface) inset;
    -webkit-text-fill-color: var(--ink);
}

.field input[aria-invalid="true"] {
    border-color: var(--alert-ink);
}

.field-password input {
    padding-right: 56px;
}

.reveal {
    position: absolute;
    top: 50%;
    right: 6px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--ink-3);
    cursor: pointer;
    transform: translateY(-50%);
}

.reveal:hover {
    color: var(--ink);
}

.reveal svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.reveal .i-hide,
.reveal[aria-pressed="true"] .i-show {
    display: none;
}

.reveal[aria-pressed="true"] .i-hide {
    display: block;
}

.caps-hint,
.field-error {
    color: var(--alert-ink);
    font-size: 13px;
    letter-spacing: 0;
}

.caps-hint {
    color: var(--ink-3);
}

.alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius-s);
    background: var(--alert-bg);
    color: var(--alert-ink);
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.alert svg {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    fill: currentColor;
}

.alert .link-button {
    margin-top: 6px;
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Secciones ---------- */

.section {
    padding-block: clamp(72px, 10vw, 128px);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.section h2 {
    font-size: clamp(32px, 2.4vw + 22px, 56px);
    line-height: 1.07;
    font-weight: 700;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* ---------- La línea ---------- */

.route {
    background: var(--surface);
}

.route-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.route-photo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-l);
}

.dest-sign {
    display: inline-flex;
    align-items: stretch;
    margin-bottom: 36px;
    overflow: hidden;
    border-radius: 8px;
    background: #111111;
    font-family: var(--font-sign);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dest-line {
    padding: 8px 12px;
    background: var(--green-500);
    color: #002310;
}

.dest-name {
    padding: 8px 16px;
    color: #7CF0AE;
    text-shadow: 0 0 10px rgba(0, 175, 80, 0.55);
}

.stops {
    position: relative;
    display: grid;
    gap: 32px;
    padding-left: 40px;
}

/* Trazo de la línea */
.stops::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 9px;
    width: 4px;
    border-radius: 2px;
    background: var(--green-500);
    transform-origin: top;
}

.stop {
    position: relative;
}

/* Parada */
.stop::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -40px;
    width: 22px;
    height: 22px;
    border: 4px solid var(--green-500);
    border-radius: 50%;
    background: var(--surface);
}

.stop-end::before {
    top: 1px;
    left: -43px;
    width: 28px;
    height: 28px;
    border-width: 7px;
    border-color: var(--green-500);
    background: var(--surface);
    box-shadow: 0 0 0 5px rgba(0, 175, 80, 0.18);
}

.stop-label {
    display: block;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.stop h3 {
    margin-top: 2px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.stop p {
    margin-top: 4px;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.45;
}

/* ---------- Quiénes somos ---------- */

.statement {
    max-width: 30ch;
    font-size: clamp(28px, 2vw + 18px, 48px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: pretty;
}

.statement span {
    color: var(--ink-3);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(48px, 6vw, 80px);
    border-top: 1px solid var(--line);
}

.stats > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 4px;
    padding: 28px 24px 0 0;
}

.stats > div + div {
    padding-left: 24px;
    border-left: 1px solid var(--line);
}

.stats dd {
    font-size: clamp(40px, 2.4vw + 26px, 64px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.stats dt {
    color: var(--ink-3);
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ---------- Formación ---------- */

.services {
    padding-top: 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    border-radius: var(--radius-l);
    background: var(--surface);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: var(--icon-bg);
    color: var(--accent-text);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.card h3 {
    font-size: 24px;
    line-height: 1.17;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.card p {
    margin-top: 8px;
    color: var(--ink-2);
    font-size: 16px;
}

.checks {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.checks li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-2);
    font-size: 15px;
    letter-spacing: -0.01em;
}

.checks li::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 2px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--green-500);
    border-bottom: 2px solid var(--green-500);
    transform: rotate(-45deg);
}

/* ---------- Test gratis ---------- */

.trial {
    padding-top: 0;
}

.trial-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    padding: clamp(32px, 5vw, 56px);
    border-radius: var(--radius-l);
    background: var(--surface);
}

.trial-card h2 {
    margin-top: 16px;
}

.trial-card p {
    max-width: 44ch;
    margin-top: 12px;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.4;
}

.tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--pill);
    background: var(--tag-bg);
    color: var(--tag-ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Zonas táctiles de al menos 44 px en enlaces sueltos */
.link-chevron,
.footer-links a {
    display: inline-block;
    padding-block: 10px;
}

.forgot {
    padding: 12px 8px;
}

.legal a {
    display: inline-block;
    padding-block: 4px;
}

/* ---------- Preguntas frecuentes ---------- */

.faq {
    padding-top: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.faq-grid .section-head {
    margin-bottom: 0;
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h3 {
    font-size: 19px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Flecha que gira al abrir */
.faq-item summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin-right: 4px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: translateY(-3px) rotate(45deg);
    transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
    transform: translateY(2px) rotate(-135deg);
}

.faq-item summary:hover h3 {
    color: var(--accent-text);
}

.faq-item p {
    max-width: 60ch;
    padding-bottom: 24px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Contacto ---------- */

.contact {
    padding-top: 0;
    text-align: center;
}

.contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact p {
    margin: 12px 0 28px;
    color: var(--ink-2);
    font-size: 19px;
}

.contact .btn {
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ---------- Pie ---------- */

.footer {
    padding-block: 32px max(32px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-soft);
    color: var(--ink-3);
    font-size: 13px;
    letter-spacing: -0.005em;
}

.footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px 32px;
    align-items: center;
}

.footer .brand {
    font-size: 16px;
}

.footer .brand img {
    width: 28px;
    height: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links a {
    color: var(--ink-2);
}

.copyright {
    grid-column: 1 / -1;
}

/* ---------- Hoja de recuperar contraseña ---------- */

.sheet {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-l);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.sheet::backdrop {
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.sheet[open] {
    animation: sheet-in 0.35s var(--ease-out);
}

.sheet-body {
    position: relative;
    padding: 40px 32px 32px;
}

.sheet-body h2 {
    padding-right: 32px;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.sheet-body .field {
    margin-top: 24px;
}

.sheet-body .field-error {
    margin-top: 8px;
}

.sheet-body .btn-block {
    margin-top: 16px;
}

.sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: var(--btn-2-bg);
    color: var(--ink-2);
    cursor: pointer;
}

.sheet-close svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.done-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--icon-bg);
    color: var(--accent-text);
}

.done-icon svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

@keyframes sheet-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
}

/* ---------- Apariciones al hacer scroll (solo con JS) ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* La línea se traza y las paradas se encienden en orden */
.js .route-line[data-reveal] {
    opacity: 1;
    transform: none;
}

.js .route-line .stops::before {
    transform: scaleY(0);
    transition: transform 1.2s var(--ease-out) 0.15s;
}

.js .route-line .stop {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.js .route-line.is-visible .stops::before {
    transform: scaleY(1);
}

.js .route-line.is-visible .stop {
    opacity: 1;
    transform: none;
}

.js .route-line.is-visible .stop:nth-child(1) { transition-delay: 0.2s; }
.js .route-line.is-visible .stop:nth-child(2) { transition-delay: 0.45s; }
.js .route-line.is-visible .stop:nth-child(3) { transition-delay: 0.7s; }
.js .route-line.is-visible .stop:nth-child(4) { transition-delay: 0.95s; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cards .card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .route-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-copy {
        max-width: 640px;
    }

    .login-card {
        max-width: 480px;
        width: 100%;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
    }

    .hero-actions .link-chevron {
        margin-inline: auto;
    }

    .cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .card {
        padding: 28px 24px;
    }

    .stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats > div,
    .stats > div + div {
        padding: 20px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .trial-card .btn,
    .contact .btn {
        width: 100%;
    }

    .footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .sheet-body {
        padding: 36px 24px 24px;
    }
}
