/* Estilos Generales */




body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #222;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.construction-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 2em;
    animation: fadeIn 2s ease-in-out;
}

p {
    font-size: 1.2em;
    animation: fadeIn 3s ease-in-out;
}

/* Animación de carga */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #ffcc00;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1.5s linear infinite;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Sección de Noticias */
.blog-noticias {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: white;
}

/* Contenedor de Noticia */
.noticia {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    padding: 20px;
    border-bottom: 2px solid #ddd;
    transition: background 0.3s ease-in-out;
}

.noticia:hover {
    background: #f1f1f1;
}

/* Imagen de Noticia */
.noticia-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Texto de Noticia */
.noticia-texto {
    width: 100%;
    text-align: left;
}

.noticia-texto h2 {
    font-size: 1.5em;
    color: #222;
}

/* Párrafo Ocultable */
.noticia-texto p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.5em;
    overflow: hidden;
    max-height: 4.5em; /* 3 líneas * 1.5em (altura de línea) */
    transition: max-height 0.5s ease-in-out;
}

/* Cuando el texto está expandido */
.noticia-texto p.expandido {
    max-height: 1000px; /* Expande a su tamaño completo */
}

/* Botón "Leer más" */
.noticia-texto .leer-mas {
    display: none; /* Oculto por defecto */
    color: #007BFF;
    font-weight: bold;
    margin-top: 10px;
    font-size: 1.1em;
    cursor: pointer;
}

.noticia-texto .leer-mas:hover {
    color: #0056b3;
}

/* Responsivo */
@media (max-width: 900px) {
    .noticia {
        align-items: center; /* Centra la imagen y el texto */
        text-align: center;
    }

    .noticia-img {
        width: 100%;
        max-width: 100%;
        align-self: center; /* Centra la imagen en móviles */
    }

    .noticia-texto {
        text-align: center;
    }

    .noticia-texto h2 {
        font-size: 1.3em;
    }

    .noticia-texto p {
        font-size: 1em;
    }
}





