/* ========================================
   BLOG ENHANCED STYLES
   Mejoras específicas para el blog
   Mantiene compatibilidad con estilos globales
========================================= */

/* ========================================
   1. UTILIDADES Y ACCESIBILIDAD
========================================= */

/* Screen reader only text */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus states mejorados */
.blog-article a:focus,
.toc-link:focus,
.nav-link:focus,
.related-post-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
    text-decoration: underline;
}

/* ========================================
   2. ESTRUCTURA DEL ARTÍCULO
========================================= */

.blog-article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Imagen destacada mejorada */
.blog-featured-image {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

/* ========================================
   3. CONTENIDO DEL ARTÍCULO
========================================= */

.entry-content {
    padding: 2rem;
}

/* Meta información */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #DFDFD0;
    font-size: 14px;
    color: #666;
}

.published-date,
.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.published-date i,
.reading-time i {
    color: #007cba;
}

/* Título del artículo */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0;
    color: #191F26;
    font-weight: 700;
}

/* ========================================
   4. TABLA DE CONTENIDO
========================================= */

.table-of-contents {
    background: #f8f9fa;
    border: 1px solid #DFDFD0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.toc-title {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #191F26;
    font-weight: 600;
}

.toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc-counter;
}

.toc-item {
    counter-increment: toc-counter;
    margin-bottom: 0.5rem;
    position: relative;
}

.toc-item::before {
    content: counter(toc-counter) ". ";
    color: #007cba;
    font-weight: 600;
}

.toc-link {
    color: #34394A;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.toc-link:hover,
.toc-link:focus {
    color: #007cba;
    text-decoration: underline;
}

/* Niveles de indentación para headings */
.toc-level-3 .toc-link { 
    padding-left: 1rem; 
}

.toc-level-4 .toc-link { 
    padding-left: 2rem; 
}

.toc-level-5 .toc-link { 
    padding-left: 3rem; 
}

.toc-level-6 .toc-link { 
    padding-left: 4rem; 
}

/* Botón toggle tabla de contenido */
.toc-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: 1px solid #DFDFD0;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.toc-toggle:hover,
.toc-toggle:focus {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Estado colapsado */
.table-of-contents.collapsed .toc-list {
    display: none;
}

.table-of-contents.collapsed .toc-toggle i {
    transform: rotate(180deg);
}

/* ========================================
   5. CONTENIDO DEL POST OPTIMIZADO
========================================= */

.post-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
    margin: 2rem 0;
}

/* Párrafos */
.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

/* Headings en el contenido */
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2.5rem 0 1rem 0;
    color: #191F26;
    font-weight: 600;
    scroll-margin-top: 100px; /* Para navegación desde tabla de contenido */
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.3rem;
}

.post-content h5 {
    font-size: 1.1rem;
}

.post-content h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enlaces en el contenido */
.post-content a {
    color: #007cba;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-content a:hover,
.post-content a:focus {
    color: #005a85;
    text-decoration: none;
}

/* Listas */
.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.post-content ul li::before {
    color: #007cba;
    font-size: 1.2rem;
}

/* Imágenes en el contenido */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: block;
}

.post-content figure {
    margin: 2rem 0;
    text-align: center;
}

.post-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Citas */
.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #007cba;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    font-style: italic;
    position: relative;
}

.post-content blockquote::before {
    content: "";
    font-size: 4rem;
    color: #007cba;
    position: absolute;
    top: 0;
    left: 1rem;
    line-height: 1;
}

.post-content blockquote p {
    margin: 0;
    padding-left: 2rem;
}

/* Tablas */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-content table th {
    background: #191F26;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.post-content table td {
    padding: 1rem;
    border-bottom: 1px solid #DFDFD0;
}

.post-content table tr:hover {
    background: #f8f9fa;
}

/* Código */
.post-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d63384;
}

