/* --- NUEVO CSS PARA CARRUSEL.CSS (Definitivo y Consolidado) --- */
/* REGAL BASE: ASEGURA QUE EL BODY NO TENGA MÁRGENES */
body {
    margin: 0;
    /* Elimina el margen predeterminado del navegador */
    padding: 0;
    width: 100vw;
    /* Asegura que ocupe todo el ancho de la ventana */
    overflow-x: hidden;
    /* Evita barras de desplazamiento horizontales */
}
/* 1. Contenedor Principal del Carrusel */
.carrousel-moderno {
    position: relative;
    width: 100%;
    overflow: hidden;

    /* 1. MÁRGEN PARA BAJAR EL CARRUSEL */
    margin-top: 60px;

    /* 2. ALTURA ORIGINAL MENOS EL ESPACIO DEL NAVBAR */
    height: calc(85vh - 60px);
}

/* 2. Contenedor de Slides */
.slides-wrapper {
    position: relative;
    height: 100%;
}

/* 3. Estilos de la Diapositiva (Fade Logic) */
.slide-item {
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide-item.active {
    opacity: 1;
}

/* 4. Estilos de la Imagen */
.slide-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

/* 5. Estilos del Texto (Caption - Diseño limpio) */
.caption-text {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    padding: 10px 20px;
    background-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    width: 90%;
    max-width: 800px;

    /* SOLUCIÓN CLAVE PARA CENTRAR LOS HIJOS (H1 y H2) */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Título Principal (H2 .carrusel-titulo-principal) - ¡Subrayado eliminado! */
.carrusel-titulo-principal {
    font-size: 4em !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    /* Antes tenía border-bottom: 3px solid white; -> AHORA ESTÁ ELIMINADO */

    /* CAMBIOS CRUCIALES para que el ancho se ajuste al contenido */
    white-space: nowrap;
    display: inline-block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* H1 y H3 del carrusel */
.caption-text h1,
.caption-text h3 {
    text-decoration: none !important;
    /* Aseguramos que no haya subrayado en ningún encabezado */
    text-align: center;
    display: block;
}

.caption-text h2 {
    font-size: 2.5em !important;
    font-weight: 300;
    margin-top: 5px;
    text-align: center;
    display: block;
}

/* 6. Estilos de los Puntos (Dots) */
.dots-container-moderno {
    text-align: center;
    position: absolute;
    bottom: 15px;
    width: 100%;
    z-index: 10;
}

.dot-indicator {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
}

.dot-indicator.active {
    background-color: #717171;
}

/* --- Responsive para Carrusel --- */
@media (max-width: 600px) {
    .carrousel-moderno {
        height: 350px;
    }

    .carrusel-titulo-principal {
        font-size: 2em !important;
    }

    .caption-text h2 {
        font-size: 1.2em !important;
    }
}


/* ****************************************************** */
/* --- SECCIONES NO RELACIONADAS AL CARRUSEL (Mantenidas) --- */
/* ****************************************************** */
.views-section {
    padding: 40px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 40px auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.views-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.view-item {
    flex-grow: 1;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.views-container .view-item:first-child {
    border-right: 1px solid #ddd;
}

.view-item:hover {
    background-color: #f0f0f0;
}

/* [Otras reglas, modales, preloader, etc.] */
/* (El resto del código de tu carrusel.css se mantiene aquí abajo) */

/* ... El resto de tus estilos de modal, preloader y accesibilidad ... */