/* =====================================
   ESTILOS BASE COMUNES PARA WIDGETS
   ===================================== */
.home-widget {
    margin: 3rem 0;
}

.widget-before {
    margin-bottom: 4rem;
}

.widget-after {
    margin-top: 4rem;
}

/* Widget base */
.categories-cluster-widget {
    background: #fafbfc;
    border: 1px solid #e0e4ea;
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 2px 8px rgba(44,62,80,0.04);
    position: relative;
    font-family: inherit;
}

.widget-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.widget-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.widget-subtitle {
    font-size: 1rem;
    color: #7b8794;
    margin: 0;
    line-height: 1.5;
    margin-top: 0.5rem;
}

.widget-footer {
    margin-top: 1.2rem;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid #e0e4ea;
}

.view-all-categories {
    display: inline-flex;
    align-items: center;
    background: #3498db;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(52,152,219,0.08);
}

.view-all-categories:hover {
    background: #217dbb;
    box-shadow: 0 2px 8px rgba(52,152,219,0.12);
}

/* Widget vacío */
.categories-cluster-widget.empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

/* =====================================
   ESTILOS PARA ITEMS DE CATEGORÍA
   ===================================== */
.category-cluster-item {
    background: transparent;
    border: none;
    border-radius: 6px;
    transition: background 0.2s;
    overflow: hidden;
    box-shadow: none;
}

.category-cluster-item:hover {
    background: #f0f4fa;
    border: none;
    box-shadow: none;
}

