/* =====================================
   CSS RESET Y VARIABLES
   ===================================== */

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

:root {
    /* Paleta de colores */
    --bg: #0B0B0B;
    --text: #F5F5F5;
    --muted: #B3B3B3;
    --accent: #D4AF37;
    --line: #1A1A1A;
    
    /* Tipografías */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Espaciado */
    --container-max: 1200px;
    --container-padding: 24px;
    --section-spacing: 120px;
    --element-spacing: 32px;
    
    /* Transiciones */
    --transition-fast: 150ms ease-out;
    --transition-smooth: 200ms ease-out;
    
    /* Bordes */
    --radius: 8px;
    --border: 1px solid var(--line);
    
    /* Sombras */
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.4);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    opacity: 0.6;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.08) 3px,
            rgba(255, 255, 255, 0.08) 6px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(255, 255, 255, 0.03) 2px
        );
    animation: filmRoll 15s linear infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="3.5" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.4"/></svg>');
    background-repeat: repeat;
    opacity: 0.35;
    animation: grainAnimation 1s steps(8) infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes filmRoll {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(50px) rotate(0.5deg);
    }
}

@keyframes grainAnimation {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
}

/* =====================================
   UTILIDADES
   ===================================== */

/* Cinematic particles background */
.cinema-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.cinema-particles::before,
.cinema-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: flicker 0.15s steps(2) infinite;
}

.cinema-particles::before {
    top: 20%;
    left: 10%;
}

.cinema-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 0.08s;
}

@keyframes flicker {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: var(--bg);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition-fast);
}

.skip-link:focus {
    top: 6px;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* =====================================
   HEADER Y NAVEGACIÓN
   ===================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 11, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: var(--transition-fast);
}

.logo:hover,
.logo:focus {
    color: var(--accent);
    outline: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text);
    outline: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* Ocultar enlace de guiones temporalmente */
.nav-link[href="#guiones"] {
    display: none !important;
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: var(--transition-fast);
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: var(--transition-fast);
}

.nav-toggle:hover .hamburger-line {
    background: var(--accent);
}

/* Animación del botón hamburguesa cuando está abierto */
.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media queries para móvil */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 72px);
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        border-left: var(--border);
        transition: right 0.3s ease-in-out;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link {
        display: block;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: rgba(212, 175, 55, 0.1);
    }
}

/* =====================================
   MAIN CONTENT
   ===================================== */

.main {
    padding-top: 72px;
    position: relative;
    z-index: 1;
}

/* Film strip decoration */
.main::before,
.main::after {
    content: '';
    position: fixed;
    width: 60px;
    height: 100vh;
    top: 0;
    z-index: -1;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.15) 0px,
            rgba(255, 255, 255, 0.15) 10px,
            transparent 10px,
            transparent 15px,
            rgba(255, 255, 255, 0.2) 15px,
            rgba(255, 255, 255, 0.2) 20px,
            transparent 20px,
            transparent 40px
        ),
        linear-gradient(
            90deg,
            rgba(26, 26, 26, 0.9),
            transparent
        );
    opacity: 0.8;
    animation: filmStripMove 3s linear infinite;
}

.main::before {
    left: 0;
    border-right: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset -10px 0 30px rgba(11, 11, 11, 0.8);
}

.main::after {
    right: 0;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    animation-direction: reverse;
    box-shadow: inset 10px 0 30px rgba(11, 11, 11, 0.8);
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.15) 0px,
            rgba(255, 255, 255, 0.15) 10px,
            transparent 10px,
            transparent 15px,
            rgba(255, 255, 255, 0.2) 15px,
            rgba(255, 255, 255, 0.2) 20px,
            transparent 20px,
            transparent 40px
        ),
        linear-gradient(
            -90deg,
            rgba(26, 26, 26, 0.9),
            transparent
        );
}

@keyframes filmStripMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(40px);
    }
}

