/* ==========================================================================
   FETRI 2026 · Calendario (Pages/Calendar.razor, dentro de CalendarContainer: .f26-cal)
   Mismo marcado y la misma lógica; solo cambia el aspecto.
   Calendar sigue montado (oculto) en las fichas de evento, por eso todo va bajo .f26-cal.
   ========================================================================== */

/* ---------- Bloques ---------- */
html.f26c .f26-cal > .section-card,
html.f26c .f26-cal .section-card-sch {
    border: 0 !important;
    border-radius: var(--f26-r) !important;
    background: var(--f26-surface);
    box-shadow: var(--f26-shadow-1);
}
html.f26c .f26-cal > .section-card { margin: 0 0 18px !important; }

/* Bloques con rótulo (destacados, último visitado): el rótulo es la barra negra y el contenido va sobre el fondo */
html.f26c .f26-cal > .section-card:has(> .section-header) {
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
}
html.f26c .f26-cal .section-divider { display: none; }

html.f26c .f26-cal .section-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    min-height: 52px;
    margin: 0 0 14px !important;
    padding: 9px 16px 12px 18px !important;
    border: 0 !important;
    border-radius: var(--f26-r) !important;
    background: var(--f26-ink) !important;
    color: #fff;
}
html.f26c .f26-cal .section-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--f26-tex);
    pointer-events: none;
}
html.f26c .f26-cal .section-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--f26-grad-accent);
}
html.f26c .f26-cal .section-title {
    gap: 10px;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    line-height: 1.15 !important;
}
html.f26c .f26-cal .section-title::before {
    width: 4px !important;
    height: 18px !important;
    background: var(--f26-gold) !important;
}
html.f26c .f26-cal .event-legend { gap: 4px 14px; }
html.f26c .f26-cal .event-legend .legend-item { margin: 0 !important; }
html.f26c .f26-cal .event-legend .legend-item small {
    color: var(--f26-on-ink-mute) !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
}
html.f26c .f26-cal .event-legend .legend-color-box {
    width: 9px !important;
    height: 9px !important;
    margin-right: 6px !important;
    border-radius: 50% !important;
}
html.f26c .f26-cal .event-legend .legend-color-box.bg-success { background: var(--f26-green) !important; }

/* ---------- Carrusel de destacados ---------- */
html.f26c .f26-cal .section-card .rz-carousel {
    height: auto !important;
    padding: 2px 56px 30px !important;
    overflow: hidden;
    background: transparent;
}
html.f26c .f26-cal .section-card .rz-carousel .row {
    --bs-gutter-x: 16px;
    margin: 0 auto !important;
    padding: 6px 0 10px;
    row-gap: 16px;
}
html.f26c .f26-cal .section-card .rz-carousel .row > [class*="col-"] { display: flex; }
html.f26c .f26-cal .section-card .rz-carousel-prev,
html.f26c .f26-cal .section-card .rz-carousel-next {
    width: 40px !important;
    height: 40px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
    box-shadow: var(--f26-shadow-2) !important;
}
html.f26c .f26-cal .section-card .rz-carousel-prev:hover,
html.f26c .f26-cal .section-card .rz-carousel-next:hover { background: var(--f26-ink) !important; color: #fff !important; }
html.f26c .f26-cal .section-card .rz-carousel-prev .rz-button-icon-left,
html.f26c .f26-cal .section-card .rz-carousel-next .rz-button-icon-left { color: inherit !important; font-size: 22px; }
html.f26c .f26-cal .section-card .rz-carousel-pager { gap: 6px; height: 30px !important; }
html.f26c .f26-cal .section-card .rz-carousel-pager-button {
    width: 8px !important;
    height: 8px !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: var(--f26-pill) !important;
    background: var(--f26-mute-2) !important;
    opacity: .5;
    transition: width .2s ease, opacity .2s ease, background-color .2s ease;
}
html.f26c .f26-cal .section-card .rz-carousel-pager-button.rz-state-active {
    width: 22px !important;
    background: var(--f26-red) !important;
    opacity: 1;
}

/* Tarjeta de evento destacado (CardCh compact): banda negra con el nombre y cuerpo blanco */
html.f26c .f26-cal .card-ch-compact {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0 !important;
    border-radius: var(--f26-r) !important;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--f26-shadow-1) !important;
}
html.f26c .f26-cal .card-ch-compact:hover { transform: translateY(-3px); box-shadow: var(--f26-shadow-2) !important; }
html.f26c .f26-cal .card-ch-compact > .card {
    height: 100%;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
}
html.f26c .f26-cal .card-ch-compact .live-badge {
    position: relative;
    isolation: isolate;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    min-height: 72px;
    padding: 14px 16px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--f26-ink) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.28 !important;
}
html.f26c .f26-cal .card-ch-compact .live-badge::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--f26-tex);
    pointer-events: none;
}
html.f26c .f26-cal .card-ch-compact .live-badge::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--f26-grad-accent);
}
html.f26c .f26-cal .card-ch-compact .live-badge span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
html.f26c .f26-cal .card-ch-compact .live-badge i {
    flex: none;
    width: 28px !important;
    height: 28px !important;
    margin-top: -2px !important;
    border-radius: 8px !important;
    background: var(--f26-red) !important;
    color: #fff !important;
    font-size: 12px !important;
    box-shadow: none !important;
}
html.f26c .f26-cal .card-ch-compact .live-badge.text-bg-success i { background: var(--f26-green) !important; }
html.f26c .f26-cal .card-ch-compact .live-badge.text-bg-warning i { background: var(--f26-gold) !important; color: var(--f26-ink) !important; }
html.f26c .f26-cal .card-ch-compact .card-body { padding: 14px 16px 16px !important; }
html.f26c .f26-cal .card-ch-compact .container-events { align-items: flex-end; gap: 12px; }
html.f26c .f26-cal .card-ch-compact .event-info { min-width: 0; }
html.f26c .f26-cal .card-ch-compact .event-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px !important;
    color: var(--f26-text-2);
    font-size: 13px;
    font-weight: 600;
}
html.f26c .f26-cal .card-ch-compact .event-info p i { width: 14px; color: var(--f26-red) !important; text-align: center; }
html.f26c .f26-cal .card-ch-compact .event-info > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
}
html.f26c .f26-cal .card-ch-compact .event-info > div > * { margin: 0 !important; }
html.f26c .f26-cal .card-ch-compact .badge.bg-secondary {
    height: 22px;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: var(--f26-r-xs) !important;
    background: var(--f26-gold) !important;
    color: var(--f26-ink) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .06em;
}
html.f26c .f26-cal .card-ch-compact .event-info-fetri { flex: none; }
html.f26c .f26-cal .card-ch-compact .event-info-fetri .cal-band {
    width: 54px !important;
    height: 36px !important;
    object-fit: cover;
    border: 1px solid var(--f26-line) !important;
    border-radius: 6px !important;
}
html.f26c .f26-cal .card-ch-compact .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    line-height: 1;
    white-space: nowrap;
    padding: 0 16px !important;
    border-radius: var(--f26-pill) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .04em;
}
html.f26c .f26-cal .card-ch-compact .btn-primary:hover {
    background: var(--f26-red-dk) !important;
    border-color: var(--f26-red-dk) !important;
    color: #fff !important;
}

