@charset "utf-8";

/* ==========================================================================
   1. RESET Y BASES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #050505;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* ==========================================================================
   2. TOP HEADER (Menú Superior Fijo)
   ========================================================================== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.container-header {
    max-width: 1300px;
    width: 95%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.05); }

.top-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.top-nav ul li a {
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.top-nav ul li a:hover { color: #ffd700; }

.header-actions {
    display: flex;
    gap: 12px;
}

.btn-register, .btn-login {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-register {
    background: linear-gradient(180deg, #ffd700 0%, #b8860b 100%);
    color: #000;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid #ffd700;
}

/* ==========================================================================
   3. E-HEADER (MODIFICADO PARA VIDEO DE FONDO)
   ========================================================================== */
.e-header {
    overflow: hidden;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 950px;
    background-color: #000; /* Fondo negro visible en los 60px superiores */
}

.e-header::before {
    display: none;
}

/* ESTILOS PARA EL VIDEO DE FONDO (AJUSTADO A 60PX) */
.video-bg {
    position: absolute;
    /* --- CAMBIO REALIZADO AQUÍ --- */
    top: 80px; /* Bajamos el video 60px */
    height: calc(100% - 60px); /* Restamos 60px para que encaje perfecto abajo */
    /* ----------------------------- */
    left: 0;
    width: 100%;
    object-fit: cover; 
    z-index: 1; 
}

/* Contenedor de imágenes flotantes (Espadas, Logo) */
.e-header .img-box {
    position: absolute;
    width: 1280px;
    height: 950px;
    top: 0;
    left: 50%;
    margin-left: -640px;
    z-index: 10; 
    pointer-events: none;
}

.e-header .img-box div { position: absolute; }
.e-header .img-box img { opacity: 0; display: block; }

/* Ajustes de Armas */
.e-header .img-sword2 { top: 182px; left: 74px; }
.loaded .img-sword2 img { animation: downDiagLeft .8s .4s forwards; }

.e-header .img-shield { top: 176px; left: 260px; }
.loaded .img-shield img { animation: downStraight .8s .3s forwards; }

.e-header .img-sword1 { top: 200px; left: 570px; }
.loaded .img-sword1 img { animation: downDiagRight .8s .5s forwards; }

.e-header .img-wand { top: 172px; left: 895px; }
.loaded .img-wand img { animation: downDiagRight .8s .6s forwards; }

.e-header .img-bow { top: 197px; left: 975px; }
.loaded .img-bow img { animation: downDiagRight .8s .7s forwards; }

/* IMAGEN SEASON 21 (Posición Manual y Tamaño) */
.e-header .img-season21 {
    position: absolute;
    z-index: 20;
    
    /* --- ZONA DE CONTROL MANUAL --- */
    top: 500px;       /* Sube o baja la imagen */
    left: 50%;        
    margin-left: 0px; 
    
    /* TAMAÑO DE LA IMAGEN */
    width: 800px;     /* <--- CAMBIA ESTE NÚMERO (Ej: 600px, 900px, 1000px) */
    /* ----------------------------- */

    transform: translateX(-50%); /* Mantiene el centro perfecto aunque cambies el tamaño */
    text-align: center;
}

/* Aseguramos que la imagen se adapte al nuevo ancho del contenedor */
.e-header .img-season21 img {
    width: 100%;
    height: auto;
}

.loaded .img-season21 img {
    opacity: 0;
    animation: fadeInUpSeason .8s .9s forwards;
}

@keyframes fadeInUpSeason {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}
/* ==========================================================================
   4. NAVEGACIÓN STICKY (Eventos)
   ========================================================================== */
.e-nav {
    position: relative;
    width: 100%;
    height: 95px;
    z-index: 100;
    background: url(../img/bg_nav.png) repeat-x center;
}

