/* /assets/css/galeria.css - DISEÑO MINIMALISTA MEJORADO */

/* ========== RESET Y BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}



/* ========== MAIN CONTENT ========== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Secciones generales */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a5f;
    margin: 3rem 0 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-screen svg {
    width: 60px;
    height: 60px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* ========== GRID DE EVENTOS (CARDS) ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 1.5rem 0;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

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

.card-content {
    padding: 1.3rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card p {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.3rem;
}


/* ========== TAGS ========== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1rem 0;
}

.tags a {
    background: #3498db;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

.tags a:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ========== EVENTO DETALLE ========== */
.evento-detalle {
    max-width: 1100px;
    margin: 0 auto;
}

.evento-header {
    display: flex;
    gap: 2.5rem;
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.evento-info {
    flex: 2;
    min-width: 250px;
}

.evento-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1e3a5f;
    line-height: 1.2;
}

.evento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #64748b;
    margin: 1rem 0 1.5rem 0;
}

.evento-meta span {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.descripcion-corta {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1rem 0;
    font-style: italic;
    border-left: 3px solid #3498db;
    padding-left: 1rem;
}

.evento-miniatura {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
}

.evento-miniatura img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.evento-descripcion {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.evento-descripcion h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.evento-descripcion p {
    line-height: 1.8;
    color: #475569;
    font-size: 1.05rem;
}

.evento-descarga {
    text-align: center;
    margin: 2rem 0;
}

.btn-descarga {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-descarga:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* ========== GALERÍA DE FOTOS ========== */
.galeria-fotos {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.galeria-fotos h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1e3a5f;
}



.grid-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.foto-item {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    aspect-ratio: 4/3;
    transition: all 0.3s;
    position: relative;
}

.foto-item:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.foto-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s;
}

.foto-item:hover::after {
    background: rgba(52, 152, 219, 0.1);
}

.foto-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-fotos {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 4rem 0;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    animation: fadeIn 0.3s;
    backdrop-filter: blur(8px);
}

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

.modal-contenido {
    display: block;
    max-width: 92%;
    max-height: 80vh;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    object-fit: contain;
}

.modal-cerrar {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 42px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.2s;
    font-family: Arial, sans-serif;
    line-height: 1;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.modal-cerrar:hover {
    color: white;
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

.modal-pie {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(30, 41, 59, 0.8);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-contador {
    color: white;
    font-size: 0.95rem;
    min-width: 70px;
    text-align: center;
    font-weight: 500;
}

.modal-nav {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* ========== PAGINACIÓN ========== */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.btn-pag {
    background: #3498db;
    color: white;
    padding: 0.6rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-pag:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pagina-actual {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 2.5rem;
    background: #1e3a5f;
    color: #cbd5e1;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ========== UTILIDADES ========== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .evento-info h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.2rem 1.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    nav a {
        margin-right: 1rem;
        font-size: 0.9rem;
    }
    
    .evento-header {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .evento-miniatura {
        max-width: 100%;
    }
    
    .evento-miniatura img {
        height: 220px;
    }
    
    .evento-info h1 {
        font-size: 1.6rem;
    }
    
    .grid-fotos {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .modal-contenido {
        max-width: 96%;
        max-height: 75vh;
    }
    
    .modal-pie {
        padding: 0.5rem 1.5rem;
        gap: 1rem;
        bottom: 25px;
    }
    
    .modal-nav {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    
    .modal-cerrar {
        top: 15px;
        right: 20px;
        font-size: 36px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grid-fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .evento-header {
        padding: 1.2rem;
        gap: 1.5rem;
    }
    
    .evento-info h1 {
        font-size: 1.4rem;
    }
    
    .descripcion-corta {
        font-size: 1rem;
    }
    
    .btn-descarga {
        width: 100%;
        justify-content: center;
    }
    
    .card img {
        height: 180px;
    }
    
    .paginacion {
        flex-direction: column;
        gap: 1rem;
    }
}

/*SEPARACION PARTE 2 CODIGO NUEVO */

/* ========== PÁGINA: TODOS LOS EVENTOS ========== */
.todos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
}


/* Empty state */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state h2 {
    color: #1e3a5f;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* Grid mejorado */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Card mejorada */
.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(30, 58, 95, 0.12);
    border-color: #3498db;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Imagen de card con badge de categoría */
.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(30, 58, 95, 0.9);
    color: white;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Contenido de card */
.card-content {
    padding: 1.3rem 1.3rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto;
}

.card-date, .card-photos {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.icon {
    opacity: 0.7;
    flex-shrink: 0;
}

/* Paginación mejorada */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.btn-pag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3498db;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-pag:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-pag.disabled {
    background: #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

.pagina-info {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    padding: 0 1rem;
}

.pagina-actual {
    font-size: 1.3rem;
    color: #1e3a5f;
}

.pagina-separador {
    color: #94a3b8;
    font-size: 1.2rem;
}

.pagina-total {
    color: #64748b;
    font-size: 1.1rem;
}

/* ========== RESPONSIVE PARA TODOS.PHP ========== */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .todos-container {
        padding: 1.5rem 1.5rem 0;
    }
    
    .page-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.2rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .paginacion {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 1.2rem;
    }
    
    .btn-pag {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .todos-container {
        padding: 1rem 1rem 0;
    }
    
    .page-header {
        padding: 1.5rem 0 1rem;
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-image {
        aspect-ratio: 16/9;
    }
    
    .paginacion {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .btn-pag {
        justify-content: center;
    }
    
    .pagina-info {
        justify-content: center;
        order: -1;
        padding: 0.5rem;
    }
}

/*SEPARACION PARTE 3 CODIGO NUEVO */

/* ========== INDEX - PÁGINA PRINCIPAL ========== */
.index-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.section {
    margin-bottom: 4rem;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-badge {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ver-mas-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.ver-mas-link:hover {
    gap: 0.6rem;
    color: #2563eb;
}



/* ===== SECCIÓN 8: DESTACADOS ===== */
.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-destacada {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.card-destacada:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.12);
    border-color: #3498db;
}

.card-destacada a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-destacada-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.card-badge-destacado {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-destacada-content {
    padding: 1.2rem;
}

.card-destacada-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.8rem;
}

.card-destacada-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== SECCIÓN 9: TAG ESPECIAL ===== */
.tag-especial-section {
    background: #f8fafc;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin: 0 2rem 4rem;
    border: 1px solid #e2e8f0;
}

.tag-especial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.card-tag-especial {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.card-tag-especial:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.12);
}

.card-tag-primero {
    position: relative;
}

.card-tag-primero::before {
    content: 'Último';
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #10b981;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.card-tag-especial a {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.card-tag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tag-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: #3498db;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-tag-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tag-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.8rem;
}

.card-tag-descripcion {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-tag-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #64748b;
}

.btn-outline {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

.mt-3 {
    margin-top: 1.5rem;
}

/* ===== SECCIÓN 4: CATEGORÍAS ===== */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.categoria-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.categoria-card:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.categoria-emoji {
    font-size: 2rem;
}

.categoria-nombre {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 1rem;
}

.categoria-count {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===== SECCIÓN 5: ÚLTIMOS EVENTOS ===== */
.ultimos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card-compact {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.1);
}

.card-compact a {
    text-decoration: none;
    color: inherit;
}

.card-compact .card-image {
    /*height: 160px;*/
    overflow: hidden;
}

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

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

.card-compact .card-content {
    padding: 1rem;
}

.card-compact h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

/* ===== SECCIÓN 6: TAG SECUNDARIO ===== */
.tag-secundario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.card-tag-secundario {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.card-tag-secundario:hover {
    transform: translateX(4px);
    border-color: #3498db;
}

.card-tag-secundario a {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.card-tag-image-small {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}

.card-tag-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-tag-secundario .card-tag-content {
    padding: 1rem 1rem 1rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-tag-secundario h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 0.4rem;
}

.card-tag-fecha {
    font-size: 0.85rem;
    color: #64748b;
}

/* ===== SECCIÓN 1,2,3: EXPLORAR MÁS ===== */
.explorar-section {
    margin-top: 2rem;
}

.explorar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.explorar-card {
    background: linear-gradient(135deg, #1e3a5f, #2c3e50);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.explorar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(30, 58, 95, 0.3);
}

.explorar-icon {
    font-size: 2.5rem;
}

.explorar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.explorar-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.explorar-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.explorar-card:hover .explorar-arrow {
    transform: translateX(5px);
}

/* ========== RESPONSIVE INDEX ========== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tag-especial-grid {
        grid-template-columns: 1fr;
    }
    
    .card-tag-especial a {
        grid-template-columns: 1fr;
    }
    
    .card-tag-content {
        padding: 1.5rem;
    }
    
    .explorar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 0 1.5rem;
    }
    
    .hero-section {
        padding: 3rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-search {
        flex-direction: column;
    }
    
    .hero-btn {
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .destacados-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .tag-especial-section {
        margin: 0 1.5rem 3rem;
        padding: 2rem 1.5rem;
    }
    
    .card-tag-image {
        height: 200px;
    }
    
    .tag-secundario-grid {
        grid-template-columns: 1fr;
    }
    
    .explorar-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 0 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .destacados-grid {
        grid-template-columns: 1fr;
    }
    
    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ultimos-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-especial-section {
        margin: 0 1rem 2rem;
        padding: 1.5rem 1rem;
    }
    
    .card-tag-especial a {
        grid-template-columns: 1fr;
    }
    
    .card-tag-image {
        height: 180px;
    }
    
    .explorar-card {
        padding: 1.5rem;
    }
}
/*SEPARACION PARTE 4 CODIGO NUEVO */

/* ========== HEADER PRINCIPAL ========== */
.main-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c3e50 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

/* ========== BRAND / LOGO ========== */
.header-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: white;
    transition: opacity 0.2s;
}

.brand-link:hover {
    opacity: 0.9;
}

.brand-icon {
    width: 32px;
    height: 32px;
    color: #60a5fa;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ========== NAVEGACIÓN ========== */
.header-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* ========== BUSCADOR DESKTOP ========== */
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
    min-width: 250px;
    max-width: 300px;
    transition: background 0.2s;
}

.header-search:focus-within {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.header-search .search-input {
    flex: 1;
    padding: 0.5rem 0.8rem;
    border: none;
    background: transparent;
    color: white;
    font-size: 0.9rem;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

.header-search .search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

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

.header-search .search-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-search .search-btn:hover {
    background: rgba(255,255,255,0.1);
}

/* ========== MENÚ MÓVIL (BOTÓN HAMBURGUESA) ========== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== BUSCADOR MÓVIL ========== */
.mobile-search {
    display: none;
    padding: 0.5rem 1.5rem 1rem;
    background: rgba(0,0,0,0.1);
}

.mobile-search-form {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-form .search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
}

.mobile-search-form .search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.mobile-search-form .search-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
}

.search-btn-mobile {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
}

/* ========== MENÚ OVERLAY Y MÓVIL ========== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    display: block;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #1e3a5f;
    z-index: 1000;
    padding: 1.5rem;
    transition: right 0.3s;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ========== LOADING SCREEN ========== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ========== RESPONSIVE HEADER ========== */
@media (max-width: 1024px) {
    .header-nav {
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .header-search {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1.5rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    /* Ocultar navegación y buscador desktop */
    .header-nav {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    /* Mostrar botón hamburguesa */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Mostrar buscador móvil */
    .mobile-search {
        display: block;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.7rem 1rem;
    }
    
    .brand-icon {
        width: 28px;
        height: 28px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .mobile-search {
        padding: 0.5rem 1rem 1rem;
    }
    
    .mobile-nav {
        width: 260px;
    }
}

/*SEPARACION PARTE 5 CODIGO NUEVO */

/* ========== PÁGINA: CATEGORÍAS ========== */
.categorias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ========== HERO CATEGORÍAS ========== */
.cat-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c3e50 100%);
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.cat-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cat-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cat-hero-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.cat-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cat-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cat-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cat-stat {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.cat-stat strong {
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

/* ========== GRID DE CATEGORÍAS ========== */
.cat-grid-section {
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

/* Card de categoría */
.cat-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(30, 58, 95, 0.15);
    border-color: #3498db;
}

/* Imagen de fondo de la card */
.cat-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cat-card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cat-card:hover .cat-card-bg img {
    transform: scale(1.1);
}

.cat-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(30, 58, 95, 0.85) 0%,
        rgba(30, 58, 95, 0.9) 50%,
        rgba(30, 58, 95, 0.95) 100%
    );
    transition: background 0.3s;
}

.cat-card:hover .cat-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(52, 152, 219, 0.8) 0%,
        rgba(30, 58, 95, 0.9) 100%
    );
}

/* Contenido de la card */
.cat-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: white;
}

.cat-card-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s;
}

.cat-card:hover .cat-card-emoji {
    transform: scale(1.1) rotate(-5deg);
}

.cat-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.3px;
}

.cat-card-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.cat-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.cat-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.cat-card-action {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.cat-card:hover .cat-card-action {
    opacity: 1;
    transform: translateX(0);
}

/* Acento de color inferior */
.cat-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #60a5fa, #3498db);
    z-index: 3;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.cat-card:hover .cat-card-accent {
    transform: scaleX(1);
}

/* ========== CTA FINAL ========== */
.cat-cta {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 3rem 2rem;
    margin-bottom: 0;
}

.cat-cta-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cat-cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.cat-cta-content p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

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

.btn-primary {
    background: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========== RESPONSIVE CATEGORÍAS ========== */
@media (max-width: 768px) {
    .cat-hero {
        padding: 2rem 1.5rem;
    }
    
    .cat-hero-title {
        font-size: 2rem;
    }
    
    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
    }
    
    .cat-card {
        min-height: 250px;
    }
    
    .cat-card-content {
        padding: 1.5rem;
    }
    
    .cat-card-emoji {
        font-size: 2.5rem;
    }
    
    .cat-card-title {
        font-size: 1.2rem;
    }
    
    .cat-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .cat-hero {
        padding: 1.5rem 1rem;
    }
    
    .cat-hero-title {
        font-size: 1.6rem;
    }
    
    .cat-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .cat-hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .cat-grid-section {
        padding: 0 1rem;
    }
    
    .cat-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-card-action {
        opacity: 1;
        transform: translateX(0);
    }
}
/* ========== BOTÓN VOLVER A CATEGORÍAS ========== */
.btn_rt_a_cat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    margin-bottom: 1.5rem;
}

.btn_rt_a_cat:hover {
    background: #f1f5f9;
    color: #3498db;
    transform: translateX(-4px);
}

/*SEPARACION PARTE 6 CODIGO NUEVO */

/* ========== PÁGINA: TAGS ========== */
.tags-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Hero */
.tags-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c3e50 100%);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

.tags-hero-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.8rem;
}

.tags-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tags-hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
}

/* Buscador */
.tags-search-section {
    padding: 0 2rem;
    margin-bottom: 2.5rem;
}

.tags-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.3rem;
    transition: all 0.2s;
}

.tags-search-wrapper:focus-within {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.tags-search-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    pointer-events: none;
}

.tags-search-input {
    flex: 1;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    color: #1e3a5f;
    background: transparent;
}

.tags-search-input::placeholder {
    color: #94a3b8;
}

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

.tags-counter {
    padding: 0.3rem 0.8rem;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    margin-right: 0.3rem;
}

/* Secciones de tags */
.tags-populares-section,
.tags-todos-section {
    padding: 0 2rem;
    margin-bottom: 2.5rem;
}

.tags-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Grid de tags */
.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.tag-card {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.tag-card:hover {
    border-color: #3498db;
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.tag-card.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
}

.tag-card.active .tag-card-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tag-card-hash {
    color: #3498db;
    font-weight: 700;
}

.tag-card.active .tag-card-hash {
    color: white;
}

.tag-card-name {
    font-weight: 600;
}

.tag-card-count {
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 0.2rem;
}

/* Tags sin resultados */
.tags-no-results {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.tags-no-results-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* Resultados */
.tags-resultados-section {
    padding: 0 2rem 3rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2.5rem;
}

.tags-resultados-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags-resultados-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a5f;
}

.tag-highlight {
    background: #3498db;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.ver-todos-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.ver-todos-link:hover {
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .tags-hero-title {
        font-size: 1.8rem;
    }
    
    .tags-search-section {
        padding: 0 1.5rem;
    }
    
    .tags-populares-section,
    .tags-todos-section {
        padding: 0 1.5rem;
    }
    
    .tags-resultados-section {
        padding: 0 1.5rem 2rem;
    }
    
    .tag-card {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tags-hero {
        padding: 1.8rem 1rem;
    }
    
    .tags-hero-title {
        font-size: 1.5rem;
    }
    
    .tags-search-wrapper {
        flex-wrap: wrap;
    }
    
    .tags-search-input {
        min-width: 0;
        padding: 0.7rem 0.8rem 0.7rem 2.5rem;
    }
    
    .tags-counter {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .tags-grid {
        gap: 0.5rem;
    }
    
    .tag-card {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}