/* ---------- Barra de búsqueda, año y vistas ---------- */
html.f26c .f26-cal > section.section-card:not(:has(> .section-header)) { padding: 14px 16px !important; }
html.f26c .f26-cal .searchOne {
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}
html.f26c .f26-cal .searchOne .input-group {
    min-height: 44px;
    padding: 0 6px 0 4px !important;
    border: 1px solid transparent !important;
    border-radius: var(--f26-pill) !important;
    background: var(--f26-tint) !important;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
html.f26c .f26-cal .searchOne .input-group:hover { background: var(--f26-tint-2) !important; }
html.f26c .f26-cal .searchOne .input-group:focus-within {
    border-color: var(--f26-gold) !important;
    background: #fff !important;
    box-shadow: var(--f26-focus) !important;
}
html.f26c .f26-cal .searchOne .input-group-text {
    background: transparent !important;
    padding: 0 4px 0 12px !important;
}
html.f26c .f26-cal .searchOne .input-group-text img { width: 16px; height: 16px; opacity: .55; }
html.f26c .f26-cal .searchOne .search-input {
    padding: 10px 8px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--f26-ink);
    font-size: 14px;
    font-weight: 500;
}
html.f26c .f26-cal .searchOne .search-input::placeholder { color: var(--f26-mute); }

