/* ============================================================
   OFPIC — Eventos Listing v2 (Premium Light Theme)
   Extracted from eventosmultiples_new.phtml inline <style>
   and adapted to the premium design language (ofpic-tokens.css).
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.eventos-page {
    min-height: 100vh;
    background: var(--color-bg, #ffffff);
}

/* ── Hero Section ─────────────────────────────────────────── */
.eventos-hero {
    padding: 120px 0 70px;
    background: var(--color-bg, #ffffff);
    position: relative;
    overflow: hidden;
}

.eventos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, var(--accent-warm-light, rgba(184,154,91,0.06)) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,0,0,0.02) 0%, transparent 50%);
    pointer-events: none;
}

.eventos-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.eventos-hero-content {
    text-align: center;
}

.eventos-hero h1 {
    font-family: var(--font-editorial, 'Playfair Display', Georgia, serif);
    font-size: var(--text-4xl, 3rem);
    font-weight: 600;
    color: var(--color-text, #1a1a1a);
    margin: 0 0 16px 0;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.eventos-hero h1 .highlight {
    color: var(--accent-warm, #B89A5B);
    -webkit-text-fill-color: var(--accent-warm, #B89A5B);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    position: relative;
    font-style: italic;
}

.eventos-hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-warm, #B89A5B);
    opacity: 0.5;
}

.eventos-hero p {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: var(--text-lg, 1.125rem);
    color: var(--color-text-muted, #6B6B6B);
    margin: 0 auto 30px;
    max-width: 540px;
    line-height: 1.6;
}

/* ── Tab Navigation ───────────────────────────────────────── */
.eventos-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.tab-btn {
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    padding: 12px 28px;
    border-radius: var(--radius-pill, 999px);
    font-weight: 600;
    font-size: var(--text-sm, 0.875rem);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid transparent;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tab-btn.active {
    background: var(--color-text, #1a1a1a);
    color: #ffffff;
    border-color: var(--color-text, #1a1a1a);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.tab-btn:not(.active) {
    background: var(--color-bg, #ffffff);
    color: var(--color-text-muted, #6B6B6B);
    border-color: var(--color-border, #E5E5E5);
}

.tab-btn:not(.active):hover {
    background: var(--color-surface-soft, #FAFAFA);
    color: var(--color-text, #1a1a1a);
    border-color: var(--color-text, #1a1a1a);
    text-decoration: none;
}

.tab-btn i {
    font-size: 13px;
}

/* ── Section Blocks ───────────────────────────────────────── */
.eventos-section-block {
    padding: 60px 0;
    background: var(--color-bg, #ffffff);
}

.eventos-section-block.alt-bg {
    background: var(--color-surface-soft, #FAFAFA);
}

.eventos-section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Section Title (icon + heading + badge) ───────────────── */
.section-title-modern {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.section-title-modern .icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.section-title-modern .icon-circle.deportivo {
    background: var(--color-text, #1a1a1a);
    color: #ffffff;
}

.section-title-modern .icon-circle.social {
    background: var(--accent-warm, #B89A5B);
    color: #ffffff;
}

.section-title-modern h2 {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: var(--text-2xl, 1.75rem);
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    margin: 0;
    letter-spacing: -0.01em;
}

.section-title-modern .count-badge {
    background: var(--color-surface-soft, #FAFAFA);
    color: var(--color-text-muted, #6B6B6B);
    padding: 6px 14px;
    border-radius: var(--radius-pill, 999px);
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: var(--text-xs, 0.8rem);
    font-weight: 600;
    border: 1px solid var(--color-border, #E5E5E5);
    letter-spacing: 0.02em;
}

/* ── Bento Grid ───────────────────────────────────────────── */
.eventos-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 200px);
    gap: 10px;
}

/* Asymmetric bento layout pattern */
.eventos-bento-grid > a:nth-child(1)  { grid-column: 1 / 3; grid-row: 1 / 3; }
.eventos-bento-grid > a:nth-child(2)  { grid-column: 3 / 4; grid-row: 1 / 2; }
.eventos-bento-grid > a:nth-child(3)  { grid-column: 4 / 5; grid-row: 1 / 3; }
.eventos-bento-grid > a:nth-child(4)  { grid-column: 3 / 4; grid-row: 2 / 3; }
.eventos-bento-grid > a:nth-child(5)  { grid-column: 1 / 2; grid-row: 3 / 4; }
.eventos-bento-grid > a:nth-child(6)  { grid-column: 2 / 4; grid-row: 3 / 4; }
.eventos-bento-grid > a:nth-child(7)  { grid-column: 4 / 5; grid-row: 3 / 4; }
.eventos-bento-grid > a:nth-child(8)  { grid-column: 1 / 2; grid-row: 4 / 5; }
.eventos-bento-grid > a:nth-child(9)  { grid-column: 2 / 3; grid-row: 4 / 5; }
.eventos-bento-grid > a:nth-child(10) { grid-column: 3 / 5; grid-row: 4 / 5; }

/* ── Event Card ───────────────────────────────────────────── */
.evento-card {
    position: relative;
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.08));
    transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.evento-card:hover {
    box-shadow: var(--shadow-md, 0 8px 24px rgba(0,0,0,0.1));
}

.evento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        transparent 35%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: all 0.4s ease;
}

.evento-card:hover::before {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.evento-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.evento-card:hover img {
    transform: scale(1.04);
}

/* ── Badges ───────────────────────────────────────────────── */
.evento-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
}

.evento-badges-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-fotos {
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: var(--radius-pill, 999px);
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
}

.badge-locked {
    background: rgba(26, 26, 26, 0.8);
    color: #ffffff;
    padding: 5px 9px;
    border-radius: var(--radius-pill, 999px);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Card Content ─────────────────────────────────────────── */
.evento-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
    z-index: 5;
}

.evento-card-content h3 {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 6px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured cards (first + 3rd in grid) get bigger titles */
.eventos-bento-grid > a:nth-child(1) .evento-card-content h3,
.eventos-bento-grid > a:nth-child(3) .evento-card-content h3 {
    font-size: 18px;
}

.evento-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.evento-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.evento-card-meta i {
    color: var(--accent-warm, #B89A5B);
    font-size: 11px;
}

/* ── Pagination ───────────────────────────────────────────── */
.eventos-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.eventos-pagination a,
.eventos-pagination span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 8px);
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
}

.eventos-pagination a {
    background: var(--color-bg, #ffffff);
    color: var(--color-text-muted, #6B6B6B);
    border: 1px solid var(--color-border, #E5E5E5);
}

.eventos-pagination a:hover {
    background: var(--color-surface-soft, #FAFAFA);
    color: var(--color-text, #1a1a1a);
    border-color: var(--color-text, #1a1a1a);
    text-decoration: none;
}

.eventos-pagination .active,
.eventos-pagination span.current {
    background: var(--color-text, #1a1a1a);
    color: #ffffff;
    border: none;
}

/* ── Empty State ──────────────────────────────────────────── */
.no-eventos-card {
    grid-column: 1 / -1;
    background: var(--color-bg, #ffffff);
    border-radius: var(--radius-lg, 8px);
    padding: 60px 30px;
    text-align: center;
    border: 1px solid var(--color-border, #E5E5E5);
}

.no-eventos-card .icon-wrapper {
    width: 72px;
    height: 72px;
    background: var(--accent-warm-light, rgba(184,154,91,0.12));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.no-eventos-card .icon-wrapper i {
    font-size: 28px;
    color: var(--accent-warm, #B89A5B);
}

.no-eventos-card h3 {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: var(--text-lg, 1.125rem);
    font-weight: 700;
    color: var(--color-text, #1a1a1a);
    margin: 0 0 6px 0;
}

.no-eventos-card p {
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: var(--text-sm, 0.875rem);
    color: var(--color-text-muted, #6B6B6B);
    margin: 0;
}

/* ── Interstitial Banner ──────────────────────────────────── */
.eventos-banner {
    padding: 24px 0;
    background: var(--color-surface-soft, #FAFAFA);
}

.eventos-banner img {
    max-width: 100%;
    border-radius: var(--radius-lg, 8px);
    display: block;
    margin: 0 auto;
}

/* ── Bottom Banners (category pages) ─────────────────────── */
.eventos-banner-bottom {
    padding: 32px 0 48px;
    background: var(--color-bg, #ffffff);
}

.eventos-banner-bottom .row {
    display: flex;
    gap: 16px;
}

.eventos-banner-bottom .col-sm-6 {
    flex: 1;
}

.eventos-banner-img {
    max-width: 100%;
    border-radius: var(--radius-lg, 8px);
    display: block;
}

@media (max-width: 768px) {
    .eventos-banner-bottom .row {
        flex-direction: column;
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .eventos-bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 180px);
    }

    .eventos-bento-grid > a:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 3; }
    .eventos-bento-grid > a:nth-child(2) { grid-column: 3 / 4; grid-row: 1 / 2; }
    .eventos-bento-grid > a:nth-child(3) { grid-column: 3 / 4; grid-row: 2 / 3; }
    .eventos-bento-grid > a:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
    .eventos-bento-grid > a:nth-child(5) { grid-column: 2 / 4; grid-row: 3 / 4; }
    .eventos-bento-grid > a:nth-child(6) { grid-column: 1 / 3; grid-row: 4 / 5; }
    .eventos-bento-grid > a:nth-child(7) { grid-column: 3 / 4; grid-row: 4 / 5; }
    .eventos-bento-grid > a:nth-child(8) { grid-column: 1 / 2; grid-row: 5 / 6; }
    .eventos-bento-grid > a:nth-child(9) { grid-column: 2 / 3; grid-row: 5 / 6; }
    .eventos-bento-grid > a:nth-child(10) { grid-column: 3 / 4; grid-row: 5 / 6; }
}

@media (max-width: 992px) {
    .eventos-hero h1 {
        font-size: var(--text-3xl, 2.2rem);
    }

    .eventos-tabs {
        flex-wrap: wrap;
    }

    .section-title-modern h2 {
        font-size: var(--text-xl, 1.4rem);
    }
}

@media (max-width: 768px) {
    .eventos-hero {
        padding: 90px 0 50px;
    }

    .eventos-hero h1 {
        font-size: var(--text-2xl, 1.75rem);
    }

    .eventos-hero p {
        font-size: var(--text-base, 1rem);
    }

    .eventos-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(7, 160px);
        gap: 8px;
    }

    .eventos-bento-grid > a:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
    .eventos-bento-grid > a:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .eventos-bento-grid > a:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 4; }
    .eventos-bento-grid > a:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
    .eventos-bento-grid > a:nth-child(5) { grid-column: 1 / 3; grid-row: 4 / 5; }
    .eventos-bento-grid > a:nth-child(6) { grid-column: 1 / 2; grid-row: 5 / 6; }
    .eventos-bento-grid > a:nth-child(7) { grid-column: 2 / 3; grid-row: 5 / 6; }
    .eventos-bento-grid > a:nth-child(8) { grid-column: 1 / 2; grid-row: 6 / 7; }
    .eventos-bento-grid > a:nth-child(9) { grid-column: 2 / 3; grid-row: 6 / 7; }
    .eventos-bento-grid > a:nth-child(10) { grid-column: 1 / 3; grid-row: 7 / 8; }

    .evento-card-content {
        padding: 12px;
    }

    .evento-card-content h3 {
        font-size: 13px !important;
    }

    .evento-card-meta {
        display: none;
    }

    .section-title-modern {
        flex-wrap: wrap;
    }

    .section-title-modern .icon-circle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .eventos-bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .eventos-bento-grid > a:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .eventos-hero {
        padding: 80px 0 40px;
    }
}
