/* AthleticsSport — Recreo Soleado
   Fredoka (display) + Nunito Sans (text) */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/Fredoka-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans-var.woff2') format('woff2-variations');
  font-weight: 400 800;
  font-style: normal;
  font-display: optional;
}

:root {
  --cream: #FBFBFD;
  --cream-2: #F5F5F7;
  --ink: #0F172A;
  --ink-soft: #64748B;
  --orange: #FF5E5B; /* Sunset coral */
  --orange-d: #E14B4B;
  --teal: #6366F1; /* Vibrant indigo-violet */
  --teal-d: #4F46E5;
  --teal-l: #EEF2FF;
  --sun: #F59E0B; /* Warm gold */
  --sun-d: #D97706;
  --white: #FFFFFF;
  --line: #E2E8F0;
  --card: #FFFFFF;
  --ok: #10B981;
  --shadow-sm: 0 2px 8px rgba(15,23,42,.04);
  --shadow: 0 12px 32px -12px rgba(15,23,42,.12);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.20);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ff-display: 'Outfit', system-ui, sans-serif;
  --ff-text: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--ff-text);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
  letter-spacing: -.01em;
}
p { overflow-wrap: break-word; word-break: break-word; }
a {
  color: var(--teal);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-word;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Disable tap/selection on UI */
.btn, .nav a, .chip, .burger, .tab, .pill, .icon-btn, .swatch, [role="button"] {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 56ch; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-weight: 600; font-size: 14px;
  color: var(--teal); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(1.7rem, 4vw, 2.9rem); }
.section__sub { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }

.h1 { font-size: clamp(2.1rem, 6vw, 4rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease-smooth), background .2s;
  white-space: nowrap; text-align: center; line-height: 1.1;
}
.btn svg { width: 1.2em; height: 1.2em; flex: 0 0 auto; }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px -8px rgba(255,107,44,.6); }
.btn--primary:hover { background: var(--orange-d); transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(255,107,44,.7); }
.btn--teal { background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -8px rgba(14,110,103,.5); }
.btn--teal:hover { background: var(--teal-d); transform: translateY(-3px); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--teal); color: var(--teal); transform: translateY(-3px); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(255,201,60,.7); }
.btn--sun:hover { background: var(--sun-d); transform: translateY(-3px); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn:active { transform: translateY(-1px) scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover { transform: none; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92); /* Sleek dark theme header */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transition: all 0.3s var(--ease);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-block: 8px;
  padding-inline: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--white);
  transition: transform 0.2s var(--ease);
}
.logo:hover {
  transform: scale(1.02);
}
.logo__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}
.logo span {
  color: var(--white);
}
.logo b {
  color: var(--orange);
}
.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a:not(.btn) {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #94A3B8;
  transition: all 0.25s var(--ease);
  position: relative;
}
.nav a:not(.btn):hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav a.is-active:not(.btn) {
  color: var(--white) !important;
  background: transparent !important;
}
.nav a.is-active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateX(-50%);
}

/* Flex layout rearrangement and Escuelas item styled as CTA button */
.nav__list li:nth-child(1) { order: 1; } /* Inicio */
.nav__list li:nth-child(2) { order: 6; } /* Escuelas */
.nav__list li:nth-child(3) { order: 2; } /* Deportes */
.nav__list li:nth-child(4) { order: 3; } /* Para padres */
.nav__list li:nth-child(5) { order: 4; } /* Sobre el proyecto */
.nav__list li:nth-child(6) { order: 5; } /* Torneos */

