/* === HERO SECTION MODULE STYLES - COMPLETO === */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* === HERO BACKGROUND === */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

/* === HERO TITLE === */
.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-sky {
    color: var(--accent-cyan);
    text-shadow: 0 0 30px var(--accent-cyan);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-web {
    color: var(--accent-gold);
    text-shadow: 0 0 30px var(--accent-gold);
    animation: glow 2s ease-in-out infinite alternate-reverse;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px currentColor;
    }
    to {
        text-shadow: 0 0 40px currentColor, 0 0 60px currentColor;
    }
}

/* === RESPONSIVE HERO TITLE === */
/* === RESPONSIVE HERO TITLE === */
@media (max-width: 1366px) and (min-width: 1025px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem) !important;
        margin-top: 80px !important; /* Más margin-top */
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2rem, 4vw, 3rem) !important;
        margin-top: 60px !important;
        margin-bottom: 1rem !important;
    }
}
/* === FILM CAROUSEL MEJORADO === */
.film-carousel-container {
    position: relative;
    margin: 2rem auto;
    max-width: 700px;
    width: 90%;
}

.film-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
}

.film-carousel {
    display: flex;
    gap: 1rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.film-card {
    min-width: 160px;
    height: 140px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    overflow: hidden;
}

.film-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.film-card:hover::before {
    transform: translateX(0);
}

.film-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.film-perforation {
    position: absolute;
    width: 100%;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 4px,
        var(--primary-dark) 4px,
        var(--primary-dark) 8px
    );
}

.film-perforation:first-child {
    top: 0;
}

.film-perforation:last-child {
    bottom: 0;
}

.film-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 2;
    padding: 0.5rem;
}

.film-content i {
    font-size: 2rem;
    color: var(--accent-cyan);
    transition: all 0.3s ease;
}

.film-card:hover .film-content i {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.film-content span {
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.2;
}

/* === CONTROLES DEL CAROUSEL === */
.film-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    position: relative;
}

.film-control {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10;
}

.film-control:hover:not(:disabled) {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.film-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.film-control:active:not(:disabled) {
    transform: scale(0.95);
}

/* === INDICADORES === */
.film-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.film-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.film-indicator.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
    transform: scale(1.2);
}

.film-indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* === AUTOPLAY INDICATOR === */
.autoplay-indicator {
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    background: var(--glass-effect);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.autoplay-indicator.paused {
    color: var(--accent-gold);
}

.autoplay-indicator i {
    font-size: 0.6rem;
}

/* === HERO DESCRIPTION === */
.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* === HERO BUTTONS === */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-gold);
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-gold);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
}

