:root {
    --bg: #0d0d0d;
    --bg-soft: #111111;
    --bg-card: #181818;
    --bg-card-2: #1b1b1b;
    --border: #292929;
    --border-soft: #333333;
    --text: #ffffff;
    --text-soft: #dddddd;
    --text-muted: #bbbbbb;
    --text-dim: #cccccc;
    --accent: #ffcc00;
    --accent-dark: #111111;
    --accent-soft: rgba(255, 204, 0, 0.35);
    --shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.65);
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 204, 0, 0.055), transparent 34%),
        var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.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;
}

/* CABECERA */

.header {
    background: rgba(8, 8, 8, 0.96);
    border-bottom: 1px solid rgba(255, 204, 0, 0.25);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
}

.logo {
    text-decoration: none;
}

.logo img {
    width: 195px;
}

.menu {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--accent);
}

.search-box {
    display: flex;
    background: #151515;
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    overflow: hidden;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    padding: 10px 12px;
    width: 170px;
    font: inherit;
}

.search-box input::placeholder {
    color: #8d8d8d;
}

.search-box button {
    background: var(--accent);
    border: none;
    padding: 10px 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-box button:hover,
.search-box button:focus-visible {
    background: #fff1a8;
}

/* ELEMENTOS GENERALES */

.tag {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 800;
    padding: 11px 20px;
    border-radius: 40px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-dark);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    background: #ffffff;
    transform: translateY(-1px);
}

.section {
    padding: 70px 0;
}

.section-title {
    position: relative;
    margin-bottom: 38px;
    padding-bottom: 18px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 82px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 204, 0, 0.12));
}

.section-title h2 {
    font-size: 34px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 18px;
}

/* PORTADA */

.home-hero {
    min-height: 620px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(255, 204, 0, 0.16), transparent 35%),
        linear-gradient(rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.94)),
        url("../img/cine-fondo.jpg");
    background-size: cover;
    background-position: center;
    padding: 90px 0;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.home-hero-text h1 {
    font-size: 64px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.home-hero-text p {
    font-size: 22px;
    color: var(--text-soft);
    max-width: 720px;
    margin-bottom: 34px;
}

.home-hero-card {
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.home-hero-card img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: var(--bg-soft);
    padding: 15px;
}

.home-hero-card div {
    padding: 24px;
}

.home-hero-card span,
.category {
    color: var(--accent);
    font-weight: bold;
}

/* TARJETAS */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid #242424;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 204, 0, 0.5);
}

.card img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: var(--bg-soft);
    padding: 15px;
}

.card-content {
    padding: 22px;
}

.card-content h3 {
    margin: 8px 0 10px;
    font-size: 24px;
}

.card-content p {
    color: var(--text-dim);
    margin-bottom: 18px;
}

.card-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.card-content a:hover,
.card-content a:focus-visible {
    color: var(--text);
}

/* CATEGORÍAS */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(255, 204, 0, 0.55);
}

.category-card span {
    display: block;
    font-size: 38px;
    margin-bottom: 14px;
}

.category-card h3 {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card p {
    color: var(--text-dim);
}

.featured-box {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.12), transparent), var(--bg-card);
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius-lg);
    padding: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.featured-box h2 {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 12px;
}

.featured-box p {
    color: var(--text-soft);
    max-width: 760px;
    font-size: 18px;
}

/* ABECEDARIO */

.alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alphabet a {
    background: var(--bg-card);
    color: var(--accent);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: bold;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.alphabet a:hover,
.alphabet a:focus-visible {
    background: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-1px);
}

/* PÁGINAS INTERNAS */

.page-hero {
    background: linear-gradient(135deg, #141414, #090909);
    padding: 80px 0;
    border-bottom: 1px solid #222222;
}

.page-hero h1 {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 15px;
}

.page-hero p {
    color: var(--text-soft);
    font-size: 20px;
    max-width: 720px;
}

.movie-index {
    padding-top: 10px;
}

.letter-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-bottom: 25px;
}

.letter-section h2 {
    color: var(--accent);
    font-size: 34px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.empty {
    color: #777777;
}

/* FICHA DE PELÍCULA */

.curiosity-hero {
    position: relative;
    isolation: isolate;
    min-height: 540px;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.70) 55%, rgba(0, 0, 0, 0.97) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.66), transparent 45%, rgba(0, 0, 0, 0.66)),
        var(--movie-bg);
    background-size: cover;
    background-position: center;
    padding: 105px 0 100px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.17);
    box-shadow: inset 0 -70px 90px rgba(0, 0, 0, 0.62);
}

.curiosity-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 204, 0, 0.11), transparent 28%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px);
    pointer-events: none;
}

.curiosity-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(620px, 72%);
    height: 3px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    box-shadow: 0 0 24px rgba(255, 204, 0, 0.42);
}