.nav__list li:nth-child(2) a {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--r-pill) !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4) !important;
  margin-left: 16px !important;
}
.nav__list li:nth-child(2) a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
  background: linear-gradient(135deg, var(--teal) 20%, var(--teal-d) 100%) !important;
}
.nav__list li:nth-child(2) a::after {
  display: none !important;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s var(--ease);
}
.burger:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.burger span {
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-smooth), opacity .2s;
}
.burger span::before, .burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-smooth);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  inset: 80px 16px auto 16px;
  z-index: 90;
  background: #0B0F19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 18px 24px 26px;
  transform: translateY(calc(-100% - 110px));
  visibility: hidden;
  transition: transform .35s var(--ease-smooth), visibility .35s;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
}
.nav-mobile.is-open {
  transform: translateY(0);
  visibility: visible;
}
.nav-mobile a {
  display: block;
  padding: 13px 16px;
  border-radius: 14px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: #94A3B8;
}
.nav-mobile a:hover, .nav-mobile a.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}
.nav-mobile a.nav__cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%);
  color: var(--white);
  margin-top: 6px;
}
.nav-mobile__actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1220px) {
  .nav, .header__actions .btn { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1221px) {
  .nav-mobile { display: none; }
}

/* ---------- Hero (Modern Grid Layout) ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(255, 94, 91, 0.05) 0%, transparent 50%),
              #FAF9F6;
  padding-top: clamp(140px, 12vw, 180px);
  padding-bottom: clamp(100px, 9vw, 140px);
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(30px, 5vw, 60px);
}
.hero__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  color: var(--ink);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-l);
  color: var(--teal-d);
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 94, 91, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 94, 91, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 94, 91, 0); }
}
.hero__title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
}
.hero__title em {
  color: transparent;
  background: linear-gradient(135deg, var(--teal) 0%, var(--orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  display: none;
}
.hero__sub {
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 52ch;
  margin-inline: auto;
}
.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero__stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  justify-content: center;
  width: 100%;
}
.hero__stat {
  color: var(--ink);
}
.hero__stat b {
  display: block;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--teal);
  line-height: 1.1;
}
.hero__stat span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero__gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: clamp(320px, 50vw, 460px);
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.hero__img-container {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  transition: transform 0.4s var(--ease);
}
.hero__img-container:hover {
  transform: scale(1.03) translateY(-4px);
  z-index: 10;
}
.hero__img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.main-img {
  grid-column: 4 / 13;
  grid-row: 3 / 11;
  z-index: 2;
}
.sub-img-1 {
  grid-column: 1 / 7;
  grid-row: 1 / 7;
  z-index: 3;
}
.sub-img-2 {
  grid-column: 1 / 6;
  grid-row: 7 / 13;
  z-index: 4;
  border-radius: 50% !important; /* Elegant circle image shape */
}
.hero__card {
  position: absolute;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.hero__card--trials {
  left: auto;
  right: -20px;
  top: 15%;
  animation: float-slow 6s ease-in-out infinite alternate;
}
.hero__card--trials svg {
  width: 22px;
  height: 22px;
  color: var(--sun);
}
.hero__card--trials b {
  display: block;
  font-family: var(--ff-display);
  font-size: 0.9rem;
  color: var(--ink);
}
.hero__card--trials span {
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.hero__card--active {
  right: auto;
  left: 10px;
  bottom: 10%;
  animation: float-slow 6s ease-in-out infinite alternate-reverse;
}
.hero__card--active b {
  font-family: var(--ff-display);
  font-size: 0.86rem;
  color: var(--ink);
}
.pulse-indicator {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}
@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Quick search panel — overlaps hero bottom */
.searchbar { position: relative; z-index: 5; margin-top: clamp(-70px, -8vw, -56px); }
.searchbar__card {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px;
  grid-template-columns: 1fr 1fr 1fr auto; align-items: end;
  border: 1px solid var(--line);
}
.searchbar__geo { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; color: var(--ink-soft); }
.searchbar__geo svg { width: 18px; height: 18px; color: var(--orange); flex: 0 0 auto; }
.searchbar__geo b { color: var(--ink); font-family: var(--ff-display); }
.searchbar__geo button { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-family: var(--ff-display); font-weight: 600; font-size: .86rem; color: var(--ink-soft); }

/* ---------- Custom select ---------- */
.cselect { position: relative; }
.cselect__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-radius: 14px; background: var(--cream); border: 2px solid var(--line);
  font-family: var(--ff-text); font-weight: 600; color: var(--ink); text-align: left;
  transition: border-color .2s; min-width: 0;
}
.cselect__trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__trigger:hover { border-color: var(--teal); }
.cselect__trigger svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--ink-soft); transition: transform .25s; }
.cselect.is-open .cselect__trigger { border-color: var(--teal); }
.cselect.is-open .cselect__trigger svg { transform: rotate(180deg); }
.cselect__panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 6px; max-height: 262px; overflow-y: auto; opacity: 0; transform: translateY(-8px);
  visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.cselect.is-open .cselect__panel { opacity: 1; transform: translateY(0); visibility: visible; }
