/* ==========================================
   FEED DE BLOG - ESTILO EDITORIAL PREMIUM
   ========================================== */
.blog-feed-header {
    /* MODIFICACIÓN: Fondo negro absoluto para contrastar con tu menú y enlaces blancos */
    background-color: #000000;
    /* Un ligero incremento en el padding superior para dar espacio al header flotante */
    padding: 180px 0 80px 0;
    width: 100%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.blog-subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #2222FF; /* Tu azul de marca resalta con fuerza sobre negro */
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

.blog-main-title {
    font-family: 'Arial Black', 'Impact', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    color: #ffffff; /* Título cambiado a blanco puro para resaltar sobre el fondo oscuro */
    margin: 0;
    letter-spacing: -2px;
}

.blog-main-title .dot-accent {
    color: #00A5E6; /* Tu cyan moderno para el punto de acento */
}

/* --- Estructura del Feed Principal --- */
.blog-feed-main {
    background-color: #fafafa;
    padding: 60px 0 120px 0;
    width: 100%;
}

.blog-feed-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Grilla de 3 Columnas */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 30px;
    margin-bottom: 60px;
}

/* Tarjeta Individual */
.blog-post-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.post-card-link {
    text-decoration: none !important;
    display: block;
    color: inherit;
}

/* Wrapper de Imagen y Efectos Zoom */
.post-card-img-wrap {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #111;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* Badge de Categoría flotante */
.post-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    z-index: 2;
}

/* Textos internos de la Tarjeta */
.post-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.post-card-date {
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    color: #888895;
    margin-bottom: 10px;
    display: block;
}

.post-card-title {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.35rem;
    line-height: 1.25;
    color: #000000;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-excerpt {
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555565;
    margin-bottom: 20px;
}

