/* ==========================================================================
   HOJA DE ESTILOS PARA EL BLOG (Artículos Individuales)
   ========================================================================== */

/* 1. Contenedor Principal Limitado (Crucial para legibilidad)
   ========================================================================== */
.article-wrapper {
    max-width: 900px; /* Limitamos el ancho para que la lectura sea cómoda */
    margin: 0 auto;
    padding: 2rem 1rem 6rem; /* Espaciado superior e inferior */
    background-color: #000; /* Fondo negro puro */
    color: var(--text-light); /* Texto blanco */
}

/* 2. Cabecera del Artículo
   ========================================================================== */
.article-header {
    text-align: center;
    margin-bottom: 4rem;
}

.article-title {
    font-size: 3rem; /* Título grande y moderno */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3. Cuerpo del Contenido (El texto)
   ========================================================================== */
.article-content {
    font-family: var(--font-body);
    font-size: 1.1rem; /* Un poco más grande para facilitar la lectura */
    line-height: 1.8; /* Buen interlineado */
    color: #f0f0f0;
}

/* Estilos para elementos dentro del contenido del editor */
.article-content p {
    margin-bottom: 1.8rem; /* Espaciado entre párrafos */
}

/* Subtítulos dentro del texto */
.article-content h2,
.article-content h3 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 700;
}

.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.5rem; }

/* Resaltar texto en dorado (opcional, como en el Hero) */
.article-content strong {
    color: var(--accent-gold);
    font-weight: 600;
}

/* 4. Galería de Imágenes
   ========================================================================== */
.article-gallery {
    margin: 6rem 0; /* Gran espaciado antes de la galería */
}

.gallery-grid {
    display: grid;
    /* Grid de 3 columnas que se adaptan a 2 o 1 en móvil */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem; /* Espaciado entre fotos */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; /* Bordes ligeramente suaves */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra suave */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el recuadro sin deformarse */
    transition: transform 0.5s ease;
}

/* Efecto hover suave */
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Ajuste para la imagen grande final (si existe) */
.article-featured-image {
    margin-top: 4rem;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   RESPONSIVE (Móviles y Tablets)
   ========================================================================== */
@media (max-width: 768px) {
    .article-title { font-size: 2.2rem; }
    .article-content { font-size: 1rem; }
    .article-wrapper { padding-bottom: 4rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}