/* index.css */
#news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
}

.news-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: calc(33.333% - 20px);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

.news-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.news-item p {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

#viewMoreBtn {
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin: 20px auto;
    display: block;
}

#viewMoreBtn:hover {
    background-color: #555;
}

#interes ul {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#interes li {
    margin-bottom: 5px;
}

#interes a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

#interes a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Mejoras para la imagen principal de Los Minaderos */
/* Contenedor mejorado para la imagen */
.inicio-container {
    width: min-content;
    padding: 30px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 16px;
    max-width: 100%;
    height: auto;
}

/* Efecto de iluminación suave para la imagen del túnel */
#comunidad-image {
    transition: all 0.8s ease;
    filter: brightness(1.1) contrast(1.1);
    max-height: 600px; /* Altura base reducida */
    object-position: center;
}

.inicio-container:hover #comunidad-image {
    transform: scale(1.02);
    filter: brightness(1.2) contrast(1.15);
}

/* Texto superpuesto mejorado con efecto de iluminación */
.inicio-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 50px 20px 25px 20px;
    text-align: center;
    width: 80%;
    justify-self: anchor-center;
}

.inicio-text h1 {
    color: white;
    place-self: center;
    font-size: 3.2em;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.7);
    border: none;
    padding: 0;
    margin: 0;
    letter-spacing: 2px;
    font-family: 'Georgia', serif;
}

/* Borde sutil con efecto de resplandor */
#inicio {
    width: min-content;
    margin: 30px auto;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    padding: 0;
}

/* Estilos específicos para pantallas grandes (escritorio) */
@media (min-width: 1200px) {
    .inicio-text h1 {
        /* Mantenemos el título grande pero ajustado */
        font-size: 3.5em;
    }
}

/* Pantallas medianas (tablets y pantallas pequeñas) */
@media (min-width: 769px) and (max-width: 1199px) {
    #comunidad-image {
        max-height: 400px;
    }

    .inicio-text h1 {
        font-size: 3em;
    }
}

/* Adaptación para dispositivos móviles */
@media (max-width: 768px) {
    #comunidad-image {
        max-height: 350px;
    }

    .inicio-text h1 {
        font-size: 2.2em;
    }
}