.post-card-more {
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2222FF;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* --- Estados Hover --- */
.blog-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.blog-post-card:hover .post-card-img {
    transform: scale(1.06);
    opacity: 0.9;
}

.blog-post-card:hover .post-card-title {
    color: #2222FF;
}

.blog-post-card:hover .post-card-more {
    color: #00A5E6;
    transform: translateX(4px);
}

/* --- Estilos de Paginación --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.blog-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.blog-pagination ul li a,
.blog-pagination ul li span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 45px;
    height: 45px;
    padding: 0 8px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.blog-pagination ul li span.current {
    background-color: #2222FF;
    color: #ffffff;
    border-color: #2222FF;
}

.blog-pagination ul li a:hover {
    border-color: #2222FF;
    color: #2222FF;
}

/* Estado sin posts */
.blog-no-posts {
    text-align: center;
    padding: 80px 0;
    font-family: Arial, sans-serif;
    color: #666;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .blog-main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 767px) {
    .blog-feed-header {
        padding: 140px 0 40px 0;
    }
    .blog-header-container,
    .blog-feed-container {
        padding: 0 25px;
    }
    .blog-main-title {
        font-size: 2.8rem;
    }
    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .post-card-img-wrap {
        height: 200px;
    }
}

/* ==========================================
   VISTA INTERNA DE ARTÍCULO (SINGLE POST)
   ========================================== */
.single-post-wrapper {
    background-color: #ffffff;
    width: 100%;
}

/* --- Cabecera del Artículo --- */
.post-article-header {
    background-color: #000000; /* Fondo negro como el feed principal para mimetizar el menú */
    padding: 180px 0 60px 0;
    width: 100%;
    text-align: center;
}

.post-header-inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Categorías dentro del single */
.post-article-categories {
    margin-bottom: 20px;
}

.post-article-categories a {
    font-family: 'Arial', sans-serif;
    color: #00A5E6; /* Tu cyan moderno resalta en la oscuridad */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.post-article-categories a:hover {
    color: #2222FF;
}

.category-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

/* Título Premium Principal */
.post-article-title {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 35px 0;
    letter-spacing: -2px;
}

/* Metadata y Autor */
.post-article-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-author-avatar img {
    border-radius: 50%;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-text-wrap {
    display: flex;
    flex-direction: column;
}

.meta-author-name {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.meta-article-date {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #888895;
}

/* --- Imagen Destacada Gigante --- */
.post-article-featured-image {
    background-color: #fafafa;
    width: 100%;
    padding: 0;
    margin-top: -30px; /* Eleva sutilmente el contenedor sobre el bloque oscuro */
    position: relative;
    z-index: 5;
}

.featured-image-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

/* --- Caja de Contenido (Criterio de legibilidad estricta) --- */
.post-article-body {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
    width: 100%;
}

.post-body-container {
    max-width: 780px; /* Ancho ideal de lectura (máximo 75-80 caracteres por línea) */
    margin: 0 auto;
    padding: 0 40px;
}

/* Tipografía del Cuerpo */
.post-main-content-entry {
    font-family: 'Georgia', serif; /* Cambiamos a serif para una lectura fluida de textos largos */
    font-size: 1.2rem;
    line-height: 1.75;
    color: #222228;
}

/* Estilización de etiquetas nativas dentro del bloque de texto */
.post-main-content-entry p {
    margin-bottom: 28px;
}

.post-main-content-entry h2,
.post-main-content-entry h3 {
    font-family: 'Arial Black', sans-serif;
    color: #000000;
    margin: 45px 0 20px 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

.post-main-content-entry h2 { font-size: 2rem; }
.post-main-content-entry h3 { font-size: 1.5rem; }

.post-main-content-entry blockquote {
    margin: 40px 0;
    padding-left: 30px;
    border-left: 4px solid #2222FF; /* Línea de tu azul corporativo */
    font-style: italic;
    font-size: 1.35rem;
    color: #404050;
    line-height: 1.6;
}

.post-main-content-entry img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* Navegación Final de Retorno */
.post-article-footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 50px 0;
}

.post-back-navigation {
    text-align: center;
}

.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2222FF;
    text-decoration: none !important;
    transition: all 0.3s ease;
    background-color: #fafafa;
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-back-to-blog:hover {
    color: #ffffff;
    background-color: #2222FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 34, 255, 0.15);
}

.arrow-back {
    transition: transform 0.3s ease;
}
.btn-back-to-blog:hover .arrow-back {
    transform: translateX(-4px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .post-article-title {
        font-size: 2.8rem;
    }
    .featured-image-container img {
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .post-article-header {
        padding: 140px 0 40px 0;
    }
    .post-header-inner,
    .featured-image-container,
    .post-body-container {
        padding: 0 25px;
    }
    .post-article-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    .featured-image-container img {
        border-radius: 8px;
        max-height: 280px;
    }
    .post-main-content-entry {
        font-size: 1.1rem;
        line-height: 1.65;
    }
}

/* ==========================================
   RESET DE CONTENEDOR MAESTRO SINGLE
   ========================================== */
.single-main-engine {
    display: block;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff; /* Asegura que el lienzo deje de estar invisible */
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

.single-post-wrapper {
    background-color: #ffffff;
    width: 100%;
}

/* --- Cabecera del Artículo --- */
.post-article-header {
    background-color: #000000 !important; 
    padding: 220px 0 80px 0 !important; /* Espacio extra superior para evitar que el menú tape el título */
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.post-header-inner {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 40px;
}

.post-article-categories {
    margin-bottom: 20px;
}

.post-article-categories a {
    font-family: 'Arial', sans-serif;
    color: #00A5E6 !important; 
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    letter-spacing: 2px;
}

.category-sep {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
}

.post-article-title {
    font-family: 'Arial Black', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.1;
    color: #ffffff !important;
    margin: 0 0 35px 0;
    letter-spacing: -2px;
}

.post-article-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-author-avatar img {
    border-radius: 50%;
    display: block;
}

.meta-text-wrap {
    display: flex;
    flex-direction: column;
}

.meta-author-name {
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.meta-article-date {
    font-family: 'Arial', sans-serif;
    font-size: 11px;
    color: #888895;
}

.post-article-featured-image {
    background-color: #ffffff;
    width: 100%;
    padding: 0;
    margin-top: -30px; 
    position: relative;
    z-index: 5;
}

.featured-image-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.featured-image-container img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.post-article-body {
    background-color: #ffffff;
    padding: 60px 0 100px 0;
    width: 100%;
}

.post-body-container {
    max-width: 780px; 
    margin: 0 auto;
    padding: 0 40px;
}

.post-main-content-entry {
    font-family: 'Georgia', serif; 
    font-size: 1.2rem;
    line-height: 1.75;
    color: #222228;
}

.post-main-content-entry p {
    margin-bottom: 28px;
}

.post-article-footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    margin: 50px 0;
}

.post-back-navigation {
    text-align: center;
}

.btn-back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Arial', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2222FF;
    text-decoration: none !important;
    background-color: #fafafa;
    padding: 12px 28px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-back-to-blog:hover {
    color: #ffffff !important;
    background-color: #2222FF;
    transform: translateY(-2px);
}