.curiosity-hero h1 {
    font-size: clamp(46px, 6vw, 74px);
    line-height: 1.02;
    max-width: 980px;
    margin: 0 auto 24px;
    letter-spacing: -1.8px;
    text-wrap: balance;
    text-shadow: 0 5px 22px rgba(0, 0, 0, 0.92), 0 0 38px rgba(255, 204, 0, 0.08);
}

.curiosity-hero p {
    font-size: clamp(19px, 2.1vw, 24px);
    max-width: 820px;
    margin: 0 auto 38px;
    color: #eeeeee;
    text-wrap: balance;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.92);
}

.movie-intro-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 204, 0, 0.055), transparent 28%),
        linear-gradient(180deg, #121212, #0f0f0f);
    padding: 68px 0;
    border-top: 1px solid #222222;
    border-bottom: 1px solid #242424;
}

.movie-intro-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 45px;
    align-items: center;
}

.movie-poster {
    text-align: center;
}

.movie-poster img {
    width: 100%;
    max-width: 220px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.72), 0 0 0 7px rgba(255, 255, 255, 0.018);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.movie-poster img:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 30px 68px rgba(0, 0, 0, 0.78), 0 0 30px rgba(255, 204, 0, 0.08);
}

.movie-intro-text h2 {
    font-size: 44px;
    color: var(--accent);
    margin-bottom: 8px;
}

.movie-meta {
    color: #aaaaaa;
    margin-bottom: 20px;
    font-weight: bold;
}

.movie-intro-text p {
    color: var(--text-soft);
    font-size: 18px;
    max-width: 760px;
}

.mini-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.mini-info span {
    background: linear-gradient(180deg, #202020, #181818);
    border: 1px solid #343434;
    padding: 10px 15px;
    border-radius: 30px;
    color: var(--accent);
    font-weight: bold;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.curiosity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.curiosity-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #1b1b1b 0%, #161616 100%);
    border: 1px solid #2c2c2c;
    border-radius: var(--radius-md);
    padding: 29px 28px 30px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.curiosity-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.38), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curiosity-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 204, 0, 0.50);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.curiosity-card:hover::before {
    opacity: 1;
}

.curiosity-card span {
    font-size: 37px;
    line-height: 1;
    display: block;
    margin-bottom: 18px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.38));
}

.curiosity-card h3 {
    color: var(--accent);
    font-size: 23px;
    line-height: 1.25;
    margin-bottom: 13px;
    text-wrap: balance;
}

.curiosity-card p {
    color: #d2d2d2;
    line-height: 1.72;
}

.curiosity-card.impact {
    background: linear-gradient(135deg, #2a1d00, var(--bg-card));
    border-color: rgba(255, 204, 0, 0.55);
}

.curiosity-card.warning {
    background: linear-gradient(135deg, #2a1000, var(--bg-card));
    border-color: rgba(255, 120, 60, 0.45);
}

.deep-box {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 204, 0, 0.10), transparent 34%),
        linear-gradient(145deg, #1c1c1c, #111111);
    border: 1px solid rgba(255, 204, 0, 0.30);
    border-radius: 24px;
    padding: 40px 42px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.deep-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), #8f7100);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.25);
}

.deep-box h2 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 34px;
    line-height: 1.18;
    text-wrap: balance;
}

.deep-box p {
    color: #e1e1e1;
    font-size: 18px;
    line-height: 1.75;
}

/* CONTACTO */

.contact-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 30px;
}

.contact-box h2 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 30px;
}

.contact-box p {
    color: var(--text-dim);
    margin-bottom: 22px;
}

.contact-form label {
    display: block;
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 13px;
    color: var(--text);
    margin-bottom: 18px;
    font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #8d8d8d;
}

.contact-form button {
    background: var(--accent);
    color: var(--accent-dark);
    border: none;
    padding: 14px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
    background: #ffffff;
}

.social-links {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    color: var(--accent);
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: bold;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 204, 0, 0.5);
}

.notice-box {
    margin-top: 30px;
    background: var(--bg-soft);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 12px;
}

/* FOOTER */

.footer {
    background: #080808;
    border-top: 1px solid #222222;
    color: #aaaaaa;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

/* MOVIMIENTO ACCESIBLE */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .header-content,
    .home-hero-grid,
    .movie-intro-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .logo {
        display: flex;
        justify-content: center;
    }

    .logo img {
        width: 165px;
    }

    .menu {
        gap: 14px;
    }

    .search-box {
        max-width: 320px;
        margin: auto;
    }

    .search-box input {
        width: 100%;
    }

    .home-hero-text h1,
    .curiosity-hero h1 {
        font-size: 42px;
    }

    .home-hero-text p,
    .curiosity-hero p {
        font-size: 19px;
    }

    .home-hero-card img {
        height: 260px;
    }

    .featured-box {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 45px 0;
    }

    .curiosity-hero {
        min-height: 430px;
        padding: 70px 0;
    }

    .mini-info {
        justify-content: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .deep-box {
        padding: 32px 28px 32px 34px;
        text-align: left;
    }

    .curiosity-card {
        padding: 26px 24px 27px;
    }
}