/**
 * Blog Styles - eSaicoWC Theme
 * Estilos modernos para el blog usando variables CSS globales
 *
 * @package eSaicoWC
 * @version 1.0.0
 */

/* ==================================================
    LAYOUT GENERAL DEL BLOG
    ================================================== */

.esaico-container {
    max-width: var(--esaico-container-max-width);
    margin: 0 auto;
    padding: 0 var(--esaico-container-padding);
}

.esaico-blog-layout,
.esaico-page-layout,
.esaico-archive-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--esaico-spacing-4xl);
    margin-top: var(--esaico-spacing-4xl);
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-blog-main,
.esaico-page-main,
.esaico-archive-main {
    grid-column: 1;
}

.esaico-blog-sidebar,
.esaico-page-sidebar,
.esaico-archive-sidebar {
    grid-column: 2;
}

/* ==================================================
    POSTS INDIVIDUALES (single.php)
    ================================================== */

.esaico-single-post {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-md);
    border: 1px solid var(--esaico-border-color-light);
    overflow: hidden;
}

.esaico-post-header {
    position: relative;
}

.esaico-post-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--esaico-primary-light) 0%, var(--esaico-secondary-light) 100%);
    border-radius: var(--esaico-border-radius-lg) var(--esaico-border-radius-lg) 0 0;
}

.esaico-post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.15) 100%);
    opacity: 0;
    transition: var(--esaico-transition-opacity);
    z-index: 1;
}

.esaico-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--esaico-transition-all);
    filter: brightness(1) contrast(1.05) saturate(1.1);
    position: relative;
    z-index: 0;
}

.esaico-post-card:hover .esaico-post-thumbnail::after {
    opacity: 1;
}

.esaico-post-card:hover .esaico-post-image {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
}

.esaico-post-meta {
    padding: var(--esaico-spacing-3xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--esaico-spacing-lg);
}

.esaico-category-badge {
    display: inline-block;
    padding: var(--esaico-spacing-sm) var(--esaico-spacing-lg);
    background: linear-gradient(135deg, var(--esaico-primary) 0%, var(--esaico-accent) 100%);
    color: var(--esaico-text-white);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-xl);
    font-size: var(--esaico-font-size-xs);
    font-weight: var(--esaico-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--esaico-transition-all);
    box-shadow: var(--esaico-shadow-sm);
    position: relative;
    overflow: hidden;
}

.esaico-category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--esaico-transition-all);
}

.esaico-category-badge:hover::before {
    left: 100%;
}

.esaico-category-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--esaico-shadow-lg);
    filter: brightness(1.1);
}

.esaico-post-info {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-xl);
    flex-wrap: wrap;
    margin-bottom: var(--esaico-spacing-lg);
}

.esaico-post-author {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
}

.esaico-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--esaico-primary);
    transition: var(--esaico-transition-all);
}

.esaico-author-avatar:hover {
    transform: scale(1.1);
    border-color: var(--esaico-accent);
}

.esaico-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esaico-author-name a {
    color: var(--esaico-text-secondary);
    text-decoration: none;
    font-weight: var(--esaico-font-weight-medium);
    font-size: var(--esaico-font-size-sm);
    transition: var(--esaico-transition-colors);
}

.esaico-author-name a:hover {
    color: var(--esaico-primary);
}

.esaico-post-date {
    background: var(--esaico-bg-secondary);
    color: var(--esaico-text-muted);
    font-size: var(--esaico-font-size-xs);
    font-weight: var(--esaico-font-weight-medium);
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-sm);
    border-radius: var(--esaico-border-radius-lg);
    border: 1px solid var(--esaico-border-color);
    position: relative;
}

.esaico-post-date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-1.99.9-1.99 2L2 21c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: var(--esaico-spacing-xs);
}

.esaico-post-reading-time {
    background: linear-gradient(135deg, var(--esaico-primary-light) 0%, var(--esaico-accent) 100%);
    color: var(--esaico-primary);
    font-size: var(--esaico-font-size-xs);
    font-weight: var(--esaico-font-weight-semibold);
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-sm);
    border-radius: var(--esaico-border-radius-lg);
    position: relative;
}

.esaico-post-reading-time::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: var(--esaico-spacing-xs);
}

.esaico-post-title {
    margin: 0 0 var(--esaico-spacing-xl) 0;
    font-size: var(--esaico-font-size-3xl);
    font-weight: var(--esaico-font-weight-bold);
    line-height: var(--esaico-line-height-tight);
    color: var(--esaico-text-primary);
}

.esaico-post-content {
    padding: 0 var(--esaico-spacing-3xl) var(--esaico-spacing-4xl);
}

.esaico-post-content p {
    margin-bottom: var(--esaico-spacing-xl);
    line-height: var(--esaico-line-height-relaxed);
    color: var(--esaico-text-primary);
}

.esaico-post-content h2,
.esaico-post-content h3,
.esaico-post-content h4 {
    margin: var(--esaico-spacing-3xl) 0 var(--esaico-spacing-xl) 0;
    color: var(--esaico-text-primary);
    font-weight: var(--esaico-font-weight-semibold);
}

.esaico-post-content h2 {
    font-size: var(--esaico-font-size-2xl);
}

.esaico-post-content h3 {
    font-size: var(--esaico-font-size-xl);
}

.esaico-post-content h4 {
    font-size: var(--esaico-font-size-lg);
}

.esaico-post-content blockquote {
    margin: var(--esaico-spacing-3xl) 0;
    padding: var(--esaico-spacing-xl) var(--esaico-spacing-3xl);
    background: var(--esaico-bg-secondary);
    border-left: 4px solid var(--esaico-primary);
    border-radius: 0 var(--esaico-border-radius-md) var(--esaico-border-radius-md) 0;
    font-style: italic;
    color: var(--esaico-text-secondary);
}

.esaico-post-content ul,
.esaico-post-content ol {
    margin-bottom: var(--esaico-spacing-xl);
    padding-left: var(--esaico-spacing-3xl);
}

.esaico-post-content li {
    margin-bottom: var(--esaico-spacing-sm);
    line-height: var(--esaico-line-height-relaxed);
}

.esaico-post-footer {
    padding: var(--esaico-spacing-3xl);
    border-top: 1px solid var(--esaico-border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--esaico-spacing-lg);
}

.esaico-post-tags {
    display: flex;
    gap: var(--esaico-spacing-sm);
    flex-wrap: wrap;
}

.esaico-tag {
    display: inline-block;
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-lg);
    background: var(--esaico-bg-secondary);
    color: var(--esaico-text-secondary);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-md);
    font-size: var(--esaico-font-size-sm);
    transition: var(--esaico-transition-all);
}

