/* =========================================================
   Club Baloncesto Alcobendas · web pública (diseño B)
   ========================================================= */

:root {
  --granate: #6B1526;
  --granate-osc: #4B0E1A;
  --azul: #13213F;
  --oro: #F2B33D;
  --naranja: #E07A2E;
  --fondo: #F3F1F2;
  --blanco: #FFFFFF;
  --texto: #13213F;
  --suave: #4A5168;
  --linea: #D5D2DA;
  --rosa: #F1DDE1;
  --rosa-2: #E5C9CF;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 82px;
  --wrap: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; background: var(--fondo); color: var(--texto); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--granate); }
a:hover { color: var(--granate-osc); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--oro); color: var(--azul); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { left: 12px; }
.empty { color: inherit; opacity: .75; padding: 18px 0; }
.big-title { font-family: var(--display); font-weight: 900; font-size: clamp(48px, 6vw, 80px); line-height: .9; }
.mid-title { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; margin: 8px 0 18px; }

/* ---------- Botones ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.pill--gold { background: var(--oro); color: var(--azul); }
.pill--gold:hover { background: #F6C35E; color: var(--azul); }
.pill--solid { background: var(--granate); color: var(--blanco); }
.pill--solid:hover { background: var(--granate-osc); color: var(--blanco); }
.pill--outline { border: 2px solid var(--blanco); color: var(--blanco); }
.pill--outline:hover { background: var(--blanco); color: var(--azul); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--azul); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.round-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round-btn--solid { background: var(--granate); border-color: var(--granate); color: var(--blanco); }

/* ---------- Menú ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--granate); color: var(--blanco); box-shadow: 0 2px 0 rgba(0,0,0,.12); }
.nav__inner { min-height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.nav__brand { display: flex; align-items: center; gap: 14px; color: var(--blanco); text-decoration: none; }
.nav__brand:hover { color: var(--blanco); }
.nav__brand img { height: 58px; width: auto; }
.nav__brand > span { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: .9; letter-spacing: .01em; }
.nav__brand > span span { display: block; }
.nav__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 16px; font-weight: 500; }
.nav__menu a { color: var(--blanco); text-decoration: none; padding: 12px; border-radius: 999px; }
.nav__menu a:hover { background: rgba(255,255,255,.1); color: var(--blanco); }
.nav__menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__menu .nav__cta { margin-left: 10px; padding: 12px 20px; background: var(--oro); color: var(--azul); font-weight: 700; }
.nav__menu .nav__cta:hover { background: #F6C35E; color: var(--azul); }
.nav__toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: var(--blanco); font-weight: 700; font-size: 16px; cursor: pointer; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -6px; }
.nav__toggle-bars::after { top: 6px; }

/* Desplegables del menú (Club > Directiva, Socios…) */
.nav__group { position: relative; display: flex; align-items: center; }
.nav__menu .nav__group > .nav__parent { padding-right: 4px; }
.nav__group.is-current > .nav__parent { text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav__parent--btn { display: inline-flex; align-items: center; gap: 6px; padding: 12px; border: 0; border-radius: 999px; background: transparent; color: var(--blanco); font: inherit; cursor: pointer; }
.nav__parent--btn:hover { background: rgba(255,255,255,.1); }
.nav__parent--btn .nav__chev { width: auto; height: auto; padding: 0; }
button.nav__chev { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--blanco); cursor: pointer; }
button.nav__chev:hover { background: rgba(255,255,255,.1); }
.nav__chev::before { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.nav__parent--btn .nav__chev::before { display: block; }
.nav__group.is-open .nav__chev::before { transform: translateY(2px) rotate(-135deg); }
.nav__sub { list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 320px; background: var(--azul); border-top: 4px solid var(--oro); border-radius: 0 0 16px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.nav__group.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 1101px) {
  .nav__group:hover > .nav__sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__group:hover .nav__chev::before { transform: translateY(2px) rotate(-135deg); }
}
.nav__menu .nav__sub a { display: block; padding: 13px 16px; border-radius: 10px; font-size: 17px; font-weight: 500; line-height: 1.25; border-left: 3px solid transparent; }
.nav__menu .nav__sub a:hover, .nav__menu .nav__sub a:focus-visible { background: rgba(255,255,255,.08); border-left-color: var(--oro); }
.nav__menu .nav__sub a[aria-current="page"] { text-decoration: none; color: var(--oro); border-left-color: var(--oro); font-weight: 700; }

@media (max-width: 1100px) {
  :root { --nav-h: 74px; }
  .nav__brand img { height: 50px; }
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--granate); padding: 8px 20px 20px; flex-direction: column; align-items: stretch; box-shadow: 0 16px 30px rgba(0,0,0,.25); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 12px; font-size: 18px; border-radius: 10px; }
  .nav__menu .nav__cta { margin: 10px 0 0; text-align: center; }
  .nav__menu { flex-wrap: nowrap; max-height: calc(100svh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
  .nav__group { flex-wrap: wrap; }
  .nav__menu .nav__group > .nav__parent { flex: 1; padding-right: 12px; }
  .nav__parent--btn { justify-content: space-between; padding: 14px 12px; font-size: 18px; border-radius: 10px; text-align: left; }
  button.nav__chev { width: 52px; height: 52px; border-radius: 10px; }
  .nav__sub { position: static; flex-basis: 100%; min-width: 0; display: none; margin: 2px 0 8px 12px; padding: 4px 0 4px 10px; background: transparent; border: 0; border-left: 2px solid var(--oro); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .nav__group.is-open > .nav__sub { display: block; }
  .nav__menu .nav__sub a { font-size: 17px; padding: 12px 12px; border-left: 0; }
}

/* ---------- Cabecera ---------- */
.hero { position: sticky; top: var(--nav-h); z-index: 0; height: min(720px, calc(100svh - var(--nav-h))); min-height: 520px; overflow: hidden; background: var(--azul); --p: 0; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transform-origin: center 30%; transform: scale(calc(1 + var(--p) * .14)) translateY(calc(var(--p) * 70px)); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,33,63,.15) 0%, rgba(19,33,63,.08) 45%, rgba(75,14,26,.92) 100%); }
.hero__dark { position: absolute; inset: 0; background: var(--granate-osc); opacity: var(--p); }
.hero__content { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(calc(var(--p) * -110px)); opacity: calc(1 - var(--p)); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 40px; }
.hero__title { font-family: var(--display); font-weight: 900; font-size: clamp(88px, 15vw, 240px); line-height: .78; color: var(--blanco); letter-spacing: -.01em; }
.hero__title span { display: block; color: var(--oro); }
.hero-card { flex: 0 1 400px; background: var(--blanco); color: var(--texto); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 40px rgba(19,33,63,.35); }
.hero-card__slide { display: flex; flex-direction: column; gap: 12px; }
.hero-card__top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.hero-card__tag { font-weight: 600; color: var(--granate); }
.hero-card__count { color: #5A6278; }
.hero-card__title { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: .95; color: var(--texto); text-decoration: none; }
.hero-card__title:hover { color: var(--granate); }
.hero-card__text { font-size: 16px; line-height: 1.45; color: var(--suave); }
.hero-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.hero-card__more { font-weight: 700; font-size: 16px; }
.hero-card__arrows { display: flex; gap: 8px; }
/* Ficha destacada (campus, inscripciones...) junto a la tarjeta de noticias */
.hero__side { display: flex; align-items: stretch; justify-content: flex-end; gap: 14px; flex: 0 1 604px; min-width: 0; margin-left: auto; }
.hero__side .hero-card { flex: 0 1 400px; min-width: 0; }
.promo-card { flex: 0 0 190px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 14px; background: var(--oro); color: var(--azul); text-decoration: none; box-shadow: 0 18px 40px rgba(19,33,63,.35); transition: transform .25s ease, box-shadow .25s ease; }
a.promo-card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px rgba(19,33,63,.45); color: var(--azul); }
.promo-card__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; background: var(--azul); color: var(--oro); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.promo-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--oro); animation: promo-pulse 1.6s ease-in-out infinite; }
@keyframes promo-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.promo-card__title { font-family: var(--display); font-weight: 900; font-size: 34px; line-height: .92; }
.promo-card__text { font-size: 15px; line-height: 1.4; }
.promo-card__btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: var(--granate); color: var(--blanco); font-weight: 700; font-size: 16px; }
.promo-card__btn svg, .cantera-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
a.promo-card:hover .promo-card__btn svg, .cantera-btn:hover svg { transform: translateX(4px); }
@media (max-width: 1100px) {
  .hero__side { flex-basis: 100%; }
}

