/************************************************************************
  HOJA DE ESTILOS EXCLUSIVA: MÓDULO DE NOTICIAS
  ------------------------------------------------------------------------
  Ubicación: /blog/css/blog.css
************************************************************************/

/* --- 1. BANNER ESTÁTICO DE CABECERA (PORTADA) --- */
.blog-hero-banner {
    width: 100%;
    height: 78vh; /* Ajuste ideal para pantallas grandes sin ahogar el scroll */
    min-height: 350px;
    background-image: url('/frontend/img/portada.png'); /* Ruta de tu imagen subida */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 45px; /* Compensa la altura de la topbar */
}

/* Capa oscura translúcida para garantizar legibilidad del H1 sobre la foto */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 29, 35, 0.85) 40%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.max-width-hero-content {
    max-width: 650px;
}

.text-shadow-sm {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.text-light-custom {
    color: #e2e8f0 !important;
}

/* --- 2. CONFIGURACIÓN DEL GRID ASIMÉTRICO DE TARJETAS --- */
.blog-body {
    background-color: #f8f9fa !important; /* Fondo claro para lectura descansada */
}

.card-custom {
    background-color: #ffffff !important; /* Tarjetas blancas premium */
    border-radius: 6px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.card-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12) !important;
}

/* Enlaces e interacciones de títulos */
.text-info-custom {
    color: #219ebc !important; /* Azul institucional primario */
    transition: color 0.2s ease;
}

.card-custom:hover .text-info-custom {
    color: #fb8500 !important; /* Cambia a tu naranja de acción al hacer hover */
}

