/* ========================================
   STUNT CORPS - PÁGINA PÚBLICA (CORREGIDO)
   ======================================== */

/* ===== RESET Y BASE ===== */
*, *::before, *::after {
    box-sizing: border-box !important;
}

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

body {
    background: #0a0a0a !important;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
    background: #0a0a0a !important;
    border-bottom: 3px solid #C9A962 !important;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    padding: 15px 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-section .logo {
    height: 60px;
    width: auto;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-name .stunt { color: #ffffff; }
.brand-name .corps { color: #C9A962; }

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 25px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

.nav-menu a:hover { color: #C9A962; }

.nav-menu .btn-access {
    background: #C9A962 !important;
    color: #0a0a0a !important;
    padding: 10px 25px !important;
    border-radius: 4px;
    font-weight: 700 !important;
    transition: all 0.3s ease;
}

.nav-menu .btn-access:hover {
    background: #b8954f !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.4);
}

.language-selector {
    display: flex !important;
    gap: 5px;
    flex-shrink: 0;
}

.lang-btn {
    padding: 6px 14px;
    background: transparent;
    color: #C9A962;
    border: 2px solid #C9A962;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-btn:hover, .lang-btn.active {
    background: #C9A962;
    color: #0a0a0a;
}

/* ===== MENÚ HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    background: transparent;
    border: 2px solid #C9A962;
    border-radius: 4px;
    cursor: pointer;
    padding: 6px;
    z-index: 1002;
    flex-shrink: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #C9A962;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}
.menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.language-selector-mobile {
    display: none !important;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    margin-top: auto;
    justify-content: center;
}

@media (min-width: 901px) {
    .language-selector { display: flex !important; }
    .language-selector-mobile { display: none !important; }
}

@media (max-width: 900px) {
    .menu-toggle { display: flex !important; }
    .language-selector { display: none !important; }
    .language-selector-mobile { display: flex !important; }
    
    .header-content { padding: 10px 15px !important; justify-content: space-between !important; }
    .logo-section .logo { height: 40px !important; }
    .brand-name { font-size: 1.2rem !important; }
    
    /* ✅ MENÚ CON Z-INDEX SUPERIOR AL OVERLAY */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100dvh !important;
        min-height: -webkit-fill-available !important;
        background: #0a0a0a !important;
        flex-direction: column !important;
        padding: 60px 0 0 !important;
        box-shadow: -5px 0 20px rgba(0,0,0,0.8) !important;
        transition: right 0.3s ease !important;
        
        /* Z-INDEX 1002 PARA ESTAR POR ENCIMA DEL OVERLAY (1000) */
        z-index: 1010 !important; 
        
        border-left: 3px solid #C9A962 !important;
        overflow-y: auto !important; 
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        transform: translateZ(0);
    }

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

    .nav-menu a:not(.lang-btn) {
        display: block !important;
        padding: 10px 20px !important;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(201, 169, 98, 0.08) !important;
        flex-shrink: 0 !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-menu .btn-access {
        margin: 15px 15px 5px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
        padding: 8px 20px !important;
    }

    .language-selector-mobile {
        display: flex !important;
        gap: 8px;
        padding: 12px 15px !important;
        border-top: 1px solid rgba(201, 169, 98, 0.15);
        margin-top: auto !important;
        flex-shrink: 0 !important;
        justify-content: center !important;
        background: #0a0a0a !important;
    }
    
    .language-selector-mobile .lang-btn {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
        margin-top: auto !important;      /* Empuja hacia abajo */
        margin-bottom: 20px !important;   /* ✅ NUEVO: Separa del borde inferior */
     
    }

    body.menu-open { overflow: hidden !important; }
    
    /* ✅ OVERLAY CON Z-INDEX INFERIOR AL MENÚ */
    body.menu-open::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100vw !important; 
        height: 100dvh !important;
        background: rgba(0,0,0,0.60) !important; /* Opacidad ajustada */
        
        /* Z-INDEX 1000 PARA QUEDAR DETRÁS DEL MENÚ */
        z-index: 1000 !important; 
        
        pointer-events: auto !important;
        visibility: hidden;
    }
}
/* ===== VIDEO HERO ===== */
.video-hero {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    line-height: 0;
    overflow: hidden;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.video-wrapper video.loaded { opacity: 1; }

.video-wrapper video::-webkit-media-controls,
.video-wrapper video::-webkit-media-controls-enclosure,
.video-wrapper video::-webkit-media-controls-panel,
.video-wrapper video::-webkit-media-controls-play-button,
.video-wrapper video::-webkit-media-controls-start-playback-button,
.video-wrapper video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.mute-btn {
    position: absolute;
    bottom: 25px; right: 25px;
    width: 55px; height: 55px;
    background: rgba(10, 10, 10, 0.85);
    border: 2px solid #C9A962;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: opacity 0.5s ease 0.3s, background 0.3s ease, transform 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    padding: 0;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    -webkit-tap-highlight-color: transparent;
}

.mute-btn.visible { opacity: 1; }
.mute-btn:hover { background: #C9A962; transform: scale(1.1); }
.mute-btn.unmuted { background: #C9A962; border-color: #fff; }

@media (max-width: 768px) {
    .mute-btn {
        width: 45px; height: 45px;
        bottom: 15px; right: 15px;
        font-size: 1.3rem;
    }
}

/* ===== BARRA DE CARGA ===== */
.video-loader {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.video-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 30px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-logo .stunt { color: #ffffff; }
.loader-logo .corps { color: #C9A962; }

.loader-bar-container {
    width: 200px; height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loader-bar {
    width: 30%; height: 100%;
    background: linear-gradient(90deg, #C9A962, #b8954f, #C9A962);
    background-size: 200% 100%;
    border-radius: 2px;
    animation: loading 1.5s ease-in-out infinite;
}

.loader-text {
    color: #C9A962;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes loading {
    0% { width: 30%; background-position: 0% 0%; }
    50% { width: 70%; background-position: 100% 0%; }
    100% { width: 30%; background-position: 0% 0%; }
}

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

/* ===== HERO TEXT ===== */
.hero-text {
    padding: 60px 20px;
    text-align: center;
    background: #0a0a0a;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 4px;
    color: #ffffff;
    word-break: break-word;
}

.hero-text p {
    font-size: 1.4rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-btn {
    padding: 15px 40px;
    background: #C9A962;
    color: #0a0a0a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
}

.hero-btn:hover {
    background: #b8954f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 98, 0.4);
}

/* ===== SECCIONES GENERALES ===== */
.section {
    padding: 80px 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #C9A962;
    font-weight: 700;
}

/* ===== SERVICIOS EXTENDIDOS ===== */
.services-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.service-card-extended {
    background: #1a1a1a;
    padding: 0;
    border-radius: 12px;
    border-top: 4px solid #C9A962;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-extended:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(201, 169, 98, 0.3);
    border-top-color: #b8954f;
}

.service-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #0a0a0a;
    flex-shrink: 0;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.service-card-extended:hover .service-image { transform: scale(1.08); }

.service-image-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60px;
    background: linear-gradient(to top, #1a1a1a 0%, transparent 100%);
    pointer-events: none;
}

.service-card-extended h3 {
    color: #C9A962;
    font-size: 1.6rem;
    margin: 20px 30px 15px 30px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.service-subtitle {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    margin: 0 30px 20px 30px;
    padding: 10px;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 6px;
    border-left: 3px solid #C9A962;
    position: relative;
    z-index: 2;
}

.service-description {
    color: #cccccc;
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 0 30px 30px 30px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.service-description p { margin-bottom: 15px; }
.service-description p:last-child { margin-bottom: 0; }

/* ===== SOBRE NOSOTROS / EQUIPO ===== */
.about-section {
    background: #111111;
    padding: 80px 30px;
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(201, 169, 98, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h2 {
    font-size: 2.8rem;
    color: #C9A962;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-lead {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.team-member {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 4px solid #C9A962;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(201, 169, 98, 0.3);
}

.team-photo-container {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
    background: #0a0a0a !important;
    border-radius: 8px 8px 0 0 !important;
}

.team-photo {
    width: 100% !important;
    aspect-ratio: 3/4 !important;
    object-fit: cover !important;
    object-position: center 15% !important;
    transition: transform 0.5s ease !important;
    display: block !important;
    filter: grayscale(20%) !important;
}

.team-member:hover .team-photo {
    transform: scale(1.05) !important;
    filter: grayscale(0%) !important;
}

.team-photo-container::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 80px;
    background: linear-gradient(to top, #1a1a1a 0%, transparent 100%);
    pointer-events: none;
}

.team-info {
    padding: 25px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    color: #C9A962;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 1px;
}

.team-role {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 15px;
    padding: 8px;
    background: rgba(201, 169, 98, 0.1);
    border-radius: 6px;
    border-left: 3px solid #C9A962;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-description {
    color: #cccccc;
    line-height: 1.7;
    font-size: 0.9rem;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    flex-grow: 1;
}

.team-summary {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, rgba(201, 169, 98, 0.05) 100%);
    padding: 40px;
    border-radius: 12px;
    border: 2px solid rgba(201, 169, 98, 0.3);
    text-align: center;
}

.team-summary p {
    font-size: 1.2rem;
    color: #ffffff;
    line-height: 1.8;
    font-weight: 500;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== CARTELERA ===== */
.cartelera-section {
    background: #111111;
    padding: 80px 30px;
    position: relative;
    overflow: hidden;
}

.cartelera-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top center, rgba(201, 169, 98, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cartelera-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cartelera-header {
    text-align: center;
    margin-bottom: 50px;
}

.cartelera-header h2 {
    font-size: 2.8rem;
    color: #C9A962;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.cartelera-lead {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.cartelera-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

.cartelera-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cartelera-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    aspect-ratio: 2/3;
}

.cartelera-item:hover {
    border-color: #C9A962;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(201, 169, 98, 0.3);
}

.cartelera-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.cartelera-item:hover .cartelera-image { transform: scale(1.08); }

.cartelera-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cartelera-item:hover .cartelera-overlay { opacity: 1; }

.cartelera-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.cartelera-cta {
    color: #C9A962;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

/* ===== FOOTER ===== */
.public-footer {
    background: #0a0a0a;
    border-top: 3px solid #C9A962;
    padding: 25px;
    text-align: center;
    color: #C9A962;
    font-size: 0.9rem;
}

.logo-link {
    text-decoration: none !important;
    outline: none !important;
}

/* ===== RESPONSIVE GLOBAL ===== */
@media (max-width: 1200px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .cartelera-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
    .header-content { flex-wrap: wrap !important; justify-content: center !important; }
    .header-right { width: 100%; justify-content: center; margin-top: 10px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 900px) {
    .hero-text h1 { font-size: 2rem; letter-spacing: 2px; }
    .hero-text p { font-size: 1.1rem; }
    .section h2 { font-size: 1.8rem; }
    .loader-logo { font-size: 1.5rem; }
    .loader-bar-container { width: 150px; }
    .services-grid-extended { grid-template-columns: 1fr; gap: 25px; }
    .service-image-container { height: 200px; }
    .service-card-extended h3 { font-size: 1.4rem; margin: 15px 20px 10px 20px; }
    .service-subtitle { margin: 0 20px 15px 20px; }
    .service-description { padding: 0 20px 20px 20px; }
    .about-header h2 { font-size: 2rem; }
    .about-lead { font-size: 1.1rem; }
    .cartelera-section { padding: 60px 20px; }
    .cartelera-header h2 { font-size: 2rem; }
    .cartelera-lead { font-size: 1rem; }
    .cartelera-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column !important; gap: 15px; }
    .header-right { flex-direction: column; gap: 15px; }
    .nav-menu { gap: 10px; }
    .nav-menu a { font-size: 0.85rem; padding: 6px 10px; }
    .section { padding: 60px 20px; }
    .about-section { padding: 60px 20px; }
    .about-header { margin-bottom: 40px; }
    .team-grid { grid-template-columns: 1fr; gap: 30px; max-width: 400px; margin: 0 auto 60px; }
    .team-name { font-size: 1.3rem; }
    .team-summary { padding: 30px 20px; }
    .team-summary p { font-size: 1rem; }
}

@media (max-width: 600px) {
    .nav-menu { gap: 10px; }
    .nav-menu a { font-size: 0.85rem; padding: 6px 10px; }
    .hero-text { padding: 40px 15px; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-text p { font-size: 1rem; }
    .hero-btn { padding: 12px 30px; font-size: 1rem; }
    .team-info { padding: 20px 15px; }
    .team-name { font-size: 1.2rem; }
    .team-role { font-size: 0.85rem; }
    .team-description { font-size: 0.85rem; }
    .cartelera-grid { grid-template-columns: 1fr; max-width: 350px; margin: 0 auto; }
    .cartelera-overlay { opacity: 1; padding: 15px 10px 10px; }
    .cartelera-title { font-size: 0.9rem; }
    .public-footer { padding: 20px 15px; font-size: 0.8rem; }
}

/* Tablets específicas */
@media (min-width: 768px) and (max-width: 1024px) {
    .team-photo { min-height: 350px !important; max-height: 450px !important; object-position: center 10% !important; }
}

@media (min-width: 600px) and (max-width: 768px) {
    .team-photo { min-height: 280px !important; max-height: 350px !important; object-position: center 15% !important; }
}

@media (max-width: 599px) {
    .team-photo { min-height: 250px !important; object-position: center 20% !important; }
}

@media (min-width: 1025px) {
    .team-photo { height: auto; min-height: 400px; max-height: 500px; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}