.cselect__opt { padding: 11px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; transition: background .15s; }
.cselect__opt:hover, .cselect__opt.is-sel { background: var(--teal-l); color: var(--teal); }

/* Styled scrollbars (site-wide for scroll containers) */
.cselect__panel, .nav-mobile, .chat__body, .players__list, .modal__body { scrollbar-width: thin; scrollbar-color: var(--orange) var(--cream-2); }
.cselect__panel::-webkit-scrollbar, .nav-mobile::-webkit-scrollbar, .chat__body::-webkit-scrollbar, .players__list::-webkit-scrollbar, .modal__body::-webkit-scrollbar { width: 10px; height: 10px; }
.cselect__panel::-webkit-scrollbar-track, .nav-mobile::-webkit-scrollbar-track, .chat__body::-webkit-scrollbar-track, .players__list::-webkit-scrollbar-track, .modal__body::-webkit-scrollbar-track { background: var(--cream-2); border-radius: 999px; }
.cselect__panel::-webkit-scrollbar-thumb, .nav-mobile::-webkit-scrollbar-thumb, .chat__body::-webkit-scrollbar-thumb, .players__list::-webkit-scrollbar-thumb, .modal__body::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; border: 2px solid var(--cream-2); }

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (max-width: 820px) {
  .searchbar__card { grid-template-columns: 1fr 1fr; }
  .searchbar__card .field--submit { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .searchbar__card { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
  .hero__gallery { height: clamp(250px, 60vw, 340px); }
  .hero__card--trials { right: -10px; }
  .hero__card--active { left: -10px; }
}

/* ---------- Sports icon grid (home) ---------- */
.sportgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.sportgrid__item {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 22px 12px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .2s;
  color: var(--ink);
}
.sportgrid__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--sun); }
.sportgrid__ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--teal-l); transition: background .3s, transform .4s var(--ease); }
.sportgrid__ic svg { width: 30px; height: 30px; color: var(--teal); }
.sportgrid__item:hover .sportgrid__ic { background: var(--sun); transform: scale(1.08); }
.sportgrid__item:hover .sportgrid__ic svg { color: var(--ink); }
.sportgrid__item span { font-family: var(--ff-display); font-weight: 600; font-size: .96rem; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- School card ---------- */
.scard {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--r);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s; min-width: 0;
}
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.scard__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--teal-l); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.scard:hover .scard__media img { transform: scale(1.06); }
.scard__badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.94); border-radius: var(--r-pill); padding: 6px 12px; font-family: var(--ff-display); font-weight: 600; font-size: .82rem; box-shadow: var(--shadow-sm); }
.scard__badge svg { width: 14px; height: 14px; color: var(--sun-d); }
.scard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.scard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.scard__name { font-size: 1.22rem; }
.scard__rating { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-family: var(--ff-display); flex: 0 0 auto; }
.scard__rating svg { width: 16px; height: 16px; color: var(--sun-d); }
.scard__rating small { color: var(--ink-soft); font-weight: 400; }
.scard__desc { color: var(--ink-soft); font-size: .96rem; }
.scard__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--teal-l); color: var(--teal-d); border-radius: var(--r-pill); padding: 5px 11px; font-size: .82rem; font-weight: 700; }
.tag--age { background: var(--cream-2); color: var(--ink-soft); }
.scard__next { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ok); font-size: .9rem; }
.scard__next svg { width: 15px; height: 15px; }
.scard__foot { margin-top: auto; padding-top: 6px; }

