/* Arenas 360 — Calendario (agenda + mes). Reutiliza home/evento/resultados.css. */

.cal-hero { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: end; }

/* Próximo evento */
.next { background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); border-radius: 18px; padding: 20px 22px; color: #fff; backdrop-filter: blur(6px); }
.next__label { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; color: var(--gold); }
.next__name { margin-top: 8px; font-family: var(--label); text-transform: uppercase; font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.next__row { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.next__count { display: grid; place-items: center; min-width: 74px; padding: 8px 10px; border-radius: 12px; background: var(--gold); color: var(--navy-900); text-align: center; line-height: 1; }
.next__count strong { font-family: var(--display); font-style: italic; font-size: 1.9rem; }
.next__count small { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .66rem; margin-top: 3px; }
.next__date { font-size: .95rem; color: rgb(255 255 255 / .8); }
.next__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.next__actions .btn { padding: 10px 16px; font-size: .82rem; }

/* Barra */
.seg button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; vertical-align: -3px; margin-right: 6px; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 22px; }
.cal-filters .chip { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--open { background: #16a34a; } .dot--live { background: #dc2626; } .dot--done { background: var(--navy); }
.chip.is-active .dot { box-shadow: 0 0 0 2px #fff; }

/* Secciones de agenda */
.ag-section + .ag-section { margin-top: 48px; }
.ag-section__title { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }

/* Tarjeta de agenda: enlace principal + accesos directos */
.ag-card { position: relative; display: grid; grid-template-columns: 84px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd8e6; }
.ag-card .rs-title a { color: inherit; text-decoration: none; }
.ag-card .rs-title a::after { content: ""; position: absolute; inset: 0; } /* toda la tarjeta es clicable */
.ag-card .rs-title a:focus-visible { outline: none; }
.ag-card:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.ag-links { grid-column: 1 / -1; position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ag-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; padding: 7px 11px; border-radius: 8px; text-decoration: none; color: var(--navy); background: #eef3fa; }
.ag-link:hover { background: var(--navy); color: #fff; }
.ag-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.ag-link--gold { background: var(--gold); color: var(--navy-900); }
.ag-link--gold:hover { background: #ffd699; color: var(--navy-900); }
.ag-card.rs-card--live .rs-date { background: #b91c1c; }
.ag-card.rs-card--open .rs-date { background: #15803d; }
.ag-card.rs-card--done .rs-date { background: var(--navy-900); }
.ag-card .rs-date { background: var(--navy); }

/* Vista mes */
.month-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.month-nav__title { font-family: var(--display); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ink); line-height: 1; min-width: 9ch; }
.month-nav__title span { color: var(--gold-700); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.icon-btn:hover { border-color: var(--navy); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; }
#mes-sig { margin-left: auto; }

.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cal__wd { padding: 12px 8px; text-align: center; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--muted); border-bottom: 1px solid var(--line); background: #fafbfd; }
.cal__day { min-width: 0; min-height: 112px; padding: 8px; border-right: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 4px; }
.cal__day:nth-child(7n) { border-right: 0; }
.cal__num { align-self: flex-end; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: .88rem; font-weight: 600; color: var(--text); }
.cal__day--out { background: #fbfcfe; }
.cal__day--out .cal__num { color: #c0c8d4; }
.cal__day--today .cal__num { background: var(--navy); color: #fff; }
.cal__ev { display: block; font-size: .76rem; font-weight: 600; line-height: 1.25; padding: 5px 8px; border-radius: 7px; text-decoration: none; color: #fff; background: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal__ev:hover { filter: brightness(1.1); }
.cal__ev--open { background: #15803d; } .cal__ev--live { background: #b91c1c; } .cal__ev--done { background: var(--navy-900); }
.cal__ev--cont { border-top-left-radius: 0; border-bottom-left-radius: 0; opacity: .85; }
#mes-lista { margin-top: 24px; }
#mes-lista .empty-state { margin-top: 0; }

@media (max-width: 900px) {
  .cal-hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  /* En móvil la cuadrícula se vuelve compacta (puntos) y la lista del mes muestra el detalle */
  .cal__day { min-height: 54px; padding: 4px; align-items: center; }
  .cal__num { align-self: center; width: 26px; height: 26px; font-size: .82rem; }
  .cal__ev { width: 7px; height: 7px; padding: 0; border-radius: 50%; font-size: 0; }
  .cal__day { flex-direction: column; }
  .cal__day .cal__evs { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; }
  .cal__wd { letter-spacing: .04em; font-size: .66rem; padding: 10px 2px; }
  .ag-card { grid-template-columns: 72px 1fr; }
}

/* ── Rediseño del calendario (2026-11-28) · prefijo .cz- ───────── */
/* Cifras del año */
.cz-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cz-kpi { min-width: 104px; padding: 10px 16px; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.cz-kpi strong { display: block; font-family: var(--display); font-style: italic; font-size: 1.7rem; line-height: 1; color: #fff; }
.cz-kpi small { display: block; margin-top: 4px; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .64rem; color: rgb(255 255 255 / .72); }

/* Evento destacado con afiche */
.next { overflow: hidden; padding: 0 0 20px; }
.next > :not(.next__img) { margin-left: 22px; margin-right: 22px; }
.next > .next__label { margin-top: 18px; }
.next__img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: center 30%; }
.next__count--pasado { background: rgb(255 255 255 / .14); color: #fff; }

/* Temporada */
.cz-temp { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; margin: 0 0 18px; }
.cz-temp[hidden] { display: none; }
.cz-temp__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cz-temp__head h2 { font-family: var(--display); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: 1.3rem; color: var(--ink); line-height: 1; }
.cz-temp__head h2 span { color: var(--gold-700); }
.cz-temp__nav { display: flex; gap: 6px; }
.cz-temp__nav .icon-btn { width: 34px; height: 34px; }
.cz-temp__nav .icon-btn:disabled { opacity: .35; cursor: default; }
.cz-temp__meses { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cz-mes { display: grid; justify-items: center; gap: 4px; padding: 10px 2px 8px; border-radius: 12px; border: 1px solid transparent; background: #f6f8fb; font: inherit; color: var(--muted); cursor: default; }
.cz-mes.tiene { background: #eef3fa; color: var(--navy); cursor: pointer; }
.cz-mes.tiene:hover { border-color: var(--navy); }
.cz-mes:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.cz-mes.es-actual { border-color: var(--gold); }
.cz-mes strong { font-family: var(--display); font-style: italic; font-size: 1.25rem; line-height: 1; min-height: 1.25rem; }
.cz-mes small { font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.cz-mes__puntos { display: flex; gap: 3px; min-height: 7px; }
.cz-p { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.cz-p--abierto { background: #16a34a; } .cz-p--iniciado { background: #dc2626; } .cz-p--finalizado { background: var(--navy-900); } .cz-p--cerrado { background: #94a3b8; }
.cz-niveles { margin-top: -12px; }
.cz-n { margin-left: 6px; font-size: .72rem; font-weight: 600; opacity: .7; }

/* Divisor Hoy */
.cz-hoy { display: flex; align-items: center; gap: 12px; margin: 40px 0 -8px; color: var(--gold-700); font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.cz-hoy::before, .cz-hoy::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.cz-hoy::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* Tarjeta con afiche */
.cz-card { grid-template-columns: 150px 1fr; }
.cz-poster { position: relative; background: linear-gradient(160deg, var(--navy), var(--navy-900)); min-height: 190px; overflow: hidden; }
.cz-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .3s ease; }
.cz-card:hover .cz-poster img { transform: scale(1.04); }
.cz-poster--vacio > span:first-child { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-style: italic; font-weight: 700; font-size: 4rem; color: rgb(255 255 255 / .1); }
.cz-poster__fecha { position: absolute; left: 10px; top: 10px; display: grid; justify-items: center; min-width: 50px; padding: 6px 8px; border-radius: 10px; background: #fff; color: var(--navy); line-height: 1; box-shadow: 0 4px 12px rgb(0 0 0 / .18); }
.cz-poster__fecha b { font-family: var(--display); font-style: italic; font-size: 1.5rem; }
.cz-poster__fecha small { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; color: var(--gold-700); margin-top: 2px; }
.cz-cuando { position: absolute; left: 10px; bottom: 10px; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; padding: 4px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-900); }
.cz-card.rs-card--live .cz-cuando { background: #dc2626; color: #fff; }
.cz-body { padding: 16px 18px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.cz-body .rs-meta { margin: 0; }
.cz-body .rs-title { margin: 0; }
.cz-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--text); }
.cz-datos li { display: flex; gap: 8px; align-items: flex-start; }
.cz-datos svg { flex: none; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cz-body .ag-links { margin-top: 4px; }

@media (max-width: 720px) {
  .cz-temp { padding: 12px; }
  .cz-temp__meses { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cz-kpi { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 8px 12px; }
  .cz-kpi strong { font-size: 1.4rem; }
  .cz-card { grid-template-columns: 1fr; }
  .cz-poster { min-height: 150px; }
  .cz-body { padding: 14px; }
  .next__img { height: 120px; }
  .cal-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .cal-filters::-webkit-scrollbar { display: none; }
  .cal-filters .chip { flex: none; }
}