.e-nav--fixed {
    position: fixed !important;
    top: 80px !important; 
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.e-nav nav { margin: 0 auto; width: 1201px; height: 100%; }

.e-nav .navigation a {
    display: block; width: 300.25px; height: 100%; float: left;
    background: url(../img/btn_nav.png) no-repeat; font-size: 0; text-indent: -9999em;
}
.e-nav .navigation a:nth-child(2) { background-position-x: -300.25px; }
.e-nav .navigation a:nth-child(3) { background-position-x: -600.5px; }
.e-nav .navigation a:nth-child(4) { background-position-x: -900.75px; }
.e-nav .navigation a:hover { background-position-y: 50%; }
.e-nav .navigation a.current { background-position-y: 100%; }

/* ==========================================================================
   5. SECCIÓN EVENTO 1 (Fondo 1920x1250)
   ========================================================================== */
.e-event1 { 
    width: 100%; 
    min-height: 1250px; 
    padding: 80px 0; 
    background: #000 url(../img/bg_event1_1.jpg) no-repeat center top; 
    background-size: 1920px 1250px; 
    position: relative;
}

.e-event1 .cont-wrap { 
    width: 1280px; 
    margin: 0 auto; 
    position: relative; 
}

.slide-wrap { 
    position: relative; 
    width: 1280px; 
    height: 535px; 
    margin: 270px auto 0; 
}

.slide-box { 
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
}

.slide-list { 
    display: flex; 
    transition: transform 0.5s ease-in-out; 
    list-style: none; 
}

.slide-list li { min-width: 1280px; }

/* Botones Originales Mu (Next/Prev + On) */
.slide-ctrl button {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    width: 82px; 
    height: 82px; 
    border: none; 
    cursor: pointer;
    z-index: 20;
    font-size: 0;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
}

.slide-ctrl .prev { 
    left: -100px; 
    background-image: url(../img/btn_prev.png); 
}
.slide-ctrl .prev:hover { 
    background-image: url(../img/btn_prev_on.png); 
}

.slide-ctrl .next { 
    right: -100px; 
    background-image: url(../img/btn_next.png); 
}
.slide-ctrl .next:hover { 
    background-image: url(../img/btn_next_on.png); 
}

/* ==========================================================================
   6. NUEVO MAPA: AQUILAS TEMPLE
   ========================================================================== */
.aquilas-map-section {
    width: 100%;
    /* Altura exacta de la imagen del mapa */
    height: 2210px;
    background-color: #101010;
    background-image: url('../img/bg_event1_2.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

.aquilas-container {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

/* Texto oculto accesible (SEO) */
.blind-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   6.7. SECCIÓN NIVEL MÁXIMO 1750
   ========================================================================== */
.max-level-section {
    width: 100%;
    height: 1170px;
    background-color: #000;
    background-image: url('../img/bg_event1_3.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

.level-container {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    position: relative;
}

/* ==========================================================================
   7. EVENTO 2: RECOMPENSAS (Modificado Pequeño y Centrado)
   ========================================================================== */
.second-event-main {
    position: relative;
    width: 100%;
    /* FONDO DE LA SECCIÓN */
    background-color: #080808;
    background-image: url('../img/fondo-evento-3.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 80px 0;
    text-align: center;
}

.event-title-container-top {
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.event-title-text-top {
    font-size: 36px;
    color: #ffd700;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.event-title-description-top {
    font-size: 18px;
    color: #e0e0e0;
    margin-top: 10px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.event-image-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10px;
}

/* WRAPPER REDUCIDO */
.event-image-wrapper {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    background-color: #000;
}

.event-image-large {
    display: block;
    width: 100%;
    height: auto;
}

/* Separador elegante entre secciones */
.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 215, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 0;
}

/* ==========================================================================
   8. ANIMACIONES Y UTILS
   ========================================================================== */
@keyframes downDiagLeft { 0% { opacity: 0; transform: translate(-60px, -60px); } 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes downDiagRight { 0% { opacity: 0; transform: translate(60px, -60px); } 100% { opacity: 1; transform: translate(0, 0); } }
@keyframes downStraight { 0% { opacity: 0; transform: translateY(-80px); } 100% { opacity: 1; transform: translateY(0); } }

footer { padding: 40px; text-align: center; background: #000; color: #555; font-size: 13px; }

.e-blind { display: none; }
canvas#canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.hide { display: none; }

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .e-header { margin-top: 80px; }
    .top-nav { display: none; }
    .container-header { width: 90%; }
    .logo img { height: 40px; }
    
    .e-header { height: 600px; }
    .e-header .img-box { transform: scale(0.6); margin-left: -640px; top: -100px; }
    
    .e-nav nav { width: 100%; }
    .e-nav .navigation a { width: 25%; background-size: cover; }
    
    .slide-wrap, .e-event1 .cont-wrap { width: 100%; }
    .slide-list li { min-width: 100vw; }
    .slide-ctrl { display: none; }

    /* AJUSTE PARA EL NUEVO MAPA EN MÓVIL */
    .aquilas-map-section {
        height: 600px;
        background-size: cover; 
        background-position: center center;
    }

    /* AJUSTE PARA EL NIVEL 1750 EN MÓVIL */
    .max-level-section {
        height: 500px;
        background-size: cover;
        background-position: center center;
    }
    
    .event-title-text-top {
        font-size: 24px;
    }
    
    .second-event-main {
        padding: 40px 20px;
    }
}
