/* =========================================================
   POLITO BASKET — ESTILOS
   Cambia colores y fuentes en las variables de :root
   ========================================================= */
:root {
  /* Paleta Polito Basket: negro, blanco y los dos dorados del logo */
  --black: #0a0a0a;
  --white: #ffffff;
  --gold: #b68e50;          /* dorado del logo */
  --bronze: #996633;        /* bronce del logo (segundo dorado) */

  --bg: var(--black);
  --bg-alt: #111111;
  --surface: #181818;
  --line: #2a2a2a;
  --text: var(--white);
  --text-soft: #e6e6e6;
  --muted: #a3a3a3;
  --accent: var(--gold);
  --accent-hover: #c4a06a;  /* dorado un poco más claro para hover */
  --accent-2: var(--bronze);
  --gold-grad: linear-gradient(135deg, #c4a06a 0%, var(--gold) 40%, var(--bronze) 100%);
  --accent-soft: rgba(182, 142, 80, .14);

  --font-title: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --container: 1160px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: .02em; line-height: .95; margin: 0; }
p { margin: 0 0 1rem; }
figure { margin: 0; }
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--black); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold-grad); color: var(--black); }
.btn--primary:hover { filter: brightness(1.12); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: var(--text); background: rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--whatsapp { background: var(--white); color: var(--black); }
.btn--whatsapp:hover { background: var(--gold-grad); }
.btn--soon { border-color: var(--accent); color: var(--accent); background: transparent; cursor: default; }
.btn--soon:hover { transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--accent); font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10,10,10,.88); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo img { height: 58px; width: auto; }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; z-index: 60;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: 0; background: rgba(10,10,10,.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.nav.is-open { opacity: 1; visibility: visible; }
.nav a { font-family: var(--font-title); font-size: 2.4rem; letter-spacing: .04em; transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav__cta { color: var(--accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav { position: static; background: none; flex-direction: row; gap: 2rem; opacity: 1; visibility: visible; }
  .nav a { font-family: var(--font-body); font-size: .9rem; font-weight: 500; color: var(--muted); }
  .nav a:hover { color: var(--text); }
  .nav .nav__cta { color: var(--black); background: var(--gold-grad); padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; }
  .nav .nav__cta:hover { filter: brightness(1.12); color: var(--black); }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; padding: calc(var(--header-h) + 40px) 0 90px; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: heroZoom 14s var(--ease) both; }
@media (max-width: 700px) { .hero__bg { object-position: center top; } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 70% at 0% 100%, rgba(10,10,10,.85), rgba(10,10,10,.4) 55%, transparent 80%),
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.15) 35%, rgba(10,10,10,.75) 70%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 100%, rgba(182,142,80,.22), transparent 60%);
}
.hero__content { position: relative; }
.hero__title { font-size: clamp(4.2rem, 17vw, 10.5rem); text-transform: uppercase; text-shadow: 0 6px 40px rgba(0,0,0,.5); }
.hero__title span { color: var(--accent); }
.hero__tagline { font-size: clamp(1.1rem, 2.6vw, 1.5rem); font-weight: 500; max-width: 34ch; margin: 1rem 0 2rem; color: var(--text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--accent); border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section__title { font-size: clamp(2.6rem, 7vw, 4.6rem); text-transform: uppercase; margin-bottom: 1.4rem; }
.section__title span { color: var(--accent); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.section__head .section__title { margin-bottom: 0; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--accent); font-weight: 600; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Quiénes somos ---------- */
.about { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1.05fr .95fr; gap: 64px; } }
.services { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .services { grid-template-columns: 1fr 1fr; } }
.service { display: flex; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, transform .3s var(--ease); }
.service:hover { border-color: var(--accent); transform: translateY(-3px); }
.service .ico { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.service h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin-bottom: .2rem; }
.service p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 0; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.about__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--gold-grad); }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- YouTube ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--black); border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__facade { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: var(--black); color: var(--text); text-align: left; font: inherit; }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s var(--ease); }
.video__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,.92) 100%); }
.video__facade:hover img { opacity: .95; transform: scale(1.03); }
.video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(182,142,80,.6); animation: pulse 2.2s infinite; }
.video__play svg { width: 36px; height: 36px; color: var(--black); margin-left: 4px; }
.video__info { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: .35rem; }
.video__badge { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--gold-grad); color: var(--black); padding: .28rem .6rem; border-radius: 6px; }
.video__title { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.3rem, 3.2vw, 2.4rem); line-height: 1.05; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 30ch; }
.video__info small { color: var(--muted); font-size: .82rem; }
@media (max-width: 560px) { .video__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .video__play svg { width: 26px; height: 26px; } .video__info { padding: 12px 14px; } .video__badge { display: none; } }
.video__note { padding: 2rem; text-align: center; color: var(--muted); position: absolute; inset: 0; display: grid; place-items: center; margin: 0; }