/* --- 3. BADGES DE UBICACIÓN FLOTANTES --- */
.badge-location {
    background-color: #219ebc !important; /* Color azul institucional */
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 6px 14px !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-location-sm {
    background-color: #219ebc !important;
    color: #ffffff !important;
    border-radius: 0 !important;
    padding: 3px 8px !important;
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Limitador de líneas para evitar asimetrías por exceso de caracteres */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* --- 4. EFECTO BARRIDO DE LUZ (ZOHO SHIMMER) --- */
.zoho-shimmer-effect {
    color: #219ebc; 
    display: inline-block;
    position: relative;
    background: linear-gradient(to right, #219ebc 20%, #ffffff 50%, #219ebc 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: zohoShimmer 3.5s linear infinite;
}

@keyframes zohoShimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.tracking-wide-custom {
    letter-spacing: -0.01em;
}

/* Responsividad para Mobile */
@media (max-width: 991.98px) {
    .blog-hero-banner {
        height: 35vh;
        margin-top: 0px; /* Adapta el comportamiento móvil */
    }
}


/************************************************************************
  DISEÑO MODERNIZADO: ESTILO BOOTSTRAP BRAIN EVOLUTION 2026
************************************************************************/

.blog-content-section {
    background-color: #f4f7f6; /* Fondo tiza suave de descanso visual */
}

/* Divisor de diseño moderno */
.modern-divider {
    width: 50px;
    height: 4px;
    background: #fb8500; /* Naranja corporativo primario */
    border-radius: 2px;
}

/* --- TARJETA PRINCIPAL DESTACADA --- */
.card-modern-featured {
    background: #ffffff !important;
    border-radius: 16px !important; /* Esquinas más redondeadas estilo iOS */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 29, 35, 0.05) !important;
    border: 1px solid rgba(33, 158, 188, 0.1) !important; /* Hilo de borde institucional */
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.card-modern-featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 29, 35, 0.12) !important;
    border-color: rgba(251, 133, 0, 0.4) !important; /* Ilumina el borde a naranja en hover */
}

/* --- TARJETAS SECUNDARIAS CON EFECTO VIDRIO (GLASSMORPHISM) --- */
.card-modern-inline {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px); /* Filtro de desenfoque de fondo */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modern-inline:hover {
    background: #ffffff !important; /* Se vuelve sólida al hover */
    transform: translateX(4px); /* Desplazamiento lateral sutil */
    box-shadow: 0 12px 24px rgba(33, 158, 188, 0.08) !important;
    border-color: rgba(33, 158, 188, 0.3) !important; /* Destello azul de control */
}

/* --- CONTROL DE ZOOM EN IMÁGENES --- */
.img-zoom-wrapper {
    overflow: hidden;
}

.img-zoom-wrapper img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-modern-featured:hover .img-zoom-wrapper img,
.card-modern-inline:hover .img-zoom-wrapper img {
    transform: scale(1.06); /* Acercamiento controlado no invasivo */
}

/* --- DETALLES DE TEXTOS Y ENLACES --- */
.text-dark-custom {
    color: #001d23 !important; /* Azul/Negro ultra profundo */
}

.text-primary-custom {
    color: #fb8500 !important; /* Tu naranja de acento activo */
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.header-link {
    background-image: linear-gradient(#219ebc, #219ebc); /* Subrayado animado moderno */
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease;
}

.card-modern-featured:hover .header-link,
.card-modern-inline:hover .header-link {
    background-size: 100% 2px;
    color: #219ebc !important;
}

/* Botón de lectura minimalista */
.btn-modern-link {
    color: #219ebc;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.btn-modern-link:hover {
    color: #fb8500; /* Mutación al naranja de acción al apuntar */
}

/* --- BADGES MODERNOS REDONDEADOS TIPO CÁPSULA --- */
.badge-modern-location {
    background-color: rgba(0, 29, 35, 0.85) !important;
    backdrop-filter: blur(4px);
    color: #ffffff !important;
    border-radius: 30px !important; /* Cápsula en lugar de bloque plano */
    padding: 6px 16px !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-modern-location-sm {
    background-color: rgba(33, 158, 188, 0.9) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 4px 10px !important;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Limitador de líneas CSS inteligente */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}










/************************************************************************
  MODULO DE LECTURA DE NOTICIA INDIVIDUAL (DETALLE-NOTICIAS)
************************************************************************/

/* Espaciador semántico para que la navegación no tape el inicio de la página */
.blog-nav-spacer {
    height: 140px; /* Cubre perfectamente la altura combinada de topbar + navbar */
}

/* Enlace de regreso estilizado con transición lateral */
.back-to-blog-link {
    color: #219ebc; /* Azul institucional */
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, color 0.2s ease;
}

.back-to-blog-link i {
    transition: transform 0.2s ease;
}

.back-to-blog-link:hover {
    color: #fb8500; /* Naranja activo */
}

.back-to-blog-link:hover i {
    transform: translateX(-4px); /* Sutil empuje hacia la izquierda al pasar el mouse */
}

/* Caja de Metadata del Artículo */
.article-meta-box {
    border-color: rgba(33, 158, 188, 0.15) !important;
}

.text-light-divider {
    color: rgba(33, 158, 188, 0.3);
}

/* Enmascarador de la imagen destacada */
.article-featured-image-wrapper {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- NÚCLEO DE LEGIBILIDAD DEL ARTÍCULO (WYSIWYG DIRECTUS) --- */
.article-main-content {
    font-family: 'Inter', sans-serif;
    color: #334155 !important; /* Gris pizarra oscuro (Estándar internacional de lectura) */
    line-height: 1.8; /* Espaciado entre líneas óptimo para lectura continua */
    letter-spacing: -0.01em;
}

/* Párrafos espaciados equitativamente */
.article-main-content p {
    margin-bottom: 1.75rem;
}

/* Títulos internos del editor de texto */
.article-main-content h2, 
.article-main-content h3 {
    font-family: 'Saira', sans-serif;
    color: #001d23 !important;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.article-main-content h2 { font-size: 1.85rem; }
.article-main-content h3 { font-size: 1.5rem; }

/* Bloques de Citas Resaltadas (Blockquotes) */
.article-main-content blockquote {
    position: relative;
    padding: 20px 30px;
    margin: 2.5rem 0;
    background-color: rgba(33, 158, 188, 0.04);
    border-left: 4px solid #fb8500; /* Línea de acento naranja */
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #1e293b;
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Negritas tipográficas */
.article-main-content strong {
    color: #001d23;
    font-weight: 600;
}

/* --- CAJA CTA DE CAPTACIÓN INSTITUCIONAL DE PRODUCCIÓN --- */
.article-cta-box {
    background-color: rgba(33, 158, 188, 0.08); /* Fondo azul sutil */
    border: 1px solid rgba(33, 158, 188, 0.15);
    box-shadow: 0 4px 20px rgba(0, 29, 35, 0.02);
}

.btn-cta-custom {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(251, 133, 0, 0.25);
    transition: all 0.2s ease;
}

.btn-cta-custom:hover {
    transform: scale(1.03);
}

/* Ajustes finos de adaptabilidad para celulares */
@media (max-width: 767.98px) {
    .blog-nav-spacer {
        height: 100px; /* Menor espacio en móviles ya que no se renderiza la topbar */
    }
    
    .article-main-content {
        font-size: 1.1rem !important; /* Texto un poco más grande en celulares para mejorar UX */
    }
    
    .article-main-content h2 {
        font-size: 1.5rem;
    }
}