.esaico-tag:hover {
    background: var(--esaico-primary);
    color: var(--esaico-text-white);
    transform: translateY(-1px);
}

.esaico-share-label {
    font-weight: var(--esaico-font-weight-medium);
    color: var(--esaico-text-secondary);
    margin-right: var(--esaico-spacing-lg);
}

.esaico-share-buttons {
    display: flex;
    gap: var(--esaico-spacing-sm);
}

.esaico-share-twitter,
.esaico-share-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--esaico-bg-secondary);
    color: var(--esaico-text-secondary);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-md);
    transition: var(--esaico-transition-all);
}

.esaico-share-twitter:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-2px);
}

.esaico-share-facebook:hover {
    background: #1877f2;
    color: white;
    transform: translateY(-2px);
}

/* ==================================================
    AUTOR BIO
    ================================================== */

.esaico-author-bio {
    margin-top: var(--esaico-spacing-4xl);
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-md);
    border: 1px solid var(--esaico-border-color-light);
    padding: var(--esaico-spacing-3xl);
}

.esaico-author-bio-header {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-xl);
}

.esaico-author-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.esaico-author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esaico-author-info h3 {
    margin: 0 0 var(--esaico-spacing-sm) 0;
    font-size: var(--esaico-font-size-xl);
    color: var(--esaico-text-primary);
}

.esaico-author-description {
    color: var(--esaico-text-secondary);
    line-height: var(--esaico-line-height-relaxed);
}

/* ==================================================
    POSTS RELACIONADOS
    ================================================== */

/* ==================================================
    POSTS RELACIONADOS - DISEÑO MODERNO
    ================================================== */

.esaico-related-posts {
    margin-top: var(--esaico-spacing-5xl);
    padding: var(--esaico-spacing-4xl) 0;
    background: linear-gradient(135deg, var(--esaico-bg-secondary) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-radius: var(--esaico-border-radius-2xl);
    position: relative;
    overflow: hidden;
}

.esaico-related-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--esaico-primary), var(--esaico-accent), var(--esaico-secondary));
    background-size: 200% 100%;
    animation: esaicoGradientShift 3s ease-in-out infinite;
}

@keyframes esaicoGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.esaico-related-title {
    font-size: var(--esaico-font-size-3xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin-bottom: var(--esaico-spacing-4xl);
    text-align: center;
    position: relative;
    z-index: 2;
}

.esaico-related-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--esaico-primary), var(--esaico-accent));
    margin: var(--esaico-spacing-lg) auto 0;
    border-radius: 2px;
}

.esaico-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--esaico-spacing-3xl);
    position: relative;
    z-index: 2;
}

.esaico-related-post {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.esaico-related-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--esaico-primary), var(--esaico-accent));
    opacity: 0;
    transition: var(--esaico-transition-opacity);
    z-index: 3;
}

.esaico-related-post:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--esaico-primary);
}

.esaico-related-post:hover::before {
    opacity: 1;
}

.esaico-related-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--esaico-primary-light) 0%, var(--esaico-secondary-light) 100%);
}

.esaico-related-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.esaico-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.esaico-related-post:hover .esaico-related-image {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.15) saturate(1.3);
}

.esaico-related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: var(--esaico-transition-opacity);
    z-index: 2;
}

.esaico-related-post:hover .esaico-related-overlay {
    opacity: 1;
}

.esaico-related-placeholder {
    background: linear-gradient(135deg, var(--esaico-primary-light) 0%, var(--esaico-secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.esaico-related-placeholder-icon {
    width: 64px;
    height: 64px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.esaico-related-content {
    padding: var(--esaico-spacing-2xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.esaico-related-meta {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-lg);
    margin-bottom: var(--esaico-spacing-lg);
    flex-wrap: wrap;
}

.esaico-related-category {
    display: inline-flex;
    align-items: center;
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-lg);
    background: linear-gradient(135deg, var(--esaico-primary), var(--esaico-primary-dark));
    color: var(--esaico-text-white);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-xl);
    font-size: var(--esaico-font-size-xs);
    font-weight: var(--esaico-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--esaico-transition-all);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.esaico-related-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
    background: linear-gradient(135deg, var(--esaico-primary-dark), var(--esaico-primary));
}

.esaico-related-author {
    color: var(--esaico-text-secondary);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-xs);
}

.esaico-related-author::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: var(--esaico-spacing-xs);
}

.esaico-related-post-title {
    margin: 0 0 var(--esaico-spacing-lg) 0;
    font-size: var(--esaico-font-size-xl);
    font-weight: var(--esaico-font-weight-bold);
    line-height: var(--esaico-line-height-tight);
    flex: 1;
}

.esaico-related-post-title a {
    color: var(--esaico-text-primary);
    text-decoration: none;
    transition: var(--esaico-transition-colors);
    background: linear-gradient(135deg, var(--esaico-text-primary) 0%, var(--esaico-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.esaico-related-post-title a:hover {
    color: var(--esaico-primary);
    -webkit-text-fill-color: var(--esaico-primary);
    transform: translateX(4px);
}

.esaico-related-excerpt {
    color: var(--esaico-text-secondary);
    font-size: var(--esaico-font-size-base);
    line-height: var(--esaico-line-height-relaxed);
    margin-bottom: var(--esaico-spacing-xl);
    flex: 1;
}

.esaico-related-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--esaico-spacing-lg);
    border-top: 1px solid var(--esaico-border-color-light);
    margin-top: auto;
}

.esaico-related-post-date {
    color: var(--esaico-text-muted);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-medium);
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-xs);
}

.esaico-related-post-date::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-1.99.9-1.99 2L2 21c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: var(--esaico-spacing-xs);
}

.esaico-related-reading-time {
    color: var(--esaico-primary);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-semibold);
    background: rgba(0, 124, 186, 0.1);
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-sm);
    border-radius: var(--esaico-border-radius-lg);
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-xs);
}

.esaico-related-reading-time::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z'/%3E%3Cpath d='M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: var(--esaico-spacing-xs);
}

/* ==================================================
    RESPONSIVE DESIGN - POSTS RELACIONADOS
    ================================================== */

@media (max-width: 1024px) {
    .esaico-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--esaico-spacing-2xl);
    }

    .esaico-related-posts {
        margin-top: var(--esaico-spacing-4xl);
        padding: var(--esaico-spacing-3xl) 0;
    }

    .esaico-related-title {
        font-size: var(--esaico-font-size-2xl);
        margin-bottom: var(--esaico-spacing-3xl);
    }
}