.post-content pre {
    background: #f8f9fa;
    border: 1px solid #DFDFD0;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* ========================================
   6. NAVEGACIÓN ENTRE POSTS
========================================= */

.post-navigation {
    margin: 3rem 0 2rem 0;
    padding: 2rem 0;
    border-top: 2px solid #DFDFD0;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.nav-previous {
    justify-self: start;
}

.nav-center {
    justify-self: center;
}

.nav-next {
    justify-self: end;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #DFDFD0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    max-width: 250px;
}

.nav-link:hover,
.nav-link:focus {
    background: #007cba;
    color: white;
    border-color: #007cba;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.prev-link {
    align-items: flex-start;
}

.next-link {
    align-items: flex-end;
    text-align: right;
}

.nav-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.nav-link:hover .nav-label,
.nav-link:focus .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    font-weight: 600;
    line-height: 1.3;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back:hover,
.btn-back:focus {
    background: #005a85;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* ========================================
   7. ARTÍCULOS RELACIONADOS
========================================= */

.related-posts {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #DFDFD0;
}

.related-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-title {
    font-size: 2rem;
    color: #191F26;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.related-description {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #191F26;
    font-weight: 600;
    line-height: 1.3;
}

.related-post-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ========================================
   8. RESPONSIVE DESIGN
========================================= */

/* Tablet */
@media screen and (max-width: 768px) {
    .entry-content {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .post-content h2 {
        font-size: 1.75rem;
    }
    
    .post-content h3 {
        font-size: 1.4rem;
    }
    
    .table-of-contents {
        padding: 1rem;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-previous,
    .nav-center,
    .nav-next {
        justify-self: center;
    }
    
    .nav-link {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .entry-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .blog-article {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .entry-content {
        padding: 1rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .post-content {
        font-size: 0.95rem;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-content h3 {
        font-size: 1.25rem;
    }
    
    .table-of-contents {
        margin: 1rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .toc-list {
        font-size: 0.9rem;
    }
    
    .related-posts {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .related-posts-grid {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem;
    }
    
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   9. MEJORAS DE ACCESIBILIDAD ADICIONALES
========================================= */

/* Indicadores de enlaces externos */
.post-content a[href^="http"]:not([href*="cancuntransfersagency"]):after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

/* Estados de focus mejorados para navegación por teclado */
.toc-toggle:focus,
.nav-link:focus,
.related-post-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Animaciones respetan preferencias del usuario */
@media (prefers-reduced-motion: reduce) {
    .blog-featured-image img,
    .related-post,
    .nav-link,
    .btn-back,
    .related-post-image img {
        transition: none;
    }
    
    .related-post:hover {
        transform: none;
    }
    
    .nav-link:hover,
    .btn-back:hover {
        transform: none;
    }
}

/* ========================================
   10. FUNCIONALIDADES ADICIONALES
========================================= */

/* Barra de progreso de lectura */
.reading-progress {
    position: fixed;
    top: 80px; /* Después del header */
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 124, 186, 0.1);
    z-index: 999;
}

.reading-progress-bar {
    height: 100%;
    background: #007cba;
    width: 0%;
    transition: width 0.1s ease;
}

/* Enlaces activos en tabla de contenido */
.toc-link.active {
    color: #007cba;
    font-weight: 600;
    background: rgba(0, 124, 186, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Compartir en redes sociales */
.social-share {
    margin: 3rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #DFDFD0;
    border-radius: 8px;
    text-align: center;
}

.social-share h3 {
    font-size: 1.4rem;
    margin: 0 0 1.5rem 0;
    color: #191F26;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #4267B2;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.copy-link {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lightbox para imágenes */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Wrapper para imágenes mejoradas */
.image-wrapper {
    cursor: zoom-in;
    display: inline-block;
    position: relative;
}

.image-wrapper::after {
    content: "🔍";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
}

.image-wrapper:hover::after {
    opacity: 1;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ========================================
   11. ESTILOS PARA ÍNDICE DEL BLOG
========================================= */

/* Descripción del blog */
.blog-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
}

/* Filtros y búsqueda */
.blog-filters {
    margin-bottom: 2rem;
}

.search-form {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #DFDFD0;
}

.search-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #DFDFD0;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover,
.search-btn:focus {
    background: #005a85;
}

.filter-group {
    min-width: 200px;
}

.category-filter {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #DFDFD0;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.category-filter:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.clear-filters:hover,
.clear-filters:focus {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Información de resultados */
.blog-results-info {
    margin-bottom: 2rem;
}

.results-title {
    font-size: 1.5rem;
    color: #191F26;
    margin: 0;
    font-weight: 600;
}

/* Grid de artículos */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Tarjetas de artículos */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.blog-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 124, 186, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

.read-more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.blog-card:hover .read-more-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100% - 250px);
}

.blog-card-category {
    margin: 0;
}

.category-tag {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin: 0;
    color: #191F26;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.blog-card-date,
.blog-card-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-card-date i,
.blog-card-reading-time i {
    color: #007cba;
}

.blog-card-excerpt {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #DFDFD0;
    margin-top: auto;
}

.read-more-text {
    font-weight: 600;
    color: #007cba;
}

.blog-card-cta i {
    color: #007cba;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-cta i {
    transform: translateX(5px);
}

/* Paginación */
.blog-pagination {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 3rem 0;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

.pagination-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #DFDFD0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
    justify-content: center;
}

.pagination-link:hover,
.pagination-link:focus {
    background: #007cba;
    color: white;
    border-color: #007cba;
    text-decoration: none;
}

.pagination-link.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
    cursor: default;
}

.pagination-link.first,
.pagination-link.last {
    font-size: 0.9rem;
}

/* Sin resultados */
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.no-results-content {
    max-width: 500px;
    padding: 2rem;
}

.no-results-icon {
    font-size: 4rem;
    color: #DFDFD0;
    margin-bottom: 1rem;
}

.no-results-title {
    font-size: 1.5rem;
    color: #191F26;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.no-results-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #005a85;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* ========================================
   12. RESPONSIVE PARA ÍNDICE
========================================= */

/* Tablet */
@media screen and (max-width: 768px) {
    .blog-description {
        font-size: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .pagination-links {
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .pagination-link.prev,
    .pagination-link.next {
        font-size: 0.8rem;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .search-form {
        padding: 1rem;
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .blog-grid {
        margin: 0 -15px;
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin: 0;
        border-radius: 0;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        height: auto;
        padding: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.2rem;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination-links {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    .pagination-link.prev,
    .pagination-link.next {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .no-results {
        min-height: 300px;
    }
    
    .no-results-content {
        padding: 1rem;
    }
    
    .no-results-icon {
        font-size: 3rem;
    }
    
    .no-results-title {
        font-size: 1.3rem;
    }
}

/* Animaciones para las tarjetas */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card.animate-in {
    animation: cardSlideIn 0.6s ease forwards;
}

/* Delay escalonado para las tarjetas */
.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   13. PRINT STYLES
========================================= */

@media print {
    .table-of-contents,
    .post-navigation,
    .related-posts,
    .toc-toggle {
        display: none;
    }
    
    .blog-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .entry-title {
        font-size: 18pt;
    }
    
    .post-content h2 {
        font-size: 16pt;
    }
    
    .post-content h3 {
        font-size: 14pt;
    }
    
    .post-content a {
        color: #000;
        text-decoration: underline;
    }
    
    .post-content a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}
