/* ============================================================
   ESTILOS PARA EL BLOG (BASAGENTE)
   ============================================================ */


/* ============================================================
   SECCIÓN 1:  DE HERO (BLOGS)
============================================================ */
.hero-blog {
    background: linear-gradient(135deg, #1E253C 0%, #2A3454 100%);
    min-height: 55vh;
    
    /* SOLUCIÓN AL ESPACIO BLANCO */
    margin-top: -130px; /* Sube el contenedor hasta el tope de la pantalla */
    padding: 12rem 0 4rem 0; /* Aumentamos el relleno superior para empujar los textos debajo del menú */
    
    position: relative;
    overflow: hidden;
}

/* Patrón sutil de fondo para el Hero (Asegúrate de mantenerlo) */
.hero-blog::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
}

.bg-accent-orange {
    background-color: #F08805 !important;
}

/* ============================================================
   SECCIÓN 1:  DE HERO (BLOGS)
============================================================ */
.hero-blog {
    background: linear-gradient(135deg, #1E253C 0%, #2A3454 100%);
    min-height: 55vh;
    
    /* SOLUCIÓN AL ESPACIO BLANCO */
    margin-top: -130px; 
    padding: 12rem 0 4rem 0; /* Espaciado ideal para Computadora */
    
    position: relative;
    overflow: hidden;
}

/* Ajuste de espaciado vertical para Móviles y Tabletas */
@media (max-width: 991px) {
    .hero-blog {
        /* Reducimos el espacio arriba para que el texto no se sienta empujado hacia abajo */
        padding: 9rem 1rem 3rem 1rem; 
        min-height: 50vh;
    }
}

/* Patrón sutil de fondo para el Hero */
.hero-blog::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    z-index: 1;
}

.bg-accent-orange {
    background-color: #F08805 !important;
}

/* ============================================================
   SECCIÓN 2:  TARJETAS DE BLOGS
============================================================ */
.blog-card {
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

/* Contenedor de la imagen y efecto zoom */
.blog-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img {
    transform: scale(1.08);
}

/* Etiqueta flotante de categoría sobre la imagen */
.blog-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #1E253C;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Botón Leer Artículo --- */
.btn-blog {
    color: #1E253C;
    border-color: #e2e6ea;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-blog:hover {
    background-color: #1E253C;
    border-color: #1E253C;
    color: #ffffff;
}

.btn-blog i {
    transition: transform 0.3s ease;
}

.btn-blog:hover i {
    transform: translateX(4px);
}

/* ============================================================
   PAGINA DE ENTRADA
============================================================ */

/* ============================================================
   SECCIÓN 1: ENTRADA INDIVIDUAL
============================================================ */


/* --- Estilos para la Entrada Individual --- */
.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.article-body h2, .article-body h3 {
    color: #1E253C;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
}

.hover-orange:hover {
    color: #F08805 !important;
    transition: color 0.3s ease;
}

/* Ajuste para que el header del artículo no quede pegado al menú */
.article-header {
    background-color: #fcfcfc;
    border-bottom: 1px solid #eee;
    margin-bottom: 3rem;
}

/* --- Hero Dinámico para Entradas Individuales --- */
.article-dynamic-hero {
    min-height: 60vh; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Para que pase por debajo del menú flotante */
    margin-top: -130px; 
    padding: 160px 0 60px 0; /* Controlamos el espacio desde aquí para Computadora */
}

/* Ajuste específico para Móviles y Tabletas */
@media (max-width: 991px) {
    .article-dynamic-hero {
        /* Reducimos el espacio superior dramáticamente para que el texto quede centrado */
        padding: 120px 1rem 40px 1rem; 
        min-height: 50vh;
    }
    
    /* Ajustamos el tamaño del título para que no abarque tanta pantalla en celular */
    .article-dynamic-hero h1.display-4 {
        font-size: 2.2rem;
    }
}

/* Opcional: Pequeño efecto para el botón de volver */
.hover-scale {
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
    background-color: #1E253C;
    color: #ffffff !important;
}