@media (max-width: 768px) {
    .esaico-related-grid {
        grid-template-columns: 1fr;
        gap: var(--esaico-spacing-xl);
    }

    .esaico-related-posts {
        margin-top: var(--esaico-spacing-3xl);
        padding: var(--esaico-spacing-2xl) 0;
        border-radius: var(--esaico-border-radius-lg);
    }

    .esaico-related-title {
        font-size: var(--esaico-font-size-xl);
        margin-bottom: var(--esaico-spacing-2xl);
    }

    .esaico-related-post {
        flex-direction: row;
        height: auto;
        max-height: 200px;
    }

    .esaico-related-thumbnail {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
    }

    .esaico-related-content {
        padding: var(--esaico-spacing-lg);
        flex: 1;
    }

    .esaico-related-post-title {
        font-size: var(--esaico-font-size-lg);
        margin-bottom: var(--esaico-spacing-sm);
    }

    .esaico-related-excerpt {
        font-size: var(--esaico-font-size-sm);
        margin-bottom: var(--esaico-spacing-sm);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .esaico-related-meta {
        margin-bottom: var(--esaico-spacing-sm);
    }

    .esaico-related-footer {
        padding-top: var(--esaico-spacing-sm);
        flex-direction: column;
        align-items: flex-start;
        gap: var(--esaico-spacing-xs);
    }
}

@media (max-width: 480px) {
    .esaico-related-posts {
        margin-top: var(--esaico-spacing-2xl);
        padding: var(--esaico-spacing-xl) 0;
    }

    .esaico-related-title {
        font-size: var(--esaico-font-size-lg);
        margin-bottom: var(--esaico-spacing-xl);
    }

    .esaico-related-post {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .esaico-related-thumbnail {
        width: 100%;
        height: 120px;
    }

    .esaico-related-content {
        padding: var(--esaico-spacing-lg);
    }

    .esaico-related-placeholder-icon {
        width: 48px;
        height: 48px;
    }

    .esaico-related-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--esaico-spacing-sm);
    }

    .esaico-related-category {
        align-self: flex-start;
    }
}

/* ==================================================
    PÁGINAS (page.php)
    ================================================== */

.esaico-page-content {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-md);
    border: 1px solid var(--esaico-border-color-light);
    padding: var(--esaico-spacing-4xl);
}

.esaico-page-header {
    margin-bottom: var(--esaico-spacing-4xl);
    text-align: center;
}

.esaico-page-title {
    font-size: var(--esaico-font-size-4xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0;
    line-height: var(--esaico-line-height-tight);
}

.esaico-page-body {
    color: var(--esaico-text-primary);
    line-height: var(--esaico-line-height-relaxed);
}

.esaico-page-body p {
    margin-bottom: var(--esaico-spacing-xl);
}

.esaico-page-body h2,
.esaico-page-body h3,
.esaico-page-body h4 {
    margin: var(--esaico-spacing-3xl) 0 var(--esaico-spacing-xl) 0;
    color: var(--esaico-text-primary);
    font-weight: var(--esaico-font-weight-semibold);
}

/* ==================================================
    ARCHIVOS (archive.php)
    ================================================== */

.esaico-archive-header {
    text-align: center;
    margin-bottom: var(--esaico-spacing-4xl);
    padding-bottom: var(--esaico-spacing-3xl);
    border-bottom: 2px solid var(--esaico-border-color-light);
}

.esaico-archive-title {
    font-size: var(--esaico-font-size-4xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-lg) 0;
    line-height: var(--esaico-line-height-tight);
}

.esaico-archive-description {
    font-size: var(--esaico-font-size-lg);
    color: var(--esaico-text-secondary);
    line-height: var(--esaico-line-height-relaxed);
    max-width: 600px;
    margin: 0 auto;
}

.esaico-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--esaico-spacing-2xl);
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-post-card {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--esaico-border-color-light);
    overflow: hidden;
    transition: var(--esaico-transition-all);
    position: relative;
    backdrop-filter: blur(10px);
}

.esaico-post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--esaico-gradient-primary);
    opacity: 0;
    transition: var(--esaico-transition-opacity);
    z-index: 2;
}

.esaico-post-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--esaico-transition-opacity);
    pointer-events: none;
    z-index: 1;
}

.esaico-post-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--esaico-primary);
}

.esaico-post-card:hover::before {
    opacity: 1;
}

.esaico-post-card:hover::after {
    opacity: 1;
}

.esaico-post-header {
    padding: var(--esaico-spacing-2xl) var(--esaico-spacing-2xl) 0;
    position: relative;
}

.esaico-post-title {
    font-size: var(--esaico-font-size-xl);
    font-weight: var(--esaico-font-weight-bold);
    line-height: var(--esaico-line-height-tight);
    margin: 0 0 var(--esaico-spacing-lg) 0;
    background: linear-gradient(135deg, var(--esaico-text-primary) 0%, var(--esaico-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    transition: var(--esaico-transition-all);
}

.esaico-post-title:hover {
    transform: translateY(-2px);
}

.esaico-post-title a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.esaico-post-title a:hover {
    color: var(--esaico-primary);
    -webkit-text-fill-color: var(--esaico-primary);
}

.esaico-post-excerpt {
    padding: 0 var(--esaico-spacing-2xl);
    color: var(--esaico-text-secondary);
    line-height: var(--esaico-line-height-relaxed);
    margin-bottom: var(--esaico-spacing-2xl);
    font-size: var(--esaico-font-size-base);
    position: relative;
}

.esaico-post-excerpt::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--esaico-spacing-2xl);
    right: var(--esaico-spacing-2xl);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--esaico-border-color-light) 50%, transparent 100%);
}

.esaico-post-footer {
    padding: var(--esaico-spacing-xl) var(--esaico-spacing-2xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--esaico-spacing-lg);
    position: relative;
}

.esaico-read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
    padding: var(--esaico-spacing-lg) var(--esaico-spacing-2xl);
    background: linear-gradient(135deg, var(--esaico-primary) 0%, var(--esaico-primary-dark) 100%);
    color: var(--esaico-text-white);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-xl);
    font-weight: var(--esaico-font-weight-semibold);
    font-size: var(--esaico-font-size-sm);
    transition: var(--esaico-transition-all);
    box-shadow: var(--esaico-shadow-sm);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.esaico-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--esaico-transition-all);
}

.esaico-read-more:hover::before {
    left: 100%;
}

.esaico-read-more:hover {
    transform: translateX(6px) scale(1.05);
    box-shadow: var(--esaico-shadow-lg);
    border-color: var(--esaico-primary);
}

.esaico-read-more svg {
    transition: var(--esaico-transition-transform);
}

.esaico-read-more:hover svg {
    transform: translateX(2px);
}

/* ==================================================
    PAGINACIÓN
    ================================================== */