/* =====================================
   HERO SECTION
   ===================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        transparent 70%
    );
    animation: spotlightPulse 6s ease-in-out infinite;
}

@keyframes spotlightPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 1;
    }
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text);
    animation: titleGlow 3s ease-in-out infinite alternate;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-family: 'Courier New', Courier, monospace;
    color: var(--muted);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

.hero-quote {
    margin: 2rem 0;
    padding: 1.5rem 0;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quote-text {
    font-size: 1.125rem;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    position: relative;
    display: inline-block;
}

.quote-text.visible {
    opacity: 1;
}

/* Cursor parpadeante tipo máquina de escribir */
.quote-text.visible::after {
    content: '|';
    color: var(--accent);
    animation: blink 0.8s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.quote-author {
    font-size: 0.95rem;
    color: var(--accent);
    font-style: normal;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    transition-delay: 0.2s;
}

.quote-author.visible {
    opacity: 1;
}

.quote-author::before {
    content: "— ";
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* =====================================
   BIOGRAPHY SECTION
   ===================================== */

.biography-section {
    padding: var(--section-spacing) 0;
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(11, 11, 11, 0) 0%,
        rgba(26, 26, 26, 0.3) 50%,
        rgba(11, 11, 11, 0) 100%
    );
}

.biography-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .biography-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
    }
}

.biography-image {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 aspect ratio (4/3 * 100) */
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.biography-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: var(--transition-smooth);
}

.biography-image:hover img {
    filter: grayscale(80%) contrast(1.15);
    transform: scale(1.02);
}

.image-frame {
    position: absolute;
    top: -8px;
    left: -8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.biography-image:hover .image-frame {
    border-color: var(--accent);
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
}

.biography-text {
    position: relative;
}

.biography-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.biography-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.biography-body p {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.biography-body p:last-of-type {
    margin-bottom: 2.5rem;
}

.biography-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.4;
}

@media (max-width: 767px) {
    .biography-section {
        background: rgba(26, 26, 26, 0.5);
        border-top: 2px solid rgba(212, 175, 55, 0.3);
        border-bottom: 2px solid rgba(212, 175, 55, 0.3);
        padding: 3rem 0;
    }
    
    .biography-content {
        display: block;
        background: rgba(11, 11, 11, 0.6);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: var(--radius);
        padding: 2rem 1.5rem;
    }
    
    .biography-image {
        max-width: 400px;
        margin: 0 auto 2rem;
        padding-bottom: 133.33%;
        border: 2px solid rgba(212, 175, 55, 0.3);
    }
    
    .biography-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    
    .biography-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        text-align: center;
    }
}

/* =====================================
   SECTIONS
   ===================================== */

.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

/* Separadores entre secciones en móvil */
@media (max-width: 767px) {
    .section {
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        padding-top: 3rem;
        margin-top: 3rem;
    }
    
    .section:first-of-type {
        border-top: none;
        margin-top: 0;
    }
}

/* Ocultar sección de guiones temporalmente (sin borrar el código) */
#guiones {
    display: none !important;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--element-spacing);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted);
    line-height: 1.6;
}

/* =====================================
   WORKS GRID
   ===================================== */

.works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

/* Grid para microvideos (mantiene diseño de cuadrícula) */
#microvideos .works-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    #microvideos .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

@media (min-width: 1200px) {
    #microvideos .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Grid para cortos (1 por fila, diseño horizontal) */
#cortos .works-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* =====================================
   WORK CARDS
   ===================================== */

.work-card {
    border: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    background: rgba(26, 26, 26, 0.3);
    cursor: pointer;
}

/* Bordes más visibles en móvil para los cortos */
@media (max-width: 767px) {
    #cortos .work-card {
        border: 2px solid rgba(212, 175, 55, 0.4);
        background: rgba(26, 26, 26, 0.6);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        margin-bottom: 2rem;
    }
    
    #cortos .work-card:last-child {
        margin-bottom: 0;
    }
}

