/*
 * Kimufest – Archives & Singles (Unified Premium Styles)
 * Tokens from tokens.css · Inspired by main.css + passwords.css
 */

/* ═══════════════════════════════════════
   GLOBAL WRAPPER & LAYOUT
   ═══════════════════════════════════════ */
.wrapper {
    max-width: var(--max-w, 1600px);
    margin: 0 auto;
    padding-left: clamp(20px, 4vw, 60px);
    padding-right: clamp(20px, 4vw, 60px);
}

/* ═══════════════════════════════════════
   SHARED ARCHIVE HEADER
   ═══════════════════════════════════════ */
.activities-header,
.ludoteca-header,
.colaboradores-header,
.documentos-header,
.archive-header-premium {
    position: relative;
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #023682 0%, #0a9ebb 60%, #40CEF3 100%);
    overflow: hidden;
    text-align: center;
}

/* Noise/glass overlay */
.activities-header::before,
.ludoteca-header::before,
.colaboradores-header::before,
.documentos-header::before,
.archive-header-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    backdrop-filter: saturate(120%);
}

/* Decorative blobs */
.activities-header::after,
.archive-header-premium::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(64, 206, 243, 0.12);
    pointer-events: none;
}

.main-archive-title,
.archive-header-premium h1 {
    position: relative;
    z-index: 1;
    font-family: var(--font-base, 'Outfit', sans-serif) !important;
    font-size: var(--fs-h1);
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.archive-header-premium .subtitle {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    font-weight: 400;
}

/* ── Pill count on header ── */
.archive-count-pill {
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-top: 16px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: var(--r-pill, 999px);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════
   BREADCRUMBS
   ═══════════════════════════════════════ */
.breadcrumbs-custom,
.single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    justify-content: center;
}

.breadcrumbs-custom a,
.single-breadcrumb a {
    color: rgba(255, 255, 255, 0.80);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs-custom a:hover,
.single-breadcrumb a:hover {
    color: #fff;
}

.breadcrumbs-custom span,
.single-breadcrumb .current {
    color: #fff;
    font-weight: 700;
}

/* breadcrumb separator */
.breadcrumbs-custom a::after,
.single-breadcrumb a::after {
    content: '/';
    margin: 0 12px;
    color: rgba(255, 255, 255, 0.40);
    font-weight: 300;
}

/* ==========================================================================
   Activity Archive - Liquid Badges Trial
   ========================================================================== */
.badge.liquid-badge {
    position: relative;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 5px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1e293b;
    border-radius: 30% 70% 70% 30% / 50% 50% 50% 50% !important;
    box-shadow: inset 2px 2px 4px rgba(255,255,255,0.8),
                inset -2px -2px 4px rgba(0,0,0,0.04),
                2px 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-right: 6px;
    margin-bottom: 6px;
    display: inline-block;
}

.badge.liquid-badge::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 20%;
    width: 15%;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    filter: blur(1px);
}

.badge.liquid-badge:hover {
    border-radius: 70% 30% 30% 70% / 50% 50% 50% 50% !important;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6);
}

/* ═══════════════════════════════════════
   DAY TABS (Activities Archive)
   ═══════════════════════════════════════ */
.day-tabs-container {
    margin-bottom: 28px;
}

.day-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent wrapping so they stay in one row */
    border-radius: 15px;
    width: 100%;
}


.tab-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 24px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.72));
    backdrop-filter: var(--glass-blur, saturate(160%) blur(20px));
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-border, rgba(255, 116, 38, 0.12));
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition, 0.35s cubic-bezier(0.23, 1, 0.32, 1));
    font-family: var(--font-base, 'Outfit', sans-serif);
    box-shadow: var(--shadow-xs);
}

.tab-item .day-name {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--clr-black, #141414);
}

