.noticia-individual {
    padding: 2rem 0;
}

.noticia-header {
    text-align: center;
    margin-bottom: 3rem;
}

.noticia-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.noticia-categoria {
    background: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.noticia-fecha {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.noticia-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.noticia-autor {
    color: #666;
    font-style: italic;
}

/* Contenedor principal de imagen responsiva */
.noticia-imagen-principal {
    margin-bottom: 3rem !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Contenedor interno para controlar el tamaño */
.imagen-responsive-container {
    width: 100% !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Imagen principal responsiva */
.imagen-responsive {
    width: 100% !important;
    height: auto !important;
    max-height: 500px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px !important;
    margin: 0 auto !important;
}

/* Contenedor para imágenes en tarjetas */
.card-img-wrapper {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f8f9fa !important;
}

/* Imágenes en tarjetas responsivas */
.imagen-card-responsive {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

/* ESTILOS PARA VIDEOS DE YOUTUBE RESPONSIVOS */
/* Contenedor responsivo para videos */
.video-responsive-container {
    position: relative !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 2rem auto !important;
    padding-bottom: 56.25% !important; /* Proporción 16:9 */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
}

.video-responsive-container iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 10px !important;
}

/* Estilos para iframes de YouTube dentro del contenido */
.contenido-wrapper iframe[src*="youtube.com"],
.contenido-wrapper iframe[src*="youtu.be"] {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 315px !important;
    aspect-ratio: 16 / 9 !important;
    display: block !important;
    margin: 2rem auto !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

/* Estilos para otros iframes embebidos */
.contenido-wrapper iframe {
    max-width: 100% !important;
    min-height: 300px !important;
    display: block !important;
    margin: 2rem auto !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
}

/* Estilos para imágenes dentro del contenido */
.contenido-wrapper img {
    max-width: 100% !important;
    /*width: auto !important;*/
    height: auto !important;
    display: block !important;
    margin: 1.5rem auto !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Contenedor del contenido */
.contenido-wrapper {
    max-width: 800px !important;
    margin: 0 auto !important;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    padding: 0 15px !important;
}

.contenido-wrapper h1, .contenido-wrapper h2, .contenido-wrapper h3 {
    color: #007bff;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.contenido-wrapper p {
    margin-bottom: 1.5rem;
}

.noticia-contenido {
    margin-bottom: 3rem;
}

.noticia-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.noticia-acciones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-compartir, .btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-compartir {
    background: #007bff;
    color: white;
}

.btn-compartir:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-volver {
    background: #6c757d;
    color: white;
}

.btn-volver:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
}

.noticias-relacionadas {
    background: #f8f9fa;
    padding: 3rem 0;
}

.noticias-relacionadas h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.noticia-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    overflow: hidden !important;
}

.noticia-card:hover {
    transform: translateY(-5px);
}

/* Media queries para mayor responsividad */
@media (max-width: 768px) {
    .noticia-titulo {
        font-size: 2rem;
    }

    .noticia-meta {
        flex-direction: column;
        align-items: center;
    }

    .contenido-wrapper {
        font-size: 1rem;
        padding: 0 10px !important;
    }

    .imagen-responsive-container {
        max-width: 100% !important;
        margin: 0 10px !important;
    }

    .imagen-responsive {
        max-height: 300px !important;
    }

    .card-img-wrapper {
        height: 180px !important;
    }

    /* Videos en móviles */
    .video-responsive-container {
        margin: 1.5rem auto !important;
    }

    .contenido-wrapper iframe[src*="youtube.com"],
    .contenido-wrapper iframe[src*="youtu.be"] {
        min-height: 250px !important;
        margin: 1.5rem auto !important;
    }
}

@media (max-width: 576px) {
    .noticia-titulo {
        font-size: 1.5rem;
    }

    .imagen-responsive {
        max-height: 250px !important;
    }

    .card-img-wrapper {
        height: 150px !important;
    }

    .contenido-wrapper {
        padding: 0 5px !important;
    }

    /* Videos en móviles pequeños */
    .contenido-wrapper iframe[src*="youtube.com"],
    .contenido-wrapper iframe[src*="youtu.be"] {
        min-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .imagen-responsive-container {
        margin: 0 5px !important;
    }

    .imagen-responsive {
        max-height: 200px !important;
    }

    .card-img-wrapper {
        height: 120px !important;
    }

    /* Videos en dispositivos muy pequeños */
    .contenido-wrapper iframe[src*="youtube.com"],
    .contenido-wrapper iframe[src*="youtu.be"] {
        min-height: 180px !important;
        margin: 1rem auto !important;
    }
}