/* Selector de año: cápsula con el año activo en negro */
html.f26c .f26-cal .year-selector {
    flex: none;
    gap: 2px !important;
    margin: 0 !important;
    padding: 3px;
    border-radius: var(--f26-pill);
    background: var(--f26-tint);
}
html.f26c .f26-cal .year-selector .btn-year {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: var(--f26-pill) !important;
    background: transparent !important;
    color: var(--f26-mute) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-cal .year-selector .btn-year i { font-size: 10px; }
html.f26c .f26-cal .year-selector .btn-year:hover { background: #fff !important; color: var(--f26-ink) !important; }
html.f26c .f26-cal .year-selector .input-group-text {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    line-height: 1 !important;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: var(--f26-pill) !important;
    background: var(--f26-ink) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
}

/* Botones de vista y agrupación: control segmentado; la opción activa en negro */
html.f26c .f26-cal .searchOne .btn-group {
    flex: none;
    gap: 2px;
    padding: 3px;
    overflow: visible !important;
    border-radius: var(--f26-pill) !important;
    background: var(--f26-tint);
}
html.f26c .f26-cal .searchOne .btn-group .btn {
    display: inline-flex;
    flex: 0 0 auto !important;
    width: auto !important;
    gap: 6px;
    white-space: nowrap;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 34px;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: var(--f26-pill) !important;
    background: transparent !important;
    color: var(--f26-text-2) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}
html.f26c .f26-cal .searchOne .btn-group .btn .ms-1 { margin-left: 0 !important; }
html.f26c .f26-cal .searchOne .btn-group .btn:hover { background: #fff !important; color: var(--f26-ink) !important; }
html.f26c .f26-cal .searchOne .btn-group .btn.btn-primary {
    background: var(--f26-ink) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(28, 28, 34, .22) !important;
}
html.f26c .f26-cal .searchOne .btn-group .btn.btn-outline-danger { color: var(--f26-red) !important; }

/* Cercanos, filtros y quitar filtros (sueltos en escritorio) */
html.f26c .f26-cal .searchOne .btn-outline-primary,
html.f26c .f26-cal .searchOne .btn-outline-secondary,
html.f26c .f26-cal .searchOne .btn-outline-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-height: 40px;
    padding: 0 !important;
    border: 1px solid var(--f26-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
    font-size: 14px !important;
}
html.f26c .f26-cal .searchOne .btn-outline-primary:hover,
html.f26c .f26-cal .searchOne .btn-outline-secondary:hover {
    border-color: var(--f26-ink) !important;
    background: var(--f26-ink) !important;
    color: #fff !important;
}
html.f26c .f26-cal .searchOne .btn-outline-danger {
    border-color: var(--f26-red) !important;
    color: var(--f26-red) !important;
}
html.f26c .f26-cal .searchOne .btn-outline-danger:hover { background: var(--f26-red) !important; color: #fff !important; }

/* Filtros activos */
html.f26c .f26-cal .active-filters {
    margin-top: 12px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background: var(--f26-tint) !important;
}
html.f26c .f26-cal .active-filters small { gap: 6px; color: var(--f26-text-2); }
html.f26c .f26-cal .active-filters strong {
    color: var(--f26-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
html.f26c .f26-cal .active-filters .badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 0 !important;
    padding: 0 10px !important;
    border-radius: var(--f26-pill) !important;
    background: var(--f26-ink) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    white-space: normal;
    text-align: left;
}

/* ---------- Meses ---------- */
html.f26c .f26-cal .section-card-sch { overflow: hidden; }
html.f26c .f26-cal .section-card-sch .nav {
    padding: 14px 14px !important;
    border-bottom: 1px solid var(--f26-line) !important;
    scrollbar-width: none;
}
html.f26c .f26-cal .section-card-sch .nav::-webkit-scrollbar { display: none; }
html.f26c .f26-cal .f26-strip-host { position: relative; }
html.f26c .f26-cal .section-card-sch .nav ul li { margin: 0 3px; }
html.f26c .f26-cal .section-card-sch .nav ul li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 7px 0 14px !important;
    border: 1px solid var(--f26-line) !important;
    border-radius: var(--f26-pill) !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    cursor: pointer;
}
html.f26c .f26-cal .section-card-sch .nav ul li a:hover {
    border-color: var(--f26-ink) !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
}
html.f26c .f26-cal .section-card-sch .nav ul li a .date span {
    min-width: 24px !important;
    height: 24px !important;
    margin-left: 8px !important;
    padding: 0 6px !important;
    border-radius: var(--f26-pill) !important;
    background: var(--f26-tint) !important;
    color: var(--f26-text-2) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-cal .section-card-sch .nav ul li a:hover .date span {
    background: var(--f26-tint) !important;
    color: var(--f26-text-2) !important;
}
html.f26c .f26-cal .section-card-sch .nav ul li a.activeOne {
    border-color: var(--f26-red) !important;
    background: var(--f26-red) var(--f26-tex) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(207, 18, 47, .28) !important;
}
html.f26c .f26-cal .section-card-sch .nav ul li a.activeOne .date span {
    background: rgba(255, 255, 255, .22) !important;
    color: #fff !important;
}

/* Resultado de búsqueda */
html.f26c .f26-cal .section-card-sch > .p-2.text-center {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    padding: 14px 16px !important;
    border-bottom: 1px solid var(--f26-line);
}
html.f26c .f26-cal .section-card-sch > .p-2.text-center small { color: var(--f26-text-2); font-size: 13px; }
html.f26c .f26-cal .section-card-sch > .p-2.text-center strong { color: var(--f26-ink); }
html.f26c .f26-cal .section-card-sch > .p-2.text-center .btn {
    min-height: 34px;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--f26-line) !important;
    border-radius: var(--f26-pill) !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
    font-size: 12px !important;
}

/* ---------- Filas de eventos ---------- */
html.f26c .f26-cal .section-card-sch .calendar + .calendar { border-top: 1px solid var(--f26-tint-2) !important; }
html.f26c .f26-cal .calendar .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
}
html.f26c .f26-cal .calendar .card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
/* El color por etiquetas (verde, azul, World Triathlon...) llega en línea: se mantiene el fondo y se igualan márgenes */
html.f26c .f26-cal .calendar .card-header,
html.f26c .f26-cal .last-event-visited {
    position: relative;
    gap: 0;
    min-height: 88px;
    margin: 0 !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    transition: background-color .15s ease;
}
html.f26c .f26-cal .calendar .card-header:not([style]) { background: transparent; }
html.f26c .f26-cal .calendar .card-header:hover { filter: none; }
html.f26c .f26-cal .calendar .card-header:not([style]):hover { background-color: #FAFAFC !important; }
html.f26c .f26-cal .section-card-sch .calendar .card-header::before {
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: var(--f26-red);
    transform: scaleY(.5);
}

/* Fecha: ficha negra con el día en blanco y el mes en dorado */
html.f26c .f26-cal .calendar .card-header .fecha,
html.f26c .f26-cal .last-event-visited .fecha,
html.f26c .f26-cal .location-group-card .fecha {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 60px;
    margin: 0 16px 0 0 !important;
    padding: 0 2px !important;
    border: 0 !important;
    border-radius: 12px;
    background: var(--f26-ink);
    color: var(--f26-gold) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: .12em !important;
    line-height: 1 !important;
    text-transform: uppercase;
    transition: background-color .15s ease;
}
html.f26c .f26-cal .calendar .card-header .fecha::before,
html.f26c .f26-cal .last-event-visited .fecha::before,
html.f26c .f26-cal .location-group-card .fecha::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--f26-tex);
    background-size: 160px auto;
    pointer-events: none;
}
html.f26c .f26-cal .calendar .card-header .fecha span,
html.f26c .f26-cal .last-event-visited .fecha span,
html.f26c .f26-cal .location-group-card .fecha span {
    margin: 0 0 5px !important;
    color: #fff !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: -.01em !important;
    white-space: nowrap;
}
html.f26c .f26-cal .calendar .card-header .fecha span:has(.fecha-sep),
html.f26c .f26-cal .last-event-visited .fecha span:has(.fecha-sep),
html.f26c .f26-cal .location-group-card .fecha span:has(.fecha-sep) { font-size: 14px !important; letter-spacing: -.03em !important; }
/* El «/» de las pruebas de dos días: antes heredaba los 22 px del día (regla .fecha span) y llenaba la ficha */
html.f26c .f26-cal .fecha span .fecha-sep,
html.f26c .f26-cal .calendar .card-header .fecha span .fecha-sep,
html.f26c .f26-cal .last-event-visited .fecha span .fecha-sep,
html.f26c .f26-cal .location-group-card .fecha span .fecha-sep {
    font-size: inherit !important;
    margin: 0 1px !important;
    color: var(--f26-on-ink-mute) !important;
    font-weight: 600 !important;
}
html.f26c .f26-cal .calendar .card-header:hover .fecha,
html.f26c .f26-cal .last-event-visited:hover .fecha { background: var(--f26-red); }
html.f26c .f26-cal .calendar .card-header:hover .fecha,
html.f26c .f26-cal .last-event-visited:hover .fecha { color: #fff !important; }
html.f26c .f26-cal .section-card-sch .calendar .card-header:hover .fecha span { color: #fff !important; }
/* Dos fechas (MAP, 24-11): la ficha crece a lo ancho para que los días se lean a buen tamaño; si cambia de mes, más
   ancha y con los dos meses («AGO/SEP»). Mismo alto que la de un día para que las filas no salten. */
html.f26c .f26-cal .calendar .card-header .fecha.fecha--2,
html.f26c .f26-cal .last-event-visited .fecha.fecha--2,
html.f26c .f26-cal .location-group-card .fecha.fecha--2,
html.f26c .f26-cal .calendar .card-header .fecha.fecha--2m,
html.f26c .f26-cal .last-event-visited .fecha.fecha--2m,
html.f26c .f26-cal .location-group-card .fecha.fecha--2m { --fd-w: 76px; flex: 0 0 var(--fd-w) !important; width: var(--fd-w) !important; min-width: var(--fd-w) !important; max-width: var(--fd-w) !important; }
html.f26c .f26-cal .calendar .card-header .fecha.fecha--2m,
html.f26c .f26-cal .last-event-visited .fecha.fecha--2m,
html.f26c .f26-cal .location-group-card .fecha.fecha--2m { --fd-w: 88px; }
html.f26c .f26-cal .calendar .card-header .fecha.fecha--2 span:has(.fecha-sep),
html.f26c .f26-cal .last-event-visited .fecha.fecha--2 span:has(.fecha-sep),
html.f26c .f26-cal .location-group-card .fecha.fecha--2 span:has(.fecha-sep),
html.f26c .f26-cal .calendar .card-header .fecha.fecha--2m span:has(.fecha-sep),
html.f26c .f26-cal .last-event-visited .fecha.fecha--2m span:has(.fecha-sep),
html.f26c .f26-cal .location-group-card .fecha.fecha--2m span:has(.fecha-sep) { font-size: 20px !important; letter-spacing: -.02em !important; }
html.f26c .f26-cal .fecha .fecha-ms { font: inherit; color: inherit; white-space: nowrap; letter-spacing: .06em; }
html.f26c .f26-cal .fecha .fecha-ms .fecha-sep { margin: 0 2px; font-style: normal; color: var(--f26-on-ink-mute); }
@media (max-width: 575.98px) {
    html.f26c .f26-cal .calendar .card-header .fecha.fecha--2,
html.f26c .f26-cal .last-event-visited .fecha.fecha--2,
html.f26c .f26-cal .location-group-card .fecha.fecha--2 { --fd-w: 62px; }
    html.f26c .f26-cal .calendar .card-header .fecha.fecha--2m,
html.f26c .f26-cal .last-event-visited .fecha.fecha--2m,
html.f26c .f26-cal .location-group-card .fecha.fecha--2m { --fd-w: 72px; }
    html.f26c .f26-cal .calendar .card-header .fecha.fecha--2 span:has(.fecha-sep),
    html.f26c .f26-cal .last-event-visited .fecha.fecha--2 span:has(.fecha-sep),
    html.f26c .f26-cal .location-group-card .fecha.fecha--2 span:has(.fecha-sep),
    html.f26c .f26-cal .calendar .card-header .fecha.fecha--2m span:has(.fecha-sep),
    html.f26c .f26-cal .last-event-visited .fecha.fecha--2m span:has(.fecha-sep),
    html.f26c .f26-cal .location-group-card .fecha.fecha--2m span:has(.fecha-sep) { font-size: 17px !important; }
    html.f26c .f26-cal .fecha .fecha-ms { letter-spacing: .02em; }
}

/* Nombre */
html.f26c .f26-cal .calendar .titleDate,
html.f26c .f26-cal .last-event-visited .titleDate {
    margin: 0 0 6px !important;
    color: var(--f26-ink);
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -.005em !important;
    line-height: 1.28 !important;
}
html.f26c .f26-cal .calendar .titleDate a,
html.f26c .f26-cal .last-event-visited .titleDate a {
    color: var(--f26-ink);
    font-weight: 800 !important;
    cursor: pointer;
}
html.f26c .f26-cal .calendar .titleDate a:hover,
html.f26c .f26-cal .last-event-visited .titleDate a:hover { color: var(--f26-red); }
html.f26c .f26-cal .calendar .titleDate.text-danger a,
html.f26c .f26-cal .last-event-visited .titleDate.text-danger a { color: var(--f26-red) !important; text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Etiquetas */
html.f26c .f26-cal .tags-cont {
    gap: 5px !important;
    margin: 2px 0 0 !important;
}
html.f26c .f26-cal .flow {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 9px !important;
    border: 1px solid transparent !important;
    border-radius: var(--f26-r-xs) !important;
    background: var(--f26-tint) !important;
    color: var(--f26-text-2) !important;
    font-family: var(--f26-font) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
}
/* Rankings (RK-..., PTOS RK): placa con filete negro, como las de la clasificación de TV */
html.f26c .f26-cal .flow.flow-rk {
    border: 1.5px solid var(--f26-ink) !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
}
html.f26c .f26-cal .flow.flow-intl {
    background: #E7EDFF !important;
    color: #2250E2 !important;
}
html.f26c .f26-cal .flow.bg-warning {
    background: var(--f26-gold) !important;
    color: var(--f26-ink) !important;
}
html.f26c .f26-cal .flow.bg-success {
    background: #E3F4EA !important;
    color: #15703B !important;
}
html.f26c .f26-cal .flow.bg-danger {
    background: var(--f26-red-soft) !important;
    color: var(--f26-red-dk) !important;
}
html.f26c .f26-cal .flow.live-badge {
    gap: 6px !important;
    background: var(--f26-red) !important;
    color: #fff !important;
}
html.f26c .f26-cal .flow.live-badge .live-dot { background: #fff !important; }
html.f26c .f26-cal .btn-results {
    gap: 6px;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: var(--f26-r-xs) !important;
    background: var(--f26-red) !important;
    color: #fff !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
}
html.f26c .f26-cal .btn-results:hover { background: var(--f26-red-dk) !important; color: #fff !important; }
html.f26c .f26-cal .btn-results i { margin: 0 !important; color: var(--f26-gold) !important; font-size: 10px !important; }
html.f26c .f26-cal .tags-cont .btn-primary:not(.btn-results) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px !important;
    border-radius: var(--f26-r-xs) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .05em;
    text-transform: uppercase;
}
html.f26c .f26-cal .tags-cont .btn-primary:not(.btn-results) i { margin: 0 !important; color: var(--f26-gold); font-size: 10px; }
html.f26c .f26-cal .btn-galeria {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 9px 0 0 !important;
    border: 1.5px solid var(--f26-ink) !important;
    border-radius: var(--f26-r-xs) !important;
    background: #fff !important;
}
html.f26c .f26-cal .btn-galeria .cont-icon-gal { width: 22px !important; flex-basis: 22px; background: var(--f26-ink) !important; }
html.f26c .f26-cal .btn-galeria .fa-images { color: var(--f26-gold) !important; font-size: 10px !important; }
html.f26c .f26-cal .btn-galeria .gal-text {
    color: var(--f26-ink) !important;
    font-family: var(--f26-font) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .05em !important;
}
html.f26c .f26-cal .btn-galeria:hover { background: var(--f26-ink) !important; }
html.f26c .f26-cal .btn-galeria:hover .gal-text { color: #fff !important; }

/* Lugar */
html.f26c .f26-cal .calendar .location,
html.f26c .f26-cal .last-event-visited .location {
    gap: 6px;
    margin-top: 8px !important;
    color: var(--f26-mute);
    font-size: 12.5px;
}
html.f26c .f26-cal .calendar .location i,
html.f26c .f26-cal .last-event-visited .location i,
html.f26c .f26-cal .location-group-card .location i { color: var(--f26-red) !important; opacity: 1; font-size: 12px; }
html.f26c .f26-cal .calendar .location p,
html.f26c .f26-cal .last-event-visited .location p,
html.f26c .f26-cal .location-group-card .location p {
    margin: 0;
    color: var(--f26-mute);
    font-size: 12.5px !important;
    font-weight: 600;
}

/* Cartel y bandera de la federación autonómica */
html.f26c .f26-cal .calendar .poster-cont,
html.f26c .f26-cal .last-event-visited .cont-poster { margin: 0 0 0 14px !important; }
html.f26c .f26-cal .calendar .poster-cont:empty,
html.f26c .f26-cal .last-event-visited .cont-poster:empty { display: none; }
html.f26c .f26-cal .calendar .card-header > div:last-child,
html.f26c .f26-cal .last-event-visited > div:last-child { flex: none; margin-left: 12px; }
html.f26c .f26-cal .calendar .cal-band,
html.f26c .f26-cal .last-event-visited .cal-band {
    display: block;
    width: 52px !important;
    height: 36px !important;
    min-height: 0 !important;
    max-width: none !important;
    padding: 2px;
    object-fit: contain;
    border: 1px solid var(--f26-line) !important;
    border-radius: 6px !important;
    background: #fff;
}

/* ---------- Grupos por sede (vista "Agrupado") ---------- */
html.f26c .f26-cal .location-group .container-fluid { margin: 0 !important; padding: 0 !important; }
html.f26c .f26-cal .location-group-card {
    position: relative;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--f26-tint) !important;
}
/* Filete dorado del grupo (por encima del color por etiquetas, que llega en línea) */
html.f26c .f26-cal .location-group-card::after,
html.f26c .f26-cal .nested-event::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 4px;
    background: var(--f26-gold);
    pointer-events: none;
}
html.f26c .f26-cal .location-group-card:hover { background: var(--f26-tint-2) !important; }
html.f26c .f26-cal .location-group-card .card-header {
    min-height: 88px;
    padding: 14px 18px !important;
    border: 0 !important;
    background: transparent !important;
}
html.f26c .f26-cal .location-group-card .titleDate {
    margin: 0 0 4px !important;
    color: var(--f26-ink);
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.28;
}
html.f26c .f26-cal .location-group-card .location { gap: 6px; }
html.f26c .f26-cal .location-group-card .card-header > .m-3 { margin: 0 0 0 12px !important; }
html.f26c .f26-cal .location-group-card .fa-chevron-up,
html.f26c .f26-cal .location-group-card .fa-chevron-down {
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--f26-ink) !important;
    font-size: 11px !important;
    box-shadow: var(--f26-shadow-1);
}
html.f26c .f26-cal .location-group-card:hover .fa-chevron-up,
html.f26c .f26-cal .location-group-card:hover .fa-chevron-down { background: var(--f26-ink) !important; color: #fff !important; }
html.f26c .f26-cal .nested-event {
    position: relative;
    background: #FAFAFC !important;
}
html.f26c .f26-cal .nested-event .card-header { padding-left: 30px !important; }
html.f26c .f26-cal .nested-event .card-header::before { display: none; }

/* Último evento visitado */
html.f26c .f26-cal .section-card .section-card {
    overflow: hidden;
    border-radius: var(--f26-r) !important;
    background: #fff;
    box-shadow: var(--f26-shadow-1);
}
html.f26c .f26-cal .section-card .row.table-responsive { margin: 0; }
html.f26c .f26-cal .section-card .row.table-responsive > .col-12 { padding: 0; }
html.f26c .f26-cal .last-event-visited { align-items: center; cursor: pointer; }
html.f26c .f26-cal .last-event-visited:hover { background: #FAFAFC; }
html.f26c .f26-cal .last-event-visited > .hide-mobile:empty { display: none !important; }

/* ---------- Vista de mes (cuadrícula) ---------- */
html.f26c .f26-cal .calendar-view { margin: 0 !important; padding: 16px; }
html.f26c .f26-cal .month-section { margin-bottom: 22px !important; }
html.f26c .f26-cal .month-section:last-child { margin-bottom: 0 !important; }
html.f26c .f26-cal .month-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px !important;
    color: var(--f26-ink);
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase;
}
html.f26c .f26-cal .month-section h4::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--f26-red);
}
html.f26c .f26-cal .calendar-grid {
    overflow: hidden;
    border: 1px solid var(--f26-line) !important;
    border-radius: 12px !important;
}
html.f26c .f26-cal .calendar-header,
html.f26c .f26-cal .calendar-days { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
html.f26c .f26-cal .calendar-header {
    position: relative;
    isolation: isolate;
    border: 0 !important;
    background: var(--f26-ink) !important;
}
html.f26c .f26-cal .calendar-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--f26-tex);
    pointer-events: none;
}
html.f26c .f26-cal .day-label {
    padding: 10px 0 !important;
    color: var(--f26-on-ink-mute) !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: .1em !important;
}
html.f26c .f26-cal .day {
    min-width: 0;
    min-height: 104px;
    border-color: var(--f26-tint-2) !important;
    background: #fff;
}
html.f26c .f26-cal .empty-day { background: var(--f26-tint) !important; }
html.f26c .f26-cal .day-number {
    display: flex !important;
    justify-content: flex-end;
    color: var(--f26-mute) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}
html.f26c .f26-cal .has-events { background: #FFFBF0; }
html.f26c .f26-cal .has-events .day-number { color: var(--f26-ink) !important; font-weight: 900 !important; }
html.f26c .f26-cal .event-item {
    max-width: none !important;
    margin-bottom: 5px !important;
    padding: 5px 6px 5px 8px !important;
    border-left: 3px solid var(--f26-red) !important;
    border-radius: 0 6px 6px 0 !important;
    background: #fff;
    box-shadow: 0 1px 2px rgba(28, 28, 34, .08);
}
html.f26c .f26-cal .event-item:hover { box-shadow: 0 2px 8px rgba(28, 28, 34, .14); }
html.f26c .f26-cal .event-title {
    display: block !important;
    overflow: visible;
    color: var(--f26-ink);
    font-size: 11px;
    font-weight: 800 !important;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}
html.f26c .f26-cal .event-location {
    margin-top: 2px;
    overflow: hidden;
    color: var(--f26-mute) !important;
    font-size: 10px !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Escritorio ---------- */
@media (min-width: 768px) {
    html.f26c .f26-cal .searchOne > .d-md-flex { flex-wrap: wrap; gap: 10px 12px; }
    html.f26c .f26-cal .searchOne > .d-md-flex > .input-group { flex: 1 1 260px !important; min-width: 200px !important; }
    html.f26c .f26-cal .searchOne > .d-md-flex > .d-flex { flex-wrap: wrap; margin-left: 0 !important; gap: 10px !important; }
}

/* ---------- Tableta y móvil ---------- */
@media (max-width: 991.98px) {
    html.f26c .f26-cal .section-card .rz-carousel { padding: 2px 48px 30px !important; }
}

@media (max-width: 767.98px) {
    html.f26c .f26-cal > .section-card { margin-bottom: 14px !important; }
    html.f26c .f26-cal .section-header {
        min-height: 0;
        padding: 11px 14px 13px !important;
        border-radius: 12px !important;
    }
    html.f26c .f26-cal .section-title { font-size: 14px !important; }
    html.f26c .f26-cal .event-legend { width: 100%; gap: 4px 12px; }
    html.f26c .f26-cal .event-legend .legend-item small { font-size: 9.5px !important; }

    /* Carrusel: la tarjeta ocupa todo el ancho y las flechas se apoyan en el borde */
    html.f26c .f26-cal .section-card .rz-carousel { padding: 0 0 34px !important; overflow: visible; }
    html.f26c .f26-cal .section-card .rz-carousel-pager { height: 34px !important; }
    html.f26c .f26-cal .section-card .rz-carousel .row { --bs-gutter-x: 0; padding: 4px 2px 10px; }
    html.f26c .f26-cal .section-card .rz-carousel-prev,
    html.f26c .f26-cal .section-card .rz-carousel-next {
        top: auto !important;
        bottom: 0 !important;
        width: 34px !important;
        height: 34px !important;
        transform: none !important;
        inset-block-start: auto !important;
    }
    html.f26c .f26-cal .section-card .rz-carousel-prev { left: 0 !important; }
    html.f26c .f26-cal .section-card .rz-carousel-next { right: 0 !important; }
    html.f26c .f26-cal .card-ch-compact .live-badge { min-height: 0; padding: 12px 14px 14px !important; font-size: 13.5px !important; }
    html.f26c .f26-cal .card-ch-compact .card-body { padding: 12px 14px 14px !important; }

    /* Barra de búsqueda en dos líneas */
    html.f26c .f26-cal > section.section-card:not(:has(> .section-header)) { padding: 12px !important; }
    html.f26c .f26-cal .searchOne { height: auto !important; }
    html.f26c .f26-cal .searchOne > .d-md-none { gap: 10px !important; }
    html.f26c .f26-cal .searchOne > .d-md-none > .justify-content-between { flex-wrap: wrap; gap: 10px; }
    html.f26c .f26-cal .searchOne .input-group { min-width: 0 !important; }
    html.f26c .f26-cal .searchOne .btn-group .btn { min-width: 38px; padding: 0 10px !important; }
    html.f26c .f26-cal .searchOne .btn-group .btn-outline-primary,
    html.f26c .f26-cal .searchOne .btn-group .btn-outline-secondary,
    html.f26c .f26-cal .searchOne .btn-group .btn-outline-danger {
        width: auto;
        min-height: 34px;
        border: 0 !important;
        border-radius: var(--f26-pill) !important;
        background: transparent !important;
    }
    html.f26c .f26-cal .year-selector .btn-year { padding: 0 8px !important; font-size: 12px !important; }
    html.f26c .f26-cal .year-selector .btn-year i { display: none; }
    html.f26c .f26-cal .year-selector .input-group-text { padding: 0 12px !important; font-size: 12.5px !important; }

    /* Meses: carril con desplazamiento, tres por pantalla */
    html.f26c .f26-cal .section-card-sch .nav { padding: 12px 0 !important; }
    html.f26c .f26-cal .section-card-sch .nav ul { gap: 8px !important; padding: 0 12px !important; }
    html.f26c .f26-cal .section-card-sch .nav ul li { flex: 0 0 calc((100% - 16px) / 3) !important; margin: 0 !important; }
    html.f26c .f26-cal .section-card-sch .nav ul li a { width: 100%; min-height: 38px; padding: 0 6px 0 10px !important; font-size: 11.5px !important; }
    html.f26c .f26-cal .section-card-sch .nav ul li a .date span { min-width: 22px !important; height: 22px !important; margin-left: 6px !important; font-size: 10.5px !important; }

    /* Filas */
    html.f26c .f26-cal .calendar .card-header,
    html.f26c .f26-cal .last-event-visited,
    html.f26c .f26-cal .location-group-card .card-header {
        align-items: flex-start !important;
        min-height: 0;
        padding: 14px 12px 14px 14px !important;
    }
    html.f26c .f26-cal .calendar .card-header .fecha,
    html.f26c .f26-cal .last-event-visited .fecha,
    html.f26c .f26-cal .location-group-card .fecha {
        flex-basis: 50px !important;
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        height: 54px;
        margin-right: 12px !important;
        border-radius: 10px;
        font-size: 9px !important;
    }
    html.f26c .f26-cal .calendar .card-header .fecha span,
    html.f26c .f26-cal .last-event-visited .fecha span,
    html.f26c .f26-cal .location-group-card .fecha span { margin-bottom: 4px !important; font-size: 19px !important; }
    html.f26c .f26-cal .calendar .card-header .fecha span:has(.fecha-sep),
    html.f26c .f26-cal .last-event-visited .fecha span:has(.fecha-sep),
    html.f26c .f26-cal .location-group-card .fecha span:has(.fecha-sep) { font-size: 12px !important; }
    html.f26c .f26-cal .calendar .titleDate,
    html.f26c .f26-cal .last-event-visited .titleDate,
    html.f26c .f26-cal .location-group-card .titleDate,
    html.f26c .f26-cal .ch-name-fs { font-size: 14.5px !important; line-height: 1.3 !important; }
    html.f26c .f26-cal .tags-cont { gap: 4px !important; }
    html.f26c .f26-cal .flow,
    html.f26c .f26-cal .btn-results,
    html.f26c .f26-cal .btn-galeria,
    html.f26c .f26-cal .tags-cont .btn-primary:not(.btn-results) {
        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;
        font-size: 9.5px !important;
    }
    html.f26c .f26-cal .flow { padding: 0 7px !important; }
    html.f26c .f26-cal .btn-galeria .gal-text { font-size: 9.5px !important; }
    html.f26c .f26-cal .calendar .location,
    html.f26c .f26-cal .last-event-visited .location { margin-top: 7px !important; }
    html.f26c .f26-cal .calendar .location p,
    html.f26c .f26-cal .last-event-visited .location p,
    html.f26c .f26-cal .location-group-card .location p { font-size: 12px !important; }
    html.f26c .f26-cal .calendar .poster-cont { display: none; }
    html.f26c .f26-cal .calendar .card-header > div:last-child,
    html.f26c .f26-cal .last-event-visited > div:last-child { margin-left: 10px; }
    html.f26c .f26-cal .calendar .cal-band,
    html.f26c .f26-cal .last-event-visited .cal-band { width: 40px !important; height: 28px !important; border-radius: 5px !important; }
    html.f26c .f26-cal .nested-event .card-header { padding-left: 22px !important; }
    html.f26c .f26-cal .location-group-card .card-header > .m-3 { align-self: center; }

    /* Cuadrícula del mes en tableta pequeña: celdas iguales y texto compacto */
    html.f26c .f26-cal .calendar-view { padding: 12px 10px; }
    html.f26c .f26-cal .day { min-height: 72px; padding: 5px !important; }
    html.f26c .f26-cal .day-label { padding: 8px 0 !important; font-size: 9.5px !important; letter-spacing: .06em !important; }
    html.f26c .f26-cal .day-number { font-size: 11px !important; }
    html.f26c .f26-cal .event-item { margin-bottom: 4px !important; padding: 4px 4px 4px 6px !important; border-left-width: 2px !important; }
    html.f26c .f26-cal .event-title { font-size: 9.5px; letter-spacing: 0; }
    html.f26c .f26-cal .event-location { font-size: 9px !important; }
}

/* En el móvil la cuadrícula no cabe: el mes se lee como agenda, solo con los días que tienen pruebas.
   El día de la semana sale de la columna que ocupaba cada celda (7 por fila, empezando en lunes). */
@media (max-width: 575.98px) {
    html.f26c .f26-cal .calendar-view { padding: 14px 14px 6px; }
    html.f26c .f26-cal .month-section h4 { margin-bottom: 4px !important; }
    html.f26c .f26-cal .calendar-grid { overflow: visible; border: 0 !important; border-radius: 0 !important; }
    html.f26c .f26-cal .calendar-header { display: none !important; }
    html.f26c .f26-cal .calendar-days { display: block !important; }
    html.f26c .f26-cal .calendar-days > .day { display: none; }
    html.f26c .f26-cal .calendar-days > .day.has-events {
        display: grid;
        grid-template-columns: 50px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        min-height: 0;
        padding: 12px 0 !important;
        border: 0 !important;
        border-bottom: 1px solid var(--f26-tint-2) !important;
        background: transparent;
    }
    html.f26c .f26-cal .calendar-days > .day.has-events:last-child { border-bottom: 0 !important; }
    html.f26c .f26-cal .calendar-days > .day.has-events .day-number {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 54px;
        border-radius: 10px;
        background: var(--f26-ink);
        color: #fff !important;
        font-size: 19px !important;
        font-weight: 900 !important;
        line-height: 1;
        text-align: center;
    }
    html.f26c .f26-cal .calendar-days > .day.has-events .day-number::after {
        margin-top: 5px;
        color: var(--f26-gold);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .12em;
    }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n+1) .day-number::after { content: "LUN"; }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n+2) .day-number::after { content: "MAR"; }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n+3) .day-number::after { content: "MIÉ"; }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n+4) .day-number::after { content: "JUE"; }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n+5) .day-number::after { content: "VIE"; }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n+6) .day-number::after { content: "SÁB"; }
    html.f26c .f26-cal .calendar-days > .day:nth-child(7n) .day-number::after { content: "DOM"; }
    html.f26c .f26-cal .calendar-days > .day.has-events .events-container { display: grid; gap: 6px; margin: 0; }
    html.f26c .f26-cal .calendar-days > .day.has-events .event-item {
        margin: 0 !important;
        padding: 8px 10px 8px 11px !important;
        border-left-width: 3px !important;
        border-radius: 0 8px 8px 0 !important;
        background: var(--f26-tint);
        box-shadow: none;
    }
    html.f26c .f26-cal .calendar-days > .day.has-events .event-title { font-size: 13px; line-height: 1.3; hyphens: manual; }
    html.f26c .f26-cal .calendar-days > .day.has-events .event-location { display: block !important; margin-top: 3px; font-size: 11.5px !important; }
}