/* Diseño horizontal para cortos en desktop */
@media (min-width: 768px) {
    #cortos .work-card {
        display: grid;
        grid-template-columns: 400px 1fr;
        cursor: default;
    }
}

@media (min-width: 1024px) {
    #cortos .work-card {
        grid-template-columns: 500px 1fr;
    }
}

.work-card:hover,
.work-card:focus-within {
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.work-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--line);
}

/* Poster de cortos en diseño horizontal */
@media (min-width: 768px) {
    #cortos .work-poster {
        aspect-ratio: auto;
        height: 100%;
        min-height: 450px;
    }
}

@media (min-width: 1024px) {
    #cortos .work-poster {
        min-height: 500px;
    }
}

.work-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.work-card:hover .work-poster img {
    transform: scale(1.02);
}

#cortos .work-card:hover .work-poster img {
    transform: scale(1.05);
}

.work-content {
    padding: 1.5rem;
}

/* Más padding para cortos en horizontal */
@media (min-width: 768px) {
    #cortos .work-content {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    #cortos .work-content {
        padding: 2.5rem;
    }
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.3;
}

/* Títulos más grandes para cortos */
@media (min-width: 768px) {
    #cortos .work-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
}

.work-description {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Descripción más legible en cortos */
@media (min-width: 768px) {
    #cortos .work-description {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
}

.work-metadata {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.work-date {
    font-weight: 400;
}

.work-age {
    opacity: 0.8;
}

.work-duration {
    opacity: 0.8;
}

.work-metadata::before {
    content: '•';
    color: var(--accent);
    font-weight: bold;
}

/* =====================================
   AWARDS Y BADGES
   ===================================== */

.work-awards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    position: relative;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.festival-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 100px; /* Espacio para el logo */
}

.festival-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.festival-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: var(--transition-fast);
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0.9;
}