.esaico-pagination {
    margin-top: var(--esaico-spacing-4xl);
    display: flex;
    justify-content: center;
    gap: var(--esaico-spacing-sm);
}

.esaico-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--esaico-bg-primary);
    color: var(--esaico-text-primary);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-md);
    border: 1px solid var(--esaico-border-color);
    font-weight: var(--esaico-font-weight-medium);
    transition: var(--esaico-transition-all);
}

.esaico-pagination .page-numbers:hover,
.esaico-pagination .page-numbers.current {
    background: var(--esaico-primary);
    color: var(--esaico-text-white);
    border-color: var(--esaico-primary);
    transform: translateY(-2px);
    box-shadow: var(--esaico-shadow-sm);
}

.esaico-pagination .page-numbers.prev,
.esaico-pagination .page-numbers.next {
    width: auto;
    padding: 0 var(--esaico-spacing-lg);
}

/* ==================================================
    SIN RESULTADOS
    ================================================== */

.esaico-no-results {
    text-align: center;
    padding: var(--esaico-spacing-4xl) 0;
}

.esaico-no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

.esaico-no-results-title {
    font-size: var(--esaico-font-size-3xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-xl) 0;
}

.esaico-no-results-text {
    font-size: var(--esaico-font-size-lg);
    color: var(--esaico-text-secondary);
    margin-bottom: var(--esaico-spacing-3xl);
    line-height: var(--esaico-line-height-relaxed);
}

.esaico-back-home {
    display: inline-block;
    padding: var(--esaico-spacing-lg) var(--esaico-spacing-3xl);
    background: var(--esaico-gradient-primary);
    color: var(--esaico-text-white);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-md);
    font-weight: var(--esaico-font-weight-semibold);
    transition: var(--esaico-transition-all);
}

.esaico-back-home:hover {
    transform: translateY(-2px);
    box-shadow: var(--esaico-shadow-lg);
}

/* ==================================================
    SIDEBAR DEL BLOG
    ================================================== */

.esaico-blog-sidebar .widget {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-sm);
    border: 1px solid var(--esaico-border-color-light);
    padding: var(--esaico-spacing-3xl);
    margin-bottom: var(--esaico-spacing-3xl);
}

.esaico-blog-sidebar .widget-title {
    font-size: var(--esaico-font-size-xl);
    font-weight: var(--esaico-font-weight-semibold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-xl) 0;
    padding-bottom: var(--esaico-spacing-lg);
    border-bottom: 2px solid var(--esaico-primary);
}

.esaico-blog-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esaico-blog-sidebar .widget li {
    margin-bottom: var(--esaico-spacing-sm);
}

.esaico-blog-sidebar .widget a {
    color: var(--esaico-text-secondary);
    text-decoration: none;
    padding: var(--esaico-spacing-sm) 0;
    display: block;
    transition: var(--esaico-transition-colors);
    border-radius: var(--esaico-border-radius-sm);
}

.esaico-blog-sidebar .widget a:hover {
    color: var(--esaico-primary);
    background: var(--esaico-bg-secondary);
    padding-left: var(--esaico-spacing-lg);
}

/* ==================================================
    COMENTARIOS
    ================================================== */

.esaico-comments-area {
    margin-top: var(--esaico-spacing-4xl);
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-md);
    border: 1px solid var(--esaico-border-color-light);
    padding: var(--esaico-spacing-4xl);
}

.esaico-comments-title {
    font-size: var(--esaico-font-size-2xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-3xl) 0;
    padding-bottom: var(--esaico-spacing-lg);
    border-bottom: 2px solid var(--esaico-primary);
}

.comments-list {
    list-style: none;
    margin: 0 0 var(--esaico-spacing-4xl) 0;
    padding: 0;
}

.comment {
    margin-bottom: var(--esaico-spacing-3xl);
    padding: var(--esaico-spacing-3xl);
    background: var(--esaico-bg-secondary);
    border-radius: var(--esaico-border-radius-md);
    border: 1px solid var(--esaico-border-color-light);
    position: relative;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-lg);
    margin-bottom: var(--esaico-spacing-lg);
}

.comment-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--esaico-primary);
}

.comment-author .fn {
    font-weight: var(--esaico-font-weight-semibold);
    color: var(--esaico-text-primary);
    text-decoration: none;
    font-size: var(--esaico-font-size-lg);
}

.comment-author .fn:hover {
    color: var(--esaico-primary);
}

.comment-meta {
    color: var(--esaico-text-muted);
    font-size: var(--esaico-font-size-sm);
}

.comment-meta time {
    color: var(--esaico-text-muted);
}

.comment-content {
    color: var(--esaico-text-primary);
    line-height: var(--esaico-line-height-relaxed);
    margin-bottom: var(--esaico-spacing-lg);
}

.comment-content p {
    margin-bottom: var(--esaico-spacing-lg);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: var(--esaico-spacing-xs);
    padding: var(--esaico-spacing-sm) var(--esaico-spacing-lg);
    background: var(--esaico-bg-primary);
    color: var(--esaico-text-secondary);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-md);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-medium);
    border: 1px solid var(--esaico-border-color);
    transition: var(--esaico-transition-all);
}

.comment-reply-link:hover {
    background: var(--esaico-primary);
    color: var(--esaico-text-white);
    border-color: var(--esaico-primary);
    transform: translateY(-1px);
}

/* Comentarios anidados */
.children {
    margin-left: var(--esaico-spacing-4xl);
    margin-top: var(--esaico-spacing-xl);
    padding-left: var(--esaico-spacing-xl);
    border-left: 2px solid var(--esaico-border-color-light);
}

.children .comment {
    background: var(--esaico-bg-primary);
    box-shadow: var(--esaico-shadow-sm);
}

/* Formulario de comentarios */
.comment-respond {
    margin-top: var(--esaico-spacing-4xl);
    background: var(--esaico-bg-secondary);
    border-radius: var(--esaico-border-radius-lg);
    padding: var(--esaico-spacing-4xl);
    border: 1px solid var(--esaico-border-color-light);
}

.comment-reply-title {
    font-size: var(--esaico-font-size-2xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-3xl) 0;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: var(--esaico-spacing-xl);
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-weight: var(--esaico-font-weight-medium);
    color: var(--esaico-text-primary);
    margin-bottom: var(--esaico-spacing-sm);
    font-size: var(--esaico-font-size-sm);
}

.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: var(--esaico-spacing-lg);
    border: 2px solid var(--esaico-border-color);
    border-radius: var(--esaico-border-radius-md);
    font-size: var(--esaico-font-size-base);
    background: var(--esaico-bg-primary);
    color: var(--esaico-text-primary);
    transition: var(--esaico-transition-colors);
    font-family: var(--esaico-font-family-primary);
}

