/* ------------------------------------- */
/* ESTILOS DEL PRELOADER (MANTENIDOS)    */
/* ------------------------------------- */

.hidden {
display: none;
}

#preloader {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000;
    transition: opacity 0.5s ease-out; 
}

#logo-preloader {
    width: 220px; 
    height: 150px;
    border-radius: 50%; 
    animation: spin 1.5s linear infinite; 

}

#company-name {
    margin-top: 60px; 
    font-size: 1.5em; 
    
    color: #333333; 
    text-align: center;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Restablecer */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
}

/* ------------------------------------- */
/* ESTILOS DEL ENCABEZADO (Header Fijo)  */
/* ------------------------------------- */

.main-header {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    padding: 5px 30px; 
    background-color: transparent; 
    color: white;
    transition: background-color 0.3s ease; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
}

.main-header.scrolled {
    background-color: #000000; 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5); 
}

.menu-toggle {
    display: none;
}

/* Logo y Nombre */
.logo-container h1 {
    margin: 0;
    font-size: 100%; 
}

.logo-container h1 a {
    display: flex; 
    align-items: center; 
    color: inherit;
    text-decoration: none;
}

.my-company-logo {
    height: 90px;
    width: auto;
    margin-right: 10px; 
}

.company-name {
    font-size: 1.7em; 
    font-weight: 300; 
    letter-spacing: 1px;
    color: #e0e0e0; 
    font-family:Georgia, 'Times New Roman', Times, serif;
}

/* Navegación */
.main-nav ul {
    list-style: none;
    display: flex; 
}

.main-nav li {
    margin-left: 25px;
}

.main-nav a {
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav a:hover,
.main-nav a.active { 
    background-color: #ff1900;
    color: white;
}


/* ------------------------------------- */
/* 🎯 ESTILOS DE LA NUEVA PORTADA (#anfitriones) - AJUSTADA PARA IMAGEN ANCHA (100vh) */
/* ------------------------------------- */

#anfitriones {
    /* Usar la imagen de ejemplo subida para el CSS */
    /* NOTA: Deberás reemplazar 'URL_DE_TU_IMAGEN_ANAHCA' con la ruta real de tu nueva imagen */
    background: linear-gradient( rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), url("URL_DE_TU_IMAGEN_ANAHCA"); 
    background-size: cover;
    background-position: center center; /* Centra la imagen */
    background-attachment: fixed;
    min-height: 100vh; /* ¡Cambiado a 100vh para que ocupe toda la altura de la ventana! */
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column; 
    text-align: center;
    color: white; 
}

.presentacion {
    max-width: 800px; 
    padding: 20px;
    margin-top: 0;
}

.presentacion .bienvenida {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.presentacion h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

/* ----------------------------------- */
/* RESPONSIVIDAD (MÓVIL) */
/* ----------------------------------- */

@media (max-width: 768px) {
    /* Ajuste para la nueva portada en móvil */
    #anfitriones {
        min-height: 70vh; /* Mantener 70vh en móvil para no ocupar demasiado espacio */
        background-position: center 50%;
    }
    
    .main-header {
        display: grid;
        grid-template-columns: 1fr auto; 
        padding: 15px 20px;
    }

    .menu-toggle {
    
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 2em;
        cursor: pointer;
        line-height: 1; 
        outline: none; 
    }

    .main-nav {
        grid-column: 1 / 3; 
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .main-nav.open {
        max-height: 300px; 
        padding-top: 10px;
    }

    .main-nav ul {
        flex-direction: column; 
    }

    .main-nav li {
        margin: 5px 0; 
        text-align: center;
    }

    .main-nav a {
        display: block; 
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .my-company-logo {
        height: 50px;
    }

    /* Ajuste de Texto de Portada en móvil */
    .presentacion {
        margin-top: 50px; 
    }
    .presentacion h2 {
        font-size: 2em;
    }
    .presentacion .bienvenida {
        font-size: 1.2em;
    }
}



/* ------------------------------------- */
/* 🎯 ESTILOS DE LA PORTADA/CARRUSEL (#anfitriones) - ACTUALIZADO */
/* ------------------------------------- */

#anfitriones {
    position: relative; /* Esencial para posicionar los slides y el texto */
    overflow: hidden; /* Oculta cualquier parte de las imágenes que se salga */
    min-height: 100vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    color: white; 
}

/* Contenedor de las imágenes */
.carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Cada Slide (Imagen de Fondo) */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Por defecto, todas ocultas */
    transition: opacity 1.5s ease-in-out; /* Transición suave entre imágenes */
    
    background-size: cover;
    background-position: center center; 
    background-attachment: fixed; /* Mantiene el efecto Parallax */

    /* Agrega un degradado oscuro para que el texto sea visible */
    background-color: #00000000; /* Fondo de seguridad */
}

/* Clase para el slide activo */
.slide.active {
    opacity: 1;
}

/* Estilos para el texto superpuesto */
.presentacion {
    position: relative; /* Asegura que el texto esté encima de las imágenes */
    max-width: 800px; 
    padding: 20px;
    z-index: 10; /* Asegura que esté por encima de los slides */
}

.presentacion .bienvenida {
    /* ... estilos existentes ... */
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 2px;
}

.presentacion h2 {
    /* ... estilos existentes ... */
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}
.presentacion h2 span {
    /* Estilo del texto "BIENVENIDOS" */
    background-color: rgba(0, 0, 0, 0); /* Fondo semitransparente para resaltar */
    padding: 10px 20px;
    display: inline-block;
}

/* ... (El resto de tus estilos como #section2, #quien-es-jesus, etc. se mantienen) ... */


/* Ajustes de Responsividad */
@media (max-width: 768px) {
    /* ... (Estilos de menú, etc.) ... */

    /* Ajuste para la portada/carrusel en móvil */
    #anfitriones {
        min-height: 70vh; 
        /* Quitar background-attachment: fixed; para móvil, ya que puede causar problemas */
    }

    .slide {
        background-attachment: scroll; /* Quitar parallax en móvil */
    }
    
    .presentacion {
        margin-top: 50px; 
    }
    .presentacion h2 {
        font-size: 2em;
    }
    .presentacion .bienvenida {
        font-size: 1.2em;
    }
}


/* ----------------------------------- */
/* 🆕 ESTILOS DE LA SECCIÓN "GRUPOS DE CONEXIÓN" */
/* ----------------------------------- */
#grupos-de-conexion {
    /* Fondo gris claro, replicando la imagen que enviaste */
    background-color: #f0f0f0; 
    /* Padding para darle grandes dimensiones, similar a la altura de la sección Jesús */
    padding: 120px 20px; 
    text-align: center;
    color: #333; /* Color de texto oscuro para el fondo claro */
}

.conexion-content {
    max-width: 600px; /* Ancho del texto más corto para centrarlo visualmente */
    margin: 0 auto;
}

.conexion-content p {
    font-size: 1.15em;
    line-height: 1.6;
    font-weight: 300;
}

/* ----------------------------------- */
/* 📧 ESTILOS DE LA SECCIÓN DE CONTACTO (#contacto-form) - MANTENIDOS */
/* ----------------------------------- */
/* ... (Los estilos del formulario de contacto se mantienen) ... */

/* ----------------------------------- */
/* RESPONSIVIDAD (MÓVIL) */
/* ----------------------------------- */

@media (max-width: 768px) {
    /* ... (Estilos de menú, portada, bio y Jesús móvil anteriores se mantienen) ... */

    /* Ajustes móviles para Grupos de Conexión */
    #grupos-de-conexion {
        padding: 80px 15px;
    }
    
    .conexion-content p {
        font-size: 1em;
    }
}