@charset "UTF-8";
/* 
 * Hub Editorial (Fase 19)
 * Sección de Contenido Pilar SEO (Guías)
 */

.vudi-editorial-container {
    width: 100%;
    max-width: 1100px; /* Unificado con el tema */
    margin: 0 auto;
    padding: 20px 20px 30px 20px; /* Reducido de 80px a 30px para corregir espacio vacío pre-footer */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.vudi-editorial-header {
    margin-bottom: 35px;
    text-align: center;
}

.vudi-editorial-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.vudi-editorial-subtitle {
    font-size: 1.05rem;
    color: #4b5563;
    margin: 0;
}

.vudi-editorial-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 24px !important;
    width: 100% !important;
}
.vudi-editorial-grid::before,
.vudi-editorial-grid::after {
    display: none !important;
}

.vudi-editorial-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Flex sizing for 3 columns with 24px gap - DO NOT SHRINK */
    flex: 0 0 calc(33.333% - 16px) !important;
    width: calc(33.333% - 16px) !important;
}

/* --- Paginación Editorial --- */
.vudi-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 40px !important;
    width: 100% !important;
    clear: both !important;
    padding: 0 !important;
    list-style: none !important;
}
.vudi-pagination ul {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.vudi-pagination li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.vudi-pagination .page-numbers {
    display: block !important;
    min-width: 36px !important;
    width: max-content !important; /* Critical fix for Firefox text shrink */
    height: 38px !important;
    line-height: 36px !important;
    padding: 0 14px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #4b5563 !important;
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    position: relative !important;
}
.vudi-pagination .page-numbers:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}
.vudi-pagination .page-numbers.current {
    background: #00867d !important; /* Teal matching branding */
    color: #ffffff !important;
    border-color: #00867d !important;
}
.vudi-pagination .next.page-numbers,
.vudi-pagination .prev.page-numbers {
    padding: 0 20px !important;
}

.vudi-editorial-card:hover, .vudi-editorial-card:focus {
    transform: translateY(-4px);
    border-color: #d1d5db;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.vudi-ed-card-img-wrap {
    width: 100%;
    height: 160px;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.vudi-ed-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vudi-editorial-card:hover .vudi-ed-card-img-wrap img {
    transform: scale(1.03);
}

/* Fallback visual cuando no hay imagen destacada */
.vudi-ed-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    color: #0d9488;
}

.vudi-ed-card-no-img svg {
    width: 36px;
    height: 36px;
    opacity: 0.5;
}

.vudi-ed-card-content {
    padding: 22px 20px 24px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vudi-ed-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #0d9488;
    background: #f0fdfa;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.vudi-ed-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.35;
    /* Limit to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.vudi-ed-excerpt {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vudi-editorial-card {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
    }
}

@media (max-width: 600px) {
    .vudi-editorial-card {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    .vudi-editorial-title {
        font-size: 1.6rem;
    }
    .vudi-editorial-container {
        padding-top: 10px;
    }
}
