/* 🔹 ESTILOS GENERALES */
body {
   

}

/* 🔹 CONTENEDOR GENERAL */
.contenedor {
    width: 100%;
    margin: 20px auto;
}

/* 🔹 CABECERA Y PIE DE PÁGINA */



/* 🔹 LISTADO DE NOTICIAS (noticias.html) */
.noticias-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* 🔹 ESTILO DE CADA NOTICIA */
.noticia-card {
    background: white;
    display: flex;
    flex-direction: row; /* Imagen a la izquierda y texto a la derecha */
    align-items: center;
    width: 80%;
    max-width: 80%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    gap: 20px;
}

.noticia-card img {
    width: 40%; /* La imagen ocupa el 40% del contenedor */
    height: auto; /* Mantiene el aspecto original */
    max-height: 250px; /* 🔹 Límite máximo de altura */
    border-radius: 8px;
    object-fit: cover; /* 🔹 Recorta la imagen si es muy alta */
}

.noticia-info {
        width: 60%;
    padding: 15px 0;
}

.noticia-info h2 {
    font-size: 24px;
    color: #c68d43;
    margin-bottom: 10px;
}

.descripcion {
    font-size: 16px;
    color: #555;
}

.detalles {
    font-size: 14px;
    color: gray;
    margin-top: 5px;
}

.leer-mas {
    display: block;
    background: #c68d43;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
}

.leer-mas:hover {
    background: #a57233;
}

/* 🔹 NOTICIA INDIVIDUAL (noticia.html) */
.noticia-contenedor {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 80%;
    margin: auto;
}

.noticia-titulo {
    font-size: 28px;
    color: #c68d43;
    text-align: center;
    margin-bottom: 20px;
}

.galeria {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.galeria img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

.volver {
    display: block;
    background: #27211b;
    color: white;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
}

.volver:hover {
    background: #1b1713;
}

/* 🔹 DISEÑO RESPONSIVO */
@media screen and (max-device-width: 768px) {
    .contenedor {
        width: 95%;
        margin: 0px;
    }
.noticia-card {
        flex-direction: column; /* Imagen arriba del texto */
        width: 99%;
        padding: 15px;
                margin: 0px;

    }

    .noticia-titulo {
        font-size: 22px;
    }
    .noticia-card img {
        width: 100%; /* Ocupa todo el ancho en móvil */
        max-height: 200px; /* 🔹 Límite de altura reducido en móviles */
    }

    .noticia-info {
        width: 99%;
        text-align: center;
    }

    .noticia-info h2 {
        font-size: 20px;
    }

    .descripcion {
        font-size: 14px;
    }

    .detalles {
        font-size: 12px;
    }

    .galeria img {
        width: 90%;
        max-width: 300px;
    }

    .leer-mas, .volver {
        font-size: 14px;
        padding: 8px;
    }
}

/* 🔹 MENÚ DESPLEGABLE EN MÓVILES */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1100;
}

.nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 250px;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-left: 2px solid #c68d43;
    padding-top: 60px;
    z-index: 1050;
    transition: transform 0.3s ease;
    transform: translateX(100%);
}

.nav.hidden {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.nav-links li {
    padding: 15px 0;
}

.nav-links a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    display: block;
}

.nav-links a:hover {
    background: #c68d43;
}

/* ✅ RESPONSIVO */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
    }

    .nav.hidden {
        transform: translateX(0);
    }
}




/* 🔹 CONTENEDOR DE COLABORADORES */
.foot {
    width: 100%;
}
.colab {
    width: 100%;
}
.footflex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* 🔹 ESTILOS PARA IMÁGENES DE COLABORADORES */
.footflex a {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footflex img {
    max-height: 100px; /* Limita el ancho de las imágenes */
    height: auto;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footflex img:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

/* ✅ RESPONSIVO */
@media screen and (max-width: 768px) {
    .footflex {
        justify-content: center;
    }

    .footflex img {
        max-height: 80px;
        height: auto;
        width: auto;
    }
}


/* Contenido de la noticia */
#contenido {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Estilos para Markdown */
#contenido h1, #contenido h2, #contenido h3 {
    color: #c68d43;
    font-weight: bold;
    margin-top: 20px;
}

#contenido p {
    font-size: 16px;
    line-height: 1.6;
}

#contenido a {
    color: #c68d43;
    text-decoration: none;
    font-weight: bold;
}

#contenido a:hover {
    text-decoration: underline;
}

/* Galería de imágenes */
.galeria img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* Límite para imágenes dentro del contenido */
#contenido img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

/* Listas en Markdown */
#contenido ul, #contenido ol {
    padding-left: 20px;
}

#contenido li {
    margin-bottom: 5px;
}


/* 🔹 FILTROS DE BÚSQUEDA Y ORDENACIÓN */
.filtros {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filtros input, .filtros select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* 🔹 COMENTARIOS */
.comentarios {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comentarios h3 {
    color: #c68d43;
    margin-bottom: 10px;
}

.comentarios form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comentarios label {
    font-weight: bold;
}

.comentarios input, .comentarios textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.comentarios button {
    background: #c68d43;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comentarios button:hover {
    background: #a57233;
}