/* =========================================
   1. CONFIGURACIÓN BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
:root { --accent: #f39c12; --dark: #000; --light: #fff; }
html { overflow-y: scroll; height: 100%; }
body { background-color: var(--dark); color: var(--light); min-height: 100vh; overflow-x: hidden; overflow-y: visible; position: relative; }

/* =========================================
   2. HEADER / MENÚ
   ========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 30px 50px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; opacity: 0; transform: translateY(-20px); transition: all 1s ease; }
.logo { font-weight: 900; letter-spacing: 2px; font-size: 1.2rem; display: flex; gap: 10px; align-items: center; }
.menu { display: flex; list-style: none; gap: 40px; }
.menu li a { text-decoration: none; color: white; font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; transition: color 0.3s; }
.menu li a:hover { color: var(--accent); }
.search-icon { cursor: pointer; font-size: 1.1rem; }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 6px; position: relative; }
.hamburger span { display: block; width: 30px; height: 2px; background-color: white; transition: 0.3s; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.95); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; transform: translateY(-100%); transition: transform 0.5s ease-in-out; z-index: 999; }
.mobile-menu-overlay.active { transform: translateY(0); }
.mobile-menu-overlay a { font-family: 'Impact', sans-serif; font-size: 2rem; color: white; text-decoration: none; text-transform: uppercase; letter-spacing: 2px; }
.mobile-menu-overlay a:hover { color: var(--accent); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* =========================================
   3. SLIDER Y CONTENIDOS
   ========================================= */
.slider-container { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 1; background-color: var(--dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 6s ease; }
.slide.active img { transform: scale(1); }
.overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%); z-index: 3; opacity: 0; transition: opacity 1.5s ease; }
.content { position: absolute; left: 8%; top: 22%; max-width: 600px; z-index: 10; opacity: 0; transition: all 1.5s ease; }
.content h4::before { content: ''; display: block; width: 50px; height: 4px; background-color: var(--accent); margin-bottom: 15px; }
.content h4 { font-size: 1.1rem; color: #ddd; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; font-weight: 600; }
.content h1 { font-family: 'Impact', 'Arial Black', sans-serif; font-size: clamp(3.5rem, 7vw, 8rem); line-height: 0.95; margin-bottom: 25px; text-transform: uppercase; color: #fff; }
.content p { font-size: 1.1rem; margin-bottom: 35px; opacity: 0.9; max-width: 90%; line-height: 1.6; color: #eee; }
.btn-discover { display: inline-flex; align-items: center; gap: 10px; padding: 12px 25px; border: 1px solid rgba(255,255,255,0.4); background: rgba(0,0,0,0.2); border-radius: 30px; color: var(--light); text-decoration: none; font-size: 0.8rem; letter-spacing: 2px; transition: 0.3s; text-transform: uppercase; font-weight: bold; }
.btn-discover:hover { background: var(--accent); border-color: var(--accent); color: black; }
.btn-discover::before { content: '\25CF'; color: var(--accent); font-size: 1.2rem; }

/* =========================================
   4. CARTAS
   ========================================= */
.cards { position: absolute; right: 5%; bottom: 12%; display: flex; gap: 15px; z-index: 10; opacity: 0; transform: translateX(50px); transition: all 1.5s ease; }
.card { width: 140px; height: 210px; border-radius: 12px; overflow: hidden; cursor: pointer; opacity: 0.5; transform: scale(0.9); transition: all 0.4s ease; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.5); filter: brightness(0.7); }
.card:hover, .card.active { opacity: 1; transform: scale(1); filter: brightness(1); }
.card.active { border: 2px solid var(--accent); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-info { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px 15px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%); }
.card-info small { display: block; font-size: 9px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px;}
.card-info span { font-size: 16px; font-weight: 700; text-transform: uppercase; line-height: 1.1; display: block;}

/* =========================================
   5. CONTROLES
   ========================================= */
.controls-container { position: absolute; left: 8%; bottom: 8%; display: flex; align-items: center; gap: 40px; z-index: 20; opacity: 0; transition: opacity 1.5s ease; }
.nav-arrows button { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; transition: 0.3s; margin-right: 15px; }
.nav-arrows button:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.1); }
.progress-bar { width: 250px; height: 3px; background: rgba(255,255,255,0.1); position: relative; border-radius: 2px; }
.progress-fill { height: 100%; background: var(--accent); width: 25%; transition: width 0.5s ease; box-shadow: 0 0 10px var(--accent); }
.slide-number { font-size: 2.5rem; font-weight: 900; font-family: 'Impact', sans-serif; color: white; letter-spacing: 2px; }