/* ---------- Why-us ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2.5vw,24px); }
.why__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.why__item:hover { transform: translateY(-5px); }
.why__ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--orange); color: var(--white); margin-bottom: 16px; }
.why__ic svg { width: 26px; height: 26px; }
.why__item:nth-child(2n) .why__ic { background: var(--teal); }
.why__item:nth-child(3n) .why__ic { background: var(--sun); color: var(--ink); }
.why__item h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why__item p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2.5vw,24px); }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.review__stars { display: inline-flex; gap: 2px; }
.review__stars svg { width: 17px; height: 17px; color: var(--sun-d); }
.review__text { font-size: 1rem; color: var(--ink); }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.review__who b { font-family: var(--ff-display); display: block; font-size: .98rem; }
.review__who span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Photo gallery ---------- */
.photostrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photostrip figure { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; background: var(--teal-l); }
.photostrip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.photostrip figure:hover img { transform: scale(1.08); }

/* ---------- Footer (Modern Grid Overhaul) ---------- */
.footer {
  background: #0B0F19; /* Sleek deep dark navy-black */
  color: #94A3B8;
  margin-top: clamp(60px, 8vw, 100px);
  padding-top: clamp(60px, 8vw, 90px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: clip;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.footer__col h3 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  font-family: var(--ff-display);
  font-weight: 700;
}
.footer__tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #94A3B8;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 34ch;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__links a {
  color: #94A3B8;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
  display: inline-block;
}
.footer__links a:hover {
  color: var(--orange);
  transform: translateX(4px);
}
.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s var(--ease);
}
.socials a:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-3px);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer__base {
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px var(--gutter);
  text-align: center;
  font-size: 0.88rem;
  color: #64748B;
}

@media (max-width: 1100px) {
  .sportgrid { grid-template-columns: repeat(4, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .grid--3, .why, .reviews { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer__col.brand-col {
    grid-column: 1 / -1;
    margin-bottom: 24px;
  }
}
@media (max-width: 820px) {
  .photostrip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .sportgrid { grid-template-columns: repeat(3, 1fr); }
  .grid--3, .grid--2, .why, .reviews { grid-template-columns: 1fr; }
  .photostrip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .sportgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px,3vw,36px); align-items: start; }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); position: sticky; top: 92px; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 1.2rem; }
.filters__toggle { display: none; }
.filters__body { padding: 8px 20px 20px; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: none; }
.fgroup > h3 { font-size: .96rem; font-family: var(--ff-display); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: .94rem; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check__box svg { width: 12px; height: 12px; color: var(--white); opacity: 0; transition: opacity .15s; }
.check input:checked + .check__box { background: var(--teal); border-color: var(--teal); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--teal); outline-offset: 2px; }
.filters__actions { display: flex; gap: 10px; padding-top: 16px; }
.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.catalog__count { font-family: var(--ff-display); font-weight: 600; }
.catalog__count b { color: var(--orange); }
.catalog__empty { padding: 50px 20px; text-align: center; color: var(--ink-soft); grid-column: 1/-1; }

