:root {
    color-scheme: dark;
    --bg: #080b12;
    --panel: #0e1420;
    --surface: #141c29;
    --line: rgba(180, 214, 255, .15);
    --text: #f4f7fb;
    --muted: #95a2b5;
    --blue: #38bdf8;
    --blue-strong: #1688f2;
    --danger: #ff9d9d;
    --success: #8ce6bd;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(24rem, 1.1fr) minmax(28rem, .9fr); }
.brand-panel { position: relative; overflow: hidden; min-height: 100vh; background: #111b29 url('/assets/images/velum-brand.png') center/cover no-repeat; }
.brand-panel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 9, 16, .08), rgba(4, 9, 16, .35) 40%, rgba(4, 9, 16, .95)); }
.brand-panel__copy { position: absolute; z-index: 1; right: clamp(2rem, 6vw, 6rem); bottom: clamp(3rem, 8vh, 7rem); left: clamp(2rem, 6vw, 6rem); max-width: 38rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.brand-panel h2 { margin: 0; max-width: 38rem; font-family: Georgia, serif; font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.brand-panel p { max-width: 31rem; margin-top: 1.4rem; color: #c5d2df; font-size: 1.05rem; line-height: 1.7; }
.form-panel { display: grid; min-height: 100vh; place-items: center; padding: clamp(2rem, 6vw, 5rem); background: radial-gradient(circle at 80% 5%, rgba(22, 136, 242, .12), transparent 22rem), var(--panel); }
.form-card { width: min(100%, 28rem); }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: clamp(3rem, 8vh, 6rem); color: var(--text); font-size: .82rem; font-weight: 900; letter-spacing: .24em; text-decoration: none; }
.wordmark span { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid rgba(56, 189, 248, .55); border-radius: 50%; color: var(--blue); font-family: Georgia, serif; font-size: 1.2rem; }
.heading { margin-bottom: 2rem; }
.heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.45rem, 5vw, 3.6rem); font-weight: 400; letter-spacing: -.035em; }
.heading > p:last-child { margin: .8rem 0 0; color: var(--muted); line-height: 1.6; }
label { display: block; margin: 1.15rem 0 .55rem; color: #d5deea; font-size: .82rem; font-weight: 700; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.label-row a { color: var(--blue); font-size: .78rem; text-decoration: none; }
.label-row a:hover { text-decoration: underline; }
.field { display: flex; align-items: center; gap: .65rem; min-height: 3.4rem; padding: 0 .9rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(3, 8, 15, .48); transition: border-color .2s, box-shadow .2s; }
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 189, 248, .12); }
.field > span { color: #6f8096; font-weight: 700; }
.field input { min-width: 0; flex: 1; padding: .9rem 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.field input::placeholder { color: #647287; }
.reveal { border: 0; background: transparent; color: var(--blue); cursor: pointer; font-weight: 700; }
.primary-button { position: relative; display: grid; width: 100%; min-height: 3.4rem; margin-top: 1.6rem; place-items: center; border: 0; border-radius: .8rem; background: linear-gradient(135deg, var(--blue), var(--blue-strong)); color: #03101b; cursor: pointer; font: 800 .9rem/1 inherit; box-shadow: 0 12px 30px rgba(22, 136, 242, .2); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(22, 136, 242, .3); }
.primary-button:disabled { cursor: wait; opacity: .72; }
.spinner { display: none; width: 1.1rem; height: 1.1rem; border: 2px solid rgba(3, 16, 27, .35); border-top-color: #03101b; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-label { display: none; }
.is-loading .spinner { display: block; }
.alert { display: flex; align-items: flex-start; gap: .75rem; margin: 1.2rem 0; padding: .9rem 1rem; border: 1px solid; border-radius: .75rem; font-size: .86rem; line-height: 1.5; }
.alert[hidden] { display: none; }
.alert span { display: grid; flex: 0 0 1.3rem; height: 1.3rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .72rem; font-weight: 900; }
.alert--error { border-color: rgba(255, 157, 157, .3); background: rgba(255, 90, 90, .08); color: var(--danger); }
.alert--success { border-color: rgba(140, 230, 189, .3); background: rgba(48, 196, 128, .08); color: var(--success); }
.secure-note { display: flex; justify-content: center; gap: .5rem; margin: 1.4rem 0; color: #718097; font-size: .72rem; }
.auth-switch { margin: 1.5rem 0 0; color: var(--muted); font-size: .84rem; text-align: center; }
.auth-switch a { color: var(--blue); font-weight: 800; text-decoration: none; }
.terms { display: flex; align-items: flex-start; gap: .65rem; color: var(--muted); font-size: .78rem; font-weight: 400; line-height: 1.45; }
.terms input { margin-top: .2rem; accent-color: var(--blue-strong); }
.form-panel--register { padding-block: 2rem; }
.form-panel--register .wordmark { margin-bottom: 2rem; }
.form-panel--register .heading { margin-bottom: 1rem; }
.back-link { display: block; margin-top: 1.8rem; color: var(--muted); font-size: .8rem; text-decoration: none; }
.back-link:hover { color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

.landing-page { background: #050914; overflow-x: hidden; }
.landing-header { position: fixed; z-index: 10; top: 0; right: 0; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem clamp(1rem, 4vw, 3.5rem); background: linear-gradient(180deg, rgba(5, 9, 20, .88), transparent); }
.landing-wordmark { margin: 0; }
.login-pill { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: 0 1.15rem; border: 1px solid rgba(244, 247, 251, .24); border-radius: .55rem; background: rgba(8, 12, 20, .76); color: var(--text); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); }
.login-pill:hover { border-color: rgba(56, 189, 248, .55); color: var(--blue); }
.landing-hero { position: relative; min-height: 88vh; display: grid; align-items: center; overflow: hidden; padding: 7rem clamp(1.25rem, 6vw, 6rem) 5rem; background: #060a13; }
.landing-hero::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 30%; background: linear-gradient(180deg, transparent, #050914); pointer-events: none; }
.hero-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-backdrop--slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); filter: saturate(.95) brightness(.62); animation: landing-hero-cycle 10s ease-in-out infinite; }
.hero-backdrop--slider img:nth-child(1) { animation-delay: 0s; }
.hero-backdrop--slider img:nth-child(2) { animation-delay: 2s; }
.hero-backdrop--slider img:nth-child(3) { animation-delay: 4s; }
.hero-backdrop--slider img:nth-child(4) { animation-delay: 6s; }
.hero-backdrop--slider img:nth-child(5) { animation-delay: 8s; }
.landing-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 9, 20, .98), rgba(5, 9, 20, .88) 34rem, rgba(5, 9, 20, .48) 72%, rgba(5, 9, 20, .7)), linear-gradient(180deg, rgba(5, 9, 20, .12), rgba(5, 9, 20, .84)); }
.landing-hero__copy { position: relative; z-index: 1; width: min(100%, 48rem); }
.landing-hero h1 { margin: 0; max-width: 46rem; font-family: Georgia, serif; font-size: 5.6rem; font-weight: 400; line-height: .98; letter-spacing: 0; }
.landing-hero__copy > p:not(.eyebrow) { max-width: 36rem; margin: 1.4rem 0 0; color: #c5d2df; font-size: 1.12rem; line-height: 1.75; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.landing-primary { width: auto; min-width: 12rem; margin: 0; padding: 0 1.4rem; text-decoration: none; }
.ghost-button { display: inline-flex; min-height: 3.4rem; align-items: center; justify-content: center; padding: 0 1.25rem; border: 1px solid var(--line); border-radius: .8rem; background: rgba(3, 8, 15, .44); color: var(--text); font-size: .9rem; font-weight: 800; text-decoration: none; }
.ghost-button:hover { border-color: rgba(56, 189, 248, .48); color: var(--blue); }
.landing-band { padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 6vw, 6rem); background: #050914; }
.landing-section-heading { max-width: 44rem; margin: 0 auto 2.4rem; text-align: center; }
.landing-section-heading h2, .poster-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 3.4rem; font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 72rem; margin: 0 auto; }
.feature-grid article { min-height: 13rem; padding: 1.35rem; border: 1px solid var(--line); border-radius: .5rem; background: linear-gradient(180deg, rgba(20, 28, 41, .96), rgba(11, 16, 27, .86)); }
.feature-grid span { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .16em; }
.feature-grid h3 { margin: 2.8rem 0 .7rem; font-size: 1.25rem; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.poster-section { padding: 1rem clamp(1.25rem, 6vw, 6rem) 5rem; background: linear-gradient(180deg, #050914, #080b12); }
.poster-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; max-width: 82rem; margin: 0 auto 1.5rem; }
.poster-heading a { color: var(--blue); font-weight: 800; text-decoration: none; }
.poster-rail { display: grid; grid-template-columns: repeat(5, minmax(12rem, 1fr)); gap: 1rem; max-width: 82rem; margin: 0 auto; overflow-x: auto; padding-bottom: .5rem; }
.poster-card { position: relative; min-height: 22rem; overflow: hidden; border: 1px solid rgba(180, 214, 255, .12); border-radius: .5rem; background-color: #111b29; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: 0 18px 45px rgba(0, 0, 0, .32); }
.poster-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(5, 9, 20, .92)); }
.poster-card div { position: absolute; right: 1rem; bottom: 1rem; left: 1rem; z-index: 1; }
.poster-card span { display: block; color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.poster-card strong { display: block; margin-top: .35rem; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; line-height: 1.05; }
.poster-card--one { background-image: url('/assets/images/vistas/Noches%20Intensas.png'); }
.poster-card--two { background-image: url('/assets/images/vistas/Mundos%20Lejanos.png'); }
.poster-card--three { background-image: url('/assets/images/vistas/Una%20pista%20mas.png'); }
.poster-card--four { background-image: url('/assets/images/vistas/Algo%20Ligero.png'); }
.poster-card--five { background-image: url('/assets/images/vistas/Rutas%20nuevas.png'); }
.landing-footer { display:flex; align-items:center; justify-content:space-between; gap:1.5rem; padding:1.5rem clamp(1.25rem,6vw,6rem); border-top:1px solid var(--line); background:#050914; color:var(--muted); font-size:.75rem; }.landing-footer strong { color:var(--text); letter-spacing:.16em; }.landing-footer nav { display:flex; gap:1.2rem; }.landing-footer a:hover { color:var(--blue); }.landing-footer small { font-size:inherit; }
@keyframes landing-hero-cycle {
    0% { opacity: 0; transform: scale(1.05); }
    8% { opacity: 1; }
    28% { opacity: 1; transform: scale(1); }
    38% { opacity: 0; transform: scale(1.02); }
    100% { opacity: 0; transform: scale(1.02); }
}
@media (max-width: 840px) { .auth-shell { grid-template-columns: 1fr; } .brand-panel { display: none; } .form-panel { padding: 2rem 1.25rem; } .wordmark { margin-bottom: 3.5rem; } }
@media (max-width: 840px) { .landing-header { padding-inline: 1rem; } .landing-wordmark { letter-spacing: .14em; } .landing-hero { min-height: 82vh; padding-inline: 1.25rem; } .landing-hero h1 { font-size: 4rem; } .landing-hero__copy > p:not(.eyebrow) { font-size: 1rem; } .landing-hero__shade { background: linear-gradient(90deg, rgba(5, 9, 20, .99), rgba(5, 9, 20, .9) 64%, rgba(5, 9, 20, .66)); } .landing-section-heading h2, .poster-heading h2 { font-size: 2.6rem; } .feature-grid { grid-template-columns: 1fr; } .poster-heading { align-items: flex-start; flex-direction: column; } .poster-rail { grid-template-columns: repeat(5, 13rem); margin-right: -1.25rem; } .poster-card { min-height: 19rem; } }
@media (max-width: 520px) { .login-pill { min-height: 2.45rem; padding-inline: .8rem; font-size: .7rem; } .landing-hero h1 { font-size: 2.7rem; } .landing-actions a { width: 100%; } }
@media (max-width: 620px) { .landing-footer { align-items:flex-start; flex-direction:column; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; } }
