/* Estilos generales por el selector univerasl */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    width: 100%;
}
/* Estilos para el encabezado principal */
.encabezado-principal {
    background-color: #e30613;
    color: white;
    text-align: center;
    padding: 60px 30px;
    margin-bottom: 0;
}
/* Estilos para el título y subtítulo del encabezado */
.encabezado-principal h1 {
    font-size: 4em;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
}
/* Estilos para el párrafo del encabezado */
.encabezado-principal p {
    font-size: 11px;
    margin: 10px 0 0 0;
    font-weight: 300;
    letter-spacing: 3px;
    opacity: 1;
}
/* Estilos para el cuerpo de la página */
body {
    background-color: #f2f2f2;
}
/* Grid principal para el contenido: 3 columnas */
.layout {
    display: grid;
    grid-template-columns: 1fr 3.2fr 1.5fr;
    gap: 30px;
    padding: 30px;
}
/* Menú lateral que se mantiene fijo al hacer scroll */
.menu {
    background-color: white;
    padding: 25px;
    border-radius: 14px;
    align-self: start;
    position: sticky;
    top: 30px;
}
/* Estilos para el título del menú y los enlaces */
.menu h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #e30613;
}
/* Estilos para la lista del menú y los enlaces */
.menu ul {
    list-style: none;
}
/* Estilos para los enlaces del menú */
.menu a {
    display: block;
    padding: 12px;
    margin-bottom: 12px;
    background-color: #e30613;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
}
/* Efecto hover para los enlaces del menú */
.menu a:hover {
    background-color: #b80510;
}
/* Estilos para los bloques de contenido */
.bloque h2 {
    margin-bottom: 10px;
    color: #333;
}
/* Estilos para la línea roja debajo de los títulos */
.linea-roja {
    border: none;
    height: 4px;
    background-color: #e30613;
    width: 60px;
    margin-bottom: 30px;
}
/* Grid para la galería de imágenes: 3 columnas */
.grid-galeria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* Estilos para las imágenes de la galería */
.grid-galeria img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px;
}
/* Grid para lugares de interés: 4 columnas */
.grid-lugares {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
/* Estilos para las fichas de los lugares de interés */
.ficha {
    background-color: #fafafa;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
}
/* Estilos para las imágenes dentro de las fichas de lugares de interés */
.ficha img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px;
}
.ficha h3 {
    color: #e30613;
    margin-bottom: 8px;
}
.ficha p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95em;
}
.ficha span {
    display: block;
    color: #999;
    font-size: 0.85em;
}
/* Estilos para el mapa de Google Maps */
#mapa iframe {
    width: 100%;
    height: 500px;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
/* Grid para las noticias: 4 columnas */
.noticias {
    display: grid;
    gap: 20px;
}
/* Estilos para cada noticia */
.noticia {
    background-color: white;
    min-height: 400px;
    padding: 15px;
    border-radius: 14px;
    display: grid;
    grid-template-rows: 200px auto auto auto;
    gap: 8px;
}
.toggle-noticia {
    display: none;
}

.texto-noticia {
    cursor: pointer;
    display: block;
    color: #666;
    font-size: 0.85em;
    margin-bottom: 8px;
}

.texto-completo {
    display: none;
}

.puntos-suspensivos {
    color: #e30613;
    font-weight: bold;
}

.toggle-noticia:checked + .texto-noticia .texto-corto {
    display: none;
}

.toggle-noticia:checked + .texto-noticia .texto-completo {
    display: inline;
}

.texto-noticia:hover {
    color: #333;
}
.noticia img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}
.noticia h4 {
    color: #e30613;
    margin-bottom: 8px;
    font-size: 1em;
}
.noticia a {
    color: #e30613;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
}
.noticia a:hover {
    text-decoration: underline;
}
.carousel-item {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px; 
    display: block; 
}
.boton-flotante {
    position: fixed;
    top: 30px;
    right: 20px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: rgb(0, 0, 0);
    display: grid;
    place-items: center;
    z-index: 1000;
}
.boton-flotante img {
    width: 55px;
    height: auto;
}
/* Media query para tablets: cambia a 1 columna */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    .menu {
        position: static;
    }
    .grid-galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .grid-lugares {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .noticias {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 15px;
    }
    .noticia:last-child {
        grid-column: span 2;
    }
    .carousel-item {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px; 
    display: block; 
    }
}

/* Media query para móviles: adaptación para pantallas pequeñas */
@media (max-width: 600px) {
    .layout {
        padding: 15px;
        gap: 15px;
    }
    .bloque {
        padding: 20px;
        margin-bottom: 30px;
    }
    .grid-galeria {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .grid-galeria img {
        height: 150px;
    }
    .grid-lugares {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .noticias {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
         gap: 20px;
    }
    .noticia:last-child {
        grid-column: auto;
        gap: 20px;
    }
    .boton-flotante {
        width: 60px;
        height: 60px;
        top: 15px;
        right: 15px;
    }
    .boton-flotante img {
        width: 45px;
    }
    .carousel-item {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px; 
    display: block; 
    }
}