.video-list { display: grid; gap: 14px; margin-top: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .video-list { grid-template-columns: repeat(3, 1fr); } }
.video-item { display: flex; flex-direction: column; gap: .5rem; padding: 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.video-item__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--black); transition: border-color .3s; }
.video-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video-item__play { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; background: rgba(10,10,10,.75); display: grid; place-items: center; color: var(--accent); transition: background .3s, color .3s; }
.video-item__play .ico { width: 18px; height: 18px; margin-left: 2px; }
.video-item__title { font-weight: 600; font-size: .92rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-item small { color: var(--muted); font-size: .78rem; margin-top: -.3rem; }
.video-item:hover .video-item__thumb { border-color: var(--accent); }
.video-item:hover img { transform: scale(1.05); }
.video-item:hover .video-item__play { background: var(--gold-grad); color: var(--black); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(182,142,80,.55); } 70% { box-shadow: 0 0 0 22px rgba(182,142,80,0); } 100% { box-shadow: 0 0 0 0 rgba(182,142,80,0); } }

/* ---------- Podcast ---------- */
.podcast { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .podcast { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.podcast__media { position: relative; border-radius: var(--radius); overflow: hidden; max-width: 440px; }
.podcast__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.podcast__badge { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: .4rem; background: rgba(10,10,10,.8); backdrop-filter: blur(6px); padding: .45rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--accent); }
.hosts { display: flex; flex-wrap: wrap; gap: 12px; margin: .6rem 0 2rem; }
.host { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.host__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); color: var(--black); display: grid; place-items: center; font-family: var(--font-title); font-size: 1.25rem; }
.host strong { display: block; font-size: .95rem; line-height: 1.2; }
.host small { color: var(--muted); font-size: .78rem; }