/* ==========================================================================
   «Año completo» y Excel de la temporada (Calendar.razor)
   Fila de periodos: «Año completo» fijo a la izquierda, el carril de meses (lo único que se desliza) y el Excel
   fijo a la derecha. Con «Año completo», cabecera negra con el total y la lista seguida con un separador por mes.
   ========================================================================== */
html.f26c .f26-cal .section-card-sch {
    overflow: hidden;
    overflow: clip; /* recorta igual, pero deja que los separadores de mes se queden arriba (sticky) */
}
html.f26c .f26-cal .f26-cal-periods {
    container: f26-periods / inline-size; /* las etiquetas se acortan según el sitio que tiene la fila (abajo) */
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--f26-line);
}
/* Meses un poco más compactos que antes: así caben los doce junto a «Año completo» y el Excel desde 1280 px */
@media (min-width: 768px) {
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav ul li { margin: 0 2px; }
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav ul li a { padding: 0 6px 0 12px !important; letter-spacing: .05em !important; }
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav ul li a .date span { margin-left: 6px !important; }
}
html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav {
    padding: 14px 12px !important;
    border-bottom: 0 !important;
}
html.f26c .f26-cal .f26-cal-periods__months {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}
/* filetes entre lo fijo y el carril */
html.f26c .f26-cal .f26-cal-periods__months::before,
html.f26c .f26-cal .f26-cal-periods__months::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 1px;
    height: 28px;
    margin-top: -14px;
    background: var(--f26-line);
    pointer-events: none;
}
html.f26c .f26-cal .f26-cal-periods__months::before { left: 0; }
html.f26c .f26-cal .f26-cal-periods__months::after { right: 0; }
/* En pantallas táctiles (sin flechas) el carril se difumina por el lado en el que quedan más meses, para que no
   parezca que el mes cortado se mete bajo «Año completo» o el Excel (clases f26-tabs-* del script de index.html) */
