/* ==========================================================================
   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: 15px !important; }
html.f26c .f26-cal .fecha span .fecha-sep {
    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; }

/* 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: 13px !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; }
}