/* =========================================
   6. INTRO
   ========================================= */
body.loaded .navbar, body.loaded .overlay, body.loaded .content, body.loaded .cards, body.loaded .controls-container { opacity: 1; transform: translate(0); }

.intro-mask { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: white; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; mix-blend-mode: screen; transition: background-color 0.8s ease; pointer-events: auto; cursor: pointer; }
.intro-text { font-family: 'Impact', sans-serif; font-size: 20vw; font-weight: 900; text-transform: uppercase; color: black; line-height: 0.8; letter-spacing: -0.04em; transition: transform 0.1s linear, opacity 0.5s ease; transform-origin: center center; will-change: transform, opacity; }
.intro-text.zoom-effect { transform: scale(50) !important; opacity: 0; transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.8s ease; }
.intro-mask.hidden { background-color: transparent; pointer-events: none; }
.scroll-hint { position: absolute; bottom: 15%; color: black; font-weight: bold; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.scroll-spacer { height: 300vh; width: 100%; display: block; position: relative; z-index: -10; }

/* =========================================
   7. ESTILOS PÁGINAS INTERNAS
   ========================================= */
.page-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-size: cover; background-position: center; filter: brightness(0.25); z-index: -1; }

.contact-container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 140px 20px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.contact-info h4 { color: var(--accent); letter-spacing: 3px; margin-bottom: 15px; font-size: 1rem; text-transform: uppercase; }
.contact-info h1 { font-family: 'Impact', sans-serif; font-size: 4rem; text-transform: uppercase; line-height: 1; margin-bottom: 30px; color: #fff; }
.contact-info p { font-size: 1.1rem; color: #ddd; margin-bottom: 40px; line-height: 1.6; }
.info-item { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }
.icon-box { width: 50px; height: 50px; border: 1px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.2rem; transition: 0.3s; }
.info-item:hover .icon-box { background: var(--accent); color: black; }
.info-text span { display: block; font-size: 0.9rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }
.info-text strong { font-size: 1.1rem; color: #fff; }
.social-links { display: flex; gap: 15px; margin-top: 40px; }
.social-btn { width: 45px; height: 45px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: white; border-radius: 5px; text-decoration: none; transition: 0.3s; }
.social-btn:hover { background: var(--accent); color: black; transform: translateY(-3px); }

.form-wrapper { background: rgba(255,255,255,0.05); padding: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(10px); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; }
.contact-input { width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.2); color: white; font-size: 1rem; border-radius: 5px; outline: none; transition: 0.3s; }
.contact-input:focus { border-color: var(--accent); background: rgba(0,0,0,0.5); }
textarea.contact-input { resize: none; height: 120px; }
.btn-send { width: 100%; padding: 15px; background: var(--accent); color: black; border: none; border-radius: 5px; font-size: 1rem; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.btn-send:hover { background: white; }
.btn-send:disabled { background: #555; cursor: not-allowed; }
#formStatus { margin-top: 20px; padding: 15px; border-radius: 5px; font-weight: bold; text-align: center; display: none; }
.status-success { background: rgba(46, 204, 113, 0.2); border: 1px solid #2ecc71; color: #2ecc71; }
.status-error { background: rgba(231, 76, 60, 0.2); border: 1px solid #e74c3c; color: #e74c3c; }

.story-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 140px 20px 100px; }
.story-header { text-align: center; margin-bottom: 120px; animation: fadeInDown 1s ease; }
.story-header h4 { color: var(--accent); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px; font-size: 1rem; }
.story-header h1 { font-family: 'Impact', sans-serif; font-size: clamp(2.5rem, 6vw, 6rem); text-transform: uppercase; line-height: 1; margin: 0; color: #fff; }
.chapter { display: flex; align-items: center; justify-content: space-between; margin-bottom: 150px; gap: 60px; }
.chapter:nth-child(even) { flex-direction: row-reverse; }
.chapter-text { flex: 1; }
.chapter-text h2 { font-family: 'Impact', sans-serif; font-size: 3rem; text-transform: uppercase; margin-bottom: 25px; color: #fff; border-left: 4px solid var(--accent); padding-left: 25px; }
.chapter-text p { font-size: 1.15rem; line-height: 1.7; color: #ddd; text-align: justify; }
.chapter-image { flex: 1; height: 400px; border-radius: 6px; overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.1); }
.chapter-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.chapter-image:hover img { transform: scale(1.05); }
.manifesto { text-align: center; background: rgba(255,255,255,0.05); padding: 80px 40px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); backdrop-filter: blur(5px); margin-top: 50px; }
.manifesto h2 { font-family: 'Impact', sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 20px; text-transform: uppercase; }
.manifesto p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; color: #ccc;}
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   8. RESPONSIVE Y ADAPTACIONES (MÓVIL)
   ========================================= */
@media (max-width: 1024px) {
    .content h1 { font-size: 5rem; }
    .cards { right: 2%; transform: scale(0.85); transform-origin: bottom right; }
}

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; background: rgba(0,0,0,0.3); backdrop-filter: blur(5px); z-index: 3000; }
    .menu { display: none; }
    .hamburger { display: flex; z-index: 3001; }
    .mobile-menu-overlay { z-index: 2000; background: rgba(0,0,0,0.98); }
    .intro-text { font-size: 16vw; letter-spacing: normal; max-width: 90%; }
    .content { width: 90%; left: 5%; top: auto; bottom: 280px; transform: none; text-align: left; }
    .content h1 { font-size: 3.2rem; margin-bottom: 10px; }
    .content p { font-size: 0.95rem; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } 
    .content h4 { font-size: 0.8rem; margin-bottom: 10px; }
    .content h4::before { width: 30px; height: 3px; margin-bottom: 8px; }
    .cards { display: flex !important; flex-direction: row; flex-wrap: nowrap; right: auto; left: 50%; transform: translateX(-50%) !important; bottom: 80px; width: 96%; justify-content: space-between; gap: 6px; }
    .card { width: 22%; height: 130px; flex-shrink: 0; border-radius: 6px; opacity: 0.6; }
    .card.active { opacity: 1; border: 2px solid var(--accent); transform: scale(1.05); }
    .card img { width: 100%; height: 100%; object-fit: cover; }
    .card-info { display: none; }
    .controls-container { width: 90%; left: 5%; bottom: 20px; justify-content: space-between; gap: 10px; }
    .progress-bar { width: 80px; } 
    .slide-number { font-size: 1.5rem; }
    .nav-arrows button { width: 45px; height: 45px; }

    .contact-container { 
        display: flex !important;
        flex-direction: column !important;
        padding-top: 160px !important; 
        padding-bottom: 50px !important;
        gap: 40px !important;
        width: 100% !important;
    }
    .contact-info { width: 100% !important; text-align: center !important; padding: 0 20px; }
    .info-item { justify-content: center; }
    .social-links { justify-content: center; }
    .form-wrapper { width: 100% !important; padding: 25px !important; background: rgba(0,0,0,0.6); }
    .chapter { flex-direction: column !important; gap: 30px; margin-bottom: 80px; }
    .chapter-image { width: 100%; height: 250px; }
    .story-header h1 { font-size: 3rem; }
    .chapter-text h2 { font-size: 2rem; border-left: 3px solid var(--accent); }
}

/* === ESTILO PARA EL VIDEO === */
/* Importante: z-index alto para tapar cualquier imagen residual o fondo */
.bg-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 5; /* Mayor que la imagen (que suele ser 1 o 2) */
}