/* Importar la fuente Poppins de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

section {
    scroll-margin-top: 150px; /* Ajusta el valor según necesites */
}

/* Estilos generales */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 80px;
    scroll-behavior: smooth;
}

/* Barra de navegación fija */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #96009b;
    z-index: 1100;
    height: 75px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Contenedor del logo */
header .logo-container {
    display: flex;
    align-items: center;
}

header .logo {
    width: 70px;
}

header .logo img {
    width: 100%;
    height: auto;
}

/* Contenedor de la navegación */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #7d007f;
}

/* Contenido principal */
main {
    padding: 20px;
}

section {
    margin-bottom: 10px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Estilos para los títulos principales */
h1, h2 {
    font-size: 2.5em;
    color: #96009b;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilos para la sección de Inicio */
#inicio {
    display: flex;
    align-items: center;
    gap: 20px;
}

#inicio .inicio-contenido {
    flex: 1;
    text-align: left;
}

#inicio .logo-placeholder {
    height: 150px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

#inicio .eslogan {
    font-size: 1.9em;
    color: #96009b;
    margin-bottom: 20px;
    text-align: center;
}

#inicio .inicio-imagen {
    flex: 1;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

#inicio .inicio-imagen img {
    border-radius: 10px;
}

/* Estilos para los botones en la sección de inicio */
#inicio .botones-inicio {
    display: flex;
    justify-content: space-between;
    width: 90%;
    padding: 0 5%;
    position: absolute;
    bottom: 20px;
}

#inicio .boton-inicio {
    width: 50px;
    height: 50px;
    background-color: #96009b;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#inicio .boton-inicio:hover {
    background-color: #7d007f;
    transform: scale(1.1);
}

/* Estilos para la sección ¿Quiénes somos? */
#quienes-somos .texto-pequeno {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

/* Estilos para la sección Habitaciones */
#habitaciones .carrusel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

#habitaciones .carrusel-contenedor {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

#habitaciones .carrusel-slide {
    min-width: 100%;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0.5;
    transform: scale(0.8);
}

#habitaciones .carrusel-slide.activo {
    opacity: 1;
    transform: scale(1);
}

#habitaciones .carrusel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

#habitaciones .descripcion {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 10px;
}

/* Estilos para la sección Recorrido */
#recorrido .recorrido-contenedor {
    display: flex;
    align-items: center;
    gap: 40px;
}

#recorrido .recorrido-contenedor img {
    border-radius: 10px;
}

#recorrido .recorrido-texto {
    flex: 1;
}

#recorrido .recorrido-imagen {
    flex: 1;
    text-align: center;
}

#recorrido .imagen-placeholder {
    width: 100%;
    height: 300px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: italic;
}

#recorrido .recorrido-boton {
    background-color: #96009b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

#recorrido .recorrido-boton:hover {
    background-color: #7d007f;
}

#recorrido .recorrido-boton a {
    color: white;
    text-decoration: none;
}

/* Estilos para la sección Servicios */
#servicios .servicios-contenedor {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#servicios .servicio {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#servicios .servicio:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#servicios .servicio-texto h3 {
    font-size: 1.5em;
    color: #96009b;
    margin-bottom: 10px;
}

#servicios .servicio-texto p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

#servicios .servicio-imagen {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-style: italic;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

#servicios .servicio:hover .servicio-imagen {
    transform: scale(1.1);
}

/* Estilos para la sección Estadísticas */
#estadisticas {
    background-color: #f9f9f9;
    padding: 40px 20px;
    margin-bottom: 40px;
}

#estadisticas h2 {
    font-size: 2.5em;
    color: #96009b;
    text-align: center;
    margin-bottom: 40px;
}

#estadisticas .estadisticas-contenedor {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

#estadisticas .estadistica-cuadro {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#estadisticas .estadistica-cuadro:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#estadisticas .estadistica-cuadro h3 {
    font-size: 2em;
    color: #96009b;
    margin-bottom: 10px;
}

#estadisticas .estadistica-cuadro p {
    font-size: 1.2em;
    color: #555;
    line-height: 1.6;
}

/* Estilos para la sección Información */
#informacion .informacion-contenedor {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

#informacion .informacion-cuadro {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

#informacion .cuadro-fondo {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 100%;
}

#informacion .cuadro-fondo h3 {
    font-size: 1.5em;
    color: #96009b;
    margin-bottom: 10px;
}

#informacion .cuadro-fondo p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

#informacion .informacion-boton {
    background-color: #96009b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#informacion .informacion-boton:hover {
    background-color: #7d007f;
}

#informacion .informacion-boton a {
    color: white;
    text-decoration: none;
}

/* Resaltado del botón "Programa aquí" */
#informacion .informacion-boton.resaltado {
    background-color: #7d007f;
    transform: scale(1.05);
}

#informacion .informacion-correo {
    font-size: 1.1em;
    color: #555;
    text-align: center;
    margin-top: 20px;
}

/* Pie de página */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    margin-top: 40px;
}

/* ==================== MEDIA QUERIES PARA RESPONSIVE ==================== */