.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: var(--esaico-primary);
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.comment-form-comment textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    margin-top: var(--esaico-spacing-3xl);
    text-align: right;
}

.form-submit input[type="submit"] {
    background: var(--esaico-gradient-primary);
    color: var(--esaico-text-white);
    padding: var(--esaico-spacing-lg) var(--esaico-spacing-3xl);
    border: none;
    border-radius: var(--esaico-border-radius-md);
    font-size: var(--esaico-font-size-base);
    font-weight: var(--esaico-font-weight-semibold);
    cursor: pointer;
    transition: var(--esaico-transition-all);
    box-shadow: var(--esaico-shadow-sm);
}

.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--esaico-shadow-lg);
}

.form-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: var(--esaico-shadow-sm);
}

/* ==================================================
    RESPONSIVE DESIGN
    ================================================== */

@media (max-width: 1024px) {
    .esaico-blog-layout,
    .esaico-page-layout,
    .esaico-archive-layout {
        grid-template-columns: 1fr;
        gap: var(--esaico-spacing-3xl);
    }

    .esaico-blog-sidebar,
    .esaico-page-sidebar,
    .esaico-archive-sidebar {
        grid-column: 1;
        order: 2;
    }

    .esaico-blog-main,
    .esaico-page-main,
    .esaico-archive-main {
        grid-column: 1;
        order: 1;
    }

    .esaico-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--esaico-spacing-xl);
    }
}

@media (max-width: 768px) {
    .esaico-container {
        padding: 0 var(--esaico-spacing-lg);
    }

    .esaico-blog-layout,
    .esaico-page-layout,
    .esaico-archive-layout {
        margin-top: var(--esaico-spacing-3xl);
        margin-bottom: var(--esaico-spacing-3xl);
    }

    .esaico-post-title {
        font-size: var(--esaico-font-size-2xl);
    }

    .esaico-page-title {
        font-size: var(--esaico-font-size-3xl);
    }

    .esaico-archive-title {
        font-size: var(--esaico-font-size-3xl);
    }

    .esaico-posts-grid {
        grid-template-columns: 1fr;
        gap: var(--esaico-spacing-xl);
    }

    .esaico-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--esaico-spacing-md);
    }

    .esaico-post-info {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--esaico-spacing-md);
    }

    .esaico-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--esaico-spacing-md);
    }

    .esaico-author-bio-header {
        flex-direction: column;
        text-align: center;
    }

    .esaico-related-grid {
        grid-template-columns: 1fr;
    }

    .esaico-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .esaico-post-thumbnail {
        height: 250px;
    }

    .esaico-related-thumbnail {
        height: 150px;
    }

    .esaico-post-content,
    .esaico-page-body {
        padding-left: var(--esaico-spacing-xl);
        padding-right: var(--esaico-spacing-xl);
    }

    .esaico-post-meta,
    .esaico-post-footer {
        padding-left: var(--esaico-spacing-xl);
        padding-right: var(--esaico-spacing-xl);
    }

    .esaico-single-post,
    .esaico-page-content {
        border-radius: var(--esaico-border-radius-md);
    }

    .esaico-blog-sidebar .widget {
        padding: var(--esaico-spacing-xl);
    }
}

/* ==================================================
    PÁGINA DE AUTOR
    ================================================== */

.esaico-author-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--esaico-spacing-4xl);
    margin-top: var(--esaico-spacing-4xl);
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-author-main {
    grid-column: 1;
}

.esaico-author-sidebar {
    grid-column: 2;
}

.esaico-author-header {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-md);
    border: 1px solid var(--esaico-border-color-light);
    padding: var(--esaico-spacing-4xl);
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-author-info {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-3xl);
}

.esaico-author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--esaico-primary);
    flex-shrink: 0;
}

.esaico-author-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esaico-author-details {
    flex: 1;
}

.esaico-author-title {
    font-size: var(--esaico-font-size-4xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-lg) 0;
    line-height: var(--esaico-line-height-tight);
}

.esaico-author-bio {
    font-size: var(--esaico-font-size-lg);
    color: var(--esaico-text-secondary);
    line-height: var(--esaico-line-height-relaxed);
    margin-bottom: var(--esaico-spacing-xl);
}

.esaico-author-meta {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-3xl);
    flex-wrap: wrap;
}

.esaico-author-posts-count {
    font-weight: var(--esaico-font-weight-medium);
    color: var(--esaico-text-primary);
    font-size: var(--esaico-font-size-base);
}

.esaico-author-website {
    display: inline-flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
    padding: var(--esaico-spacing-sm) var(--esaico-spacing-lg);
    background: var(--esaico-bg-secondary);
    color: var(--esaico-text-secondary);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-md);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-medium);
    border: 1px solid var(--esaico-border-color);
    transition: var(--esaico-transition-all);
}

.esaico-author-website:hover {
    background: var(--esaico-primary);
    color: var(--esaico-text-white);
    border-color: var(--esaico-primary);
    transform: translateY(-1px);
}

.esaico-author-content {
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-author-posts-title {
    font-size: var(--esaico-font-size-2xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-3xl) 0;
    padding-bottom: var(--esaico-spacing-lg);
    border-bottom: 2px solid var(--esaico-primary);
}

/* ==================================================
    SIDEBAR MEJORADO PARA ARCHIVE Y AUTHOR
    ================================================== */

.esaico-archive-sidebar,
.esaico-author-sidebar {
    grid-column: 2;
}

.esaico-archive-sidebar .widget,
.esaico-author-sidebar .widget {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-sm);
    border: 1px solid var(--esaico-border-color-light);
    padding: var(--esaico-spacing-3xl);
    margin-bottom: var(--esaico-spacing-3xl);
}

.esaico-archive-sidebar .widget-title,
.esaico-author-sidebar .widget-title {
    font-size: var(--esaico-font-size-xl);
    font-weight: var(--esaico-font-weight-semibold);
    color: var(--esaico-text-primary);
    margin: 0 0 var(--esaico-spacing-xl) 0;
    padding-bottom: var(--esaico-spacing-lg);
    border-bottom: 2px solid var(--esaico-primary);
}

.esaico-archive-sidebar .widget ul,
.esaico-author-sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esaico-archive-sidebar .widget li,
.esaico-author-sidebar .widget li {
    margin-bottom: var(--esaico-spacing-sm);
    padding-bottom: var(--esaico-spacing-sm);
    border-bottom: 1px solid var(--esaico-border-color-light);
}