/* Todo lo que va después de la cabecera sube por encima de ella */
.over-hero { position: relative; z-index: 1; }
.is-inner main { position: relative; z-index: 1; }

/* ---------- Partidos y marcador ---------- */
.matches { background: var(--granate-osc); color: var(--blanco); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 40px rgba(0,0,0,.25); }
.matches > .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.matches--page { border-radius: 0; box-shadow: none; }
.scoreboard { display: flex; flex-direction: column; gap: 30px; padding-bottom: 40px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.scoreboard__title { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: var(--oro); }
.scoreboard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: center; gap: 32px; }
.scoreboard__team { display: flex; align-items: center; gap: 18px; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 3.2vw, 48px); line-height: .9; }
.scoreboard__team img { height: 92px; width: auto; flex: 0 0 auto; }
.scoreboard__team--away { justify-content: flex-end; text-align: right; }
.scoreboard__rival { width: 88px; height: 88px; flex: 0 0 auto; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 30px; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: clamp(3px, .6vw, 8px); font-family: var(--display); font-variant-numeric: tabular-nums; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 38px; }
.countdown__unit span, .countdown__sep { font-weight: 900; font-size: clamp(30px, 3.8vw, 58px); line-height: .85; color: var(--oro); }
.countdown__sep { opacity: .6; }
@media (min-width: 1101px) { .scoreboard__grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.countdown__unit small { font-family: var(--body); font-size: 13px; font-weight: 600; color: var(--rosa-2); }
.scoreboard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.scoreboard__meta p { font-size: 18px; line-height: 1.5; color: var(--rosa); }
.scoreboard__live { font-weight: 700; color: var(--oro) !important; }
.matches__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.matches__head h2 { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; }
.tabs { display: flex; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; cursor: pointer; font-size: 16px; font-weight: 700; background: transparent; color: var(--blanco); }
.tabs button[aria-selected="true"] { background: var(--blanco); color: var(--granate-osc); }
.match-list { display: flex; flex-direction: column; }
.match-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; align-items: center; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.18); }
.match-row:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.match-row__comp { font-size: 15px; color: var(--oro); font-weight: 600; }
.match-row__teams { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.05; color: var(--rosa-2); display: flex; flex-direction: column; }
.match-row__teams .is-club { font-weight: 800; font-size: 28px; color: var(--blanco); }
.match-row__when { font-size: 17px; display: flex; flex-direction: column; }
.match-row__when span { color: var(--rosa-2); }
.badge { justify-self: start; font-size: 15px; padding: 6px 12px; border-radius: 999px; font-weight: 700; }
.badge--home { background: var(--oro); color: var(--azul); }
.badge--away { border: 1.5px solid rgba(255,255,255,.6); font-weight: 600; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.result { background: rgba(255,255,255,.07); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.result__top { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--rosa-2); }
.result__comp { color: var(--oro); font-weight: 600; }
.result__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--rosa-2); }
.result__line.is-club { font-weight: 800; color: var(--blanco); }
.matches__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 24px; padding-top: 8px; }
.matches__foot p { font-size: 15px; color: var(--rosa-2); max-width: 46ch; }
.cantera-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 30px; border-radius: 999px; background: var(--oro); color: var(--azul); font-family: var(--display); font-weight: 900; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; text-transform: uppercase; letter-spacing: .01em; text-decoration: none; box-shadow: 0 10px 26px rgba(0,0,0,.25); transition: background .2s ease, transform .2s ease; }
.cantera-btn:hover { background: #F6C35E; color: var(--azul); transform: translateY(-2px); }
.cantera-btn svg { width: 26px; height: 26px; stroke-width: 2.8; }

/* ---------- Noticias ---------- */
.news { background: var(--fondo); }
.news > .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head__link { font-weight: 700; font-size: 17px; }
.news__top { display: flex; flex-wrap: wrap; gap: 20px; }
.news-lead { flex: 2 1 560px; min-width: 0; text-decoration: none; color: var(--texto); display: flex; flex-direction: column; gap: 14px; }
.news-lead img, .news-side img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reveal-img { display: block; border-radius: 14px; overflow: hidden; background: #E2DEE1; }
.news-lead__cat { font-size: 15px; color: var(--granate); font-weight: 600; }
.news-lead__title { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: .95; }
.news__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.news-side { text-decoration: none; color: var(--texto); display: flex; flex-direction: column; gap: 10px; }
.news-side__title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.news-lead:hover .news-lead__title, .news-side:hover .news-side__title { color: var(--granate); }
.news__more { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.news-mini { text-decoration: none; color: var(--texto); display: flex; gap: 14px; align-items: center; background: var(--blanco); border-radius: 14px; padding: 12px; }
.news-mini img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.news-mini span { font-weight: 600; font-size: 17px; line-height: 1.3; }
.news-mini:hover span { color: var(--granate); }

/* ---------- Equipos en portada ---------- */
.teams-home { background: var(--blanco); overflow-x: clip; }
.teams-home__inner { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; }
.teams-home__intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.teams-home__intro p { font-size: 18px; line-height: 1.55; color: var(--suave); max-width: 380px; }
.team-list { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.team-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 18px 0; border-top: 1px solid var(--linea); text-decoration: none; color: var(--texto); }
.team-row:first-child { border-top: 2px solid var(--texto); }
.team-row:last-child { border-bottom: 1px solid var(--linea); }
.team-row__name { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4.4vw, 60px); line-height: .95; }
.team-row__sub { font-size: 16px; color: var(--granate); font-weight: 600; }
.team-row:hover .team-row__name { color: var(--granate); }

/* ---------- 40 aniversario y balón ---------- */
.anniversary { position: relative; background: var(--azul); color: var(--blanco); overflow: hidden; --x: 0px; --r: 0deg; }
.anniversary__inner { padding-top: 88px; padding-bottom: 300px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; position: relative; z-index: 1; }
.anniversary__text { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.anniversary__text h2 { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 9vw, 140px); line-height: .84; }
.anniversary__text p { font-size: 18px; line-height: 1.55; color: #C9CFDD; max-width: 520px; }
.anniversary__logo { flex: 0 1 320px; width: 320px; max-width: 100%; height: auto; }
.anniversary__court { position: absolute; left: 0; right: 0; bottom: 0; height: 250px; border-top: 3px solid var(--naranja); }
.anniversary__ball { position: absolute; left: 0; bottom: 20px; width: 230px; height: 230px; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); transform: translateX(var(--x)) rotate(var(--r)); will-change: transform; }

/* ---------- Bloques destacados (3 a 9, filas de 3) ---------- */
.tiles { background: var(--fondo); overflow: hidden; }
.tiles__grid { padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; border-radius: 18px; padding: 34px; display: flex; flex-direction: column; gap: 16px; min-height: 360px; text-decoration: none; overflow: hidden; }
.tile__title { font-family: var(--display); font-weight: 900; font-size: 50px; line-height: .9; }
.tile__text { font-size: 17px; line-height: 1.5; }
.tile__btn { margin-top: auto; align-self: flex-start; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.tile--granate { background: var(--granate); color: var(--blanco); }
.tile--granate .tile__text { color: var(--rosa); }
.tile--granate .tile__btn { background: var(--oro); color: var(--azul); }
.tile--oro { background: var(--oro); color: var(--azul); }
.tile--oro .tile__btn { background: var(--azul); color: var(--blanco); }
.tile--azul { background: var(--azul); color: var(--blanco); }
.tile--azul .tile__text { color: #C9CFDD; }
.tile--azul .tile__btn { background: var(--blanco); color: var(--azul); }
.tile--blanco { background: var(--blanco); color: var(--azul); border: 1px solid #E2DDE0; }
.tile--blanco .tile__text { color: var(--suave); }
.tile--blanco .tile__btn { background: var(--granate); color: var(--blanco); }
.tile--photo { padding: 0; color: var(--blanco); background: var(--azul); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile--photo:hover img { transform: scale(1.04); }
.tile__photo-text { position: relative; margin-top: auto; width: 100%; padding: 24px; background: linear-gradient(180deg, rgba(19,33,63,0) 0%, rgba(19,33,63,.92) 60%); display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.tile--photo .tile__title { font-size: 40px; line-height: .95; }
a.tile--granate:hover, a.tile--azul:hover, a.tile--photo:hover { color: var(--blanco); }
a.tile--oro:hover, a.tile--blanco:hover { color: var(--azul); }
a.tile:not(.tile--photo):hover .tile__btn { filter: brightness(1.08); }

@media (max-width: 1000px) { .tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tiles__grid { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 280px; } .tile__title { font-size: 42px; } }

/* ---------- Patrocinadores ---------- */
.sponsors { background: var(--blanco); overflow: hidden; padding: 48px 0 56px; }
.sponsors__title { font-family: var(--body); font-size: 18px; font-weight: 600; color: var(--suave); margin-bottom: 24px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 72px; padding-left: 28px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track a, .marquee__track span { display: block; flex: 0 0 auto; }
.marquee__track img { height: 64px; width: auto; max-width: 220px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Instagram (debajo de los patrocinadores): mosaico, cuadrícula o carrusel ---------- */
.insta { background: var(--fondo); border-top: 1px solid var(--linea); }
.insta__inner { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 32px; }
.insta__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 24px; }
.insta__titles { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.insta__handle { align-self: flex-start; font-weight: 700; font-size: 16px; color: var(--granate); background: var(--rosa); padding: 6px 14px; border-radius: 999px; }
.insta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.insta__arrows { display: flex; gap: 8px; }
.insta__arrows .round-btn:disabled { opacity: .35; cursor: default; }
.insta__follow { gap: 10px; }
.insta__follow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.insta__grid { list-style: none; margin: 0; padding: 0; }
.insta__item { position: relative; min-width: 0; }
.insta__link { display: block; color: var(--blanco); text-decoration: none; }
.insta__link:hover, .insta__link:focus-visible { color: var(--blanco); }
.insta__media { position: relative; display: block; overflow: hidden; border-radius: 14px; background: #E2DEE1; }
.insta__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.insta__link:hover img, .insta__link:focus-visible img { transform: scale(1.06); }
.insta__kind { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(19,33,63,.55); display: flex; align-items: center; justify-content: center; }
.insta__kind svg { width: 17px; height: 17px; fill: var(--blanco); stroke: var(--blanco); stroke-width: 1.8; stroke-linejoin: round; }
.insta__over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; background: linear-gradient(180deg, rgba(75,14,26,0) 30%, rgba(75,14,26,.92) 100%); opacity: 0; transition: opacity .35s ease; }
.insta__link:hover .insta__over, .insta__link:focus-visible .insta__over { opacity: 1; }
.insta__cap { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.insta__date { font-size: 13px; font-weight: 700; color: var(--oro); text-transform: uppercase; letter-spacing: .04em; }

/* Mosaico y cuadrícula: cuadrados que llenan su hueco */
.insta--mosaico .insta__grid, .insta--cuadricula .insta__grid { display: grid; gap: 12px; grid-auto-flow: dense; }
.insta--mosaico .insta__item, .insta--cuadricula .insta__item { aspect-ratio: 1 / 1; }
.insta--mosaico .insta__link, .insta--cuadricula .insta__link { position: absolute; inset: 0; }
.insta--mosaico .insta__media, .insta--cuadricula .insta__media { position: absolute; inset: 0; }
.insta--mosaico .insta__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.insta__item--big { grid-column: span 2; grid-row: span 2; }
.insta__item--big .insta__cap { font-size: 18px; -webkit-line-clamp: 4; }
.insta--cuadricula .insta__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.insta--cuadricula .insta__media { border-radius: 18px; }

/* Carrusel: tarjetas con la foto y el texto debajo */
.insta--carrusel .insta__inner { padding-right: 0; }
.insta--carrusel .insta__head { padding-right: 28px; }
.insta--carrusel .insta__grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 0; padding: 4px 28px 18px 4px; margin-left: -4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.insta--carrusel .insta__grid::-webkit-scrollbar { display: none; }
.insta--carrusel .insta__grid:focus-visible { outline: 3px solid var(--oro); outline-offset: 4px; border-radius: 18px; }
.insta--carrusel .insta__item { flex: 0 0 clamp(240px, 24vw, 310px); scroll-snap-align: start; }
.insta--carrusel .insta__link { height: 100%; display: flex; flex-direction: column; background: var(--blanco); border-radius: 18px; overflow: hidden; color: var(--texto); box-shadow: 0 1px 0 rgba(19,33,63,.06); transition: box-shadow .3s ease, transform .3s ease; }
.insta--carrusel .insta__link:hover, .insta--carrusel .insta__link:focus-visible { color: var(--texto); box-shadow: 0 18px 36px rgba(19,33,63,.16); transform: translateY(-4px); }
.insta--carrusel .insta__media { aspect-ratio: 1 / 1; border-radius: 0; }
.insta__card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.insta--carrusel .insta__date { color: var(--granate); }
.insta--carrusel .insta__cap { font-size: 16px; color: var(--texto); }

.js .insta__item.reveal { opacity: 0; transform: translateY(36px) scale(.94); transition: opacity .6s ease, transform .8s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 60ms); }
.js .insta__item.reveal.is-in { opacity: 1; transform: none; }
@media (hover: none) { .insta__over { opacity: 1; background: linear-gradient(180deg, rgba(75,14,26,0) 62%, rgba(75,14,26,.85) 100%); } .insta__over .insta__cap { display: none; } }
@media (max-width: 1000px) {
  .insta--mosaico .insta__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .insta--cuadricula .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insta--cuadricula .insta__item:nth-child(n+7) { display: none; }
}
@media (max-width: 720px) {
  .insta--carrusel .insta__head { padding-right: 16px; }
  .insta--carrusel .insta__grid { padding-right: 16px; gap: 12px; }
  .insta--carrusel .insta__item { flex-basis: 72vw; }
}
@media (max-width: 640px) {
  .insta__inner { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .insta--mosaico .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .insta--cuadricula .insta__grid { gap: 6px; }
  .insta--mosaico .insta__media, .insta--cuadricula .insta__media { border-radius: 10px; }
  .insta--mosaico .insta__kind, .insta--cuadricula .insta__kind { top: 6px; right: 6px; width: 26px; height: 26px; }
  .insta--mosaico .insta__kind svg, .insta--cuadricula .insta__kind svg { width: 14px; height: 14px; }
  .insta__over { padding: 10px; }
  .insta--mosaico .insta__item:not(.insta__item--big) .insta__over .insta__date, .insta--cuadricula .insta__over .insta__date { display: none; }
  .insta__actions { width: 100%; }
  .insta__follow { flex: 1 1 auto; }
  .insta__arrows { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .insta__item.reveal { opacity: 1; transform: none; transition: none; }
  .insta__media img, .insta--carrusel .insta__link { transition: none; }
}

/* ---------- Pie ---------- */
.footer { position: relative; overflow: hidden; background: var(--granate-osc); color: var(--rosa); z-index: 1; }
.footer__ball { position: absolute; right: -120px; top: -60px; width: 420px; height: 420px; opacity: .08; pointer-events: none; }
.footer__inner { position: relative; padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; font-size: 16px; line-height: 1.6; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { height: 64px; width: auto; }
.footer__brand span { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: .9; color: var(--blanco); }
.footer a { color: var(--blanco); }
.footer__muted { color: #D6B3BA; font-size: 15px; }
.footer__links { display: flex; flex-direction: column; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #D6B3BA; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal a { color: #F1DDE1; }

/* ---------- Páginas interiores ---------- */
.page-head { background: var(--granate); color: var(--blanco); }
.page-head .wrap { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(52px, 7vw, 104px); line-height: .88; max-width: 1100px; }
.page-head p { font-size: 19px; color: var(--rosa); max-width: 680px; }
.page-head--news h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: .92; }
.page-head__meta { font-weight: 600; color: var(--oro) !important; font-size: 16px !important; }
.page-head__back { align-self: flex-start; color: var(--rosa); font-weight: 600; font-size: 15px; }
.page-head__back:hover { color: var(--blanco); }
.page-body { background: var(--fondo); }
.page-body > .wrap { padding-top: 56px; padding-bottom: 80px; }
.page-body--alt { background: var(--blanco); }
.page-body__inner { display: flex; flex-direction: column; gap: 36px; }
.page-body__img { width: 100%; max-width: 1000px; max-height: 620px; object-fit: cover; border-radius: 18px; }
.prose { max-width: 760px; font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; margin-top: 1.6em; }
.prose h3 { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--oro); font-size: 20px; }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--blanco); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #E7E3E6; vertical-align: top; }
.prose th { background: var(--azul); color: var(--blanco); font-weight: 600; }
.prose a { font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px 20px; }
.card { text-decoration: none; color: var(--texto); display: flex; flex-direction: column; gap: 10px; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: #E2DEE1; }
.card__meta { font-size: 15px; color: var(--granate); font-weight: 600; }
.card__title { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; }
.card:hover .card__title { color: var(--granate); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; font-weight: 600; }
.team-groups { display: flex; flex-wrap: wrap; }
.team-group { flex: 1 1 420px; padding: 64px 28px; display: flex; flex-direction: column; gap: 22px; scroll-margin-top: var(--nav-h); }
.team-group h2 { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 6vw, 92px); line-height: .85; }
.team-group__eyebrow { margin: 0 0 6px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.team-group--senior { background: var(--blanco); color: var(--azul); flex-basis: 100%; }
.team-group--senior .team-group__eyebrow, .team-group--senior small { color: var(--granate); opacity: 1; }
.team-group--senior .team-group__list { font-size: clamp(24px, 2.4vw, 30px); }
.team-group--femenino { background: var(--granate); color: var(--blanco); }
.team-group--masculino { background: var(--azul); color: var(--blanco); }
.team-group--minibasket { background: var(--oro); color: var(--azul); flex-basis: 100%; }
.team-group__list { display: flex; flex-direction: column; font-size: 21px; font-weight: 700; }
.team-group__list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 0; border-top: 1px solid currentColor; text-decoration: none; color: inherit; }
.team-group__list a:last-child { border-bottom: 1px solid currentColor; }
.team-group__list a.is-first { border-top-width: 2px; }
.team-group__list small { font-size: 16px; font-weight: 500; opacity: .85; }
.team-group__list a:hover span { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Franja con el escudo clásico (entre noticias y equipos) ---------- */
.crest-band { position: relative; background: var(--granate-osc); }
.crest-band__stage { position: relative; height: clamp(280px, 42vh, 420px); overflow: hidden; display: grid; place-items: center; }
.crest-band__glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(242,179,61,.34) 0%, rgba(224,122,46,.14) 20%, rgba(75,14,26,0) 48%); opacity: var(--cb-glow, 1); transform: scale(var(--cb-gs, 1)); }
.crest-band__word { position: absolute; left: 50%; font-family: var(--display); font-weight: 900; font-size: clamp(64px, 11vw, 170px); line-height: .8; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.3); opacity: var(--cb-text, 1); pointer-events: none; user-select: none; }
.crest-band__word--a { top: 9%; transform: translateX(calc(-50% + var(--cb-x, 0px))); }
.crest-band__word--b { bottom: 9%; transform: translateX(calc(-50% - var(--cb-x, 0px))); -webkit-text-stroke-color: rgba(242,179,61,.55); }
.crest-band__crest { position: relative; width: min(30vmin, 220px); height: auto; transform: scale(var(--cb-s, 1)) rotate(var(--cb-r, 0deg)); opacity: var(--cb-o, 1); filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); will-change: transform, opacity; }
@media (max-width: 720px) { .crest-band__stage { height: 260px; } .crest-band__crest { width: 150px; } .crest-band__word { -webkit-text-stroke-width: 1.2px; } }

/* ---------- Móvil ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { min-height: 480px; }
  .hero__inner { gap: 18px; padding-bottom: 20px; }
  .hero-card { flex-basis: 100%; padding: 18px; }
  .hero-card__title { font-size: 28px; }
  .hero-card__text { display: none; }
  .hero__side { flex-direction: column; gap: 12px; }
  .hero__side .hero-card { flex-basis: auto; }
  .promo-card { flex-basis: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; }
  .promo-card__tag { flex-basis: 100%; align-self: auto; justify-content: flex-start; width: max-content; }
  .promo-card__title { font-size: 26px; flex: 1 1 auto; }
  .promo-card__text { display: none; }
  .promo-card__btn { margin-top: 0; align-self: center; }
  .cantera-btn { width: 100%; justify-content: center; }
  .scoreboard__team img { height: 64px; }
  .scoreboard__team--away { justify-content: flex-start; flex-direction: row-reverse; text-align: left; }
  .scoreboard__rival { width: 64px; height: 64px; font-size: 24px; }
  .countdown__unit { min-width: 0; }
  .countdown__unit small { font-size: 13px; }
  .matches__head h2 { font-size: 38px; }
  .news-lead__title { font-size: 32px; }
  .anniversary__inner { padding-bottom: 220px; }
  .anniversary__court { height: 180px; }
  .anniversary__ball { width: 150px; height: 150px; }
  .team-group { padding: 48px 16px; }
}

/* ---------- Animaciones al hacer scroll (solo con JavaScript activo) ---------- */
.js .reveal { opacity: .15; transform: translateY(50px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .team-row.reveal { transform: translateX(90px); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img img { clip-path: inset(12% 10% 12% 10%); transform: scale(1.08); transition: clip-path .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Noticias pequeñas: entran con zoom */
.js .news-mini.reveal { opacity: 0; transform: perspective(1000px) translateY(70px) scale(.68) rotateX(16deg); transform-origin: 50% 100%; transition: opacity .7s ease, transform 1.1s cubic-bezier(.16,1,.3,1); }
.js .news-mini.reveal.is-in { opacity: 1; transform: none; }

/* Fichas de abajo: se montan con el scroll (--t va de 0 a 1) y se inclinan con el ratón */
.tiles--live { position: relative; }
.tiles--live .tile {
  --t: 0; --c: 0; --rx: 0deg; --ry: 0deg; --h: 0;
  transform: perspective(1100px)
    translate3d(calc((1 - var(--t)) * var(--dx, 0px)), calc((1 - var(--t)) * 160px), 0)
    scale(calc(.55 + .45 * var(--t)))
    rotate(calc((1 - var(--t)) * var(--rz, 0deg)))
    rotateX(var(--rx)) rotateY(var(--ry));
  opacity: calc(var(--t) * 1.4 - .2);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease, box-shadow .3s ease;
  will-change: transform, opacity;
}
.tiles--live .tile > * { transform: translateY(calc((1 - var(--c)) * 36px)); opacity: var(--c); transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.tiles--live .tile > .tile__title { transition-delay: 0s; }
.tiles--live .tile > .tile__text { transition-delay: .06s; }
.tiles--live .tile > .tile__btn { transition-delay: .12s; }
.tiles--live .tile--photo > img { transform: scale(calc(1 + .5 * (1 - var(--t)) + .06 * var(--h))); opacity: 1; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tiles--live .tile:hover { --h: 1; box-shadow: 0 26px 50px rgba(19,33,63,.28); z-index: 2; }
.tiles--live .tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), rgba(255,255,255,0) 45%); opacity: var(--h); transition: opacity .3s ease; }


@media (prefers-reduced-motion: reduce) {
  .hero__photo, .hero__content, .anniversary__ball { transform: none !important; }
  .hero__dark { opacity: 0 !important; }
  .hero__content { opacity: 1 !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .promo-card__dot { animation: none; }
  .js .news-mini.reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal, .js .reveal-img img { opacity: 1; transform: none; clip-path: none; transition: none; }
}

/* ---------- Partidos del fin de semana (todas las categorías) ---------- */
.weekend > .wrap { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 30px; }
.weekend__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.weekend__head .mid-title { margin: 0 0 6px; }
.weekend__count { color: var(--suave); font-weight: 600; }
.chips-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-filter button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--linea); background: var(--blanco); color: var(--azul); font-size: 16px; font-weight: 700; cursor: pointer; }
.chips-filter button:hover { border-color: var(--granate); color: var(--granate); }
.chips-filter button[aria-pressed="true"] { background: var(--granate); border-color: var(--granate); color: var(--blanco); }
.weekend__day { display: flex; flex-direction: column; gap: 14px; }
.weekend__day h3 { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; display: flex; align-items: center; gap: 14px; }
.weekend__day h3::after { content: ''; flex: 1; height: 2px; background: var(--linea); }
.weekend__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wk-card { background: var(--blanco); border-radius: 16px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; border-top: 5px solid var(--rosa-2); }
.wk-card--senior { border-top-color: var(--oro); }
.wk-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wk-card__time { font-family: var(--display); font-weight: 900; font-size: 38px; line-height: .9; color: var(--granate); }
.wk-card .badge--away { border-color: var(--linea); color: var(--suave); }
.wk-card__cat { font-size: 14px; font-weight: 600; color: var(--suave); line-height: 1.3; }
.wk-card__teams { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.05; color: var(--suave); }
.wk-card__teams .is-club { font-weight: 800; color: var(--azul); }
.wk-card__score { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; color: var(--azul); }
.wk-card__venue { margin-top: auto; padding-top: 6px; font-size: 15px; color: var(--suave); display: flex; gap: 6px; }
.wk-card__venue::before { content: ''; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 6px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--granate); }
.wk-card__live { font-size: 15px; font-weight: 700; color: var(--granate); }
.wk-card__live::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #D1242F; margin-right: 7px; vertical-align: 1px; }
.weekend__empty { color: var(--suave); }
/* Resultados del fin de semana pasado (todas las categorías) */
.weekend--results { background: var(--rosa); }
.wk-card--result { gap: 10px; }
.wk-card--result .wk-card__top { align-items: flex-start; }
.wk-card--result .wk-card__cat { flex: 1; }
.wk-card__line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 23px; line-height: 1.05; color: var(--suave); }
.wk-card__line b { font-weight: 900; font-size: 30px; color: inherit; }
.wk-card__line.is-club { font-weight: 800; color: var(--azul); }
.wk-card .badge { font-size: 13px; padding: 4px 10px; white-space: nowrap; }
.wk-card .badge--won { background: #E3F4EA; color: #146C3A; }
.wk-card .badge--lost { background: #EEE9EC; color: var(--suave); }
.wk-card .badge--draw { background: #FFF4DA; color: #6E4A00; }
.sub-title { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--oro); margin-top: 10px; }
@media (max-width: 640px) {
  .weekend > .wrap { padding-top: 40px; padding-bottom: 44px; gap: 24px; }
  .weekend__grid { grid-template-columns: 1fr; }
}

/* Aviso de página oculta (vista previa desde el gestor) */
.preview-bar { background: var(--oro); color: var(--azul); font-size: 16px; padding: 12px 0; }
.preview-bar a { color: var(--azul); font-weight: 700; margin-left: 8px; }

/* ---------- Cesta de la tienda (cabecera) ---------- */
.nav__cart { position: relative; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--azul); background: var(--oro); text-decoration: none; }
.nav__cart:hover { background: #F6C35E; color: var(--azul); }
.nav__cart svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav__cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--blanco); color: var(--granate); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--granate); }
@media (max-width: 480px) { .nav__cart { width: 44px; height: 44px; } }
/* Con la cesta visible, el menú se aprieta un poco en pantallas medianas para que quepa en una línea. */
@media (min-width: 1101px) and (max-width: 1440px) {
  .nav__inner:has(.nav__cart:not([hidden])) { gap: 10px; }
  .nav__inner:has(.nav__cart:not([hidden])) .nav__menu a,
  .nav__inner:has(.nav__cart:not([hidden])) .nav__parent--btn { padding-left: 8px; padding-right: 8px; }
  .nav__inner:has(.nav__cart:not([hidden])) .nav__menu .nav__group > .nav__parent { padding-right: 2px; }
  .nav__inner:has(.nav__cart:not([hidden])) .nav__menu .nav__cta { margin-left: 4px; padding: 12px 16px; }
}
