/* Peña Ciclista Lora del Río · Liga de Socios */
:root {
  --bg: #0d0d0f; --bg2: #141417; --panel: #18181c; --panel2: #1f1f24; --line: #2b2b31;
  --text: #f3f3f5; --muted: #9b9ba5; --red: #e30613; --red2: #ff3341;
  --gold: #f6c343; --silver: #cfd6de; --bronze: #d98b4e;
  --si: #3fbf6a; --esp: #4b8df0; --no: #e5484d;
  --radius: 14px; --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Barlow, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: .01em; }
.small { color: var(--muted); font-size: .85rem; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- barra superior ---------- */
.demo-banner { background: repeating-linear-gradient(45deg, #2a1a00, #2a1a00 12px, #332000 12px, #332000 24px); color: #ffcf70; text-align: center; font-size: .85rem; padding: 6px 10px; }
.demo-banner a { color: #fff; font-weight: 700; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 12px clamp(16px, 4vw, 48px); background: rgba(13,13,15,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, padding .3s; }
.topbar.is-scrolled { background: rgba(13,13,15,.92); border-color: var(--line); padding-top: 8px; padding-bottom: 8px; }
.topbar__brand img { height: 42px; width: auto; transition: height .3s; }
.topbar.is-scrolled .topbar__brand img { height: 34px; }
.topbar__nav { display: flex; gap: 6px; margin-left: auto; }
.topbar__nav a { text-decoration: none; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1.02rem; padding: 8px 12px; border-radius: 8px; position: relative; }
.topbar__nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.topbar__nav a:hover::after { transform: scaleX(1); }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.season { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.season select { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font: 700 1rem var(--display); cursor: pointer; }
.topbar__admin { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.topbar__admin:hover { color: #fff; border-color: var(--red); }
.topbar__burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.topbar__burger span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px) 40px; background: radial-gradient(ellipse 80% 60% at 75% 10%, rgba(227,6,19,.28), transparent 60%), linear-gradient(180deg, #121215, var(--bg)); isolation: isolate; }
.hero__lines { position: absolute; inset: 0; z-index: -1; transform: skewY(-12deg); opacity: .55; }
.hero__lines i { position: absolute; height: 2px; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, var(--red), transparent); animation: speed 3.2s linear infinite; }
.hero__lines i:nth-child(1) { top: 18%; animation-delay: 0s; }
.hero__lines i:nth-child(2) { top: 32%; animation-delay: 1.1s; width: 25%; }
.hero__lines i:nth-child(3) { top: 47%; animation-delay: 2s; }
.hero__lines i:nth-child(4) { top: 61%; animation-delay: .5s; width: 30%; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .3; }
.hero__lines i:nth-child(5) { top: 75%; animation-delay: 1.6s; }
.hero__lines i:nth-child(6) { top: 88%; animation-delay: 2.6s; width: 20%; }
@keyframes speed { to { left: 120%; } }
.hero__gear { position: absolute; z-index: -1; right: -120px; top: -80px; width: min(620px, 80vw); color: rgba(255,255,255,.06); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 70px); align-items: center; max-width: 1240px; margin: 0 auto; }
.hero__logo { width: 100%; max-width: 520px; filter: drop-shadow(0 10px 40px rgba(227,6,19,.25)); animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero__text { animation: rise .9s .15s cubic-bezier(.2,.8,.2,1) both; }
.eyebrow { display: inline-block; font: 700 .85rem var(--display); text-transform: uppercase; letter-spacing: .2em; color: var(--red2); margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.8rem); font-weight: 800; font-style: italic; text-transform: uppercase; }
.hero h1 span { color: var(--red); -webkit-text-stroke: 0; }
.hero__lead { color: #c9c9d1; max-width: 520px; font-size: 1.08rem; margin: 14px 0 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(227,6,19,.35); }
.btn--red:hover { background: var(--red2); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--strava { background: #fc4c02; color: #fff; }
.btn--small { padding: 7px 14px; font-size: .85rem; }

.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1240px; margin: clamp(30px, 5vw, 60px) auto 0; }
.stat { background: rgba(24,24,28,.75); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; animation: rise .8s both; backdrop-filter: blur(6px); }
.stat:nth-child(2) { animation-delay: .1s; } .stat:nth-child(3) { animation-delay: .2s; } .stat:nth-child(4) { animation-delay: .3s; }
.stat b { font: 800 2.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.stat b span { font-size: inherit; color: inherit; margin: 0; }
.stat b small { font-size: .5em; color: var(--muted); margin-left: 2px; }
.stat span { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.stat--lead { flex-direction: row; align-items: center; gap: 14px; }
.stat--lead img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); flex: none; }
.stat--lead div { display: flex; flex-direction: column; min-width: 0; }
.stat--lead b { color: var(--gold); }
.stat--next { border-color: rgba(227,6,19,.5); background: linear-gradient(135deg, rgba(227,6,19,.22), rgba(24,24,28,.8)); }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--red); color: #fff; white-space: nowrap; border-block: 1px solid #ff4b55; }
.ticker__track { display: inline-flex; gap: 22px; padding: 11px 0; animation: ticker 40s linear infinite; font: 600 1.02rem var(--display); letter-spacing: .04em; text-transform: uppercase; }
.ticker__track i { font-style: normal; opacity: .55; }
.ticker__track em { font-style: normal; opacity: .8; margin-left: 4px; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- secciones ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(50px, 8vw, 90px) clamp(16px, 4vw, 48px) 10px; }
.section__title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; font-style: italic; text-transform: uppercase; margin-bottom: 26px; }
.section__title span { color: var(--red); }
.section__sub { color: var(--muted); margin: -12px 0 26px; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.empty { color: var(--muted); text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); width: 100%; }

/* ---------- podio ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 2vw, 22px); align-items: end; max-width: 820px; margin: 0 auto; }
.podium__slot { background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.podium__avatar { position: relative; animation: rise .8s var(--d) both; }
.podium__avatar img { width: clamp(70px, 14vw, 120px); height: clamp(70px, 14vw, 120px); border-radius: 50%; object-fit: cover; border: 4px solid var(--c, #555); box-shadow: 0 0 0 6px rgba(0,0,0,.4), 0 0 40px color-mix(in srgb, var(--c) 45%, transparent); transition: transform .3s; }
.podium__slot:hover img { transform: scale(1.06) rotate(-3deg); }
.podium__slot strong { font: 700 clamp(1rem, 2.2vw, 1.3rem) var(--display); margin-top: 10px; }
.podium__slot small { color: var(--muted); }
.podium__block { width: 100%; margin-top: 10px; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 35%, #1b1b20), #141417); border-top: 4px solid var(--c); transform-origin: bottom; animation: grow 1s var(--d) cubic-bezier(.2,.8,.2,1) both; }
.podium__block b { font: 800 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); color: var(--c); }
.podium__block span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.podium__slot--1 { --c: var(--gold); } .podium__slot--1 .podium__block { height: 170px; }
.podium__slot--2 { --c: var(--silver); } .podium__slot--2 .podium__block { height: 120px; }
.podium__slot--3 { --c: var(--bronze); } .podium__slot--3 .podium__block { height: 90px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.medal { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem var(--display); color: #111; background: var(--c, #888); border: 3px solid var(--bg); }

/* ---------- pestañas y chips ---------- */
.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; font: 700 1rem var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); transition: background .25s, color .25s; }
.tabs button.is-active { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(227,6,19,.4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chips button { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 600; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; transition: border-color .2s, background .2s, transform .2s; }
.chips button small { color: var(--muted); font-weight: 500; font-size: .74rem; }
.chips button:hover:not(:disabled) { border-color: #555; transform: translateY(-1px); }
.chips button.is-active { border-color: var(--red); background: rgba(227,6,19,.14); }
.chips button:disabled { opacity: .35; cursor: not-allowed; }
.chips--months button { min-width: 82px; }
.chips--months button small { max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.tbl th { position: sticky; top: 0; background: var(--panel2); color: var(--muted); font: 700 .78rem var(--display); text-transform: uppercase; letter-spacing: .1em; padding: 12px 10px; text-align: left; white-space: nowrap; z-index: 2; }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--line); white-space: nowrap; background: var(--bg2); }
.tbl tr.row { cursor: pointer; }
.tbl tr.row:hover td { background: #1c1c21; }
.tbl .sticky { position: sticky; z-index: 1; }
.tbl th.sticky { z-index: 3; }
.tbl .c-pos { left: 0; width: 54px; text-align: center; }
.tbl .c-name { left: 54px; min-width: 210px; box-shadow: 6px 0 10px -8px rgba(0,0,0,.8); }
.tbl .c-m { text-align: center; min-width: 52px; position: relative; font-variant-numeric: tabular-nums; }
.tbl th.c-m.is-off { opacity: .45; }
.tbl .c-m i { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: .62rem; font-weight: 800; }
.tbl .c-si span { font-weight: 600; } .tbl .c-si i { color: var(--si); }
.tbl .c-esp i { color: var(--esp); } .tbl .c-esp span { color: #a9c8ff; }
.tbl .c-no span { color: var(--no); opacity: .8; }
.tbl .c-no { background: rgba(229,72,77,.06); }
.tbl .c-pend, .tbl .c-anul { color: #55555d; }
.tbl .c-ap { color: var(--gold); font-size: .85rem; text-align: center; }
.tbl .c-part { color: var(--muted); text-align: center; }
.tbl .c-tot { text-align: center; } .tbl .c-tot b { font: 800 1.25rem var(--display); }
.tbl td.c-tot { background: #17171b; }
.tbl--matrix .c-tot { position: sticky; right: 0; z-index: 1; box-shadow: -6px 0 10px -8px rgba(0,0,0,.8); }
.tbl--matrix th.c-tot { z-index: 3; }
.who { display: flex; align-items: center; gap: 10px; }
.who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: #2a2a2e; }
.who strong { font-weight: 600; }
.who small { display: block; color: var(--muted); font-size: .76rem; }
.pos { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; font: 800 1.05rem var(--display); background: #232328; }
.pos--sm { min-width: 26px; height: 26px; font-size: .95rem; }
.pos--1 { background: var(--gold); color: #111; } .pos--2 { background: var(--silver); color: #111; } .pos--3 { background: var(--bronze); color: #111; }
/* Los 3 primeros destacados */
.tbl tr.top td { background: color-mix(in srgb, var(--tc) 11%, var(--bg2)); }
.tbl tr.top:hover td { background: color-mix(in srgb, var(--tc) 18%, var(--bg2)); }
.tbl tr.top td:first-child { box-shadow: inset 4px 0 0 var(--tc); }
.tbl tr.top .c-pos .pos { background: var(--tc); color: #111; }
.tbl tr.top .c-tot b { color: var(--tc); }
.tbl tr.top .who img { box-shadow: 0 0 0 2px var(--tc); }
.top--1 { --tc: var(--gold); } .top--2 { --tc: var(--silver); } .top--3 { --tc: var(--bronze); }
.tbl tr.anim-in { animation: rowIn .5s both cubic-bezier(.2,.8,.2,1); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.opta { color: var(--gold); font-size: .8rem; margin-left: 6px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; background: #26262c; color: #cfcfd6; }
.tag--red { background: rgba(227,6,19,.18); color: #ff6a73; }
.tag--gold { background: rgba(246,195,67,.15); color: var(--gold); }
.legend { color: var(--muted); font-size: .85rem; margin-top: 14px; line-height: 2; }
.lg { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 6px; background: #222; font-weight: 800; font-size: .75rem; }
.lg--si { color: var(--si); } .lg--esp { color: var(--esp); } .lg--no { color: var(--no); }
.tramo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 18px 14px; flex-wrap: wrap; }
.tramo-head h3 { font-size: 2rem; font-style: italic; text-transform: uppercase; }
.tramo-head p { margin: 4px 0 0; color: var(--muted); }
.absent { padding: 12px 18px 16px; margin: 0; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
.absent b { color: var(--no); }

/* ---------- tarjetas de ciclistas ---------- */
.filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filters input, .filters select { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font: inherit; min-width: 220px; }
.filters input:focus, .filters select:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { text-align: left; background: linear-gradient(160deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 0; cursor: pointer; overflow: hidden; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .6s calc(min(var(--i), 12) * 50ms), transform .6s calc(min(var(--i), 12) * 50ms) cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s; }
.card.is-in { opacity: 1; transform: none; }
.card:hover { border-color: rgba(227,6,19,.6); box-shadow: 0 20px 40px rgba(0,0,0,.45); transform: translateY(-4px); }
.card__top { display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: radial-gradient(circle at 80% 50%, rgba(140,60,220,.18), transparent 60%), #111114; }
.card__photo { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s; }
.card:hover .card__photo { transform: scale(1.05); }
.card__radar { padding: 8px; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card__body strong { font: 700 1.3rem/1.1 var(--display); }
.card__body em { color: var(--muted); font-size: .9rem; margin-top: -4px; }
.card__ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-top: 6px; }
.card__ranks div { background: #111114; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.card__ranks small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.card__ranks b { font: 800 1.6rem/1.1 var(--display); }
.card__ranks span { font-size: .8rem; color: #c8c8d0; }
.dots { display: flex; gap: 4px; margin-top: 6px; }
.dot { width: 14px; height: 6px; border-radius: 3px; background: #2c2c33; }
.dot--si { background: var(--si); } .dot--esp { background: var(--esp); } .dot--no { background: var(--no); } .dot--x { background: #444; opacity: .4; }

/* ---------- radar ---------- */
.radar { width: 100%; height: auto; display: block; font-family: Barlow, sans-serif; overflow: visible; }
.radar__shape { animation: radarIn 1.1s cubic-bezier(.2,.9,.25,1.2) both; }
@keyframes radarIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.card:not(.is-in) .radar__shape { animation: none; transform: scale(0); }

/* ---------- calendario ---------- */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.tl { display: grid; grid-template-columns: 76px 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; opacity: 0; transform: translateY(30px); transition: opacity .6s calc(var(--i) * 60ms), transform .6s calc(var(--i) * 60ms) cubic-bezier(.2,.8,.2,1), border-color .2s; }
.tl.is-in { opacity: 1; transform: none; }
.tl:hover { border-color: #444; }
.tl__date { background: #111114; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.tl__date b { font: 800 2.4rem/1 var(--display); }
.tl__date span { font: 700 .9rem var(--display); letter-spacing: .12em; color: var(--muted); }
.tl__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tl__body h3 { font-size: 1.5rem; font-style: italic; text-transform: uppercase; }
.tl__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tl__state { font: 700 .75rem var(--display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tl__state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #555; }
.tl__desc { margin: 0; font-weight: 600; }
.tl__route, .tl__out { margin: 0; color: var(--muted); font-size: .86rem; }
.tl__win { margin: 2px 0 0; font-size: .9rem; color: var(--gold); }
.tl--done .tl__state { color: var(--si); } .tl--done .tl__state::before { background: var(--si); }
.tl--done .tl__date b { color: #d0d0d6; }
.tl--off { opacity: .5; } .tl--off .tl__state::before { background: var(--no); }
.tl--next { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), 0 20px 40px rgba(227,6,19,.18); }
.tl--next .tl__date { background: var(--red); border-color: var(--red); }
.tl--next .tl__date span { color: #fff; }
.tl--next .tl__state { color: var(--red2); } .tl--next .tl__state::before { background: var(--red2); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,51,65,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,51,65,0); } 100% { box-shadow: 0 0 0 0 rgba(255,51,65,0); } }

/* ---------- reglamento ---------- */
.rules { display: grid; gap: 16px; }
.rules__pdf { display: flex; align-items: center; gap: 20px; text-align: left; padding: 22px 26px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(227,6,19,.25), var(--panel) 55%); cursor: pointer; transition: transform .25s, border-color .25s; }
.rules__pdf:hover { transform: translateY(-3px); border-color: var(--red); }
.rules__pdf:hover svg { transform: rotate(-6deg) scale(1.05); }
.rules__pdf svg { transition: transform .3s; flex: none; }
.rules__pdf span { display: flex; flex-direction: column; flex: 1; }
.rules__pdf strong { font: 800 1.7rem var(--display); text-transform: uppercase; font-style: italic; }
.rules__pdf small { color: var(--muted); }
.rules__pdf em { font: 700 1rem var(--display); font-style: normal; text-transform: uppercase; letter-spacing: .1em; background: var(--red); padding: 10px 20px; border-radius: 999px; }
.rules__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.rule b { display: block; font: 800 2.6rem/1 var(--display); color: var(--red); }
.rule b small { font-size: .55em; color: var(--muted); }
.rule span { color: #c9c9d1; font-size: .92rem; }
.rules__cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.rules__cats .small { grid-column: 1 / -1; margin: 0; }
.catcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; border-top: 3px solid var(--red); }
.catcard b { display: block; font: 700 1.15rem var(--display); text-transform: uppercase; }
.catcard span { color: var(--muted); font-size: .84rem; }

/* ---------- modal / ficha ---------- */
.modal[hidden], [hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal__box { position: relative; width: min(900px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); transform: translateY(30px) scale(.97); opacity: 0; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .25s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.modal__close:hover { border-color: var(--red); }
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.profile__left { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.profile__photo { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; border: 4px solid var(--red); box-shadow: 0 0 0 8px rgba(227,6,19,.15); animation: rise .5s both; }
.profile h3 { font-size: 2rem; font-style: italic; text-transform: uppercase; margin-top: 8px; }
.profile__nick { color: var(--muted); }
.profile__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.profile__ranks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.profile__ranks div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; }
.profile__ranks small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.profile__ranks b { font: 800 2.4rem/1.05 var(--display); }
.profile__ranks span { font-size: .85rem; }
.profile__ranks .is-top-1 { border-color: var(--gold); } .profile__ranks .is-top-1 b { color: var(--gold); }
.profile__ranks .is-top-2 { border-color: var(--silver); } .profile__ranks .is-top-2 b { color: var(--silver); }
.profile__ranks .is-top-3 { border-color: var(--bronze); } .profile__ranks .is-top-3 b { color: var(--bronze); }
.profile__right h4, .profile__h { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.profile__radar { max-width: 470px; margin: 0 auto; }
.profile__h { margin-top: 22px; }
.months { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.month { background: var(--panel); border-radius: 10px; padding: 8px 4px; text-align: center; border-bottom: 3px solid #333; display: flex; flex-direction: column; min-width: 0; }
.month small { font: 700 .75rem var(--display); color: var(--muted); letter-spacing: .1em; }
.month b { font: 800 1.4rem var(--display); }
.month span { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month--si { border-color: var(--si); } .month--esp { border-color: var(--esp); }
.month--no { border-color: var(--no); } .month--no b { color: var(--no); }
.month--p b, .month--x b { color: #55555d; }
.profile__foot { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.modal--pdf .modal__box { width: min(1100px, 100%); height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pdfbar { display: flex; align-items: center; gap: 14px; padding: 12px 64px 12px 20px; border-bottom: 1px solid var(--line); }
.pdfbar strong { font: 700 1.2rem var(--display); text-transform: uppercase; flex: 1; }
.pdfbar .modal__close { top: 8px; }
#pdfFrame { flex: 1; width: 100%; border: 0; background: #444; }

/* ---------- pie ---------- */
.footer { margin-top: 80px; padding: 40px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; background: #0a0a0c; }
.footer a { color: var(--muted); font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { margin: 0 auto; max-width: 380px; }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .stats { grid-template-columns: 1fr 1fr; }
  .rules__grid { grid-template-columns: 1fr 1fr; }
  .rules__cats { grid-template-columns: repeat(3, 1fr); }
  .profile { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { gap: 10px; }
  .topbar__brand img { height: 34px; }
  .topbar__burger { display: block; }
  .season span { display: none; }
  .season { padding-left: 4px; }
  .topbar__nav { position: fixed; inset: 58px 0 auto 0; flex-direction: column; background: rgba(13,13,15,.98); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s cubic-bezier(.2,.8,.2,1); margin: 0; }
  .nav-open .topbar__nav { transform: none; }
  .nav-open .topbar__burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .topbar__burger span:nth-child(2) { opacity: 0; }
  .nav-open .topbar__burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .topbar__nav a { font-size: 1.3rem; padding: 12px 4px; }
  .stat { padding: 14px; } .stat b { font-size: 2rem; }
  .stat--lead { flex-direction: column; align-items: flex-start; }
  .tbl .c-name { min-width: 150px; }
  .tbl .c-name .who img { width: 26px; height: 26px; }
  .tbl .c-name .who strong { font-size: .88rem; white-space: normal; display: inline-block; max-width: 120px; line-height: 1.15; }
  .tbl .c-pos { width: 44px; } .tbl .c-name { left: 44px; }
  .months { grid-template-columns: repeat(6, 1fr); }
  .rules__pdf { flex-wrap: wrap; }
  .rules__cats { grid-template-columns: 1fr 1fr; }
  .podium__block b { font-size: 1.6rem; }
  .podium__slot--1 .podium__block { height: 130px; } .podium__slot--2 .podium__block { height: 95px; } .podium__slot--3 .podium__block { height: 70px; }
  .timeline { grid-template-columns: 1fr; }
  .filters input, .filters select { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .card, .tl { opacity: 1; transform: none; }
}