.esaico-archive-sidebar .widget li:last-child,
.esaico-author-sidebar .widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.esaico-archive-sidebar .widget a,
.esaico-author-sidebar .widget a {
    color: var(--esaico-text-secondary);
    text-decoration: none;
    padding: var(--esaico-spacing-sm) 0;
    display: block;
    transition: var(--esaico-transition-colors);
    border-radius: var(--esaico-border-radius-sm);
}

.esaico-archive-sidebar .widget a:hover,
.esaico-author-sidebar .widget a:hover {
    color: var(--esaico-primary);
    background: var(--esaico-bg-secondary);
    padding-left: var(--esaico-spacing-lg);
}

/* Responsive para author y archive */
@media (max-width: 1024px) {
    .esaico-author-layout {
        grid-template-columns: 1fr;
        gap: var(--esaico-spacing-3xl);
    }

    .esaico-author-sidebar {
        grid-column: 1;
        order: 2;
    }

    .esaico-author-main {
        grid-column: 1;
        order: 1;
    }

    .esaico-author-info {
        flex-direction: column;
        text-align: center;
    }

    .esaico-author-meta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .esaico-author-header {
        padding: var(--esaico-spacing-3xl);
    }

    .esaico-author-title {
        font-size: var(--esaico-font-size-3xl);
    }

    .esaico-author-avatar-large {
        width: 100px;
        height: 100px;
    }

    .esaico-author-posts-title {
        font-size: var(--esaico-font-size-xl);
    }

    .esaico-archive-sidebar .widget,
    .esaico-author-sidebar .widget {
        padding: var(--esaico-spacing-xl);
    }
}

/* ==================================================
    ESTILOS GENERALES PARA BOTONES EN PÁGINA DE AUTOR
    ================================================== */

/* Asegurar que todos los botones tengan colores consistentes */
.esaico-author-layout a,
.esaico-author-layout button,
.esaico-author-layout .esaico-tab-button,
.esaico-author-layout .esaico-edit-profile-btn,
.esaico-author-layout .esaico-social-btn {
    transition: var(--esaico-transition-all);
}

/* Estados hover consistentes para todos los botones */
.esaico-author-layout a:hover,
.esaico-author-layout button:hover {
    text-decoration: none;
}

/* REGLA GENERAL PARA BOTONES CON FONDO OSCURO -> TEXTO CLARO en hover */
/* Excluimos los botones sociales que tienen sus propios estilos de hover */
.esaico-author-layout .esaico-edit-profile-btn:hover {
    background: var(--esaico-bg-dark);
    color: #ffffff;
}

/* ==================================================
    PÁGINA DE AUTOR - HEADER ANCHO COMPLETO
    ================================================== */

.esaico-author-header-fullwidth {
    width: 100%;
    position: relative;
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-author-hero-fullwidth {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, var(--esaico-primary) 0%, var(--esaico-primary-dark) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--esaico-text-white);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.esaico-author-hero-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.esaico-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--esaico-container-max-width);
    margin: 0 auto;
    padding: 0 var(--esaico-container-padding);
}

.esaico-author-content-wrapper {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-4xl);
    flex-wrap: wrap;
}

.esaico-author-avatar-section {
    flex-shrink: 0;
    position: relative;
}

.esaico-author-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 6px solid var(--esaico-text-white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    transition: var(--esaico-transition-transform);
}

.esaico-author-avatar-large:hover {
    transform: scale(1.05);
}

.esaico-edit-profile-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
}


.esaico-author-info-section {
    flex: 1;
    min-width: 300px;
}

.esaico-author-name-bio {
    margin-bottom: var(--esaico-spacing-3xl);
}

.esaico-author-name {
    font-size: var(--esaico-font-size-4xl);
    font-weight: var(--esaico-font-weight-bold);
    margin: 0 0 var(--esaico-spacing-lg) 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    line-height: var(--esaico-line-height-tight);
}

.esaico-author-bio {
    font-size: var(--esaico-font-size-lg);
    line-height: var(--esaico-line-height-relaxed);
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Redes Sociales Horizontales Modernas */
.esaico-author-social-networks {
    display: flex;
    flex-wrap: wrap;
    gap: var(--esaico-spacing-lg);
    margin-bottom: var(--esaico-spacing-3xl);
}

.esaico-social-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
    padding: var(--esaico-spacing-lg) var(--esaico-spacing-xl);
    background: rgba(255, 255, 255, 0.15);
    color: var(--esaico-text-white);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-lg);
    font-size: var(--esaico-font-size-base);
    font-weight: var(--esaico-font-weight-medium);
    transition: var(--esaico-transition-all);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.esaico-author-layout .esaico-social-btn:hover {
    background: var(--esaico-text-white);
    color: var(--esaico-text-primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.esaico-social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.esaico-social-btn span {
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estadísticas del Autor */
.esaico-author-stats-grid {
    display: flex;
    gap: var(--esaico-spacing-4xl);
    flex-wrap: wrap;
}

.esaico-author-stat-item {
    text-align: center;
    padding: var(--esaico-spacing-xl);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--esaico-border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.esaico-stat-number {
    display: block;
    font-size: var(--esaico-font-size-3xl);
    font-weight: var(--esaico-font-weight-bold);
    margin-bottom: var(--esaico-spacing-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.esaico-stat-label {
    font-size: var(--esaico-font-size-sm);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--esaico-font-weight-medium);
}

/* Navegación por pestañas */
.esaico-author-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--esaico-spacing-2xl);
    margin: var(--esaico-spacing-5xl) 0 var(--esaico-spacing-4xl) 0;
    padding: var(--esaico-spacing-2xl) var(--esaico-spacing-3xl);
    background: var(--esaico-bg-secondary);
    border-radius: var(--esaico-border-radius-xl);
    border: 1px solid var(--esaico-border-color-light);
    box-shadow: var(--esaico-shadow-sm);
    position: relative;
    overflow: hidden;
}

.esaico-author-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--esaico-primary), var(--esaico-accent), var(--esaico-secondary));
    background-size: 200% 100%;
    animation: esaicoGradientShift 4s ease-in-out infinite;
}

.esaico-tab-button {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
    padding: var(--esaico-spacing-lg) var(--esaico-spacing-3xl);
    background: var(--esaico-bg-primary);
    color: var(--esaico-text-secondary);
    border: 2px solid var(--esaico-border-color);
    border-radius: var(--esaico-border-radius-lg);
    font-weight: var(--esaico-font-weight-medium);
    cursor: pointer;
    transition: var(--esaico-transition-all);
    font-size: var(--esaico-font-size-base);
}

.esaico-tab-button:hover {
    background: var(--esaico-bg-secondary);
    border-color: var(--esaico-primary);
    color: var(--esaico-primary);
}