@media (hover: none), (pointer: coarse) {
    html.f26c .f26-cal .f26-cal-periods__months.f26-tabs-more > .nav {
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    }
    html.f26c .f26-cal .f26-cal-periods__months.f26-tabs-scrolled > .nav {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px);
        mask-image: linear-gradient(90deg, transparent, #000 24px);
    }
    html.f26c .f26-cal .f26-cal-periods__months.f26-tabs-more.f26-tabs-scrolled > .nav {
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    }
}

/* Meses: con el teclado también (Enter o espacio) */
html.f26c .f26-cal .section-card-sch .nav ul li a:focus-visible {
    outline: none;
    box-shadow: var(--f26-focus) !important;
}

/* Botón «Año completo»: borde negro y total en dorado; elegido, rojo como el mes elegido */
html.f26c .f26-cal .f26-cal-year {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 7px 0 14px;
    border: 1px solid var(--f26-ink);
    border-radius: var(--f26-pill);
    background: #fff;
    color: var(--f26-ink);
    font-family: var(--f26-font);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
html.f26c .f26-cal .f26-cal-year:hover { background: var(--f26-tint); }
html.f26c .f26-cal .f26-cal-year:focus-visible { outline: none; box-shadow: var(--f26-focus); }
html.f26c .f26-cal .f26-cal-year__short { display: none; }
html.f26c .f26-cal .f26-cal-year__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: var(--f26-pill);
    background: var(--f26-ink);
    color: var(--f26-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-cal .f26-cal-year.is-active {
    border-color: var(--f26-red);
    background: var(--f26-red) var(--f26-tex);
    color: #fff;
    box-shadow: 0 4px 12px rgba(207, 18, 47, .28);
}
html.f26c .f26-cal .f26-cal-year.is-active .f26-cal-year__n { background: rgba(255, 255, 255, .22); color: #fff; }
html.f26c .f26-cal .f26-cal-year.is-active:focus-visible { box-shadow: var(--f26-focus), 0 4px 12px rgba(207, 18, 47, .28); }

/* Botón «Excel»: píldora dorada, como en el resto de la web */
html.f26c .f26-cal .f26-cal-xls {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--f26-pill);
    background: var(--f26-gold);
    color: var(--f26-ink);
    font-family: var(--f26-font);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
html.f26c .f26-cal .f26-cal-xls i { font-size: 14px; }
html.f26c .f26-cal .f26-cal-xls:hover:not(:disabled) { background: var(--f26-ink); color: #fff; }
html.f26c .f26-cal .f26-cal-xls:focus-visible { outline: none; box-shadow: var(--f26-focus); }
html.f26c .f26-cal .f26-cal-xls:disabled { cursor: default; opacity: .5; }
html.f26c .f26-cal .f26-cal-xls[aria-busy="true"] { cursor: progress; opacity: 1; }
html.f26c .f26-cal .f26-cal-xls__spin {
    flex: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(28, 28, 34, .22);
    border-top-color: var(--f26-ink);
    border-radius: 50%;
    animation: f26-cal-spin .75s linear infinite;
}
@keyframes f26-cal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    html.f26c .f26-cal .f26-cal-xls__spin { animation: none; border-color: var(--f26-ink); border-right-color: transparent; }
}
/* En la barra de la búsqueda, a la altura de «Limpiar» */
html.f26c .f26-cal .section-card-sch > .p-2.text-center .f26-cal-xls { height: 34px; padding: 0 14px; font-size: 12px; }

/* Cabecera del año completo: caja roja con la temporada, título y reparto por nivel, y el total en dorado */
html.f26c .f26-cal .f26-cal-yearbar {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "year title total" "year levels total";
    align-items: center;
    column-gap: 16px;
    row-gap: 3px;
    min-height: 64px;
    padding: 0 18px 0 0;
    background: var(--f26-ink) var(--f26-tex);
    color: #fff;
}
html.f26c .f26-cal .f26-cal-yearbar__year {
    grid-area: year;
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: var(--f26-red) var(--f26-tex);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.01em;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-cal .f26-cal-yearbar__main { display: contents; }
html.f26c .f26-cal .f26-cal-yearbar__title {
    grid-area: title;
    align-self: end;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
}
html.f26c .f26-cal .f26-cal-yearbar__levels {
    grid-area: levels;
    align-self: start;
    padding-bottom: 12px;
    color: var(--f26-on-ink-mute);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
html.f26c .f26-cal .f26-cal-yearbar__levels:empty { display: none; }
html.f26c .f26-cal .f26-cal-yearbar:has(.f26-cal-yearbar__levels:empty) .f26-cal-yearbar__title { grid-row: 1 / span 2; align-self: center; padding: 0; }
html.f26c .f26-cal .f26-cal-yearbar__total {
    grid-area: total;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--f26-pill);
    background: var(--f26-gold);
    color: var(--f26-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
html.f26c .f26-cal .f26-cal-yearbar__total strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

/* Separador de mes en la lista seguida: se queda bajo la cabecera de la web mientras se recorre su mes */
html.f26c .f26-cal .f26-cal-mhead {
    position: sticky;
    top: calc(var(--f26-topbar-h) + 3px + env(safe-area-inset-top, 0px)); /* bajo la cabecera y su filete */
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 18px;
    border-top: 1px solid var(--f26-line);
    border-bottom: 1px solid var(--f26-line);
    background: var(--f26-tint);
}
html.f26c .f26-cal .f26-cal-yearbar + .f26-cal-mhead,
html.f26c .f26-cal .f26-cal-periods + .f26-cal-mhead,
html.f26c .f26-cal .section-card-sch > .p-2.text-center + .f26-cal-mhead { border-top: 0; }
html.f26c .f26-cal .f26-cal-mhead::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--f26-red);
}
html.f26c .f26-cal .f26-cal-mhead__name {
    color: var(--f26-ink);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}
html.f26c .f26-cal .f26-cal-mhead__n {
    flex: none;
    padding: 5px 11px;
    border-radius: var(--f26-pill);
    background: var(--f26-ink);
    color: var(--f26-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
    html.f26c .f26-cal .f26-cal-periods { padding: 0 10px; }
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav { padding: 12px 8px !important; }
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav ul { padding: 0 !important; }
    /* el carril es más estrecho: cada mes, a su medida (si no, tres por pantalla no caben) */
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav ul li { flex: 0 0 auto !important; }
    html.f26c .f26-cal .f26-cal-year { height: 38px; padding: 0 5px 0 11px; gap: 6px; font-size: 11.5px; }
    html.f26c .f26-cal .f26-cal-year__n { min-width: 22px; height: 22px; padding: 0 6px; font-size: 10.5px; }
    html.f26c .f26-cal .f26-cal-xls { height: 38px; padding: 0 14px; }

    html.f26c .f26-cal .f26-cal-yearbar {
        grid-template-areas: "year title total" "year levels levels";
        column-gap: 12px;
        min-height: 58px;
        padding-right: 12px;
    }
    html.f26c .f26-cal .f26-cal-yearbar__year { padding: 0 12px; font-size: 18px; }
    html.f26c .f26-cal .f26-cal-yearbar__title { padding-top: 10px; font-size: 12px; letter-spacing: .06em; white-space: nowrap; }
    html.f26c .f26-cal .f26-cal-yearbar__levels { padding-bottom: 10px; font-size: 11px; }
    html.f26c .f26-cal .f26-cal-yearbar__total { align-self: end; padding: 6px 10px; font-size: 10px; letter-spacing: .03em; gap: 4px; }
    html.f26c .f26-cal .f26-cal-yearbar__total strong { font-size: 13.5px; }
    html.f26c .f26-cal .f26-cal-yearbar:has(.f26-cal-yearbar__levels:empty) .f26-cal-yearbar__total { grid-row: 1 / span 2; align-self: center; }

    html.f26c .f26-cal .f26-cal-mhead { min-height: 40px; padding: 7px 12px 7px 14px; }
    html.f26c .f26-cal .f26-cal-mhead__name { font-size: 12px; }
    html.f26c .f26-cal .f26-cal-mhead__n { padding: 4px 9px; font-size: 10.5px; }
}
/* Sin sitio para todo en la fila (se mide la propia fila): primero el Excel se queda solo con su icono y después
   «Año completo» pasa a «Año» (como «ENE», «FEB»...). Umbrales medidos con Montserrat y los totales de 2026, con
   unos 16 px de margen: «Año completo» 181 px, «Año» 100, Excel 85 (40 solo el icono) y los doce meses 1.018
   (1.058 con el hueco de 8 px de las pantallas anchas). En el móvil y la tableta el carril de meses se desliza. */
@container f26-periods (max-width: 1323.98px) {
    html.f26c .f26-cal .f26-cal-periods .f26-cal-xls { width: 40px; padding: 0; }
    html.f26c .f26-cal .f26-cal-periods .f26-cal-xls i { font-size: 15px; }
    html.f26c .f26-cal .f26-cal-periods .f26-cal-xls__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}
@container f26-periods (max-width: 1278.98px) {
    html.f26c .f26-cal .f26-cal-year__long { display: none; }
    html.f26c .f26-cal .f26-cal-year__short { display: inline; }
}
@media (max-width: 767.98px) {
    html.f26c .f26-cal .f26-cal-periods .f26-cal-xls { width: 38px; }
}
/* Móviles estrechos (320-374 px): menos aire en la fila para que se vean dos meses enteros, y en la cabecera del año
   el total baja a su propia línea (al lado del título no cabe) */
@media (max-width: 374.98px) {
    html.f26c .f26-cal .f26-cal-periods { padding: 0 8px; }
    html.f26c .f26-cal .section-card-sch .f26-cal-periods .nav { padding: 12px 6px !important; }
    html.f26c .f26-cal .f26-cal-year { padding: 0 4px 0 9px; gap: 5px; }
    html.f26c .f26-cal .f26-cal-yearbar {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "year title" "year total" "year levels";
        row-gap: 5px;
    }
    html.f26c .f26-cal .f26-cal-yearbar__total { justify-self: start; align-self: center; }
    html.f26c .f26-cal .f26-cal-yearbar:has(.f26-cal-yearbar__levels:empty) .f26-cal-yearbar__total { grid-row: auto; padding-bottom: 6px; margin-bottom: 10px; }
}

/* ==========================================================================
   Vista calendario (MAP, 24-11): color por nivel y bandera del organizador
   Internacional en azul, nacional en rojo y autonómico en verde: barra a la izquierda, fondo suave y leyenda con el total.
   ========================================================================== */
html.f26c .f26-cal { --cev-1: #0047BA; --cev-1-bg: #EEF3FC; --cev-2: #CF122F; --cev-2-bg: #FDF0F2; --cev-3: #1E8449; --cev-3-bg: #EEF7F1; }
html.f26c .f26-cal .f26-cev-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 16px;
}
html.f26c .f26-cal .f26-cev-legend__i,
html.f26c .f26-cal .f26-cev-legend__flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 6px 4px 10px;
    border-radius: 6px;
    background: var(--cev-bg, var(--f26-tint));
    color: var(--f26-ink);
    font-size: 12px;
    font-weight: 700;
}
html.f26c .f26-cal .f26-cev-legend__i > i { width: 4px; height: 16px; border-radius: 2px; background: var(--cev-c); }
html.f26c .f26-cal .f26-cev-legend__i > b {
    min-width: 24px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--cev-c);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
html.f26c .f26-cal .f26-cev-legend__i.is-zero { opacity: .55; }
html.f26c .f26-cal .f26-cev-legend__flag { padding-right: 10px; background: transparent; color: var(--f26-mute); font-weight: 600; }
html.f26c .f26-cal .f26-cev-legend__flag > i { font-size: 12px; }
html.f26c .f26-cal .f26-cev--lv1 { --cev-c: var(--cev-1); --cev-bg: var(--cev-1-bg); }
html.f26c .f26-cal .f26-cev--lv2 { --cev-c: var(--cev-2); --cev-bg: var(--cev-2-bg); }
html.f26c .f26-cal .f26-cev--lv3 { --cev-c: var(--cev-3); --cev-bg: var(--cev-3-bg); }

html.f26c .f26-cal .calendar-days .event-item.f26-cev {
    border-left-color: var(--cev-c) !important;
    background: var(--cev-bg);
    box-shadow: none;
    transition: background-color .15s ease, box-shadow .15s ease;
}
html.f26c .f26-cal .calendar-days .event-item.f26-cev:hover { background: #fff; box-shadow: 0 2px 8px rgba(28, 28, 34, .14); }
html.f26c .f26-cal .f26-cev__top { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
html.f26c .f26-cal .f26-cev__top > .event-title { flex: 1 1 auto; min-width: 0; }
html.f26c .f26-cal .f26-cev__flg {
    flex: none;
    width: 21px;
    height: 14px;
    margin-top: 1px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(28, 28, 34, .12);
}
/* El día de hoy: número en caja roja */
html.f26c .f26-cal .calendar-days > .day.is-today .day-number {
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 6px;
    background: var(--f26-red);
    color: #fff !important;
}

@media (min-width: 576px) and (max-width: 991.98px) {
    html.f26c .f26-cal .f26-cev__top { flex-direction: column; gap: 3px; }
    html.f26c .f26-cal .f26-cev__flg { width: 18px; height: 12px; margin: 0; }
}
@media (max-width: 575.98px) {
    html.f26c .f26-cal .f26-cev-legend { gap: 6px; margin-bottom: 8px; }
    html.f26c .f26-cal .f26-cev-legend__i { gap: 5px; min-height: 28px; padding: 3px 4px 3px 7px; font-size: 11px; }
    html.f26c .f26-cal .f26-cev-legend__i > b { min-width: 20px; padding: 2px 4px; font-size: 10.5px; }
    html.f26c .f26-cal .f26-cev-legend__flag { display: none; }
    html.f26c .f26-cal .calendar-days > .day.has-events .event-item.f26-cev { background: var(--cev-bg); }
    html.f26c .f26-cal .f26-cev__top { gap: 8px; }
    html.f26c .f26-cal .f26-cev__flg { width: 24px; height: 16px; margin-top: 1px; }
    /* Hoy, en la agenda del móvil: la caja del día en rojo */
    html.f26c .f26-cal .calendar-days > .day.is-today.has-events .day-number { width: auto; height: 54px; margin: 0; border-radius: 10px; }
    html.f26c .f26-cal .calendar-days > .day.is-today.has-events .day-number::after { color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
    html.f26c .f26-cal .calendar-days .event-item.f26-cev { transition: none; }
}
