/* Aldebaran — landing. Hoja autocontenida: no depende de series.css. */

:root {
    color-scheme: dark;

    --ink: #07070a;
    --ink-raised: #0e0e13;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);

    --text: #f5f2ec;
    --text-muted: #a39d93;
    --text-faint: #6f6a63;

    --accent: #ffc857;
    --accent-deep: #f0a71f;
    --accent-ink: #1a1405;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;

    --shell: 1180px;
    --gutter: clamp(20px, 5vw, 48px);
    --block: clamp(72px, 11vw, 140px);

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font);
    font-size: clamp(16px, 1.05vw, 17px);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration-color: rgba(255, 200, 87, 0.35);
    text-underline-offset: 3px;
}

a:hover {
    text-decoration-color: currentColor;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    padding: 12px 18px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

.shell {
    width: min(var(--shell), 100%);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Cabecera ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 7, 10, 0.72);
    backdrop-filter: saturate(160%) blur(18px);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.site-header.is-stuck {
    border-bottom-color: var(--line);
}

.nav-shell {
    width: min(var(--shell), 100%);
    margin-inline: auto;
    padding: 14px var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 620;
    letter-spacing: -0.02em;
    margin-right: auto;
}

.brand-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(150deg, var(--accent), var(--accent-deep));
    color: var(--accent-ink);
    font-weight: 800;
    font-size: 16px;
}

.nav-links {
    display: flex;
    gap: clamp(14px, 2.2vw, 28px);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.94rem;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.language-switcher {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
}

.language-link {
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-decoration: none;
}

.language-link.is-active {
    background: var(--accent);
    color: var(--accent-ink);
}

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

/* En pantallas estrechas el CTA de cabecera no cabe junto a marca e idioma;
   el hero lleva el suyo inmediatamente debajo. */
@media (max-width: 460px) {
    .nav-actions .btn {
        display: none;
    }
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.97rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(160deg, #ffd478, var(--accent-deep));
    color: var(--accent-ink);
    box-shadow: 0 10px 30px -12px rgba(255, 200, 87, 0.7);
}

.btn-ghost {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--surface-strong);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.88rem;
}

.btn-store {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 11px 26px;
    line-height: 1.25;
}

.btn-store .btn-store-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.72;
}

.btn-store .btn-store-label {
    font-size: 1.02rem;
    font-weight: 680;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(56px, 9vw, 104px) clamp(48px, 8vw, 96px);
    overflow: hidden;
}

.hero-wall {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("../series/images/poster-wall.webp");
    background-repeat: repeat;
    background-size: auto clamp(560px, 62vw, 860px);
    background-position: center top;
    filter: blur(10px) saturate(145%) brightness(1.12);
    opacity: 0.8;
    /* El .hero recorta, así que la rotación siempre tiene superficie de sobra. */
    transform: rotate(-4deg) scale(1.28);
    transform-origin: center;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 58%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 58%, transparent 96%);
}

html[lang="en"] .hero-wall {
    background-image: url("../series/images/poster-wall-en.webp");
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 55% at 16% 6%, rgba(255, 200, 87, 0.18), transparent 66%),
        linear-gradient(180deg, rgba(7, 7, 10, 0.26) 0%, rgba(7, 7, 10, 0.48) 50%, rgba(7, 7, 10, 0.86) 84%, var(--ink) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

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

.eyebrow {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 660;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 22px;
    padding: 7px 15px 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(7, 7, 10, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.82rem;
    font-weight: 560;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}

.status-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.18);
}

.hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.3rem);
    font-weight: 700;
    text-shadow: 0 2px 40px rgba(7, 7, 10, 0.75);
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--accent) 10%, #ffe6ae 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    margin-top: 22px;
    max-width: 44ch;
    font-size: clamp(1.02rem, 1.5vw, 1.17rem);
    color: var(--text-muted);
    line-height: 1.55;
    text-shadow: 0 1px 24px rgba(7, 7, 10, 0.8);
}

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

.hero-note {
    margin-top: 18px;
    font-size: 0.86rem;
    color: var(--text-faint);
}

/* Maqueta de dispositivo */