.esaico-tab-button.active {
    background: var(--esaico-primary);
    color: var(--esaico-text-white);
    border-color: var(--esaico-primary);
    box-shadow: var(--esaico-shadow-md);
}

.esaico-tab-content {
    display: none;
}

.esaico-tab-content.active {
    display: block;
}

/* Cards compactas para blogs */
.esaico-posts-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--esaico-spacing-3xl);
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-compact-card {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-sm);
    border: 1px solid var(--esaico-border-color-light);
    overflow: hidden;
    transition: var(--esaico-transition-all);
    display: flex;
    flex-direction: column;
}

.esaico-compact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--esaico-shadow-lg);
    border-color: var(--esaico-primary);
}

.esaico-compact-thumbnail {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}

.esaico-compact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--esaico-transition-transform);
}

.esaico-compact-card:hover .esaico-compact-image {
    transform: scale(1.05);
}

.esaico-compact-content {
    padding: var(--esaico-spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.esaico-compact-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--esaico-spacing-lg);
}

.esaico-compact-category {
    display: inline-block;
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-lg);
    background: var(--esaico-gradient-primary);
    color: var(--esaico-text-white);
    text-decoration: none;
    border-radius: var(--esaico-border-radius-lg);
    font-size: var(--esaico-font-size-xs);
    font-weight: var(--esaico-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.esaico-compact-date {
    color: var(--esaico-text-muted);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-medium);
}

.esaico-compact-title {
    font-size: var(--esaico-font-size-lg);
    font-weight: var(--esaico-font-weight-semibold);
    line-height: var(--esaico-line-height-tight);
    margin: 0 0 var(--esaico-spacing-lg) 0;
}

.esaico-compact-title a {
    color: var(--esaico-text-primary);
    text-decoration: none;
    transition: var(--esaico-transition-colors);
}

.esaico-compact-title a:hover {
    color: var(--esaico-primary);
}

.esaico-compact-excerpt {
    color: var(--esaico-text-secondary);
    line-height: var(--esaico-line-height-relaxed);
    margin-bottom: var(--esaico-spacing-xl);
    flex: 1;
}

.esaico-compact-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--esaico-spacing-lg);
    border-top: 1px solid var(--esaico-border-color-light);
}

.esaico-compact-read-time {
    color: var(--esaico-text-muted);
    font-size: var(--esaico-font-size-sm);
    font-weight: var(--esaico-font-weight-medium);
}

.esaico-compact-read-more {
    color: var(--esaico-primary);
    text-decoration: none;
    font-weight: var(--esaico-font-weight-semibold);
    font-size: var(--esaico-font-size-sm);
    transition: var(--esaico-transition-colors);
}

.esaico-compact-read-more:hover {
    color: var(--esaico-primary-dark);
}

/* Cards compactas para productos */
.esaico-products-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--esaico-spacing-3xl);
    margin-bottom: var(--esaico-spacing-4xl);
}

.esaico-compact-product-card {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-sm);
    border: 1px solid var(--esaico-border-color-light);
    overflow: hidden;
    transition: var(--esaico-transition-all);
}

.esaico-compact-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--esaico-shadow-lg);
    border-color: var(--esaico-primary);
}

.esaico-compact-product-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--esaico-bg-secondary);
}

.esaico-compact-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--esaico-transition-transform);
}

.esaico-compact-product-card:hover .esaico-compact-product-image {
    transform: scale(1.05);
}

.esaico-compact-product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--esaico-text-muted);
}

.esaico-compact-product-badge {
    position: absolute;
    top: var(--esaico-spacing-lg);
    right: var(--esaico-spacing-lg);
    background: var(--esaico-error);
    color: var(--esaico-text-white);
    padding: var(--esaico-spacing-xs) var(--esaico-spacing-lg);
    border-radius: var(--esaico-border-radius-md);
    font-size: var(--esaico-font-size-xs);
    font-weight: var(--esaico-font-weight-bold);
    text-transform: uppercase;
}

.esaico-compact-product-content {
    padding: var(--esaico-spacing-xl);
}

.esaico-compact-product-title {
    font-size: var(--esaico-font-size-lg);
    font-weight: var(--esaico-font-weight-semibold);
    margin: 0 0 var(--esaico-spacing-lg) 0;
    line-height: var(--esaico-line-height-tight);
}

.esaico-compact-product-title a {
    color: var(--esaico-text-primary);
    text-decoration: none;
    transition: var(--esaico-transition-colors);
}

.esaico-compact-product-title a:hover {
    color: var(--esaico-primary);
}

.esaico-compact-product-price {
    font-size: var(--esaico-font-size-xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-primary);
    margin-bottom: var(--esaico-spacing-lg);
}

.esaico-compact-product-rating {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
    margin-bottom: var(--esaico-spacing-xl);
}

.esaico-stars {
    display: flex;
    gap: 2px;
}

.esaico-star {
    color: #ddd;
    font-size: var(--esaico-font-size-sm);
}

.esaico-star.filled {
    color: #fbbf24;
}

.esaico-rating-count {
    color: var(--esaico-text-muted);
    font-size: var(--esaico-font-size-sm);
}

.esaico-compact-product-button {
    display: inline-block;
    width: 100%;
    padding: var(--esaico-spacing-lg);
    background: var(--esaico-gradient-primary);
    color: var(--esaico-text-white);
    text-decoration: none;
    text-align: center;
    border-radius: var(--esaico-border-radius-md);
    font-weight: var(--esaico-font-weight-semibold);
    transition: var(--esaico-transition-all);
}

.esaico-compact-product-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--esaico-shadow-md);
}

/* Estado vacío para pestañas */
.esaico-empty-tab {
    text-align: center;
    padding: var(--esaico-spacing-4xl) var(--esaico-spacing-3xl);
    color: var(--esaico-text-muted);
}

.esaico-empty-tab svg {
    margin-bottom: var(--esaico-spacing-xl);
}

.esaico-empty-tab h3 {
    font-size: var(--esaico-font-size-xl);
    margin-bottom: var(--esaico-spacing-lg);
    color: var(--esaico-text-secondary);
}

.esaico-empty-tab p {
    font-size: var(--esaico-font-size-base);
    margin: 0;
}

/* ==================================================
    GRID COMPACTO PARA BLOG - RESPONSIVE
    ================================================== */