.work-card:hover .festival-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Logo más grande en desktop */
@media (min-width: 768px) {
    .festival-logo {
        width: 120px;
        height: 120px;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .festival-info {
        padding-right: 140px;
    }
}

.festival-name {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.festival-categoria {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 500;
    margin: 0;
    font-style: italic;
}

.festival-descripcion {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Descripción más grande en cortos */
@media (min-width: 768px) {
    #cortos .festival-descripcion {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    #cortos .work-awards {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
}

.btn-galeria {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-fast);
    width: fit-content;
    margin-top: 0.5rem;
}

/* Botón más grande en cortos */
@media (min-width: 768px) {
    #cortos .btn-galeria {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

.btn-galeria:hover,
.btn-galeria:focus {
    background: rgba(212, 175, 55, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    outline: none;
}

/* =====================================
   WORK ACTIONS
   ===================================== */

.work-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
}

.btn-watch {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Botón más prominente en cortos */
@media (min-width: 768px) {
    #cortos .btn-watch {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        background: var(--accent);
        color: var(--bg);
        border: none;
    }
    
    #cortos .btn-watch:hover {
        background: rgba(212, 175, 55, 0.9);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    }
}

.btn-watch:hover,
.btn-watch:focus {
    background: var(--accent);
    color: var(--bg);
    outline: none;
    transform: translateY(-1px);
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-tag {
    background: rgba(179, 179, 179, 0.1);
    color: var(--muted);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 400;
}

/* =====================================
   GUIONES SECTION
   ===================================== */

.guiones-section {
    background: linear-gradient(
        180deg,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(11, 11, 11, 0) 100%
    );
}

.guiones-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .guiones-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.guion-card {
    background: rgba(26, 26, 26, 0.5);
    border: var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.guion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: var(--transition-smooth);
}

.guion-card:hover,
.guion-card:focus-within {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.guion-card:hover::before {
    transform: scaleY(1);
}

.guion-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.guion-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.guion-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.guion-status.desarrollo {
    background: rgba(100, 150, 255, 0.2);
    color: #6496FF;
    border: 1px solid rgba(100, 150, 255, 0.3);
}

.guion-status.disponible {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.guion-status.produccion {
    background: rgba(255, 165, 0, 0.2);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.guion-genre {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.guion-logline {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid var(--line);
}

.guion-description {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.guion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    margin-bottom: 1.5rem;
}

.guion-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.guion-meta-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guion-meta-value {
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
}

.guion-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-guion {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-guion:hover,
.btn-guion:focus {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
    outline: none;
}

.btn-guion.primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

.btn-guion.primary:hover,
.btn-guion.primary:focus {
    background: #c19a2e;
    border-color: #c19a2e;
}

/* =====================================
   VIDEO MODAL
   ===================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--bg);
    border: var(--border);
    border-radius: var(--radius);
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: var(--border);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: var(--transition-fast);
    border-radius: var(--radius);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.modal-body {
    padding: 1.5rem;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

/* Contenedor para videos verticales (9:16) */
.video-container.vertical {
    aspect-ratio: 9/16;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Protección contra descarga de videos */
.modal-video {
    /* Ocultar botón de descarga */
    pointer-events: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.modal-video::-webkit-media-controls-download-button {
    display: none !important;
}

.modal-video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

.modal-video::-internal-media-controls-download-button {
    display: none !important;
}

/* Bloquear menú contextual del contenedor del video */
.video-container {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.modal-description {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-metadata {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.modal-awards {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =====================================
   LOADING
   ===================================== */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 11, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   FOOTER
   ===================================== */

.footer {
    border-top: var(--border);
    padding: 3rem 0;
    margin-top: var(--section-spacing);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.footer-email {
    margin: 0;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
    color: var(--accent);
    outline: none;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: var(--border);
    text-align: center;
}

.footer-copyright {
    color: var(--muted);
    font-size: 0.875rem;
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 767px) {
    :root {
        --container-padding: 16px;
        --section-spacing: 80px;
        --element-spacing: 24px;
    }
    
    .nav-container {
        height: 64px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .main {
        padding-top: 64px;
    }
    
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .work-content {
        padding: 1.25rem;
    }
    
    .work-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-watch {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-name,
    .footer-email {
        text-align: center;
    }
    
    .footer-social {
        gap: 2rem;
        justify-content: center;
    }
    
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* =====================================
   SECCIÓN PELÍCULAS
   ===================================== */

.peliculas-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pelicula-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all var(--transition-smooth);
}

.pelicula-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.pelicula-poster {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    transition: transform var(--transition-smooth);
}

.pelicula-card:hover .pelicula-poster {
    transform: scale(1.02);
}

.pelicula-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
}

.pelicula-titulo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.pelicula-subtitulo {
    font-size: 1rem;
    color: var(--muted);
    margin-top: -0.5rem;
}

.pelicula-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--muted);
}

.pelicula-anio,
.pelicula-director {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pelicula-generos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.genero-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pelicula-razon {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 768px) {
    .pelicula-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem;
    }
    
    .pelicula-poster {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .pelicula-info {
        text-align: center;
    }
    
    .pelicula-meta {
        justify-content: center;
    }
    
    .pelicula-generos {
        justify-content: center;
    }
}

/* Página independiente de películas */
.peliculas-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.peliculas-main {
    flex: 1;
    padding: 120px 0 80px;
}

.peliculas-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.peliculas-page .section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.peliculas-page .peliculas-grid {
    max-width: 900px;
}

/* =====================================
   ACCESSIBILITY
   ===================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.work-card:focus,
.btn-watch:focus,
.nav-link:focus,
.logo:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg: #000000;
        --text: #FFFFFF;
        --muted: #CCCCCC;
        --line: #333333;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .modal,
    .loading {
        display: none !important;
    }
    
    .main {
        padding-top: 0;
    }
    
    body {
        background: white;
        color: black;
    }
}