.category-link {
    display: block;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.category-link:hover {
    background: #eaf6fb;
    color: #3498db;
}

.category-name {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.4;
}

.category-count {
    font-size: 0.85rem;
    color: #7b8794;
    font-weight: 400;
}

/* =====================================
   ESTILO ALFABÉTICO (AGRUPADO)
   ===================================== */
.categories-cluster-widget.alphabet-style {
    /* Estilos específicos para modo alfabético */
}

/* === CLUSTER DE CATEGORÍAS ESTILO TENNESSEE PAIN CLINICS === */

.alphabet-nav {
    text-align: center;
    margin-bottom: 16px;
}
.alphabet-letter {
    background: #e5e8ec;
    color: #0d2c3f;
    font-weight: 700;
    border: 0;
    padding: 8px 14px;
    border-radius: 4px;
    margin: 4px;
    cursor: pointer;
    transition: background .2s;
    display: inline-block;
}
.alphabet-letter.current {
    background: #0d2c3f;
    color: #fff;
}
.alphabet-letter.available {
    color: #0d2c3f;
    background: #e5e8ec;
    cursor: pointer;
}
.alphabet-letter.disabled {
    color: #b0b0b0;
    background: #f3f4f6;
    cursor: not-allowed;
}
.letter-group {
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    margin: 0;
    box-shadow: none;
}
.letter-group-header {
    display: none;
}
.letter-title {
    display: none;
}
.letter-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-start;
    padding: 20px;
    background: #f7fafd;
}
.category-cluster-item {
    flex: 1 1 240px;
    min-width: 200px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-link {
    font-weight: 600;
    color: #0066c0;
    text-align: center;
    display: block;
    margin-bottom: 4px;
    font-size: 1.08rem;
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.category-link:hover {
    color: #0d2c3f;
    background: #e5e8ec;
}
.category-name {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    display: inline;
}
.category-count {
    display: none;
}

/* =====================================
   ESTILO GRID SIMPLE
   ===================================== */
.categories-cluster-widget.grid-style {
    /* Estilos específicos para el modo grid */
}

/* Grid simple de categorías */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0;
}

/* Hover especial para modo grid */
.grid-style .category-cluster-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.grid-style .category-cluster-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* =====================================
   WIDGETS DE TEXTO Y BÚSQUEDA
   ===================================== */

/* Widget de texto */
.text-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.text-widget .widget-title {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.text-widget .widget-content {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    text-align: left;
}

.text-widget .widget-content p {
    margin-bottom: 1rem;
}

.text-widget .widget-content p:last-child {
    margin-bottom: 0;
}

/* Widget de búsqueda */
.search-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.search-widget .widget-title {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.search-widget .widget-content {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.search-form {
    margin: 0;
}

.search-input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    outline: none;
}

.search-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.2s ease;
    min-width: 60px;
}

.search-button:hover {
    background: #2563eb;
}

.search-button:focus {
    outline: none;
    background: #1d4ed8;
}

/* =====================================
   ESTILOS PARA POSTS Y FECHAS
   ===================================== */
.post-meta {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.post-meta.hide-date {
    display: none !important;
}

.post-meta.hide-date .post-date {
    display: none !important;
}

.post-meta .post-category {
    font-weight: 500;
}

.post-meta .post-category a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.post-meta .post-category a:hover {
    color: #2563eb;
}

.post-meta .post-date {
    color: #9ca3af;
    font-weight: 400;
}

.post-meta .post-separator {
    color: #d1d5db;
    font-weight: 400;
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

/* Tablets */
@media (max-width: 1024px) {
    .categories-cluster-widget {
        padding: 1.75rem;
    }
    
    .letter-categories-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.875rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .categories-cluster-widget {
        padding: 1.5rem;
    }
    
    .widget-title {
        font-size: 1.75rem;
    }
    
    .widget-subtitle {
        font-size: 1rem;
    }
    
    /* Alfabético responsive */
    .alphabet-nav {
        gap: 0.125rem;
        padding: 0.75rem;
    }
    
    .alphabet-letter {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .letter-categories-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .letter-group-header {
        padding: 0.5rem 1rem;
    }
    
    .letter-title {
        font-size: 1.125rem;
    }
    
    /* Grid responsive */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .category-link {
        padding: 1rem;
    }
    
    /* Posts responsive */
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .post-meta .post-separator {
        display: none;
    }
    
    /* Widgets de texto y búsqueda responsive */
    .text-widget,
    .search-widget {
        padding: 1rem;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-input {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .search-button {
        border-radius: 0 0 8px 8px;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .categories-cluster-widget {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .widget-title {
        font-size: 1.25rem;
    }
    
    .alphabet-nav {
        gap: 0.1rem;
        padding: 0.5rem;
    }
    
    .alphabet-letter {
        font-size: 0.7rem;
        padding: 0 0.25rem;
    }
    
    .letter-categories-grid,
    .categories-grid {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .category-link {
        padding: 0.875rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .category-count {
        font-size: 0.8rem;
    }
    
    .letter-title {
        font-size: 1rem;
    }
    
    .text-widget,
    .search-widget {
        padding: 1rem;
    }
    
    .view-all-categories {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* =====================================
   ESTADOS ESPECIALES Y ANIMACIONES
   ===================================== */

/* Loading state */
.categories-cluster-widget.loading {
    opacity: 0.7;
    pointer-events: none;
}

.categories-cluster-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states para accesibilidad */
.alphabet-letter:focus,
.category-link:focus,
.view-all-categories:focus,
.search-input:focus,
.search-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Estados hover mejorados */
.category-cluster-item:hover .category-name {
    color: #1f2937;
}

.category-cluster-item:hover .category-count {
    color: #374151;
}

/* Transiciones suaves */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* =====================================
   MODO OSCURO (OPCIONAL)
   ===================================== */
@media (prefers-color-scheme: dark) {
    .categories-cluster-widget {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .widget-title {
        color: #f9fafb;
    }
    
    .widget-subtitle {
        color: #d1d5db;
    }
    
    .category-cluster-item {
        background: #374151;
        border-color: #4b5563;
    }
    
    .category-cluster-item:hover {
        background: #4b5563;
        border-color: #6b7280;
    }
    
    .category-name {
        color: #f9fafb;
    }
    
    .category-count {
        color: #d1d5db;
    }
    
    .alphabet-nav {
        background: #374151;
    }
    
    .alphabet-letter {
        background: #4b5563;
        border-color: #6b7280;
        color: #d1d5db;
    }
    
    .letter-group-header {
        background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    }
    
    .letter-categories-grid {
        background: #374151;
    }
}

/* =====================================
   UTILIDADES Y HELPERS
   ===================================== */
.widget-hidden {
    display: none !important;
}

.widget-visible {
    display: block !important;
}

.no-animation * {
    transition: none !important;
    animation: none !important;
}

/* Para debug */
.widget-debug {
    border: 2px dashed #ef4444 !important;
}

.widget-debug .category-cluster-item {
    border: 1px dashed #f59e0b !important;
}

/* 
 * CSS Compacto para Widgets - Versión como la imagen
 * Diseño más condensado y eficiente en espacio
 */

/* =====================================
   ESTILOS BASE COMPACTOS
   ===================================== */
.home-widget {
    margin: 2rem 0;
}

.widget-before {
    margin-bottom: 3rem;
}

.widget-after {
    margin-top: 3rem;
}

/* Widget base - más compacto */
.categories-cluster-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.widget-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #1f2937;
}

.widget-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
}

/* =====================================
   NAVEGACIÓN ALFABÉTICA COMPACTA
   ===================================== */
.alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.alphabet-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    cursor: pointer;
}

.alphabet-letter:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.alphabet-letter.current {
    background: #059669;
    color: white;
    border: none;
}

.alphabet-letter.available {
    background: #ffffff;
    color: #374151;
    border-color: #9ca3af;
    font-weight: 600;
}

.alphabet-letter.disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
}

/* =====================================
   GRUPOS DE LETRAS COMPACTOS
   ===================================== */
.letter-group {
    margin-bottom: 1.25rem;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
}

.letter-group:last-child {
    margin-bottom: 0;
}

/* Header de letra más compacto */
.letter-group-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 0.5rem 1rem;
    position: relative;
}

.letter-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* =====================================
   GRID COMPACTO COMO LA IMAGEN
   ===================================== */
/* Grid más compacto con más columnas */
.letter-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: #fafbfc;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 0;
}

/* Items de categoría MUY compactos */
.category-cluster-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.15s ease;
    overflow: hidden;
}

.category-cluster-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Link compacto */
.category-link {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

/* Texto compacto */
.category-name {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
}

.category-count {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

/* =====================================
   FOOTER COMPACTO
   ===================================== */
.widget-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.view-all-categories {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.view-all-categories:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* =====================================
   OTROS WIDGETS COMPACTOS
   ===================================== */
.text-widget,
.search-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.text-widget .widget-title,
.search-widget .widget-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #1f2937;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    font-size: 0.875rem;
    outline: none;
}

.search-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease;
    min-width: 50px;
}

.search-button:hover {
    background: #2563eb;
}

/* =====================================
   RESPONSIVE COMPACTO
   ===================================== */

/* Tablets */
@media (max-width: 1024px) {
    .letter-categories-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.375rem;
    }
}

/* Móviles grandes */
@media (max-width: 768px) {
    .categories-cluster-widget {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 1.25rem;
    }
    
    .alphabet-nav {
        gap: 0.075rem;
        padding: 0.5rem;
    }
    
    .alphabet-letter {
        height: 24px;
        font-size: 0.7rem;
    }
    
    .letter-categories-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.375rem;
        padding: 0.75rem;
    }
    
    .category-link {
        padding: 0.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .category-count {
        font-size: 0.7rem;
    }
    
    .letter-group-header {
        padding: 0.375rem 0.75rem;
    }
    
    .letter-title {
        font-size: 0.875rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .categories-cluster-widget {
        padding: 0.75rem;
    }
    
    .alphabet-nav {
        gap: 0.05rem;
        padding: 0.375rem;
    }
    
    .alphabet-letter {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .letter-categories-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .category-link {
        padding: 0.375rem;
    }
    
    .category-name {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }
    
    .category-count {
        font-size: 0.65rem;
    }
    
    .widget-title {
        font-size: 1.125rem;
    }
    
    .view-all-categories {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* =====================================
   ESTILOS PARA POSTS COMPACTOS
   ===================================== */
.post-meta {
    color: #6b7280;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.post-meta .post-category a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.post-meta .post-date {
    color: #9ca3af;
}

.post-meta .post-separator {
    color: #d1d5db;
}

@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
        font-size: 0.75rem;
    }
    
    .post-meta .post-separator {
        display: none;
    }
}

/* =====================================
   UTILIDADES COMPACTAS
   ===================================== */
.compact-mode .category-link {
    padding: 0.5rem;
}

.compact-mode .category-name {
    font-size: 0.8rem;
}

.compact-mode .category-count {
    font-size: 0.7rem;
}

.ultra-compact .letter-categories-grid,
.ultra-compact .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.25rem;
}

.ultra-compact .category-link {
    padding: 0.375rem;
}

/* Estado sin contenido */
.categories-cluster-widget.empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.categories-cluster-widget.empty .widget-title {
    font-size: 1.25rem;
}
/* 
 * CSS Completo para Widget Compacto - Diseño Final
 * Optimizado para máxima densidad como la imagen de referencia
 */

/* =====================================
   ESTILOS BASE COMPACTOS
   ===================================== */
.home-widget {
    margin: 1.5rem 0;
}

.widget-before {
    margin-bottom: 2.5rem;
}

.widget-after {
    margin-top: 2.5rem;
}

/* Widget base compacto */
.categories-cluster-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
}

.categories-cluster-widget.compact-design {
    padding: 1rem;
}

.widget-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.widget-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}

.widget-title.compact-title {
    font-size: 1.25rem;
    margin-bottom: 0.125rem;
}

.widget-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.widget-footer {
    margin-top: 1.25rem;
    text-align: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.widget-footer.compact-footer {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.view-all-categories {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.view-all-categories.compact-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.view-all-categories:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Widget vacío compacto */
.categories-cluster-widget.empty,
.categories-cluster-widget.compact-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #6b7280;
}

.compact-empty {
    padding: 1.5rem 0.75rem;
}

/* =====================================
   NAVEGACIÓN ALFABÉTICA COMPACTA
   ===================================== */
.alphabet-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.125rem;
    margin-bottom: 1.25rem;
    padding: 0.625rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #f3f4f6;
}

.alphabet-nav.compact-nav {
    gap: 0.075rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

.alphabet-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.75rem;
    transition: all 0.15s ease;
    cursor: pointer;
    position: relative;
}

.alphabet-letter.compact-letter {
    min-height: 38px;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alphabet-letter.compact-letter.current {
    background: #0d2c3f;
    color: #fff;
    border: none;
}

/* Letras disponibles (que tienen categorías) */
.alphabet-letter.available {
    background: #ffffff;
    color: #374151;
    border-color: #9ca3af;
    font-weight: 600;
}

.alphabet-letter.available:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Letras deshabilitadas (sin categorías) */
.alphabet-letter.disabled {
    background: #f9fafb;
    color: #d1d5db;
    cursor: not-allowed;
    border-color: #f3f4f6;
}

.alphabet-letter.disabled:hover {
    background: #f9fafb;
    color: #d1d5db;
    border-color: #f3f4f6;
    transform: none;
}

/* Indicador visual para letras con contenido */
.alphabet-letter.available::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0.6;
}

.alphabet-letter.compact-letter.available::after {
    width: 2px;
    height: 2px;
    bottom: 1px;
}

.alphabet-letter.current::after,
.alphabet-letter:hover::after {
    background: white;
    opacity: 1;
}

/* =====================================
   GRUPOS DE LETRAS COMPACTOS
   ===================================== */
.letter-group {
    margin-bottom: 1.25rem;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    display: block; /* Siempre visibles por defecto */
    opacity: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.letter-group.compact-group {
    margin-bottom: 1rem;
    border-radius: 4px;
}

.letter-group:last-child {
    margin-bottom: 0;
}

.letter-group-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 0.5rem 1rem;
    position: relative;
}

.letter-group-header.compact-header {
    padding: 0.375rem 0.75rem;
}

.letter-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.letter-title.compact-title {
    font-size: 0.875rem;
    font-weight: 500;
}

/* =====================================
   GRID COMPACTO DE CATEGORÍAS
   ===================================== */
.letter-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
    background: #fafbfc;
}

.letter-categories-grid.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.375rem;
    padding: 0.75rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.categories-grid.compact-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.375rem;
}

/* =====================================
   ITEMS DE CATEGORÍA COMPACTOS
   ===================================== */
.category-cluster-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.15s ease;
    overflow: hidden;
}

.category-cluster-item.compact-item {
    border-radius: 3px;
}

.category-cluster-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.category-link {
    display: block;
    padding: 0.75rem;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

.category-link.compact-link {
    padding: 0.5rem;
}

.category-name {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
    word-break: break-word;
}

.category-name.compact-name {
    font-size: 0.8rem;
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.category-count {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 400;
}

.category-count.compact-count {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: 400;
}

/* =====================================
   WIDGETS DE TEXTO Y BÚSQUEDA COMPACTOS
   ===================================== */
.text-widget,
.search-widget {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.text-widget.compact-text-widget,
.search-widget.compact-search-widget {
    padding: 1rem;
    border-radius: 6px;
}

.text-widget .widget-title,
.search-widget .widget-title {
    color: #1f2937;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.text-widget .widget-content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: left;
}

.text-widget .widget-content.compact-content {
    font-size: 0.85rem;
    line-height: 1.5;
}

.text-widget .widget-content p {
    margin-bottom: 0.75rem;
}

.text-widget .widget-content p:last-child {
    margin-bottom: 0;
}

/* Widget de búsqueda compacto */
.search-form {
    margin: 0;
}

.search-form.compact-form {
    margin-top: 0.5rem;
}

.search-input-group {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.search-input-group.compact-input-group {
    max-width: 300px;
    border-radius: 4px;
}

.search-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: none;
    font-size: 0.875rem;
    outline: none;
}

.search-input.compact-input {
    padding: 0.5rem 0.625rem;
    font-size: 0.8rem;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s ease;
    min-width: 50px;
}

.search-button.compact-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    min-width: 40px;
}

.search-button:hover {
    background: #2563eb;
}

/* =====================================
   ESTILOS PARA POSTS COMPACTOS
   ===================================== */
.post-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.post-card-compact {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-card-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

.post-title-compact {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    line-height: 1.3;
}

.post-title-compact a {
    color: var(--color-text, #1f2937) !important;
    text-decoration: none;
    font-weight: 600;
}

.post-title-compact a:hover {
    color: #3b82f6;
}

.post-meta-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    flex-wrap: wrap;
}

.post-meta-compact.hide-date .post-date-compact {
    display: none;
}

.post-category-compact a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.post-category-compact a:hover {
}

.post-date-compact {
    color: #9ca3af;
}

.post-separator-compact {
    color: #d1d5db;
}

.post-excerpt-compact {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #4b5563;
}

/* =====================================
   PAGINACIÓN COMPACTA
   ===================================== */
.pagination-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.pagination-link-compact,
.pagination-current-compact {
    padding: 0.375rem 0.625rem;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s ease;
    min-width: 32px;
    text-align: center;
}

.pagination-link-compact {
    color: #374151;
    background: white;
}

.pagination-link-compact:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.pagination-current-compact {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* =====================================
   RESPONSIVE DESIGN COMPACTO
   ===================================== */

/* Tablets grandes (1024px) */
@media (max-width: 1024px) {
    .letter-categories-grid.compact-grid,
    .categories-grid.compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.375rem;
    }
    
    .post-grid-compact {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    .categories-cluster-widget.compact-design {
        padding: 0.75rem;
    }
    
    .widget-title.compact-title {
        font-size: 1.125rem;
    }
    
    .widget-subtitle {
        font-size: 1rem;
    }
    
    .alphabet-nav.compact-nav {
        gap: 0.05rem;
        padding: 0.375rem;
    }
    
    .alphabet-letter.compact-letter {
        height: 36px;
        font-size: 0.65rem;
    }
    
    .letter-categories-grid.compact-grid,
    .categories-grid.compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.25rem;
        padding: 0.5rem;
    }
    
    .category-link.compact-link {
        padding: 0.375rem;
    }
    
    .category-name.compact-name {
        font-size: 0.75rem;
        margin-bottom: 0.125rem;
    }
    
    .category-count.compact-count {
        font-size: 0.65rem;
    }
    
    .letter-group-header.compact-header {
        padding: 0.25rem 0.5rem;
    }
    
    .letter-title.compact-title {
        font-size: 0.8rem;
    }
    
    .post-grid-compact {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }
    
    .post-card-compact {
        padding: 0.75rem;
    }
    
    .post-title-compact {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
    }
    
    .post-meta-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
        font-size: 0.7rem;
    }
    
    .post-separator-compact {
        display: none;
    }
    
    .post-excerpt-compact {
        font-size: 0.8rem;
    }
    
    .text-widget.compact-text-widget,
    .search-widget.compact-search-widget {
        padding: 0.75rem;
    }
    
    .search-input-group.compact-input-group {
        max-width: 100%;
        flex-direction: column;
        border-radius: 4px;
    }
    
    .search-input.compact-input {
        border-bottom: 1px solid #e5e7eb;
    }
    
    .search-button.compact-button {
        border-radius: 0 0 4px 4px;
    }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
    .categories-cluster-widget.compact-design {
        padding: 0.5rem;
        margin: 1rem 0;
    }
    
    .widget-title.compact-title {
        font-size: 1rem;
    }
    
    .widget-subtitle {
        font-size: 1rem;
    }
    
    .alphabet-nav.compact-nav {
        gap: 0.025rem;
        padding: 0.25rem;
    }
    
    .alphabet-letter.compact-letter {
        width: 36px;
        height: 26px;
        font-size: 0.6rem;
    }
    
    .letter-categories-grid.compact-grid,
    .categories-grid.compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.25rem;
        padding: 0.375rem;
    }
    
    .category-link.compact-link {
        padding: 0.25rem;
    }
    
    .category-name.compact-name {
        font-size: 0.7rem;
        margin-bottom: 0.075rem;
    }
    
    .category-count.compact-count {
        font-size: 0.6rem;
    }
    
    .letter-title.compact-title {
        font-size: 0.75rem;
    }
    
    .view-all-categories.compact-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .post-card-compact {
        padding: 0.5rem;
    }
    
    .post-title-compact {
        font-size: 0.9rem;
    }
    
    .post-excerpt-compact {
        font-size: 0.75rem;
    }
    
    .pagination-compact {
        gap: 0.25rem;
    }
    
    .pagination-link-compact,
    .pagination-current-compact {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
        min-width: 28px;
    }
}

/* Móviles extra pequeños (320px) */
@media (max-width: 320px) {
    .letter-categories-grid.compact-grid,
    .categories-grid.compact-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
    
    .alphabet-letter.compact-letter {
        width: 36px;
        height: 26px;
        font-size: 0.55rem;
    }
    
    .category-name.compact-name {
        font-size: 0.65rem;
    }
    
    .category-count.compact-count {
        font-size: 0.55rem;
    }
}

/* =====================================
   ESTADOS ESPECIALES Y ANIMACIONES
   ===================================== */

/* Efectos de filtrado alfabético */
.letter-group.filtering-out {
    opacity: 0;
    transform: scale(0.95);
}

.letter-group.filtering-in {
    opacity: 1;
    transform: scale(1);
}

/* Loading state compacto */
.categories-cluster-widget.loading {
    opacity: 0.7;
    pointer-events: none;
}

.categories-cluster-widget.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states para accesibilidad */
.alphabet-letter:focus,
.category-link:focus,
.view-all-categories:focus,
.search-input:focus,
.search-button:focus,
.pagination-link-compact:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

/* Estados hover mejorados */
.category-cluster-item:hover .category-name.compact-name {
    color: #1f2937;
}

.category-cluster-item:hover .category-count.compact-count {
    color: #374151;
}

/* Transiciones suaves globales */
* {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

/* =====================================
   MODO OSCURO COMPACTO (OPCIONAL)
   ===================================== */
@media (prefers-color-scheme: dark) {
    .categories-cluster-widget {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .widget-title {
        color: #f9fafb;
    }
    
    .widget-subtitle {
        color: #d1d5db;
    }
    
    .category-cluster-item {
        background: #374151;
        border-color: #4b5563;
    }
    
    .category-cluster-item:hover {
        background: #4b5563;
        border-color: #6b7280;
    }
    
    .category-name {
        color: #f9fafb;
    }
    
    .category-count {
        color: #d1d5db;
    }
    
    .alphabet-nav {
        background: #374151;
    }
    
    .alphabet-letter {
        background: #4b5563;
        border-color: #6b7280;
        color: #d1d5db;
    }
    
    .letter-categories-grid {
        background: #374151;
    }
    
    .post-card-compact {
        background: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .post-title-compact a {
        color: #f9fafb !important;
    }

    .post-excerpt-compact,
    .post-date-compact {
        color: #d1d5db;
    }
}

/* =====================================
   UTILIDADES Y HELPERS
   ===================================== */
.widget-hidden {
    display: none !important;
}

.widget-visible {
    display: block !important;
}

.no-animation,
.no-animation * {
    transition: none !important;
    animation: none !important;
}

/* Para debug y desarrollo */
.widget-debug {
    border: 1px dashed #ef4444 !important;
}

.widget-debug .category-cluster-item {
    border: 1px dashed #f59e0b !important;
}

/* Modo ultra compacto para casos extremos */
.ultra-compact .letter-categories-grid,
.ultra-compact .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.125rem;
}

.ultra-compact .category-link {
    padding: 0.25rem;
}

.ultra-compact .category-name {
    font-size: 0.7rem;
}

.ultra-compact .category-count {
    font-size: 0.6rem;
}

/* === Widget de texto formal === */
.formal-text-widget {
    background: linear-gradient(135deg, #e0e7ef 0%, #f8fafc 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.07);
    text-align: center;
    margin-bottom: 2rem;
}
.formal-text-widget .widget-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.01em;
}
.formal-text-widget .widget-content {
    font-size: 1.15rem;
    color: #334155;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 600px;
}

/* ====== Cluster de categorías compacto en columnas estilo referencia ====== */
.alphabet-nav.compact-nav {
  text-align: center;
  margin-bottom: 16px;
}
.alphabet-letter.compact-letter {
  background: #e5e8ec;
  color: #0d2c3f;
  font-weight: 700;
  border: 0;
  padding: 8px 14px;
  border-radius: 4px;
  margin: 4px;
  cursor: pointer;
  transition: background .2s;
  display: inline-block;
}
.alphabet-letter.compact-letter.current {
  background: #0d2c3f;
  color: #fff;
}
.alphabet-letter.compact-letter.available {
  color: #0d2c3f;
  background: #e5e8ec;
  cursor: pointer;
}
.alphabet-letter.compact-letter.disabled {
  color: #b0b0b0;
  background: #f3f4f6;
  cursor: not-allowed;
}
.letter-group.compact-group {
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  margin: 0;
  box-shadow: none;
}
.letter-group-header.compact-header {
  display: none;
}
.letter-title.compact-title {
  display: none;
}
.letter-categories-grid.compact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  padding: 0px;
  background: #f7fafd;
}
.category-cluster-item.compact-item {
  flex: 1 1 240px;
  min-width: 200px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category-link.compact-link {
  font-weight: 600;
  color: #0066c0;
  text-align: center;
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
  padding: 10px;
  width: 100%;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.category-link.compact-link:hover {
  color: #0d2c3f;
  background: #e5e8ec;
}
.category-name.compact-name {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  margin: 0;
  display: inline;
}
.category-count.compact-count {
  display: none;
}

/* Estilos para layout de post con sidebar */
.post-layout.with-sidebar .main-content-area {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.post-layout.with-sidebar .single-post {
  flex: 1 1 0;
  min-width: 0;
}

.post-layout.with-sidebar .recommended-widget-sidebar {
  width: 320px;
  flex-shrink: 0;
  margin-left: 0;
  margin-top: 0;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  height: fit-content;
}

@media (max-width: 900px) {
  .post-layout.with-sidebar .main-content-area {
    flex-direction: column;
  }
  .post-layout.with-sidebar .recommended-widget-sidebar {
    width: 100%;
    margin-left: 0;
    margin-top: 2rem;
  }
}

.recommended-posts-widget {
  margin: 2rem 0;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.recommended-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommended-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.2s ease;
}

.recommended-post-item:hover {
  background: #f8fafc;
  border-color: #3498db;
  transform: translateX(-4px);
}

.recommended-post-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  flex: 1;
  padding-right: 1rem;
}

.recommended-post-arrow {
  color: #3498db;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
}

.recommended-post-item:hover .recommended-post-arrow {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .recommended-post-item {
    padding: 0.75rem;
  }
  
  .recommended-post-title {
    font-size: 1rem;
  }

  
    .button {
        width: 100%;
    }
}

/* Quitar subrayado de los enlaces al hover */
a:hover, .main-nav a:hover, .single-post a:hover, .category-link:hover, .view-all-categories:hover {
    text-decoration: none;
}

body {
  background: #f8f9fa;
  color: #003049;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
header, footer {
  background: var(--color-header-footer);
  color: #fff;
}
.header-content .logo {
  color: #fff;
}
a, .main-nav a, .single-post a {
  color: #1976d2;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, .main-nav a:hover, .single-post a:hover {
  color: #003049;
}
.button, .phone-call {
  background: #1976d2;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
}
.button:hover, .phone-call:hover {
  background: #003049;
}
.single-post, .post-card, .recommended-post-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  border: 1.5px solid #e0e4ea;
  color: #003049;
}
.single-post h1, .single-post h2, .single-post h3, .widget-title {
  color: #003049;
  font-weight: 800;
}
hr, .post-meta, .breadcrumb, .recommended-posts-widget {
  border-color: #e0e4ea;
}
.recommended-post-item {
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  border: 1.5px solid #e0e4ea;
  background: #fff;
  color: #003049;
}
.recommended-post-item:hover {
  background: #f0f4fa;
  box-shadow: 0 8px 32px rgba(44,62,80,0.13);
  border-color: #1976d2;
}
.recommended-post-arrow {
  background: #e0e7ef;
  color: #1976d2;
}
.recommended-post-item:hover .recommended-post-arrow {
  background: #1976d2;
  color: #fff;
}

/* =====================================
   ESTILOS PARA POSTS RECOMENDADOS
   ===================================== */
   .recommended-posts-widget {
    margin: 2rem 0;
    padding: 0;
    font-family: 'Libre Franklin', sans-serif;
}

.post-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    color: #181818;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}

.post-link-box > span {
    flex: 1;
    padding: 0;
    display: block;
    font-size: 1rem;
}

.post-link-box .btn {
    background: #f0f2f5;
    border: none;
    font-weight: 700;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    min-height: 0;
    max-height: 2.25rem;
    position: static;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181818;
    line-height: 1;
    border-radius: 6px;
}

.post-link-box:hover {
    background: #fafafa;
}

.post-link-box .post-link-arrow,
.post-link-box .chevron,
.post-link-box .chevron.right {
    display: block;
    width: 0.42em;
    height: 0.42em;
    border: none;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    background: none;
    transform: rotate(45deg);
    font-size: 14px;
    line-height: 0;
}

.post-link-box .chevron.right::before {
    content: none;
    display: none;
}

.chevron {
    display: inline-block;
    position: relative;
}

@media (max-width: 768px) {
    .post-link-box {
        padding: 0.75rem;
    }
    
    .post-link-box .btn {
        width: 1.85rem;
        height: 1.85rem;
        min-width: 1.85rem;
        max-height: 1.85rem;
        flex-basis: 1.85rem;
    }
} 

.category-header {
  margin-bottom: 1rem;
}