@media (max-width: 1024px) {
    .esaico-posts-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--esaico-spacing-xl);
    }

    .esaico-products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--esaico-spacing-xl);
    }

    .esaico-author-hero-fullwidth {
        min-height: 350px;
    }

    .esaico-author-header-fullwidth {
        margin-bottom: var(--esaico-spacing-3xl);
    }

    .esaico-author-content-wrapper {
        gap: var(--esaico-spacing-3xl);
    }

    .esaico-author-name {
        font-size: var(--esaico-font-size-3xl);
    }

    .esaico-author-avatar-large {
        width: 140px;
        height: 140px;
    }

    .esaico-author-social-networks {
        gap: var(--esaico-spacing-md);
    }

    .esaico-social-btn {
        padding: var(--esaico-spacing-md) var(--esaico-spacing-lg);
        font-size: var(--esaico-font-size-sm);
    }

    .esaico-author-stats-grid {
        gap: var(--esaico-spacing-3xl);
    }
}

@media (max-width: 768px) {
    .esaico-posts-grid-compact {
        grid-template-columns: 1fr;
        gap: var(--esaico-spacing-xl);
    }

    .esaico-products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--esaico-spacing-xl);
    }

    .esaico-author-tabs {
        flex-direction: column;
        align-items: stretch;
        gap: var(--esaico-spacing-xl);
        margin: var(--esaico-spacing-4xl) 0 var(--esaico-spacing-3xl) 0;
        padding: var(--esaico-spacing-xl) var(--esaico-spacing-2xl);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .esaico-tab-button {
        width: 100%;
        justify-content: center;
        padding: var(--esaico-spacing-xl) var(--esaico-spacing-2xl);
        font-size: var(--esaico-font-size-base);
        min-height: 50px;
    }

    .esaico-author-hero {
        padding: var(--esaico-spacing-3xl) var(--esaico-spacing-xl);
    }

    .esaico-author-header-fullwidth {
        margin-bottom: var(--esaico-spacing-2xl);
    }

    .esaico-author-title-hero {
        font-size: var(--esaico-font-size-2xl);
    }

    .esaico-author-avatar-hero-img {
        width: 100px;
        height: 100px;
    }

    .esaico-author-social-links {
        gap: var(--esaico-spacing-md);
    }

    .esaico-social-link {
        width: 40px;
        height: 40px;
    }

    .esaico-author-stats {
        flex-direction: column;
        gap: var(--esaico-spacing-xl);
    }
}

@media (max-width: 480px) {
    .esaico-author-header {
        padding: var(--esaico-spacing-xl);
    }

    .esaico-author-title {
        font-size: var(--esaico-font-size-2xl);
    }

    .esaico-author-avatar-large {
        width: 80px;
        height: 80px;
    }

    .esaico-author-meta {
        flex-direction: column;
        gap: var(--esaico-spacing-lg);
    }

    .esaico-posts-grid-compact {
        gap: var(--esaico-spacing-lg);
    }

    .esaico-products-grid-compact {
        grid-template-columns: 1fr;
        gap: var(--esaico-spacing-lg);
    }

    .esaico-compact-card,
    .esaico-compact-product-card {
        border-radius: var(--esaico-border-radius-md);
    }

    .esaico-compact-thumbnail,
    .esaico-compact-product-thumbnail {
        height: 140px;
    }

    .esaico-compact-content,
    .esaico-compact-product-content {
        padding: var(--esaico-spacing-lg);
    }

    .esaico-author-hero {
        padding: var(--esaico-spacing-xl) 0;
    }

    .esaico-author-title-hero {
        font-size: var(--esaico-font-size-xl);
    }

    .esaico-author-avatar-hero-img {
        width: 80px;
        height: 80px;
    }

    .esaico-author-social-links {
        gap: var(--esaico-spacing-sm);
    }

    .esaico-social-link {
        width: 36px;
        height: 36px;
    }

    .esaico-author-hero-fullwidth {
        min-height: 250px;
    }

    .esaico-author-header-fullwidth {
        margin-bottom: var(--esaico-spacing-xl);
    }

    .esaico-author-name {
        font-size: var(--esaico-font-size-2xl);
    }

    .esaico-author-avatar-large {
        width: 100px;
        height: 100px;
    }

    .esaico-edit-profile-btn {
        padding: var(--esaico-spacing-xs) var(--esaico-spacing-md);
        font-size: var(--esaico-font-size-xs);
    }

    .esaico-author-social-networks {
        gap: var(--esaico-spacing-sm);
    }

    .esaico-social-btn {
        padding: var(--esaico-spacing-sm) var(--esaico-spacing-md);
    }

    .esaico-author-stats-grid {
        gap: var(--esaico-spacing-lg);
    }

    .esaico-stat-number {
        font-size: var(--esaico-font-size-2xl);
    }

    .esaico-author-tabs {
        gap: var(--esaico-spacing-lg);
        margin: var(--esaico-spacing-3xl) 0 var(--esaico-spacing-2xl) 0;
        padding: var(--esaico-spacing-lg) var(--esaico-spacing-lg);
        max-width: 320px;
    }

    .esaico-tab-button {
        padding: var(--esaico-spacing-lg) var(--esaico-spacing-lg);
        font-size: var(--esaico-font-size-sm);
        min-height: 44px;
    }
}

/* ==================================================
    CARDS DE PRODUCTOS EN PÁGINA DE AUTOR
    ================================================== */

.esaico-compact-product-card {
    background: var(--esaico-bg-primary);
    border-radius: var(--esaico-border-radius-lg);
    box-shadow: var(--esaico-shadow-sm);
    overflow: hidden;
    transition: var(--esaico-transition-all);
    border: 1px solid var(--esaico-border-color-light);
}

.esaico-compact-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--esaico-shadow-lg);
    border-color: var(--esaico-primary);
}

.esaico-compact-price {
    font-size: var(--esaico-font-size-xl);
    font-weight: var(--esaico-font-weight-bold);
    color: var(--esaico-primary);
    margin: var(--esaico-spacing-sm) 0;
}

.esaico-compact-price del {
    color: var(--esaico-text-muted);
    font-weight: var(--esaico-font-weight-normal);
    font-size: var(--esaico-font-size-base);
    margin-right: var(--esaico-spacing-sm);
}

.esaico-compact-price ins {
    text-decoration: none;
    color: var(--esaico-success);
}

.esaico-compact-rating {
    display: flex;
    align-items: center;
    gap: var(--esaico-spacing-sm);
}

.esaico-compact-rating .star-rating {
    font-size: var(--esaico-font-size-sm);
}

/* Responsive para cards de productos en author */
@media (max-width: 768px) {
    .esaico-compact-product-card {
        margin-bottom: var(--esaico-spacing-xl);
    }

    .esaico-compact-price {
        font-size: var(--esaico-font-size-lg);
    }
}

/* ==================================================
    OCULTAR SIDEBAR EN PÁGINA DE CUENTA WOOCOMMERCE
    ================================================== */

.woocommerce-account .esaico-page-sidebar {
    display: none !important;
}