/* ---------- Detail (school) ---------- */
.dhero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px,3vw,40px); align-items: center; }
.dhero__media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3/2; box-shadow: var(--shadow); background: var(--teal-l); }
.dhero__media img { width: 100%; height: 100%; object-fit: cover; }
.dhero h1 { font-size: clamp(1.8rem,4vw,3rem); }
.dhero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.dhero__lead { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 15px; font-weight: 700; font-size: .86rem; box-shadow: var(--shadow-sm); }
.pill svg { width: 15px; height: 15px; color: var(--ok); flex: 0 0 auto; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.4rem,3vw,2rem); margin-top: 1.4em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.2em; }
.prose p, .prose li { color: var(--ink); }
.prose ul { display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* schedule table */
.tablewrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
table.sched { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
table.sched th, table.sched td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
table.sched thead th { background: var(--teal-l); color: var(--teal-d); font-family: var(--ff-display); font-weight: 600; }
table.sched tbody tr:hover { background: var(--cream); }

/* coaches */
.coach { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.coach img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; }
.coach h3 { font-size: 1.12rem; }
.coach__role { color: var(--teal); font-weight: 700; font-size: .88rem; margin-bottom: 4px; }
.coach__loves { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--orange); font-weight: 700; margin: 6px 0; }
.coach__loves svg { width: 14px; height: 14px; }
.coach p { font-size: .9rem; color: var(--ink-soft); }

/* gallery grid detail */
.dgallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dgallery button { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; background: var(--teal-l); cursor: pointer; padding: 0; }
.dgallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease-smooth); }
.dgallery button:hover img { transform: scale(1.07); }

/* booking form / cards */
.formcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px,3vw,34px); }
.form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-row label { font-family: var(--ff-display); font-weight: 600; font-size: .9rem; }
.input, textarea.input {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: var(--cream);
  border: 2px solid var(--line); font-family: var(--ff-text); transition: border-color .2s; min-width: 0;
}
.input:focus { outline: none; border-color: var(--teal); }
textarea.input { resize: none; min-height: 110px; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Blog ---------- */
.bcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.bcard__media { aspect-ratio: 16/10; overflow: hidden; background: var(--teal-l); }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-smooth); }
.bcard:hover .bcard__media img { transform: scale(1.06); }
.bcard__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard__cat { align-self: flex-start; background: var(--sun); color: var(--ink); border-radius: var(--r-pill); padding: 4px 12px; font-size: .76rem; font-weight: 700; font-family: var(--ff-display); }
.bcard__title { font-size: 1.2rem; }
.bcard__excerpt { color: var(--ink-soft); font-size: .95rem; }
.bcard__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--ink-soft); padding-top: 6px; }
.article blockquote { border-left: 4px solid var(--orange); padding: 12px 20px; background: var(--cream-2); border-radius: 0 12px 12px 0; font-style: italic; font-size: 1.1rem; }

/* checklist */
.checklist { background: var(--teal); color: var(--white); border-radius: var(--r-lg); padding: clamp(26px,4vw,44px); }
.checklist h2 { color: var(--white); }
.checklist ol { counter-reset: c; display: grid; gap: 12px; margin-top: 20px; }
.checklist li { counter-increment: c; position: relative; padding: 12px 16px 12px 54px; background: rgba(255,255,255,.1); border-radius: 12px; }
.checklist li::before { content: counter(c); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; }

/* ---------- Legal ---------- */
.legal-content h2 { font-size: clamp(1.3rem,2.5vw,1.7rem); margin-top: 1.8em; }
.legal-content p, .legal-content li { color: var(--ink); }
.legal-content > p + p { margin-top: 1em; }
.legal-content ul { margin-top: 1em; display: grid; gap: 8px; }
.legal-content ul li { position: relative; padding-left: 24px; }
.legal-content ul li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.legal-updated { color: var(--ink-soft); font-style: italic; margin-bottom: 1.5em; }

