/* Contenedor principal dinámico */
#contenido-dinamico {
    min-height: 600px;
    background-color: #ce3b3b;
    padding: 20px;
    overflow-y: auto;
    border-radius: 30px;
    margin-top: 300px;
}

/* Contenedor del artículo */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Encabezado del artículo */
.article-header h1 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Metadatos del artículo */
.article-meta {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedores de imágenes (principal y secundarias) */
.main-image-container,
.article-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    display: block; /* Cambiamos de flex a block */
    background-color: #f5f5f5;
    min-height: 200px;
    text-align: center; /* Centramos todo el contenido */
}

/* Imágenes dentro de los contenedores */
.main-image-container img,
.article-image-container img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto; /* Centrado horizontal */
}

/* Pie de foto - Versión corregida */
.image-caption {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin: 10px 0 20px;
    font-style: italic;
    width: 100%; /* Aseguramos que ocupe todo el ancho */
    display: block; /* Forzamos comportamiento de bloque */
    clear: both; /* Evita que flote al lado de otros elementos */
}

/* Contenido del artículo */
.article-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 16px;
    text-align: justify;
}

/* Cajas destacadas */
.highlight-box {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #0111a1;
    border-radius: 0 4px 4px 0;
}

/* Carrusel de miniaturas */
.image-carousel {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin: 20px 0;
}

/* Miniaturas */
.thumbnail {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    border-radius: 4px;
}

.thumbnail:hover {
    transform: scale(1.05);
    border-color: #0111a1;
}