/* === RESPONSIVE HERO === */
@media (max-width: 1024px) {
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 7vw, 6rem);
    }
    
    .film-carousel {
        gap: 0.8rem;
    }
    
    .film-card {
        min-width: 140px;
        height: 120px;
    }
    
    .film-content i {
        font-size: 1.8rem;
    }
    
    .film-content span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Film carousel mobile */
    .film-carousel-container {
        max-width: 100%;
        margin: 1.5rem auto;
    }
    
    .film-carousel-wrapper {
        padding: 1rem 0.8rem;
    }
    
    .film-carousel {
        gap: 0.8rem;
    }
    
    .film-card {
        min-width: 140px;
        height: 120px;
    }
    
    .film-content i {
        font-size: 1.6rem;
    }
    
    .film-content span {
        font-size: 0.75rem;
    }
    
    .film-control {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .film-indicators {
        gap: 0.4rem;
    }
    
    .film-indicator {
        width: 6px;
        height: 6px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    /* Film carousel pequeño */
    .film-carousel-container {
        width: 95%;
        margin: 1rem auto;
    }
    
    .film-carousel-wrapper {
        padding: 0.8rem 0.5rem;
        border-radius: 15px;
    }
    
    .film-carousel {
        gap: 0.6rem;
    }
    
    .film-card {
        min-width: 120px;
        height: 100px;
        border-radius: 10px;
    }
    
    .film-content {
        gap: 0.5rem;
    }
    
    .film-content i {
        font-size: 1.4rem;
    }
    
    .film-content span {
        font-size: 0.7rem;
    }
    
    .film-control {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .film-controls {
        margin-top: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
    
    .film-card {
        min-width: 100px;
        height: 85px;
    }
    
    .film-content i {
        font-size: 1.2rem;
    }
    
    .film-content span {
        font-size: 0.65rem;
    }
}

/* === LANDSCAPE MOBILE === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .film-carousel-container {
        margin: 1rem auto;
    }
    
    .film-card {
        height: 80px;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
}

/* === SMOOTH ANIMATIONS === */
.film-carousel.transitioning {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === HOVER PAUSE EFFECT === */
.film-carousel-container:hover .autoplay-indicator {
    background: rgba(255, 193, 7, 0.1);
    border-color: var(--accent-gold);
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .film-carousel {
        transition: none;
    }
    
    .hero-sky,
    .hero-web {
        animation: none;
    }
    
    .film-card {
        transition: none;
    }
}
/* === MOBILE HERO FIXES === */

/* === FILM CAROUSEL MOBILE ESPECÍFICO === */
@media (max-width: 768px) {
    .film-carousel-container {
        max-width: 100%;
        margin: 1.5rem auto;
        width: calc(100% - 2rem); /* Evita overflow */
        padding: 0 1rem;
    }
    
    .film-carousel-wrapper {
        padding: 1.2rem 0.5rem 1.8rem 0.5rem; /* Más padding abajo para controles */
        border-radius: 15px;
        position: relative;
    }
    
    .film-carousel {
        gap: 0.8rem;
        padding: 0 0.5rem; /* Padding interno para evitar corte */
    }
    
    .film-card {
        min-width: 130px;
        height: 110px;
        border-radius: 10px;
    }
    
    .film-content i {
        font-size: 1.5rem;
    }
    
    .film-content span {
        font-size: 0.7rem;
        line-height: 1.1;
        padding: 0 0.2rem;
    }
    
    /* CONTROLES MÓVIL - MÁS GRANDES Y VISIBLES */
    .film-controls {
        margin-top: 1rem;
        padding: 0 0.5rem;
        position: relative;
        z-index: 15;
    }
    
    .film-control {
        width: 42px;
        height: 42px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .film-control:hover:not(:disabled) {
        background: var(--accent-cyan);
        color: var(--primary-dark);
        transform: scale(1.1);
        border-color: var(--accent-cyan);
    }
    
    /* INDICADORES MÓVIL */
    .film-indicators {
        gap: 0.5rem;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    
    .film-indicator {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .film-indicator.active {
        background: var(--accent-cyan);
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
        transform: scale(1.3);
        border-color: var(--accent-cyan);
    }
    
    /* AUTOPLAY INDICATOR MÓVIL */
    .autoplay-indicator {
        top: -0.8rem;
        right: 0.5rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 480px) {
    .film-carousel-container {
        width: calc(100% - 1rem);
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .film-carousel-wrapper {
        padding: 1rem 0.3rem 1.5rem 0.3rem;
        border-radius: 12px;
    }
    
    .film-carousel {
        gap: 0.6rem;
        padding: 0 0.3rem;
    }
    
    .film-card {
        min-width: 115px;
        height: 95px;
        border-radius: 8px;
    }
    
    .film-content {
        gap: 0.4rem;
        padding: 0.3rem;
    }
    
    .film-content i {
        font-size: 1.3rem;
    }
    
    .film-content span {
        font-size: 0.65rem;
        line-height: 1;
    }
    
    /* CONTROLES MÓVIL PEQUEÑO */
    .film-controls {
        margin-top: 0.8rem;
        padding: 0 0.3rem;
    }
    
    .film-control {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }
    
    .film-indicators {
        gap: 0.4rem;
    }
    
    .film-indicator {
        width: 7px;
        height: 7px;
    }
    
    /* HERO TITLE MÓVIL MEJORADO */
    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
        margin-bottom: 1.2rem;
        line-height: 1.1;
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    /* BOTONES HERO MÓVIL */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 260px;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        justify-content: center;
    }
}

@media (max-width: 360px) {
    .film-carousel-container {
        width: calc(100% - 0.5rem);
        padding: 0 0.25rem;
    }
    
    .film-carousel-wrapper {
        padding: 0.8rem 0.2rem 1.3rem 0.2rem;
    }
    
    .film-card {
        min-width: 100px;
        height: 80px;
    }
    
    .film-content i {
        font-size: 1.1rem;
    }
    
    .film-content span {
        font-size: 0.6rem;
    }
    
    .film-control {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 0.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        max-width: 240px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* === LANDSCAPE MOBILE ESPECÍFICO === */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 0.8rem;
    }
    
    .film-carousel-container {
        margin: 0.8rem auto;
    }
    
    .film-carousel-wrapper {
        padding: 0.8rem 0.5rem 1.2rem 0.5rem;
    }
    
    .film-card {
        min-width: 100px;
        height: 70px;
    }
    
    .film-content i {
        font-size: 1rem;
    }
    
    .film-content span {
        font-size: 0.6rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* === TOUCH IMPROVEMENTS === */
@media (max-width: 768px) {
    .film-card {
        touch-action: manipulation;
    }
    
    .film-control {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3);
    }
    
    .film-indicator {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3);
    }
    
    /* Evitar zoom en doble tap */
    .film-carousel-container {
        touch-action: pan-x pinch-zoom;
    }
}

/* === DEBUGGING HELPER (remove in production) === */
/* Uncomment to see boundaries in development */
/*
@media (max-width: 768px) {
    .film-controls {
        border: 1px solid red;
    }
    
    .film-control {
        border: 2px solid yellow !important;
    }
    
    .film-indicators {
        border: 1px solid green;
    }
}
*/