/* ---------- Page hero (non-video) ---------- */
.phero {
  background: linear-gradient(135deg, #090D16 0%, #151F32 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}
.phero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 70%);
  pointer-events: none;
}
.phero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.1), transparent 70%);
  pointer-events: none;
}
.phero__inner { padding-block: clamp(50px,7vw,90px); position: relative; z-index: 1; }
.phero h1 { color: var(--white); font-size: clamp(2rem,5vw,3.4rem); max-width: 20ch; font-weight: 800; }
.phero p { color: #94A3B8; margin-top: 16px; max-width: 60ch; font-size: 1.1rem; }

@media (max-width: 1000px) {
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters__toggle { display: inline-flex; }
  .filters__body { display: none; }
  .filters.is-open .filters__body { display: block; }
  .dhero { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dgallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid2 { grid-template-columns: 1fr; }
}

/* ---------- Tournaments / Fantasy ---------- */
.tinfo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tstep { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-sm); }
.tstep__n { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; margin-bottom: 12px; }
.tstep h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tstep p { font-size: .92rem; color: var(--ink-soft); }

.fantasy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px,3vw,32px); align-items: start; }
.pitch {
  position: relative; border-radius: var(--r-lg); overflow: hidden; padding: 20px 12px;
  background: linear-gradient(180deg, #CE422B, #9E2A18);
  box-shadow: var(--shadow); height: 700px; display: flex; flex-direction: column; justify-content: space-around;
}
.pitch::before {
  content: ''; position: absolute; inset: 0;
  background: 
    linear-gradient(90deg, 
      transparent 19%, rgba(255,255,255,0.45) 19%, rgba(255,255,255,0.45) 20%, 
      transparent 20%, transparent 39%, rgba(255,255,255,0.45) 39%, rgba(255,255,255,0.45) 40%,
      transparent 40%, transparent 59%, rgba(255,255,255,0.45) 59%, rgba(255,255,255,0.45) 60%,
      transparent 60%, transparent 79%, rgba(255,255,255,0.45) 79%, rgba(255,255,255,0.45) 80%,
      transparent 80%
    );
  pointer-events: none;
}
.pitch::after {
  content: ''; position: absolute; inset: 0;
  border-left: 6px double rgba(255,255,255,0.6);
  border-right: 6px double rgba(255,255,255,0.6);
  pointer-events: none;
}
.pitch__stripes {
  position: absolute; inset: 0; z-index: 0;
  background: 
    repeating-linear-gradient(180deg, rgba(255,255,255,0.06) 0 50px, transparent 50px 100px),
    linear-gradient(180deg, transparent 90%, rgba(255,255,255,0.3) 90%, rgba(255,255,255,0.3) 91%, transparent 91%);
}
.pline { position: relative; z-index: 1; display: flex; justify-content: center; gap: clamp(6px,2vw,18px); }
.slot {
  width: clamp(60px, 17vw, 82px); display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; -webkit-user-select: none; user-select: none;
}
.slot__disc {
  width: clamp(46px,12vw,60px); height: clamp(46px,12vw,60px); border-radius: 50%; background: rgba(255,255,255,.18);
  border: 2px dashed rgba(255,255,255,.6); display: grid; place-items: center; color: var(--white);
  transition: transform .3s var(--ease), background .25s, border-style .2s; overflow: hidden;
}
.slot__disc svg { width: 22px; height: 22px; }
.slot__disc img { width: 100%; height: 100%; object-fit: cover; }
.slot:hover .slot__disc { transform: scale(1.08); background: rgba(255,255,255,.3); }
.slot.is-filled .slot__disc { border-style: solid; border-color: var(--sun); background: var(--white); }
.slot__label { font-size: .72rem; color: var(--white); font-weight: 700; text-align: center; background: rgba(0,0,0,.3); padding: 2px 8px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot.is-filled .slot__label { background: var(--sun); color: var(--ink); }

.squad { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column; min-height: 0; height: 700px; }
.squad__budget { padding: 18px 20px; background: var(--teal); color: var(--white); }
.squad__budget .brow { display: flex; justify-content: space-between; align-items: baseline; }
.squad__budget b { font-family: var(--ff-display); font-size: 1.5rem; }
.squad__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.25); margin-top: 10px; overflow: hidden; }
.squad__bar i { display: block; height: 100%; background: var(--sun); border-radius: 999px; transition: width .4s var(--ease-smooth); }
.squad__tools { padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.chipbar { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { padding: 4px 10px; border-radius: 999px; background: var(--cream); border: 2px solid var(--line); font-weight: 700; font-size: .76rem; cursor: pointer; transition: all .2s; }
.fchip.is-active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.players__list { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.pcard { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); transition: border-color .2s, background .2s; min-width: 0; cursor: pointer; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.pcard__add { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-l); color: var(--teal); display: grid; place-items: center; transition: background .2s, color .2s, transform .25s var(--ease); }
.pcard__add svg { width: 14px; height: 14px; }
.pcard:hover .pcard__add { background: var(--orange); color: var(--white); transform: scale(1.1); }
.pcard.is-picked .pcard__add { background: var(--ok); color: var(--white); }
.pcard:hover { border-color: var(--teal); background: var(--cream); }
.pcard img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.pcard__info { min-width: 0; }
.pcard__info b { font-family: var(--ff-display); font-size: .96rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__info span { font-size: .8rem; color: var(--ink-soft); }
.pcard__pos { display: inline-block; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--teal-l); color: var(--teal-d); margin-right: 6px; }
.pcard__cost { text-align: right; flex: 0 0 auto; align-self: end; }
.pcard__cost b { font-family: var(--ff-display); color: var(--orange); display: block; }
.pcard__cost span { font-size: .74rem; color: var(--ink-soft); }
.pcard.is-picked { opacity: .5; pointer-events: none; }
.pcard.is-blocked { opacity: .38; cursor: not-allowed; }
.pcard.is-blocked .pcard__add { background: var(--cream-2); color: var(--ink-soft); }
.pcard.is-blocked:hover { border-color: var(--line); background: var(--white); }
.pcard.is-blocked:hover .pcard__add { transform: none; }
.squad__foot { padding: 18px 20px; }

.disclaimer { border: 2px dashed var(--orange); border-radius: var(--r); padding: 22px 24px; background: var(--cream-2); display: flex; gap: 16px; align-items: flex-start; }
.disclaimer__age { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; }
.disclaimer h3 { font-size: 1.1rem; margin-bottom: 6px; }
.disclaimer p { font-size: .92rem; color: var(--ink-soft); }

/* RG plates */
.rgplates { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.rgplate { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: .82rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.rgplate svg { width: 22px; height: 22px; color: var(--teal); flex: 0 0 auto; }

/* ---------- Chat (Pipa) ---------- */
.chat-toggle { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(255,107,44,.6); transition: transform .3s var(--ease), box-shadow .3s; }
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 16px 36px -6px rgba(255,107,44,.7); }
.chat-toggle svg { width: 30px; height: 30px; }
.chat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 360px; height: 460px; max-width: calc(100vw - 44px); max-height: calc(100vh - 44px);
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transform-origin: bottom right; transition: transform .3s var(--ease), opacity .25s, visibility .25s;
}
.chat-panel.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--teal); color: var(--white); }
.chat__head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--sun); flex: 0 0 auto; }
.chat__head b { font-family: var(--ff-display); font-size: 1.05rem; display: block; }
.chat__head span { font-size: .78rem; opacity: .85; }
.chat__close { margin-left: auto; color: var(--white); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; transition: background .2s; }
.chat__close:hover { background: rgba(255,255,255,.2); }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.45; animation: msgIn .3s var(--ease-smooth) both; }
.msg--bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--user { background: var(--teal); color: var(--white); align-self: flex-end; border-bottom-right-radius: 4px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; background: var(--cream); }
.chat__quick button { font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--teal); font-weight: 700; transition: background .2s; }
.chat__quick button:hover { background: var(--teal-l); }
.chat__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); }
.chat__input input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 999px; background: var(--cream); border: 2px solid var(--line); }
.chat__input input:focus { outline: none; border-color: var(--teal); }
.chat__input button { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: var(--white); display: grid; place-items: center; flex: 0 0 auto; transition: background .2s, transform .2s; }
.chat__input button:hover { background: var(--orange-d); transform: scale(1.05); }
.chat__input button svg { width: 20px; height: 20px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(42,32,24,.6); backdrop-filter: blur(3px); animation: fadeIn .25s; }
.modal__card { position: relative; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; animation: modalIn .35s var(--ease); }
.modal__head { padding: 22px 24px 0; }
.modal__head h3 { font-size: 1.4rem; }
.modal__head p { color: var(--ink-soft); font-size: .95rem; margin-top: 6px; }
.modal__body { padding: 20px 24px 24px; overflow-y: auto; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); transition: background .2s; }
.modal__close:hover { background: var(--cream-2); }
.modal__close svg { width: 18px; height: 18px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px; background: rgba(42,32,24,.9); animation: fadeIn .25s; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.15); color: var(--white); display: grid; place-items: center; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.toast-wrap .modal__backdrop { pointer-events: auto; }
.toast { position: relative; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 30px 34px; text-align: center; max-width: 380px; animation: modalIn .4s var(--ease); pointer-events: auto; }
.toast__ic { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: var(--ok); color: var(--white); animation: pop .5s var(--ease) both; }
.toast__ic.is-err { background: var(--orange); }
.toast__ic svg { width: 32px; height: 32px; }
.toast h3 { font-size: 1.25rem; margin-bottom: 8px; }
.toast p { color: var(--ink-soft); font-size: .95rem; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 120; max-width: 640px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 20px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; transform: translateY(140%); transition: transform .5s var(--ease); }
.cookie.is-open { transform: translateY(0); }
.cookie__txt { flex: 1; min-width: 200px; }
.cookie__txt b { font-family: var(--ff-display); }
.cookie__txt p { font-size: .9rem; color: var(--ink-soft); margin-top: 3px; }
.cookie__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cubic-bezier reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease-smooth), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-smooth), transform .6s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: .54s; }

