/* Arenas 360 — Entrada "Resultados": eventos en tarjetas por mes y día.
   Se apoya en home.css (marca) y evento.css (cabecera, búsqueda, segmentos). */

.rs-hero { padding: 132px 0 70px; }
.rs-eyebrow { font-family: var(--label); text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--gold); margin-bottom: 12px; }
.rs-lead { margin-top: 18px; max-width: 40em; font-size: 1.1rem; }

.rs-years { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 18px; }
.rs-year { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.rs-year.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Mes */
.rs-month { margin-top: 34px; }
.rs-month:first-child { margin-top: 8px; }
.rs-month__head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.rs-month__name { font-family: var(--display); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1; color: var(--ink); }
.rs-month__name span { color: var(--gold-700); }
.rs-month__count { color: var(--muted); font-size: .95rem; }

.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }

/* Tarjeta de evento */
.rs-card { position: relative; display: grid; grid-template-columns: 84px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.rs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd8e6; }
.rs-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.rs-date { display: grid; align-content: center; justify-items: center; gap: 2px; padding: 16px 6px; background: var(--navy); color: #fff; text-align: center; }
.rs-date__wd { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; opacity: .75; }
.rs-date__day { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 2.3rem; line-height: 1; }
.rs-date__mon { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); }
.rs-date__range { font-size: .7rem; opacity: .7; margin-top: 4px; }
.rs-card--live .rs-date { background: #b91c1c; }
.rs-card--open .rs-date { background: #15803d; }
.rs-card--done .rs-date { background: var(--navy-900); }

.rs-body { display: grid; grid-template-columns: 1fr 64px; gap: 12px; padding: 16px 16px 16px 18px; align-items: start; }
.rs-title { font-family: var(--label); text-transform: uppercase; font-weight: 500; font-size: 1.02rem; line-height: 1.25; color: var(--ink); letter-spacing: .02em; overflow-wrap: anywhere; }
.rs-org { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); }
.rs-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.rs-chip { font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 7px; background: #f1f5f9; color: var(--text); white-space: nowrap; }
.rs-chip--open { background: #e7f6ec; color: #15803d; }
.rs-chip--live { background: #fee2e2; color: #b91c1c; }
.rs-chip--done { background: #e8eef7; color: var(--navy); }
.rs-thumb { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--tint); }
.rs-go { position: absolute; right: 14px; bottom: 12px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; transition: transform .18s; }
.rs-card:hover .rs-go { transform: translateX(3px); stroke: var(--navy); }

@media (max-width: 620px) {
  .rs-hero { padding: 108px 0 48px; }
  .rs-grid { grid-template-columns: 1fr; }
  .rs-card { grid-template-columns: 72px 1fr; }
  .rs-date__day { font-size: 2rem; }
  .rs-body { grid-template-columns: 1fr 52px; }
  .rs-thumb { width: 52px; height: 66px; }
}

/* ── Página de resultados rediseñada (2026-11-28) · prefijo .rp- ─ */
.rp-hero { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: end; }
.rp-hero > * { min-width: 0; }
.rp-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.rp-kpis:empty { display: none; }
.rp-kpi { min-width: 110px; padding: 10px 16px; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16); }
.rp-kpi strong { display: block; font-family: var(--display); font-style: italic; font-size: 1.7rem; line-height: 1; color: #fff; }
.rp-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); }

/* Destacado */
.rp-dest { background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .18); border-radius: 18px; overflow: hidden; color: #fff; backdrop-filter: blur(6px); }
.rp-dest[hidden] { display: none; }
.rp-dest__img { display: block; width: 100%; height: 140px; object-fit: cover; object-position: center 30%; }
.rp-dest__body { padding: 16px 20px 20px; display: grid; gap: 8px; }
.rp-dest__lbl { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--gold); }
.rp-dest__lbl.is-vivo { color: #fca5a5; }
.rp-dest__lbl.is-vivo::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #ef4444; animation: rp-pulso 1.4s ease-in-out infinite; }
@keyframes rp-pulso { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .rp-dest__lbl.is-vivo::before { animation: none; } }
.rp-dest__nom { font-family: var(--label); text-transform: uppercase; font-weight: 500; font-size: 1.1rem; line-height: 1.25; }
.rp-dest__fecha { font-size: .9rem; color: rgb(255 255 255 / .75); }
.rp-dest__podio { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.rp-dp { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; background: rgb(255 255 255 / .08); min-width: 0; }
.rp-dp__pos { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-size: .76rem; font-weight: 700; background: #e2e6ec; color: #374151; }
.rp-dp--1 .rp-dp__pos { background: #f5c542; color: #5b4300; }
.rp-dp--3 .rp-dp__pos { background: #d9a06b; color: #4a2a0c; }
.rp-dp__org { flex: 1; min-width: 0; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-dp b { font-family: var(--label); font-weight: 500; font-size: .86rem; color: var(--gold); white-space: nowrap; }
.rp-dest__acc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.rp-dest__acc .btn { padding: 10px 16px; font-size: .8rem; }

/* Medallero de la temporada */
.rp-medallero { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 6px 0 8px; }
.rp-medallero[hidden] { display: none; }
.rp-medallero__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rp-medallero__head h2 { font-family: var(--display); font-style: italic; font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--ink); line-height: 1; }
.rp-medallero__head h2 span { color: var(--gold-700); }
.rp-medallero__head p { margin-top: 6px; color: var(--muted); font-size: .88rem; }
.rp-mas { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; font-size: .86rem; color: var(--navy); cursor: pointer; }
.rp-mas:hover { border-color: var(--navy); }
.rp-tabla { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.rp-fila { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid #f1f5f9; }
.rp-fila__pos { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f1f5f9; font-family: var(--display); font-style: italic; font-weight: 700; color: var(--ink); }
.rp-fila--1 .rp-fila__pos { background: radial-gradient(circle at 35% 30%, #ffe58a, #f5c542 60%, #d9a514); color: #5b4300; }
.rp-fila--2 .rp-fila__pos { background: radial-gradient(circle at 35% 30%, #fff, #e2e6ec 60%, #b8c0cc); color: #374151; }
.rp-fila--3 .rp-fila__pos { background: radial-gradient(circle at 35% 30%, #f3c79c, #d9a06b 60%, #b07440); color: #4a2a0c; }
.rp-fila__body { display: grid; gap: 4px; min-width: 0; }
.rp-fila__nom { font-weight: 700; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-fila__body small { color: var(--muted); font-size: .76rem; }
.rp-fila__barra { display: flex; gap: 2px; height: 6px; }
.rp-fila__barra span { border-radius: 2px; }
.rp-fila__barra .o { background: #f5c542; } .rp-fila__barra .p { background: #c3cad4; } .rp-fila__barra .b { background: #d9a06b; }
.rp-fila__total { text-align: right; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--navy); }
.rp-meds { display: inline-flex; gap: 3px; }
.rp-med { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.rp-med--1 { background: #f5c542; color: #5b4300; } .rp-med--2 { background: #e2e6ec; color: #374151; } .rp-med--3 { background: #d9a06b; color: #4a2a0c; }

/* Tarjeta de evento con campeón y accesos */
.rp-card { cursor: pointer; }
.rp-card .rs-title a { color: inherit; text-decoration: none; }
.rp-card .rs-title a::after { content: ""; position: absolute; inset: 0; }
.rp-card:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.rp-card .rs-title a:focus-visible { outline: none; }
.rp-body { display: grid; align-content: start; min-width: 0; }
.rp-campeon { display: flex; align-items: center; gap: 10px; margin: 0 16px 12px 18px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(160deg, #fffaf0, #fff7e6); border: 1px solid #f6e3b3; }
.rp-campeon[hidden] { display: none; }
.rp-campeon svg { flex: none; width: 22px; height: 22px; fill: none; stroke: #b4731b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-campeon__txt { display: grid; flex: 1; min-width: 0; }
.rp-campeon__txt small { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; color: #8a5a12; }
.rp-campeon__txt strong { font-size: .9rem; color: var(--ink); line-height: 1.25; }
.rp-campeon__pts { display: grid; justify-items: end; }
.rp-campeon__pts b { font-family: var(--label); font-weight: 500; color: #b4731b; white-space: nowrap; }
.rp-campeon__pts small { font-size: .72rem; color: #8a5a12; white-space: nowrap; }
.rp-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 16px 14px 18px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rp-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; padding: 6px 10px; border-radius: 8px; text-decoration: none; color: var(--navy); background: #eef3fa; }
.rp-link:hover { background: var(--navy); color: #fff; }
.rp-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .rp-hero { grid-template-columns: 1fr; }
  .rp-tabla { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rp-kpi { min-width: 0; flex: 1 1 calc(50% - 10px); padding: 8px 12px; }
  .rp-kpi strong { font-size: 1.4rem; }
  .rp-medallero { padding: 16px 14px; border-radius: 16px; }
  .rp-medallero__head { flex-direction: column; }
  .rp-fila { grid-template-columns: 28px minmax(0, 1fr) 34px; grid-template-areas: "pos body total" "pos meds total"; gap: 4px 10px; }
  .rp-fila__pos { grid-area: pos; }
  .rp-fila__body { grid-area: body; }
  .rp-fila .rp-meds { grid-area: meds; justify-self: start; }
  .rp-fila__total { grid-area: total; }
  .rp-fila__nom { white-space: normal; }
  .rp-card { grid-template-columns: 62px 1fr; }
  .rp-fila__pos { width: 26px; height: 26px; font-size: .85rem; }
  .rp-campeon, .rp-links { margin-left: 14px; margin-right: 12px; }
}
