/* Minification failed. Returning unminified contents.
(400,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(401,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(411,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(425,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(442,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(454,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange-deep'
(480,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(511,22): run-time error CSS1039: Token not allowed after unary operator: '-fatri-ice'
(532,24): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
(536,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-orange'
(541,17): run-time error CSS1039: Token not allowed after unary operator: '-fatri-navy'
 */
/* ============================================================
   Eventos Listing Page
   ============================================================ */

.eventos-listado-subtitle {
    color: #6b7280;
    font-size: 1em;
    margin: -0.3em 0 1.5em 0;
    font-family: 'DM Sans', sans-serif;
}

/* ── Filters ── */

.eventos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
    margin-bottom: 1.2em;
}

.eventos-search-form {
    flex: 1;
    min-width: 200px;
}

.eventos-search-box {
    display: flex;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #fff;
}

.eventos-search-box:focus-within {
    border-color: #ff4500;
}

.eventos-search-input {
    flex: 1;
    border: none;
    padding: 0.7em 1em;
    font-size: 0.95em;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    background: transparent;
    min-width: 0;
}

.eventos-search-btn {
    border: none;
    background: none;
    padding: 0.7em 1em;
    cursor: pointer;
    font-size: 1em;
    color: #6b7280;
    transition: color 0.2s;
}

.eventos-search-btn:hover {
    color: #ff4500;
}

/* Time tabs */
.eventos-time-tabs {
    display: flex;
    gap: 0;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.eventos-tab {
    padding: 0.65em 1.2em;
    font-size: 0.88em;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: #fff;
    border-right: 1px solid #d1d5db;
    transition: background 0.2s, color 0.2s;
}

.eventos-tab:last-child {
    border-right: none;
}

.eventos-tab:hover {
    background: #f9fafb;
    text-decoration: none;
    color: #ff4500;
}

.eventos-tab--active {
    background: #0b1d3a;
    color: #fff;
}

.eventos-tab--active:hover {
    background: #0b1d3a;
    color: #fff;
}

/* Active search indicator */
.eventos-active-search {
    font-size: 0.9em;
    color: #374151;
    margin-bottom: 1em;
    padding: 0.5em 1em;
    background: #fef3c7;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: 'DM Sans', sans-serif;
}

.eventos-clear-search {
    font-size: 1.3em;
    color: #92400e;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
}

.eventos-clear-search:hover {
    color: #ff4500;
    text-decoration: none;
}

/* Results count */
.eventos-count {
    font-size: 0.82em;
    color: #9ca3af;
    margin-bottom: 1em;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

/* ── Grid ── */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2em;
}

/* ── Item Card ── */

.evento-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.evento-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.evento-item--past {
    opacity: 0.7;
}

.evento-item--past:hover {
    opacity: 1;
}

/* Image area */
.evento-item__image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f0f4f8;
    overflow: hidden;
}

.evento-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.evento-item:hover .evento-item__image img {
    transform: scale(1.04);
}

.evento-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #f0f4f8 100%);
    font-size: 2.5em;
    color: #c4cad3;
}

/* Badges */
.evento-item__badge {
    position: absolute;
    top: 0.7em;
    right: 0.7em;
    font-size: 0.72em;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    padding: 0.25em 0.7em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.evento-item__badge--past {
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.evento-item__badge--today {
    background: #ff4500;
    color: #fff;
}

.evento-item__badge--soon {
    background: #f59e0b;
    color: #fff;
}

.evento-item__badge--suspended {
    background: #dc2626;
    color: #fff;
    top: auto;
    bottom: 0.7em;
}

/* Body */
.evento-item__body {
    display: flex;
    gap: 0.9em;
    padding: 1em 1.1em;
}

/* Date column */
.evento-item__date {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0b1d3a;
    color: #fff;
    border-radius: 8px;
    padding: 0.4em 0.2em;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    align-self: flex-start;
}

.evento-item__day {
    font-size: 1.35em;
    font-weight: 800;
}

.evento-item__month {
    font-size: 0.62em;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.85;
    margin-top: 2px;
}

.evento-item__year {
    font-size: 0.58em;
    opacity: 0.65;
    margin-top: 1px;
}

/* Info column */
.evento-item__info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    min-width: 0;
}

.evento-item__title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95em;
    color: #0b1d3a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-item:hover .evento-item__title {
    color: #ff4500;
}