/* floating deco blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .5; pointer-events: none; z-index: 0; animation: float 8s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(6deg); } }

@media (max-width: 940px) {
  .tinfo { grid-template-columns: repeat(2, 1fr); }
  .fantasy { grid-template-columns: 1fr; }
  .pitch { height: auto; aspect-ratio: 4/3; max-width: 560px; margin-inline: auto; width: 100%; }
  .squad { height: auto; }
  .players__list { max-height: 440px; }
}
@media (max-width: 520px) {
  .tinfo { grid-template-columns: 1fr; }
  .pitch { aspect-ratio: 3/4; height: auto; }
  .players__list { grid-template-columns: 1fr; }
  .chat-panel { right: 12px; bottom: 12px; }
  .chat-toggle { right: 16px; bottom: 16px; }
  .disclaimer { flex-direction: column; }
}

/* Unsized inline sprite icons guard (clock in blog cards, article hero meta) */
.bcard__foot svg, .phero p svg, .formcard p svg { width: 1em; height: 1em; flex: 0 0 auto; display: inline-block; vertical-align: -0.12em; }

/* Stub background disabled */
.ticket__stub::after { display: none; }

/* rgplate as link */
a.rgplate { transition: transform .25s var(--ease), border-color .2s, color .2s; }
a.rgplate:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ---------- Deportes Page Redesign ---------- */
.sports-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.sport-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.sport-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.sport-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.sport-item__head .sportgrid__ic {
  width: 44px;
  height: 44px;
  background: var(--teal-l);
  color: var(--teal);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}
.sport-item:hover .sportgrid__ic {
  background: var(--teal);
  color: var(--white);
}
.sport-item__head .sportgrid__ic svg {
  width: 22px;
  height: 22px;
}
.sport-item h2 {
  font-size: 1.25rem;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--ink);
}
.sport-item p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 16px;
}
.sport-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.sport-item__meta span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--cream-2);
  color: var(--ink-soft);
}
.sport-item__meta span.age-badge {
  background: var(--teal-l);
  color: var(--teal-d);
}

/* Age Guide Cards */
.age-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .age-cards {
    grid-template-columns: 1fr;
  }
}
.age-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.age-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--teal);
}
.age-card--orange::before {
  background: var(--orange);
}
.age-card--sun::before {
  background: var(--sun);
}
.age-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--ink);
}
.age-card__range {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--cream-2);
  color: var(--ink);
}
.age-card__list {
  margin-top: 12px;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.age-card__list li {
  margin-bottom: 6px;
}