/* ---------- Redes ---------- */
.socials { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 1rem; }
@media (min-width: 560px) { .socials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .socials { grid-template-columns: repeat(4, 1fr); } }
.social {
  --brand: var(--accent);
  display: flex; align-items: center; gap: 16px; padding: 22px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.social .ico { width: 44px; height: 44px; color: var(--brand); transition: transform .3s var(--ease); }
.social strong { display: block; font-family: var(--font-title); font-size: 1.9rem; font-weight: 400; letter-spacing: .03em; line-height: 1; }
.social small { color: var(--muted); font-size: .85rem; }
.social:hover { transform: translateY(-4px); border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.social:hover .ico { transform: scale(1.1); }
.social--instagram, .social--youtube, .social--facebook, .social--tiktok { --brand: var(--accent); }

/* Últimos posts (Instagram vía Behold, TikTok con embed oficial) */
.feed { display: grid; gap: 40px; margin-top: 56px; }
@media (min-width: 1000px) { .feed { grid-template-columns: 1.5fr 1fr; align-items: start; } .feed.feed--single { grid-template-columns: 1fr; } }
.feed__title { display: flex; align-items: center; gap: .6rem; font-size: 1.9rem; margin-bottom: 1.1rem; }
.feed__title .ico { color: var(--accent); }
.feed__ig { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .feed__ig { grid-template-columns: repeat(3, 1fr); } }
.ig-post { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); isolation: isolate; }
.ig-post img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ig-post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,.9)); opacity: 0; transition: opacity .3s; }
.ig-post__type { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(10,10,10,.7); color: var(--text); }
.ig-post__type .ico { width: 14px; height: 14px; }
.ig-post__caption { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; font-size: .78rem; line-height: 1.35; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
.ig-post:hover { border-color: var(--accent); }
.ig-post:hover img { transform: scale(1.06); }
.ig-post:hover::after, .ig-post:hover .ig-post__caption { opacity: 1; transform: none; }
.feed .tiktok-embed { margin: 0 !important; min-width: 0 !important; max-width: 100% !important; width: 100% !important; border-radius: var(--radius) !important; border: 1px solid var(--line) !important; overflow: hidden; }
.feed blockquote:not(:has(iframe)) { padding: 18px; background: var(--surface); color: var(--muted); }
.feed--single .feed__tt { max-width: 780px; }

/* ---------- Contacto ---------- */
.contact { overflow: hidden; background: var(--bg-alt); }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; filter: grayscale(1); }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(182,142,80,.25), transparent 55%); }
.contact__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__inner .lead { margin-left: auto; margin-right: auto; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1rem; width: 100%; }
.contact__actions .btn { flex: 1 1 260px; max-width: 360px; }
.contact__actions [data-cfg="correo"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer__logo { height: 96px; width: auto; }
.footer__socials { display: flex; gap: 10px; }
.footer__socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s; }
.footer__socials a:hover { color: var(--accent); border-color: var(--accent); }
.footer__legal, .footer__credit { color: var(--muted); font-size: .85rem; margin: 0; }
.footer__credit span { color: var(--text); }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Página Próximamente ---------- */
.soon { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 100px 0 60px; position: relative; overflow: hidden; }
.soon::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(182,142,80,.28), transparent 60%); }
.soon__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.soon__ball { width: 96px; height: 96px; margin-bottom: 1.6rem; animation: bounce 1.6s cubic-bezier(.5,0,.5,1) infinite alternate; }
.soon .section__title { font-size: clamp(3.2rem, 12vw, 7rem); }
.soon .lead { margin: 0 auto 2rem; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-18px); } }

/* =========================================================
   TORNEO U17 PERICLES (/u17-pericles/ y bloque de la portada)
   ========================================================= */
.t-logo { width: 72px; height: 40px; object-fit: contain; flex-shrink: 0; }
.t-logo--sm { width: 56px; height: 32px; }
.t-logo--xs { width: 44px; height: 24px; }

/* Cabecera */
.t-hero { padding: calc(var(--header-h) + 36px) 0 28px; background: radial-gradient(ellipse at 15% 0%, rgba(182,142,80,.18), transparent 60%), var(--bg); }
.t-hero__inner { display: flex; align-items: center; gap: 20px; }
.t-hero__logo { width: 112px; height: auto; flex-shrink: 0; }
@media (min-width: 700px) { .t-hero__logo { width: 170px; } .t-hero__inner { gap: 32px; } }
.t-hero__title { font-size: clamp(2.6rem, 9vw, 5rem); text-transform: uppercase; margin-bottom: .6rem; }
.t-hero__title span { color: var(--accent); display: block; }
.t-hero__meta { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .9rem; margin: 0 0 .3rem; }
.t-hero__meta .ico { width: 1em; height: 1em; color: var(--accent); }
.t-hero__stamp { color: var(--muted); font-size: .8rem; margin: 0; }
.t-warn { color: var(--accent); }