.evento-item__location {
    font-size: 0.82em;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
}

.evento-item__fulldate {
    font-size: 0.78em;
    color: #9ca3af;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

/* ── Empty state ── */

.eventos-empty {
    text-align: center;
    padding: 3em 1em;
    color: #6b7280;
    font-family: 'DM Sans', sans-serif;
}

.eventos-empty-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 0.3em;
    opacity: 0.4;
}

.eventos-empty p {
    font-size: 1.05em;
    margin: 0 0 0.8em 0;
}

.eventos-empty-link {
    color: #ff4500;
    font-weight: 600;
    text-decoration: none;
}

.eventos-empty-link:hover {
    text-decoration: underline;
}

/* ── Responsive ── */

@media (max-width: 700px) {
    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .eventos-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .eventos-time-tabs {
        justify-content: stretch;
    }

    .eventos-tab {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   Calendar Navigation
   ============================================ */

#calendarNav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 1.5em;
    position: relative;
}

.cal-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 4px;
    background: var(--fatri-ice, #f0f4f8);
    color: var(--fatri-navy, #0b1d3a);
    font-size: 1.6em;
    font-weight: 300;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
    user-select: none;
}

.cal-nav-arrow:hover {
    background: var(--fatri-navy, #0b1d3a);
    color: #fff;
    text-decoration: none;
}

.cal-nav-title {
    min-width: 220px;
    text-align: center;
}

.cal-nav-month {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6em;
    font-weight: 800;
    color: var(--fatri-navy, #0b1d3a);
    text-transform: capitalize;
}

.cal-nav-year {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    color: #aaa;
    margin-left: 0.3em;
}

.cal-nav-today {
    position: absolute;
    right: 0;
    padding: 0.4em 1em;
    border-radius: 3px;
    background: var(--fatri-orange, #ff4500);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75em;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s, transform 0.15s;
}

.cal-nav-today:hover {
    background: var(--fatri-orange-deep, #cc3700);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================
   Calendar Grid
   ============================================ */

.tbCalendar {
    width: 100%;
    border-collapse: separate;
    border-spacing: 3px;
    table-layout: fixed;
}

/* Header */
.tbCalendar thead th {
    padding: 0.6em 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--fatri-navy, #0b1d3a);
    text-align: center;
    border: none;
    border-radius: 3px;
}

.tbCalendar thead th.weekend {
    background: #132847;
    color: #f5c6a0;
}

/* Day cells */
.tbCalendar td {
    vertical-align: top;
    padding: 0.4em;
    min-height: 80px;
    height: 80px;
    border-radius: 4px;
    background: #fafbfc;
    border: 1px solid #e0e4ea;
    transition: background 0.15s, border-color 0.15s;
}

.tbCalendar td.cal-empty {
    background: transparent;
    border-color: transparent;
    min-height: 0;
    height: auto;
}

.tbCalendar td.cal-day:hover {
    background: var(--fatri-ice, #f0f4f8);
    border-color: #c0c8d4;
}

/* Day number */
.cal-day-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8em;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.3em;
    line-height: 1;
}

.cal-weekend .cal-day-number {
    color: #c97a4a;
}

.cal-today {
    background: rgba(11, 29, 58, 0.08) !important;
    border-color: var(--fatri-navy, #0b1d3a) !important;
}

.cal-today .cal-day-number {
    color: var(--fatri-orange, #ff4500);
    font-weight: 800;
}

.cal-today .cal-event a {
    color: var(--fatri-navy, #0b1d3a) !important;
}

.cal-today .cal-event-location {
    color: rgba(11, 29, 58, 0.6);
}

.cal-today .cal-badge {
    background: rgba(11, 29, 58, 0.1);
    color: rgba(11, 29, 58, 0.7);
}

.cal-past {
    opacity: 0.7;
}

.cal-past:hover {
    opacity: 1;
}

/* ============================================
   Event Chips
   ============================================ */

.cal-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cal-event {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7em;
    line-height: 1.25;
    padding: 3px 5px;
    border-radius: 3px;
    border-left: 3px solid transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: background 0.15s;
}

.cal-event:hover {
    filter: brightness(0.96);
}

.cal-event a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cal-event a:hover {
    text-decoration: underline;
}

/* Location line */
.cal-event-location {
    display: block;
    font-size: 0.85em;
    line-height: 1.2;
    color: #777;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Competition types -- left border color coding */
.cal-type-competicion {
    border-left-color: #00addf;
    background: rgba(0, 173, 223, 0.08);
}

.cal-type-campeonato {
    border-left-color: #b8860b;
    background: rgba(184, 134, 11, 0.08);
}

.cal-type-escolar {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
}

.cal-type-suspendida {
    border-left-color: #ccc;
    background: rgba(0, 0, 0, 0.03);
}

.cal-type-suspendida a {
    text-decoration: line-through;
    color: #aaa;
    font-weight: 400;
}

.cal-type-suspendida .cal-event-location {
    color: #bbb;
}

/* Locked (inscripción no abierta) */
.cal-locked::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 10px;
    margin-left: 3px;
    vertical-align: middle;
    background: currentColor;
    opacity: 0.35;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3-9H9V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM12 17c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3-9H9V6c0-1.66 1.34-3 3-3s3 1.34 3 3v2z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* Competition type badge inside calendar cells */
.cal-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.55em;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.06);
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.cal-type-campeonato .cal-badge {
    background: rgba(184, 134, 11, 0.12);
    color: #8b6914;
}

.cal-type-escolar .cal-badge {
    background: rgba(46, 204, 113, 0.12);
    color: #1a9c52;
}

.cal-type-suspendida .cal-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #aaa;
}

/* ============================================
   Calendar Legend
   ============================================ */

.cal-legend {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
    margin-top: 1.2em;
    margin-bottom: 1.5em;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8em;
    color: #666;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4em;
}

.cal-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border-left: 3px solid transparent;
    flex-shrink: 0;
}

.cal-legend-color.legend-competicion {
    border-left-color: #00addf;
    background: rgba(0, 173, 223, 0.08);
}

.cal-legend-color.legend-campeonato {
    border-left-color: #b8860b;
    background: rgba(184, 134, 11, 0.06);
}

.cal-legend-color.legend-escolar {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    #calendarNav {
        gap: 0.3em;
    }

    .cal-nav-title {
        min-width: 0;
    }

    .cal-nav-month {
        font-size: 1.2em;
    }

    .cal-nav-year {
        font-size: 0.9em;
    }

    .cal-nav-today {
        position: static;
        margin-left: 0.5em;
    }

    .cal-nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.4em;
    }

    .tbCalendar {
        border-spacing: 2px;
    }

    .tbCalendar thead th {
        font-size: 0.65em;
        padding: 0.4em 0;
    }

    .tbCalendar td {
        padding: 0.25em;
        min-height: 60px;
        height: 60px;
    }

    .cal-day-number {
        font-size: 0.7em;
    }

    .cal-event {
        font-size: 0.6em;
        padding: 2px 3px;
        border-left-width: 2px;
    }

    .cal-event-location {
        font-size: 0.8em;
    }

    .cal-badge {
        font-size: 0.5em;
        padding: 1px 2px;
    }

    .cal-legend {
        gap: 0.8em;
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .tbCalendar td {
        min-height: 48px;
        height: 48px;
        padding: 0.2em;
    }

    .cal-event {
        font-size: 0.55em;
    }

    .cal-event-location {
        display: none;
    }

    .cal-locked::after {
        display: none;
    }

    .cal-badge {
        display: none;
    }
}

