/* Fuentes */

@font-face {
    font-family: 'Adieu';
    src: url('fonts/Adieu.woff2') format('woff2'), 
         url('fonts/Adieu.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}
@font-face {
    font-family: 'Adieu';
    src: url('fonts/Adieu-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES Y RESET */

:root {
    --text-color: #fff;
    --counter-bg: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Adieu', 'Barlow', sans-serif; 
    color: var(--text-color);
}

/* VIDEO DE FONDO */

.video-background {
    position: fixed;
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    
    /* Propiedades para asegurar que el video cubra todo el viewport */
    min-width: 100%;  
    min-height: 100%; 
    
    width: auto;      
    height: auto;     
    
    z-index: 1; 
    overflow: hidden;
}

/* CONTENIDO */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 2;
    
    background: linear-gradient(
        to bottom,
        rgba(25,65,130,1),
        rgba(0,155,150,1),
        rgba(0,155,150,0),
        rgba(0,155,150,0),
        rgba(0,155,150,0),
        rgba(0,155,150,0),
        rgba(0,155,150,1),
        rgba(25,65,130,1)
    );

}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Estructura para Escritorio (Grid) */
    display: grid;
    grid-template-rows: 20% 1fr 20%; 
    grid-template-columns: 35% 65%; 
    grid-template-areas: 
        "logo counter"
        "info main-image"
        "footer footer";
    padding: 30px 50px;
    z-index: 3;
}

/* -------------------- */
/* LOGO Y CONTADOR */
/* -------------------- */

.logo-header {
    grid-area: logo;
    align-self: start;
    justify-self: start;
    text-align: center;
    padding-top: 10px;
}

.logo-img {
    width: 250px; 
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.subtitle {
    font-size: 0.9em;
    font-weight: 300;
    letter-spacing: 2px;
}

/* -------------------- */
/* AJUSTE PARA GRUPO CONTADOR + BOTÓN */
/* -------------------- */

.top-right-group {
    grid-area: counter; /* Aseguramos que ocupe el área del contador en el grid */
    align-self: start;
    justify-self: end;
    display: flex;
    flex-direction: column; /* Apila el contador y el botón verticalmente */
    align-items: flex-end; /* Alinea ambos a la derecha */
    gap: 15px; /* Espacio entre el contador y el botón */
    padding-top: 10px;
}

/* -------------------- */
/* ESTILO DEL BOTÓN CTA */
/* -------------------- */

.cta-button {
    /* Estilos del botón para que se vea bien */
    display: inline-block;
    padding: 10px 20px;
    background-color: #009B96; /* Turquesa, usa un color vibrante */
    color: #fff;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #007C77; /* Color más oscuro al pasar el ratón */
}

/* Puedes eliminar la clase .countdown-container, ya no la necesitamos, 
   o ajustarla para que solo contenga el contador si lo prefieres */
.countdown-container {
    /* Elimina el justify-self: end si lo tenías, ya lo maneja .top-right-group */
    text-align: right;
    /* Asegúrate de que no tenga padding-top si ya está en el grupo */
}

.countdown {
    display: flex;
    gap: 15px;
    background-color: var(--counter-bg);
    padding: 10px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.time-block span {
    font-size: 2.5em; 
    font-weight: 700;
    line-height: 1;
}

.time-block label {
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff; /* Turquesa, usa un color vibrante */
    color: #009B96;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #009B96;
    color: #fff; 
}


/* -------------------- */
/* TEXTO PRINCIPAL */
/* -------------------- */

.main-info {
    grid-area: info;
    align-self: center;
    justify-self: start;
    text-align: left;
    transform: translateY(-50px);
}

.future-text {
    font-size: 3.5em;
    font-weight: 900;
    line-height: 0.9;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

.location-date-group {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
}

.separator {
    margin: 0 10px;
}

.location .fa-water-ladder {
    margin-right: 5px;
}

/* -------------------- */
/* FOOTER (PATROCINADORES Y REDES) */
/* -------------------- */

.footer-bar {
    grid-area: footer;
    align-self: end;
    justify-self: start;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.sponsors {
    display: flex;
    gap: 20px;
}

.sponsor-logo {
    height: 30px; 
    opacity: 0.8;
}

.social-links {
    margin-left: auto;
    align-items: end;
    gap: 20px;
    display: flex; 
}

/* -------------------------------------- */
/* MEDIA QUERY: RESPONSIVO MÓVIL (VERTICAL) */
/* -------------------------------------- */
@media (max-width: 850px) {
    
    .content-overlay {
        /* Reorganización para que todo esté centrado verticalmente */
        grid-template-rows: auto auto 1fr auto; 
        grid-template-columns: 100%;
        grid-template-areas: 
            "logo"
            "counter"
            "info"
            "footer";
        padding: 20px;
        text-align: center;
    }
    
    /* 1. Logo y Contador (centrados) */
    .logo-header {
        justify-self: center;
        margin-bottom: 15px;
    }

    .logo-img {
        width: 120px; 
    }

    .countdown-container {
        justify-self: center;
        margin-bottom: 30px;
    }
    
    .countdown {
        padding: 8px 15px;
        gap: 8px;
    }
    
    .time-block span {
        font-size: 1.8em; 
    }
    .time-block label {
        font-size: 0.6em; 
    }

    /* 2. Texto Principal (centrado en móvil) */
    .main-info {
        justify-self: center;
        text-align: center;
        transform: translateY(0);
        margin-bottom: 50px;
    }
    
    .future-text {
        font-size: 2.5em; 
        line-height: 1;
    }
    
    .location-date-group {
        justify-content: center;
        font-size: 1em;
    }

    /* 3. Footer (Patrocinadores y Redes) */
    .footer-bar {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .sponsors {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .sponsor-logo {
        height: 25px;
    }
    
    .social-links {
        display: flex; 
        align-items: center;
        gap: 15px;
        font-size: 1.2em;
    }
    
    .social-links .handle {
        font-size: 0.8em;
        font-weight: 300;
        margin-left: 5px;
    }
}