.device {
    position: relative;
    margin: 0;
    border-radius: clamp(28px, 3.4vw, 46px);
    padding: 7px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, rgba(0, 0, 0, 0.6));
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device img {
    width: 100%;
    height: auto;
    border-radius: calc(clamp(28px, 3.4vw, 46px) - 7px);
}

.hero-device {
    width: min(318px, 76%);
    margin-inline: auto;
    /* El dispositivo se funde con el fondo por abajo en lugar de cortarse en seco. */
    -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
    mask-image: linear-gradient(180deg, #000 76%, transparent 99%);
}

.hero-device::before {
    content: "";
    position: absolute;
    inset: -14% -22%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(255, 200, 87, 0.22), transparent 72%);
    pointer-events: none;
}

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

.section {
    padding-block: var(--block);
}

.section-alt {
    background: linear-gradient(180deg, transparent, var(--ink-raised) 12%, var(--ink-raised) 88%, transparent);
}

.section-head {
    max-width: 62ch;
    margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2 {
    margin-top: 16px;
    font-size: clamp(1.95rem, 3.9vw, 2.9rem);
    font-weight: 660;
}

.section-head p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: clamp(1rem, 1.3vw, 1.08rem);
}

/* Tres promesas con captura */

.promise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
}

.promise {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.015));
    overflow: hidden;
}

.promise-copy {
    padding: clamp(22px, 2.6vw, 30px);
}

.promise-copy h3 {
    font-size: 1.24rem;
    font-weight: 640;
    letter-spacing: -0.025em;
}

.promise-copy p {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.promise-source {
    display: block;
    margin-top: 16px;
    font-size: 0.79rem;
    line-height: 1.5;
    color: var(--text-faint);
}

.promise-shot {
    margin: 0 clamp(22px, 2.6vw, 30px);
    margin-top: auto;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, 0.9);
}

.promise-shot img {
    width: 100%;
    height: auto;
    /* Encuadra la parte alta de la captura, que es donde vive el contenido útil. */
    aspect-ratio: 9 / 10;
    object-fit: cover;
    object-position: top center;
}

/* Bandas alternas con captura grande */

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

.band + .band {
    margin-top: var(--block);
}

.band:nth-child(even) .band-media {
    order: -1;
}

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

    .band:nth-child(even) .band-media {
        order: 0;
    }
}

.band-copy h3 {
    margin-top: 14px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 650;
}

.band-copy p:not(.eyebrow) {
    margin-top: 18px;
    color: var(--text-muted);
}

.band-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.band-list li {
    position: relative;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.band-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--accent);
}

.band-media {
    width: min(320px, 78%);
    margin-inline: auto;
}

/* Tira de capturas */

.strip {
    margin-top: clamp(36px, 5vw, 56px);
    display: flex;
    gap: clamp(14px, 2vw, 22px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    scrollbar-width: thin;
}

.strip figure {
    margin: 0;
    flex: 0 0 clamp(190px, 24vw, 250px);
    scroll-snap-align: start;
}

.strip figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

/* Privacidad */

.privacy {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 200, 87, 0.09), transparent 58%),
        var(--surface);
}

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

.privacy h2 {
    margin-top: 14px;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 650;
}

.privacy p:not(.eyebrow) {
    color: var(--text-muted);
}

.privacy ul {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.privacy li {
    position: relative;
    padding-left: 26px;
    color: var(--text-muted);
    font-size: 0.97rem;
}

.privacy li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* Atribución TMDB */

.credits {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    margin-top: clamp(28px, 4vw, 44px);
    padding: 22px clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.credits p {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-faint);
    line-height: 1.55;
}

.credits img {
    height: 26px;
    width: auto;
}

/* Cierre */

.closer {
    text-align: center;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(90% 120% at 50% 0%, rgba(255, 200, 87, 0.13), transparent 62%),
        var(--ink-raised);
}

.closer h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 660;
}

.closer p:not(.eyebrow) {
    max-width: 52ch;
    margin: 18px auto 0;
    color: var(--text-muted);
}

.closer .hero-actions {
    justify-content: center;
}

/* Pie */

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 40px;
    margin-top: var(--block);
}

.footer-shell {
    width: min(var(--shell), 100%);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 26px;
    font-size: 0.85rem;
    color: var(--text-faint);
}

.footer-shell p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-left: auto;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}