.tab-item .day-date {
    font-size: 12px;
    font-weight: 500;
    color: var(--clr-muted, #5B6270);
}

.tab-item:hover,
.tab-item.active {
    background: #40CEF3;
    border-color: #40CEF3;
    box-shadow: var(--shadow-sm);
}

.tab-item:hover .day-name,
.tab-item.active .day-name,
.tab-item:hover .day-date,
.tab-item.active .day-date {
    color: #fff;
}

/* Day tabs inside sticky bar adjustment */
.activity-filters-sticky .tab-item {
    padding: 8px 18px;
    flex-direction: row; 
    align-items: center;
    justify-content: center; /* Center text inside buttons */
    gap: 8px;
    flex: 1; /* Make buttons grow to fill space */
}



/* ═══════════════════════════════════════
   STICKY FILTER BARS (Activities & Ludoteca)
   ═══════════════════════════════════════ */
.activity-filters-sticky,
.ludoteca-filters-sticky {
    position: sticky;
    z-index: 100;
    background: var(--glass-bg, rgba(255, 255, 255, 0.88));
    backdrop-filter: var(--glass-blur, saturate(160%) blur(20px));
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-border, rgba(255, 116, 38, 0.12));
    border-radius: var(--r-lg, 24px);
    padding: 20px 28px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.filters-main-layout {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Center items vertically */
    gap: 40px;
}

.filters-days-column {
    flex: 1; /* 50% */
}

.filters-actions-column {
    flex: 1; /* 50% */
    display: flex;
    justify-content: flex-end; /* Push dropdown to the right */
}

.filters-actions-top {
    width: 100%;
    max-width: 360px; /* Limit dropdown width for aesthetics */
}


.filters-actions-column .quick-filters {
    margin-top: 0;
    justify-content: flex-end;
}


.activity-filters-sticky {
    top: 20px;
}

.ludoteca-filters-sticky {
    top: 20px;
}

.filters-flex {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-dropdown {
    flex: 1;
    min-width: 140px;
}

.custom-select {
    width: 100%;
    padding: 10px 36px 10px 14px !important;
    border: 1px solid var(--clr-border-n, #E8ECF0) !important;
    border-radius: var(--r-sm, 10px) !important;
    background: var(--clr-paper, #fff) !important;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-base, 'Outfit', sans-serif) !important;
    color: var(--clr-black, #141414) !important;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2340CEF3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select:focus {
    border-color: #40CEF3 !important;
    box-shadow: 0 0 0 3px rgba(64, 206, 243, 0.15) !important;
    outline: none;
}

.quick-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.quick-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-light, #9BA3AF);
}

.tag-filter,
.btn-tag {
    padding: 6px 14px;
    border-radius: var(--r-pill, 999px);
    border: 1px solid var(--clr-border-n, #E8ECF0);
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-base, 'Outfit', sans-serif);
    color: var(--clr-muted, #5B6270);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-filter:hover,
.tag-filter.active,
.clear-filters:hover {
    background: #40CEF3;
    border-color: #40CEF3;
    color: #023682;
}

.clear-filters {
    background: rgba(255, 255, 255, 0.5);
}


.clear-filters .close-icon {
    opacity: 0.6;
    font-size: 1.1em;
}

/* ═══════════════════════════════════════
   ARCHIVE BROWSER AREA
   ═══════════════════════════════════════ */
.activities-browser,
.ludoteca-browser,
.colabs-browser {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Activities grid (from AJAX) */
.agenda-grid-archive,
.activities-ajax-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    min-height: 200px;
}

/* ────────────────────────────────────────
   ACTIVITY CARD (article – archive card)
   ──────────────────────────────────────── */
.actividad-card-article,
article.actividad-card,
.agenda-grid-archive .actividad-item {
    /* Styles are now inherited from .activity-premium-card in custom.css */
    display: flex;
    flex-direction: column;
}

@media (max-width: 1200px) {
    .agenda-grid-archive {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .agenda-grid-archive {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .agenda-grid-archive {
        grid-template-columns: 1fr;
    }
}

/* ── Missing activity card ── */
.missing-activity-card {
    grid-column: span 1;
    background: transparent;
    border: 2px dashed rgba(64, 206, 243, 0.35);
    border-radius: var(--r-lg, 24px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    text-align: center;
    min-height: 280px;
    height: 100%;
    transition: var(--transition);
}

.missing-activity-card:hover {
    border-color: #40CEF3;
    background: rgba(64, 206, 243, 0.06);
}

.missing-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.icon-plus-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(64, 206, 243, 0.15);
    border: 2px dashed rgba(64, 206, 243, 0.40);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #40CEF3;
    margin: 0 auto 16px;
    font-weight: 300;
}

.missing-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--clr-black, #141414);
}

.missing-content p {
    font-size: 14px;
    color: var(--clr-muted, #5B6270);
    margin: 0 0 24px;
    flex-grow: 1;
}

/* Load More / Footer Actions */
.activities-footer-actions {
    padding: 40px 0 20px;
    display: flex;
    justify-content: center;
}

.btn-premium-outline,
.btn-dark-premium {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: var(--r-pill, 999px);
    font-family: var(--font-base, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--clr-black, #141414);
    color: var(--clr-black, #141414);
}

.btn-premium-outline:hover {
    background: #023682;
    border-color: #023682;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn-dark-premium {
    background: var(--clr-black, #141414);
    border: 2px solid var(--clr-black, #141414);
    color: #fff;
}

.btn-dark-premium:hover {
    background: #40CEF3;
    border-color: #40CEF3;
    color: #023682;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════
   SINGLE LAYOUT
   ═══════════════════════════════════════ */
.single-actividad-item,
.single-juego-item,
.single-colaborador-item {
    display: block;
}

/* Header of single pages */
.page-header-premium {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #023682 0%, #0a9ebb 60%, #40CEF3 100%);
    overflow: hidden;
    text-align: center;
}

.page-header-premium .wrapper {
    position: relative;
    z-index: 3;
}

.page-header-premium.has-featured-image {
    background-color: #001a41;
    padding-bottom: 80px;
}

.page-header-premium.has-featured-image::before {
    content: '';
    position: absolute;
    inset: -20px; /* Slight overflow to hide white edges from blur */
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    filter: blur(6px) brightness(0.85);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.page-header-premium.has-featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

/* Adjustments for text over image */
.page-header-premium.has-featured-image .breadcrumbs-custom a,
.page-header-premium.has-featured-image .breadcrumbs-custom span {
    color: rgba(255, 255, 255, 0.9);
}

.page-header-premium.has-featured-image .activity-quick-meta .meta-badge,
.page-header-premium.has-featured-image .game-quick-meta .meta-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Transparent navbar when at top on pages with featured heroes */
body.has-featured-hero:not(.header-scrolled) .site-header .padding-wide {
    background: rgba(2, 54, 130, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
}

.page-header-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* Header bg blobs */
.header-bg-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.header-bg-blobs .blob-1 {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
}

.header-bg-blobs .blob-2 {
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
}

.page-header-premium .entry-title,
.page-header-premium h1 {
    position: relative;
    z-index: 2;
    font-family: var(--font-base, 'Outfit', sans-serif) !important;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin: 12px 0 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    line-height: 1;
}

/* Quick meta badges */
.activity-quick-meta,
.single-meta-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-top: 16px;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--r-pill, 999px);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    color: #fff;
}

.meta-badge.tournament-badge {
    background: rgba(255, 180, 0, 0.30);
    border-color: rgba(255, 180, 0, 0.50);
}

/* Content + Sidebar two-column layout */
.main-content-layout {
    position: relative;
    z-index: 5;
    padding-top: 60px;
    padding-bottom: 80px;
    padding-left: clamp(20px, 4vw, 60px);
    padding-right: clamp(20px, 4vw, 60px);
}

.activity-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* Main content column */
.activity-main-col,
.single-main-col {
    background: var(--glass-bg, rgba(255, 255, 255, 0.80));
    backdrop-filter: var(--glass-blur, saturate(160%) blur(20px));
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(64, 206, 243, 0.18);
    border-radius: var(--r-lg, 24px);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.activity-main-col .entry-content,
.single-main-col .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--clr-muted, #5B6270);
}

.activity-main-col .entry-content h2,
.activity-main-col .entry-content h3 {
    font-weight: 800;
    color: var(--clr-black, #141414);
    margin-top: 2em;
}

.activity-main-col .entry-content h3,
.single-main-col .entry-content h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.activity-main-col .entry-content p {
    margin-bottom: 1.4em;
}

.activity-main-col .entry-content p:last-child {
    margin-bottom: 0;
}

/* Requisitos box */
.activity-requisitos {
    margin-top: 40px;
}

.activity-requisitos h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 16px !important;
}

.requisitos-box {
    background: #EEF8FF;
    border: 1px solid rgba(64, 206, 243, 0.25);
    border-radius: var(--r-md, 16px);
    padding: 24px;
    font-size: 15px;
    color: var(--clr-muted, #5B6270);
    line-height: 1.7;
}

/* Sidebar */
.activity-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.side-card {
    border-radius: var(--r-lg, 24px);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.side-card h3 {
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px !important;
}

/* Logistics card (dark) */
.logistics-card,
.card-dark {
    background: var(--clr-black, #141414);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.logistics-card h3,
.card-dark h3 {
    color: #fff;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.meta-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.meta-list .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.meta-list strong {
    color: #fff;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

/* Capacity card (navy) */
.capacity-card,
.card-accent {
    background: linear-gradient(135deg, #023682, #0a9ebb);
    border: none;
}

.capacity-card h3,
.card-accent h3 {
    color: #fff;
}

.capacity-stats {
    text-align: center;
}

.cap-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
}

.cap-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 20px;
}

.capacity-card .btn-primary,
.card-accent .btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: #40CEF3;
    color: #023682;
    border: 2px solid #40CEF3;
    border-radius: var(--r-pill, 999px);
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.capacity-card .btn-primary:hover {
    background: var(--clr-black, #141414);
    border-color: var(--clr-black, #141414);
    color: #fff;
    transform: translateY(-2px);
}

.status-alert.full {
    display: block;
    padding: 14px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: var(--r-md, 16px);
    color: rgba(255, 255, 255, 0.70);
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Organiser card (glass) */
.organizer-card,
.card-white {
    background: var(--glass-bg, rgba(255, 255, 255, 0.80));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--clr-border, rgba(64, 206, 243, 0.20));
}

.organizer-card strong {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a9ebb;
    margin-bottom: 8px;
}

.organizer-card .org-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--clr-black, #141414);
    margin: 0;
}

/* Spec Tiles bar (games, etc.) */
.tool-specs-bar,
.spec-tiles-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0;
}

.spec-tile {
    flex: 1;
    min-width: 130px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.80));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(64, 206, 243, 0.25);
    padding: 16px 20px;
    border-radius: var(--r-md, 16px);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xs);
}

.spec-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 116, 38, 0.10);
    color: var(--clr-primary, #FF7426);
    border-radius: var(--r-sm, 10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.spec-data label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-light, #9BA3AF);
    margin-bottom: 4px;
}

.spec-data strong {
    font-size: 16px;
    font-weight: 800;
    color: var(--clr-black, #141414);
}

/* ═══════════════════════════════════════
   RELATED GAMES SECTION
   ═══════════════════════════════════════ */
.related-games-section {
    padding: 60px 0 48px;
    border-top: 1px solid var(--clr-border-n, #E8ECF0);
    margin-top: 24px;
}

.related-games-section h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    color: var(--clr-black, #141414);
}

.games-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.mini-game-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.80));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 116, 38, 0.12);
    border-radius: var(--r-md, 16px);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.mini-game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 116, 38, 0.40);
    box-shadow: var(--shadow-sm);
}

.mini-game-info h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--clr-black, #141414);
    margin: 0 0 4px;
}

.mini-game-info .view-juego {
    font-size: 12px;
    font-weight: 600;
    color: var(--clr-primary, #FF7426);
}

/* ═══════════════════════════════════════
   SINGLE JUEGO – extra
   ═══════════════════════════════════════ */
.juego-featured-band {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.juego-cover-wrap {
    width: 140px;
    min-width: 140px;
    height: 140px;
    background: var(--clr-bg-alt, #FFF5EE);
    border-radius: var(--r-lg, 24px);
    overflow: hidden;
    border: 2px solid rgba(255, 116, 38, 0.15);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.juego-cover-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--r-lg, 24px) - 2px);
}

/* Difficulty stars */
.dif-stars {
    display: inline-flex;
    gap: 4px;
    font-size: 1.1rem;
}

/* BGA Link */
.bga-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    background: #1a1a2e;
    color: #7bc8ff;
    border-radius: var(--r-pill, 999px);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    margin-top: 8px;
}

.bga-link:hover {
    background: #7bc8ff;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 200, 255, 0.30);
}

/* ═══════════════════════════════════════
   SINGLE COLABORADOR
   ═══════════════════════════════════════ */
.colaborador-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    padding: 60px 0 80px;
}

.colaborador-logo-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.80));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 116, 38, 0.12);
    border-radius: var(--r-xl, 32px);
    padding: 36px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.colaborador-logo-card img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 20px;
}

.colaborador-logo-card .colab-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--clr-black, #141414);
    margin: 0 0 12px;
}

.colaborador-contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.colaborador-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--clr-muted, #5B6270);
}

.colaborador-contact-list li a {
    color: var(--clr-primary, #FF7426);
    text-decoration: none;
    font-weight: 600;
}

.colaborador-contact-list li a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {

    .activity-content-grid,
    .colaborador-layout {
        grid-template-columns: 1fr;
    }

    .activity-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .activity-sidebar .side-card {
        flex: 1;
        min-width: 240px;
    }

    .colaborador-logo-card {
        position: static;
    }
}

@media (max-width: 768px) {

    .page-header-premium {
        padding: 120px 0 50px;
    }

    .main-content-layout {
        padding-left: 20px;
        padding-right: 20px;
    }

    .activity-content-grid {
        gap: 20px;
    }

    .activity-main-col,
    .single-main-col {
        padding: 28px;
    }

    .agenda-grid-archive,
    .activities-ajax-grid {
        grid-template-columns: 1fr;
    }

    .day-tabs {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .tab-item {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 12px 18px;
    }
}

/* ═══════════════════════════════════════
   LIST VIEW MODE (Juegos & Actividades Table)
   ═══════════════════════════════════════ */
.list-view-mode {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    background: #fff;
    border-radius: var(--r-md, 16px);
    overflow: hidden;
    border: 1px solid var(--clr-border-n, #E8ECF0);
    box-shadow: var(--shadow-sm);
    padding: 0 !important;
}

.list-view-mode .game-premium-card,
.list-view-mode .activity-premium-card {
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--clr-border-n, #E8ECF0) !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.list-view-mode .game-premium-card:last-child,
.list-view-mode .activity-premium-card:last-child {
    border-bottom: none !important;
}

.list-view-mode .game-premium-card:hover,
.list-view-mode .activity-premium-card:hover {
    background: #f8fafc !important;
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--clr-border-n, #E8ECF0) !important;
}

/* Hide Grid, Show List */
.list-view-mode .grid-view-layout { display: none !important; }
.list-view-mode .list-view-layout { display: grid !important; }
.list-view-mode .list-table-header { display: grid !important; }

/* ── Columns Setup ── */

/* Juegos: 140px | minmax | 140px | 120px | 80px | 120px | 120px */
.ludoteca-grid-archive.list-view-mode .list-table-header,
.ludoteca-grid-archive.list-view-mode .list-view-layout {
    grid-template-columns: 130px minmax(200px, 1fr) 140px 120px 80px 120px 120px;
}

/* Actividades: Fecha | Hora | Actividad | Lugar | Plazas | Etiquetas | Organizador */
.agenda-grid-archive.list-view-mode .list-table-header,
.agenda-grid-archive.list-view-mode .list-view-layout {
    grid-template-columns: 100px 110px minmax(200px, 1fr) 130px 90px 140px 150px;
}

.list-view-mode .list-table-header,
.list-view-mode .list-view-layout {
    align-items: center;
    gap: 20px;
}

.list-view-mode .list-table-header {
    background: #F8FAFC;
    border-bottom: 2px solid var(--clr-border-n, #E8ECF0);
    padding: 16px 24px;
}

.list-view-mode .list-view-layout {
    padding: 10px 24px;
}

/* Base list col styles */
.lv-col {
    font-size: 14px;
    color: var(--clr-muted, #5B6270);
    line-height: 1.4;
}

.list-table-header .lv-col {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9BA3AF;
}

/* Components in list mode */
.lv-juego, .lv-act {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lv-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lv-title,
.lv-title strong,
.lv-title a {
    color: #023682 !important;
    font-size: 15px;
    font-weight: 800;
}

.list-view-mode .card-badge-status {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 4px 10px;
    font-size: 11px;
    height: fit-content;
    width: fit-content;
}

/* Mobile responsive fallback */
@media (max-width: 1000px) {
    .list-view-mode .list-table-header {
        display: none !important; 
    }
    .ludoteca-grid-archive.list-view-mode .list-view-layout,
    .agenda-grid-archive.list-view-mode .list-view-layout {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        padding: 20px !important;
        gap: 12px !important;
    }
    .lv-juego, .lv-act {
        order: -1;
        width: 100%;
        margin-bottom: 8px;
    }
    .lv-estado {
        width: 100%;
        margin-bottom: 4px;
    }
    .lv-thumb {
        width: 48px;
        height: 48px;
    }
    .lv-title strong {
        font-size: 18px;
    }
    /* Info columns: Two per row */
    .lv-cat, .lv-dif, .lv-edad, .lv-jug, .lv-dur,
    .lv-fecha, .lv-hora, .lv-ubi, .lv-plazas, .lv-tags, .lv-org {
        flex: 1 1 calc(50% - 12px);
        min-width: 130px;
        font-size: 14px;
        background: transparent !important;
        padding: 4px 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
}

/* Mobile responsive for filters */
@media (max-width: 768px) {
    .filters-flex.ludoteca-filters,
    .filters-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .filter-dropdown {
        width: 100%;
        min-width: 100%;
    }
    
    .custom-select {
        height: 54px; /* Accessible tap target */
        padding: 12px 40px 12px 18px !important;
        font-size: 16px !important; /* Prevent iOS zooming */
    }
    
    .filter-actions,
    .clear-filters {
        width: 100%;
        margin-left: 0 !important;
        display: flex;
    }
    
    .filter-actions .btn-tag,
    .clear-filters.btn-tag {
        width: 100%;
        height: 54px;
        justify-content: center;
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .activity-filters-sticky,
    .ludoteca-filters-sticky {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .quick-filters {
        margin-top: 16px;
        justify-content: center;
        width: 100%;
    }
    
    .tag-filter {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Column layout for main filter block on mobile */
    .filters-main-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .filters-days-column,
    .filters-actions-column {
        flex: none;
        width: 100%;
    }
    
    .filters-actions-column {
        justify-content: stretch;
    }
    
    .filters-actions-top {
        max-width: 100%;
    }

    .activity-filters-sticky .tab-item {
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 12px 20px;
    }
}
/* ═══════════════════════════════════════
   PREMIUM PAGE WRAPPER
   ═══════════════════════════════════════ */
.premium-page-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 60px;
    padding-bottom: 100px;
    display: block; /* changed from flex for better native centering */
    width: 100%;
}


.premium-page-article {
    width: 100%;
    max-width: 900px;
    margin: 0 auto; /* key for centering */
    background: var(--glass-bg, rgba(255, 255, 255, 0.80));
    backdrop-filter: var(--glass-blur, saturate(160%) blur(20px));
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(64, 206, 243, 0.18);
    border-radius: var(--r-lg, 24px);
    padding: clamp(30px, 5vw, 60px);
    box-shadow: var(--shadow-sm);
}

/* Specific variants via body class */
body.legal-page .premium-page-article {
    max-width: 960px !important;
}

body.legal-page .entry-content a {
    color: #40CEF3 !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
    border: none !important;
}

body.legal-page .entry-content strong {
    color: var(--clr-black) !important;
}

.premium-page-article .entry-content {
    font-size: 17px;
    line-height: 1.85;
    color: var(--clr-muted, #5B6270);
}

.premium-page-article .entry-content h2 {
    font-size: 1.8rem;
    margin-top: 2em;
    margin-bottom: 0.6em;
    color: var(--clr-black);
    font-weight: 800;
}

.premium-page-article .entry-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: var(--clr-black);
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    font-size: 1.4rem;
    padding-left: 20px;
}

.premium-page-article .entry-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--clr-primary);
    border-radius: var(--r-pill);
}

.premium-page-article .entry-content p {
    margin-bottom: 1.8em;
}

.premium-page-article .entry-content ul,
.premium-page-article .entry-content ol,
.premium-page-article .entry-content .wp-block-list {
    margin-bottom: 24px;
    padding-left: 20px;
    margin-left: 0;
}


.premium-page-article .entry-content li {
    margin-bottom: 12px;
}

.premium-page-article .entry-content strong {
    color: var(--clr-black);
    font-weight: 700;
}

.premium-page-article .entry-content a {
    color: var(--clr-primary);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(64, 206, 243, 0.2);
}

.premium-page-article .entry-content a:hover {
    color: var(--clr-primary-dark);
    border-bottom-color: var(--clr-primary);
}

/* Specific section spacing for legal blocks */
.premium-page-article .entry-content > hr {
    margin: 3em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
}

/* Adjusting block editor alignments for the narrower container */
.premium-page-article .entry-content > .alignwide {
    margin-left: -5vw;
    margin-right: -5vw;
    max-width: none;
    width: auto;
}

.premium-page-article .entry-content > .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

@media (max-width: 768px) {
    .premium-page-wrapper {
        padding-top: 20px;
        padding-bottom: 40px;
        padding-left: 0;
        padding-right: 0;
    }
    .premium-page-article {
        padding: 20px 0; /* No side padding as requested */
        border-radius: 0;
        background: transparent; /* better for mobile flush look */
        backdrop-filter: none;
        border: none;
    }
    .premium-page-article .entry-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ═══════════════════════════════════════
   GOOGLE DRIVE STYLE DOCUMENT TABLE
   ═══════════════════════════════════════ */
.drive-table-container {
    background: #ffffff;
    border: 1px solid rgba(2, 54, 130, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(2, 54, 130, 0.04), 0 10px 40px rgba(2, 54, 130, 0.02);
    margin: 0 0 40px 0;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.drive-table-container:hover {
    box-shadow: 0 8px 30px rgba(2, 54, 130, 0.06), 0 16px 50px rgba(2, 54, 130, 0.03);
}

.drive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

/* Header Columns */
.drive-table th {
    background: #F8FAFC;
    padding: 20px 24px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8A94A6;
    border-bottom: 2px solid rgba(2, 54, 130, 0.06);
}

.th-name { width: 40%; }
.th-type { width: 14%; }
.th-version { width: 8%; }
.th-modified { width: 14%; }
.th-importance { width: 12%; }
.th-actions { width: 12%; text-align: right; }

.drive-table td.col-actions {
    text-align: right;
}

/* Table Rows */
.drive-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(2, 54, 130, 0.04);
    color: var(--clr-muted, #5B6270);
    font-size: 14px;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.drive-row {
    transition: all 0.2s ease;
}

.drive-row.is-mandatory {
    border-left: none !important;
    background: #ffffff !important;
}

.drive-row:hover {
    background: rgba(64, 206, 243, 0.03) !important;
}

.drive-row.is-mandatory:hover {
    background: rgba(64, 206, 243, 0.03) !important;
}

.drive-table tr:last-child td {
    border-bottom: none;
}

/* Document Title & Icon */
.drive-doc-name-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.drive-doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(29, 208, 235, 0.1);
    color: #129bb0;
    border: 1px solid rgba(29, 208, 235, 0.25);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.drive-doc-icon.obligatorio {
    background: rgba(29, 208, 235, 0.15);
    color: #0a8496;
    border: 1px solid rgba(29, 208, 235, 0.35);
}

.drive-row:hover .drive-doc-icon {
    transform: scale(1.05);
}

.drive-doc-meta-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drive-doc-title {
    font-size: 15px;
    font-weight: 700;
    color: #023682;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.drive-doc-title:hover {
    color: #0a9ebb;
}

.drive-doc-subtitle {
    font-size: 11px;
    color: #9BA3AF;
    font-weight: 500;
    display: none; /* Only visible on mobile/cards */
}

/* Custom styled badge text */
.drive-type-text {
    font-weight: 600;
    color: #4A5568;
}

.drive-version-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #EDF2F7;
    font-size: 12px;
    font-weight: 700;
    color: #4A5568;
}

.drive-date-text {
    color: #718096;
    font-weight: 500;
}

/* Badges */
.drive-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drive-badge.obligatorio {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
}

.drive-badge.general {
    background: rgba(2, 54, 130, 0.06);
    color: #023682;
    border: 1px solid rgba(2, 54, 130, 0.06);
}

/* Actions */
.drive-btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #023682;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(2, 54, 130, 0.15);
    white-space: nowrap;
}

.drive-btn-download:hover {
    background: #40CEF3;
    color: #023682;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(64, 206, 243, 0.3);
}

.drive-btn-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #EDF2F7;
    color: #A0AEC0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: not-allowed;
    white-space: nowrap;
}

/* Responsive Table: Converts into premium Cards for Mobile */
@media (max-width: 768px) {
    .drive-table-container {
        background: transparent;
        border: none;
        box-shadow: none;
        margin: 20px auto;
    }
    
    .drive-table-container:hover {
        box-shadow: none;
    }

    .drive-table thead {
        display: none;
    }
    
    .drive-table, 
    .drive-table tbody, 
    .drive-table tr, 
    .drive-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .drive-table tr {
        background: #ffffff;
        border: 1px solid rgba(2, 54, 130, 0.06);
        border-radius: 16px;
        padding: 20px;
        margin-bottom: 16px;
        box-shadow: 0 4px 12px rgba(2, 54, 130, 0.02);
    }
    
    .drive-table tr:hover {
        background: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(2, 54, 130, 0.05);
    }
    
    .drive-table tr:last-child {
        margin-bottom: 0;
    }
    
    .drive-table td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }
    
    /* Document header inside the mobile card */
    .drive-table td.col-name {
        display: flex;
        justify-content: flex-start;
        padding-bottom: 14px;
        border-bottom: 1px solid rgba(2, 54, 130, 0.05);
        margin-bottom: 8px;
    }
    
    .drive-doc-subtitle {
        display: inline-block;
    }
    
    /* Labels on the left, values on the right */
    .drive-table td::before {
        content: attr(data-label);
        font-weight: 800;
        text-transform: uppercase;
        font-size: 11px;
        color: #A0AEC0;
        letter-spacing: 0.5px;
    }
    
    .drive-table td.col-name::before,
    .drive-table td.col-actions::before {
        display: none;
    }
    
    /* Clean up spacing of values on mobile */
    .drive-table td.col-type,
    .drive-table td.col-version,
    .drive-table td.col-modified,
    .drive-table td.col-importance {
        padding: 6px 0;
    }

    /* Actions line at the bottom of the card */
    .drive-table td.col-actions {
        margin-top: 14px;
        border-top: 1px solid rgba(2, 54, 130, 0.05);
        padding-top: 14px;
        justify-content: flex-end;
    }
}