/* Estilo general del body (solo la parte de fondo relevante para el contexto) */
body {
    background: url(ftoesc.jpeg) no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
}


.header::before {
    content: '';
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0,0,0, .1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255, .4),
    transparent);
    transition: .5s;
}

.header:hover::after {
    left: 100%;
}

/* ESTILO DEL LOGO (CONTENEDOR DEL ENLACE) */
.logo{
    text-decoration: none;
    font-weight: 700;
    display: flex; /* Asegura que la imagen esté bien centrada */
    align-items: center;
}

/* ESTILO DE LA IMAGEN DENTRO DEL LOGO */
.logo img {
    height: 2.5rem; /* Ajusta la altura de la imagen en la barra */
    width: auto;
}

.navbar a{
    font-size: 1.15rem;
    color: aliceblue;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.8rem;
}

/* ------------------------------------- */
/* --- ESTILOS PARA MENÚS DESPLEGABLES (DROPDOWN) - ESCRITORIO --- */
/* ------------------------------------- */

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 0.8rem;
}

.dropdown > a {
    font-size: 1.15rem;
    color: aliceblue;
    text-decoration: none;
    font-weight: 500;
    margin: 0; 
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: rgba(0,0,0, .7); 
    backdrop-filter: blur(20px);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    z-index: 200;
    border-radius: 5px;
    padding: 5px 0; 
}

.dropdown-content a {
    color: aliceblue;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.3s;
    font-weight: 400;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown:hover .dropdown-content {
    display: block; /* Muestra el submenú al pasar el ratón en escritorio */
}


.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: aliceblue;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

@media (max-width: 992px) {
    .header {
        padding: 1.3rem 2rem;
    }
}

@media (max-width: 768px) {
    .icons {
        display: inline-flex;
    }
    
    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0; 
        background: rgba(0,0,0, .1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0, .1);
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar {
        height: 100vh; 
        overflow-y: auto; 
    }

    /* Reglas para los elementos de navegación en móvil */
    .navbar a,
    .dropdown {
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
    }
    
    /* ESTILOS DE LOS CONTENEDORES DROPDOWN EN MÓVIL */
    .dropdown {
        margin: 1.5rem 0;
        display: block;
    }

    .dropdown-content {
        /* Ocultar submenú por defecto en móvil */
        display: block; 
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out; 
        
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        transform: none;
    }

    /* ESTILO DE LOS SUBENLACES EN MÓVIL (Indentación) */
    .dropdown-content a {
        text-align: left; 
        padding: 8px 16px; 
        padding-left: 60px; /* INDENTACIÓN */
        font-size: 1rem; 
        margin: 0.5rem 0; 
        
        opacity: 1; 
        transform: none;
    }
    
    /* Aseguramos que el enlace principal no tenga el margen de los otros */
    .dropdown-toggle {
        margin: 1.5rem 0;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #FFF8E7; /* Color cremita claro */
    height: 100vh; /* Se mantiene para que la galería ocupe 100% */
    overflow: hidden; /* Se mantiene para que la galería NO tenga scroll */
    position: relative;
}

/* === NUEVO: Contenedor que maneja el desplazamiento === */
.scroll-wrapper {
    width: 100%;
    height: 100vh;
    overflow-y: scroll; /* Habilita el scroll vertical */
    overflow-x: hidden; 
}

/* === NUEVO: Estilos de la Sección de Inicio (Hero) === */
.hero-section {
    width: 100%;
    height: 100vh; 
    
    /* IMAGEN DE FONDO: Usa la ruta de una de tus fotos */
    background-image: url('images/fotofondo.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 

    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-content {
    color: white; /* Letras blancas */
    text-align: center;
    z-index: 10; 
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5em; 
    margin-bottom: 0.2em;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.5em; 
    font-family: 'Arial', sans-serif;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
}
/* ======================================================== */


.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.carousel-container {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px; /* Espacio entre filas */
}

.carousel-container:last-child {
    margin-bottom: 0; /* Eliminar margen en la última fila */
}

.carousel-row {
    display: flex;
    gap: 15px;
    position: relative;
    height: 100%;
    padding: 0 10px;
}

.carousel-track {
    display: flex;
    gap: 15px;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    height: 100%;
}

/* === VELOCIDADES PERSONALIZADAS (50s, 60s, 70s) === */
.row-1 .carousel-track {
    animation: scrollLeft 50s linear infinite; 
}

.row-2 .carousel-track {
    animation: scrollRight 60s linear infinite;
}

.row-3 .carousel-track {
    animation: scrollLeft 70s linear infinite;
}
/* ================================================= */

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.image-card {
    min-width: 280px;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.15),
        0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.image-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.image-card:hover {
    transform: scale(1.03) translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(0, 0, 0, 0.1);
    animation-play-state: paused;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 12px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-card:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h3 {
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 1em;
    margin-bottom: 4px;
}

.image-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Arial', sans-serif;
    font-size: 0.8em;
}

.carousel-row:hover .carousel-track {
    animation-play-state: paused;
}

/* ------------------------------------- */
/* --- MODIFICACIÓN DEL FOOTER (Mismo color del fondo) --- */
/* ------------------------------------- */
.footer-minimal {
    /* CAMBIO CLAVE: Usa el color del fondo principal de la galería */
    background-color: #FFF8E7; /* Color cremita claro */
    
    color: #4a4a4a; /* Color de texto gris oscuro para contraste */
    padding: 1.5rem 0; 
    font-size: 1rem;
    text-align: center;
    
    /* Borde sutil para separar, si es necesario */
    border-top: 1px solid rgba(0, 0, 0, 0.05); 
}

/* Asegura que el fondo del body esté bien configurado para que no haya espacios blancos */

.footer-content-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Espacio reducido entre redes y copyright */
}

/* Estilos de los íconos sociales */
.social-icons-minimal a {
    /* Color de los iconos para que contrasten con el fondo claro */
    color: #4a4a4a; 
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons-minimal a:hover {
    color: #2c2c2c; /* Un gris más oscuro al pasar el ratón */
}

/* Estilo del texto de copyright */
.copyright-minimal {
    margin: 0;
    /* Oscurecemos el texto de copyright para contraste */
    color: rgba(0, 0, 0, 0.6);
}

/* Asegura que el elemento base footer no tenga estilos conflictivos */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3); 
    /* ... (otros estilos de footer general) ... */
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
    transition: opacity 0.5s ease-out; /* Transición para el efecto fade out */
    opacity: 1;
    pointer-events: all; /* Bloquea la interacción con el contenido de la página */
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none; /* Permite la interacción cuando desaparece */
}

.gif-container {
    width: 400px;
    height: 400px;
    z-index: 1;
}

.gif-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: -100px;
}

.loading-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-dotts {
    display: flex;
    gap: 8px;
}

.dott {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dott:nth-child(1) { animation-delay: 0s; }
.dott:nth-child(2) { animation-delay: 0.2s; }
.dott:nth-child(3) { animation-delay: 0.4s; }

/* Keyframes de animación del loader */
@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes dotPulse {
    0%, 60%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .gif-container {
                width: 450px; /* Tamaño aumentado */
                height: 450px; /* Tamaño aumentado */
                top: 10%; /* Posición más arriba */
            }
    .loading-text {
        font-size: 20px;
    }
    .loading-content {
    margin-top: -80px; /* Mueve el texto hacia abajo para separarlo del GIF agrandado */
}}