/* Pestañas */
.tabs { position: sticky; top: var(--header-h); z-index: 40; background: rgba(10,10,10,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tabs__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; padding: 14px 14px 12px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.page-u17 .header { background: rgba(10,10,10,.92); }

.t-panels { padding-top: 28px; padding-bottom: 56px; min-height: 60vh; }
.t-panel { scroll-margin-top: calc(var(--header-h) + 56px); }
.t-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.t-panel__title { font-size: clamp(1.9rem, 6vw, 3rem); text-transform: uppercase; }
.t-panel__title span { color: var(--accent); }
.share { display: inline-flex; align-items: center; gap: .45rem; flex-shrink: 0; padding: .55rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s; }
.share:hover { border-color: var(--accent); color: var(--accent); }
.share .ico { width: 1.05em; height: 1.05em; }
.t-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* Calendario */
.day { margin-bottom: 26px; }
.day__title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: flex; align-items: center; gap: .6rem; }
.day__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; scroll-margin-top: calc(var(--header-h) + 70px); }
.game.is-next { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(182,142,80,.12); }
.game--suspendido { opacity: .7; }
.game__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.game__info { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .8rem; }
.game__info .ico { width: 1em; height: 1em; }
.badge { font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .26rem .55rem; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.badge--final { color: var(--text); border-color: #444; }
.badge--programado { color: var(--accent); border-color: rgba(182,142,80,.5); }
.badge--suspendido { color: var(--muted); border-style: dashed; }
.badge--next { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.game__team { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.game__name { flex: 1; font-weight: 600; }
.game__pts { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-title); font-size: 1.9rem; line-height: 1; }
.game__pts .ico { width: .7em; height: .7em; color: var(--accent); }
.game__team.is-win .game__pts { color: var(--accent); }
.game__team.is-lose .game__name, .game__team.is-lose .game__pts { color: var(--muted); }
.game__team.is-lose .t-logo { opacity: .55; }
.game__note { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stats { width: 100%; border-collapse: collapse; font-size: .9rem; white-space: nowrap; }
.stats th, .stats td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--line); }
.stats th { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-alt); }
.stats .l { text-align: left; }
.stats tbody tr:last-child td { border-bottom: 0; }
.stats tfoot td { background: var(--bg-alt); font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line); }
.team-cell { display: inline-flex; align-items: center; gap: 10px; }
.team-cell small { display: block; font-size: .72rem; font-weight: 600; }
.pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 700; }
.pos--final { background: var(--gold-grad); color: var(--black); }
.pos--semi { background: rgba(153,102,51,.25); color: var(--accent-hover); border: 1px solid var(--bronze); }
.pos--out { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.zone-label--final { color: var(--accent); }
.zone-label--semi { color: var(--accent-hover); opacity: .85; }
.zone-label--out { color: var(--muted); }
.stats--standings tr.zone-final td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.stats--standings tr.zone-semi td:first-child { box-shadow: inset 3px 0 0 var(--bronze); }
.legend { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .88rem; color: var(--text-soft); }
.legend li { display: flex; align-items: baseline; gap: 10px; }
.legend__dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; transform: translateY(1px); }
.legend__dot--final { background: var(--gold); }
.legend__dot--semi { background: var(--bronze); }
.legend__dot--out { background: #3a3a3a; }

/* Líderes */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--gold-grad); color: var(--black); border-color: transparent; }
.best { border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; background: linear-gradient(135deg, rgba(182,142,80,.14), transparent 70%), var(--surface); }
.best__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.best__body { display: flex; align-items: center; gap: 16px; }
.best__pts { font-family: var(--font-title); font-size: 3.4rem; line-height: .9; color: var(--accent); }
.best__pts small { font-size: 1rem; margin-left: 4px; color: var(--muted); }
.best__who { flex: 1; }
.best__who small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.best__logo { width: 84px; height: 48px; }
.leaders__grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .leaders__grid { grid-template-columns: 1fr 1fr; } }
.leaders__title { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.leaders { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.leader { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.leaders li:last-child .leader { border-bottom: 0; }
.leader.is-top { background: rgba(182,142,80,.08); }
.leader__rank { width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.leader.is-top .leader__rank { color: var(--accent); }
.leader__name { flex: 1; min-width: 0; }
.leader__name small { color: var(--muted); }
.leader__team { display: block; font-size: .75rem; }
.leader__val { font-family: var(--font-title); font-size: 1.7rem; line-height: 1; text-align: right; }
.leader__val small { display: block; font-family: var(--font-body); font-size: .62rem; letter-spacing: .1em; color: var(--muted); }
.leader.is-top .leader__val { color: var(--accent); }

/* Equipos */
.team-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 700px) { .team-picker { grid-template-columns: repeat(4, 1fr); } }
.team-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .2s; }
.team-pick .t-logo { width: 100px; height: 52px; }
.team-pick:hover { border-color: #555; }
.team-pick.is-active { border-color: var(--accent); color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.team-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.team-head__logo { width: 120px; height: 64px; }
.team-head__name { font-size: 2.2rem; text-transform: uppercase; }
.team-head__meta { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; }
.team-head__meta strong { color: var(--text); }
.stats--roster td.l { min-width: 150px; }
.stats--roster .l { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
.stats--roster th.l, .stats--roster tfoot .l { background: var(--bg-alt); }
.stats--roster .apodo { display: block; color: var(--muted); font-size: .76rem; }
.th-game { display: inline-block; text-transform: none; letter-spacing: 0; font-size: .74rem; color: var(--text-soft); }
.th-game small { display: block; color: var(--muted); font-weight: 500; }
.cap { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: var(--gold-grad); color: var(--black); font-size: .66rem; font-weight: 700; vertical-align: 2px; }

/* Formato */
.rules { display: grid; gap: 12px; }
@media (min-width: 700px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.rule h3 { font-family: var(--font-body); font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.rule p { margin: 0; color: var(--text-soft); font-size: .92rem; }

/* Patrocinadores */
.sponsors { padding: 40px 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.sponsors__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sponsors__list li { padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--text-soft); }

/* Carga, error y aviso */
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, #222 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; }
.skeleton--list { height: 360px; }
.skeleton--table { height: 280px; }
.skeleton--card { height: 120px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.u17-error { padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.u17-error strong { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--white); color: var(--black); padding: .7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); }

/* Bloque de la portada */
.torneo { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .torneo { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.torneo__intro { display: flex; flex-direction: column; align-items: flex-start; }
.torneo__logo { width: 150px; height: auto; margin-bottom: 14px; }
.torneo__cards { display: grid; gap: 12px; }
@media (min-width: 640px) { .torneo__cards { grid-template-columns: 1fr 1fr; } .torneo__cards .tcard--wide { grid-column: span 2; } }
.tcard { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tcard--wide { border-color: var(--accent); background: linear-gradient(135deg, rgba(182,142,80,.12), transparent 70%), var(--surface); }
.tcard__label { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.tcard__match { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tcard__team { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; text-align: center; font-weight: 600; font-size: .88rem; }
.tcard__team .t-logo { width: 90px; height: 48px; }
.tcard__team.is-lose { color: var(--muted); }
.tcard__team.is-lose .t-logo { opacity: .55; }
.tcard__vs { font-family: var(--font-title); font-size: 1.6rem; color: var(--muted); }
.tcard__score { font-family: var(--font-title); font-size: 2rem; line-height: 1; }
.tcard__team.is-win .tcard__score { color: var(--accent); }
.tcard__when { margin: 10px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }
.tcard__leader { display: flex; align-items: center; gap: 12px; }
.tcard__leader strong { display: block; font-size: 1.05rem; }
.tcard__leader small { color: var(--muted); }

/* Roster con foto (pestaña Equipos) */
.roster { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .roster { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .roster { grid-template-columns: repeat(5, 1fr); } }
.player { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.player__photo { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(ellipse at 50% 30%, #262626, var(--bg-alt)); display: grid; place-items: center; }
.player__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.player__initials { font-family: var(--font-title); font-size: 3.2rem; color: var(--accent); opacity: .85; }
.player__cap { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--gold-grad); color: var(--black); font-size: .8rem; font-weight: 700; }
.player__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.player__name { font-size: .92rem; line-height: 1.25; }
.player__apodo { color: var(--muted); font-size: .78rem; }
.player__stats { margin-top: 6px; color: var(--muted); font-size: .76rem; }
.player__stats b { color: var(--accent); font-weight: 700; }
.roster__subtitle { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

/* Miniaturas de jugador */
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.avatar span { font-family: var(--font-title); font-size: 1rem; color: var(--accent); }
.avatar--sm { width: 34px; height: 34px; }
.avatar--lg { width: 64px; height: 64px; border-color: var(--accent); }
.avatar--lg span { font-size: 1.5rem; }
a.leader, a.best, a.player, a.pcell { color: inherit; }
a.leader:hover { background: rgba(182,142,80,.06); }
a.best { display: block; transition: border-color .2s; }
a.player { height: 100%; transition: border-color .2s, transform .25s var(--ease); }
a.player:hover { border-color: var(--accent); transform: translateY(-3px); }
.roster li { display: flex; }
.roster__hint { margin: -6px 0 12px; }
.pcell { display: inline-flex; align-items: center; gap: 10px; }
.pcell:hover strong { color: var(--accent); }

/* Perfil del jugador */
.profile { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); overflow: auto; }
.profile::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.profile__close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,10,10,.7); color: var(--text); cursor: pointer; }
.profile__close:hover { border-color: var(--accent); color: var(--accent); }
.profile__hero { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: end; padding: 18px; background: linear-gradient(160deg, rgba(182,142,80,.18), transparent 60%), var(--bg-alt); border-bottom: 1px solid var(--line); }
@media (min-width: 520px) { .profile__hero { grid-template-columns: 190px 1fr; } }
.profile__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #262626, var(--bg)); display: grid; place-items: center; border: 1px solid var(--line); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.profile__logo { width: 110px; height: 48px; object-position: left center; margin-bottom: 6px; }
.profile__name { font-size: clamp(2rem, 7vw, 2.6rem); text-transform: uppercase; }
.profile__apodo { color: var(--accent); font-weight: 600; margin: .3rem 0 0; }
.profile__team { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.profile__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.pstat { padding: 14px 6px; text-align: center; border-right: 1px solid var(--line); }
.pstat:last-child { border-right: 0; }
.pstat b { display: block; font-family: var(--font-title); font-weight: 400; font-size: 2rem; line-height: 1; }
.pstat span { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pstat--main b { color: var(--accent); }
.profile__facts { list-style: none; margin: 0; padding: 14px 18px; display: grid; gap: 6px; font-size: .9rem; color: var(--text-soft); border-bottom: 1px solid var(--line); }
.profile__facts li::before { content: "•"; color: var(--accent); margin-right: .5rem; }
.profile__facts strong { color: var(--text); }
.profile__subtitle { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 16px 18px 8px; }
.glog { list-style: none; margin: 0; padding: 0 18px; }
.glog__row { display: grid; grid-template-columns: 52px 1fr 70px 34px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.glog__row:last-child { border-bottom: 0; }
.glog__date { color: var(--muted); font-size: .78rem; }
.glog__rival { display: flex; align-items: center; gap: 8px; min-width: 0; }
.glog__rival small { display: block; font-size: .72rem; font-weight: 700; }
.glog__rival .is-win { color: var(--accent); }
.glog__rival .is-lose { color: var(--muted); }
.glog__bar { height: 8px; border-radius: 4px; background: var(--bg-alt); overflow: hidden; }
.glog__bar span { display: block; height: 100%; border-radius: 4px; background: var(--gold-grad); }
.glog__pts { font-family: var(--font-title); font-size: 1.4rem; text-align: right; }
.profile__actions { padding: 16px 18px 18px; display: flex; justify-content: flex-end; }
@media (max-width: 420px) { .glog__row { grid-template-columns: 46px 1fr 44px 30px; gap: 8px; } .pstat b { font-size: 1.6rem; } }
