/* Noticia Destacada */
.noticia-destacada {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.noticia-destacada-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.noticia-destacada h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.noticia-extracto {
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0;
    opacity: 0.95;
}

/* Contenedores de imagen/embed para noticia destacada */
.noticia-imagen-destacada {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 15px;
    margin: 20px 0;
}

.noticia-embed {
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
}

.noticia-sin-imagen-destacada {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin: 20px 0;
}

.btn-leer-mas {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-leer-mas:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Grid de noticias */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.noticia-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.noticia-imagen-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noticia-imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Embed en tarjetas */
.noticia-embed-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.noticia-embed-card blockquote {
    margin: 0 !important;
    min-width: 326px;
    max-width: 100%;
}

.noticia-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #cbd5e0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.noticia-contenido {
    padding: 25px;
}

.noticia-contenido h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2d3748;
    line-height: 1.3;
}

.noticia-contenido p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-leer {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-leer:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Vista completa de noticias (página novedades) */
.noticias-lista {
    max-width: 800px;
    margin: 0 auto;
}

.noticia-completa {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.badge-destacada {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #744210;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.noticia-completa h2 {
    font-size: 32px;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.2;
}

.noticia-fecha {
    color: #718096;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Embed en vista completa */
.noticia-embed-full {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    background: #f7fafc;
    padding: 20px;
    border-radius: 15px;
}

.noticia-embed-full blockquote {
    margin: 0 !important;
}

.noticia-imagen-full {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    margin: 30px 0;
}

.noticia-texto {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
    margin: 25px 0;
}

.noticia-texto p {
    margin-bottom: 15px;
}

.noticia-autor {
    color: #718096;
    font-style: italic;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .noticia-destacada {
        padding: 25px;
    }
    
    .noticia-destacada h2 {
        font-size: 26px;
    }
    
    .noticia-extracto {
        font-size: 16px;
    }
    
    .noticias-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .noticia-completa {
        padding: 25px;
    }
    
    .noticia-completa h2 {
        font-size: 24px;
    }
    
    .noticia-imagen-container {
        height: 200px;
    }
}

/* Estilos específicos para embeds de Instagram */
.noticia-embed blockquote.instagram-media,
.noticia-embed-card blockquote.instagram-media,
.noticia-embed-full blockquote.instagram-media {
    background: white !important;
    border: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 540px !important;
}

/* Ajustes para el placeholder de Instagram mientras carga */
.instagram-media {
    min-height: 400px;
}