/* Tablet - 768px y menos */
@media (max-width: 768px) {
    /* Header responsive */
    header {
        height: auto;
        min-height: 75px;
        padding: 8px 15px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    header .logo-container {
        justify-content: center;
        margin-bottom: 5px;
    }
    
    header .logo {
        width: 60px;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
        gap: 3px;
        flex-wrap: wrap;
    }
    
    nav ul li a {
        font-size: 0.85em;
        padding: 6px 8px;
        white-space: nowrap;
    }
    
    /* Ajustar padding del body */
    body {
        padding-top: 100px;
    }
    
    /* Títulos más pequeños */
    h1, h2 {
        font-size: 2em;
    }
    
    /* Sección inicio responsive */
    #inicio {
        flex-direction: column;
        text-align: center;
    }
    
    #inicio .inicio-contenido {
        text-align: center;
    }
    
    #inicio .eslogan {
        font-size: 1.5em;
    }
    
    #inicio .logo-placeholder {
        height: 100px;
    }
    
    #inicio .inicio-imagen {
        height: 250px;
        width: 100%;
    }
    
    /* Sección recorrido responsive */
    #recorrido .recorrido-contenedor {
        flex-direction: column;
        gap: 20px;
    }
    
    #recorrido .imagen-placeholder {
        height: 250px;
    }
    
    /* Servicios responsive */
    #servicios .servicios-contenedor {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Estadísticas responsive */
    #estadisticas .estadisticas-contenedor {
        flex-direction: column;
        align-items: center;
    }
    
    #estadisticas .estadistica-cuadro {
        max-width: 400px;
        width: 100%;
    }
    
    /* Información responsive */
    #informacion .informacion-contenedor {
        flex-direction: column;
        align-items: center;
    }
    
    #informacion .informacion-cuadro {
        max-width: 400px;
        width: 100%;
    }
    
    /* Carruseles responsive */
    .carousel-control {
        padding: 8px;
        font-size: 14px;
    }
    
    .testimonial-item {
        padding: 15px;
        margin: 5px;
    }
}

/* Móvil - 480px y menos */
@media (max-width: 480px) {
    /* Header para móvil */
    header {
        height: auto;
        min-height: 60px;
        padding: 8px 10px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    /* Ocultar logo en móvil */
    header .logo-container {
        display: none;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }
    
    nav ul li a {
        font-size: 0.75em;
        padding: 4px 6px;
        white-space: nowrap;
    }
    
    /* Ajustar padding del body para móvil */
    body {
        padding-top: 80px;
    }
    
    /* Contenido principal */
    main {
        padding: 10px;
    }
    
    section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    /* Títulos para móvil */
    h1, h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    
    /* Sección inicio móvil */
    #inicio .eslogan {
        font-size: 1.3em;
    }
    
    #inicio .logo-placeholder {
        height: 80px;
        margin: 15px 0;
    }
    
    #inicio .inicio-imagen {
        height: 200px;
    }
    
    #inicio .botones-inicio {
        bottom: 10px;
        width: 95%;
        padding: 0 2.5%;
    }
    
    #inicio .boton-inicio {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    #inicio .boton-inicio img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
    }
    
    /* Texto pequeño responsive */
    .texto-pequeno {
        font-size: 1em;
        line-height: 1.6;
    }
    
    /* Servicios para móvil */
    #servicios .servicios-contenedor {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    #servicios .servicio-texto h3 {
        font-size: 1.3em;
    }
    
    #servicios .servicio-imagen {
        height: 80px;
    }
    
    /* Carruseles para móvil */
    #habitaciones .carrusel-slide img {
        height: 250px;
    }
    
    .carousel-control {
        padding: 6px;
        font-size: 12px;
    }
    
    .carousel-control.prev {
        left: 5px;
    }
    
    .carousel-control.next {
        right: 5px;
    }
    
    /* Testimonios para móvil */
    .testimonial-item {
        padding: 12px;
        margin: 5px 0;
        font-size: 0.95em;
    }
    
    /* Recorrido para móvil */
    #recorrido .imagen-placeholder {
        height: 200px;
    }
    
    /* Estadísticas para móvil */
    #estadisticas {
        padding: 30px 10px;
    }
    
    #estadisticas .estadistica-cuadro h3 {
        font-size: 1.8em;
    }
    
    #estadisticas .estadistica-cuadro p {
        font-size: 1.1em;
    }
    
    /* Información para móvil */
    #informacion .cuadro-fondo h3 {
        font-size: 1.3em;
    }
    
    #informacion .informacion-correo {
        font-size: 1em;
    }
    
    /* Footer para móvil */
    footer {
        padding: 15px 10px;
        font-size: 0.9em;
    }
}

/* Móvil muy pequeño - 320px y menos */
@media (max-width: 320px) {
    /* Header aún más compacto */
    header {
        padding: 6px 8px;
        min-height: 55px;
        justify-content: center;
        align-items: center;
    }
    
    /* Logo sigue oculto en móvil pequeño */
    header .logo-container {
        display: none;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1px;
    }
    
    nav ul li a {
        font-size: 0.7em;
        padding: 3px 4px;
    }
    
    /* Ajustar padding del body */
    body {
        padding-top: 75px;
    }
    
    h1, h2 {
        font-size: 1.6em;
    }
    
    #inicio .eslogan {
        font-size: 1.2em;
    }
    
    .texto-pequeno {
        font-size: 0.95em;
    }
    
    #servicios .servicio-texto h3 {
        font-size: 1.2em;
    }
    
    #estadisticas .estadistica-cuadro h3 {
        font-size: 1.6em;
    }
    
    section {
        padding: 12px;
    }
}
