/* Tennis Academy 26 — vanilla port (from tennisacademy26.es React sources) */

:root {
  --c-black: #0b0b0b;
  --c-white: #ffffff;
  --c-orange: #f48220;
  --c-orange-deep: #ff7600;
  --c-gray-border: #7a7a7a;
  --c-gray-ph: #878686;
  --pad-inline: clamp(12px, 4vw, 40px);
  --max-content: 1320px;
  --font-base: "OpenSans", system-ui, sans-serif;
}

@font-face {
  font-family: "OpenSans";
  font-style: normal;
  font-display: swap;
  src: url("../assets/fonts/OpenSans.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
}

main {
  display: block;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  min-height: 100vh;
  background: var(--c-white);
}

.site {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  /* overflow:hidden recortaba carruseles (Swiper); solo cortamos el eje X */
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100vh;
}

.pad {
  padding: 0 var(--pad-inline);
  max-width: var(--max-content);
  width: 100%;
  margin: 0 auto;
}

.pad-top {
  padding-block: 80px;
}

.flex {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gap-40 {
  gap: 40px;
}
.gap-20 {
  gap: 20px;
}
.gap-14 {
  gap: 14px;
}
.gap-10 {
  gap: 10px;
}

h1,
h2 {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--c-black);
}

p,
a,
li,
span,
label,
input {
  margin: 0;
  text-decoration: none;
  font-size: 20px;
  line-height: 24px;
  color: var(--c-black);
}

label,
input {
  text-align: start;
}

button {
  cursor: pointer;
  background: transparent;
  border: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.text-center {
  text-align: center;
}
.text-start {
  text-align: start;
}

.align-center {
  align-items: center;
}

.col-white {
  color: #fff;
}

.fw-700 {
  font-weight: 700;
}

.list {
  list-style: disc;
  padding-left: 20px;
}

.visualy-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
}

/* —— Header —— */
.header {
  background: var(--c-orange);
  padding-block: 15px;
}

.header__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 10px;
}

.header__logo {
  width: 185px;
  height: 35px;
  display: block;
  flex-shrink: 0;
}

.header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header a.active-link {
  font-weight: 700;
}

.header__links {
  display: flex;
  gap: 20px;
  align-items: center;
}

@media (max-width: 1280px) {
  .header__links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 720px;
  }
}

.header__links a {
  font-size: 13px;
}

.header__burger {
  width: 40px;
  height: 27px;
  padding: 0;
  display: none;
  color: #fff;
}

.header__burger svg,
.header__close svg {
  display: block;
  width: 100%;
  height: 100%;
}

.header__close {
  display: none;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 24px;
  height: 24px;
  padding: 0;
  z-index: 10001;
}

@media (max-width: 1000px) {
  .header__nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--c-black);
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 9999;
  }

  .header__nav.is-open {
    left: 0;
  }

  .header__burger,
  .header__close {
    display: block;
  }

  .header__links {
    flex-direction: column;
  }

  .header__links a {
    color: #fff;
  }
}

/* —— Hero & Main sections —— */
.hero {
  background: var(--c-black);
  overflow: hidden;
  position: relative;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__body {
  display: grid;
  grid-template-columns: 7.5fr 4.4fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__reserve {
  grid-template-columns: 6.17fr 5.79fr;
}

.hero__grad {
  position: absolute;
  bottom: -50px;
  background: radial-gradient(ellipse at bottom, #ff7600, #0b0b0b 50%);
  width: 1100px;
  height: 100%;
  right: -250px;
  z-index: 0;
  pointer-events: none;
}

.hero__info {
  position: relative;
  padding-block: 20px;
}

/* Hero titles — match tennisacademy26.es (.hero__header-NhGdR) */
.hero__header {
  font-size: 48px;
  line-height: 56px;
  color: #fff;
}

.hero__header .split-line {
  display: inline-block;
  overflow: hidden;
}

.hero__header .split-line-inner {
  display: inline-block;
}

.hero__img {
  background: url("../assets/img/main-img.webp") center / contain no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.schedule__img {
  background: url("../assets/img/schedule-img.webp") center / contain no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.reserve__img {
  background: url("../assets/img/reserve-img.webp") center / contain no-repeat;
  width: 100%;
  aspect-ratio: 579 / 482;
  position: relative;
  z-index: 1;
}

.tournaments__img {
  background: url("../assets/img/tournaments-img.webp") center / contain
    no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.events__img {
  background: url("../assets/img/events-img.webp") center / contain no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.analisis__img {
  background: url("../assets/img/tournaments-img.webp") center / contain
    no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.predicciones__img {
  background: url("../assets/img/events-img.webp") center / contain no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.fantasy__img {
  background: url("../assets/img/schedule-img.webp") center / contain no-repeat;
  width: 100%;
  aspect-ratio: 440 / 482;
  position: relative;
  z-index: 1;
}

.btn {
  background: var(--c-orange);
  border: 1px solid var(--c-gray-border);
  border-radius: 5px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  color: var(--c-black);
  width: 100%;
  max-width: 264px;
  text-transform: capitalize;
  font-size: 16px;
  align-self: center;
}

.btn-black {
  background: var(--c-black);
  color: #fff;
  border-color: var(--c-gray-border);
}

.btn-second {
  background: transparent;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--c-orange);
  border-color: var(--c-orange-deep);
}

.btn--muted {
  opacity: 0.55;
  cursor: not-allowed;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.grid-3 img {
  aspect-ratio: 385 / 256;
  box-shadow: 0 4px 15px 0 #0000004d;
  width: 100%;
  border-radius: 5px;
  height: auto;
  object-fit: cover;
}

/* Swiper: mobile carousel for “Sobre nosotros” images (desktop keeps grid) */
.about-swiper {
  display: none;
  width: 100%;
}

.about-swiper.is-active {
  display: block;
}

.about-swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 385 / 256;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 4px 15px 0 #0000004d;
}

.grid-3.is-about-grid--hide {
  display: none !important;
}

/* —— Predicciones: encuesta —— */
.poll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.poll-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.poll-result {
  display: flex;
  flex-direction: row;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid var(--c-gray-border);
  width: 100%;
}

.poll-result [data-poll-bar] {
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 0.35s ease;
}

.poll-result [data-poll-bar="a"] {
  background: var(--c-orange);
}

.poll-result [data-poll-bar="b"] {
  background: #4d4d4d;
}

.poll-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 18px;
}

.programs__item .poll-labels,
.programs__item .poll-labels strong {
  color: #fff;
}

/* —— Fantasy: tabla de puntos —— */
.fantasy-score-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 640px;
  margin-inline: auto;
}

.fantasy-score-table th,
.fantasy-score-table td {
  border: 1px solid var(--c-gray-border);
  padding: 10px 14px;
  text-align: left;
}

.fantasy-score-table thead th {
  background: var(--c-orange);
  font-weight: 700;
}

.fantasy-score-table tbody tr:nth-child(even) {
  background: #f6f6f6;
}

.fantasy-steps {
  list-style: decimal;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fantasy-steps li {
  padding-left: 4px;
}

/* —— Fantasy: Jugar ahora (solo esta página; sin conflictos con .programs__item) —— */
.fantasy-play {
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.75) 0%, rgba(11, 11, 11, 0.55) 100%),
    url("../assets/img/players-bg.webp") center / cover no-repeat;
  padding-block: 72px 88px;
  color: #fff;
}


.fantasy-play__shell {
  max-width: var(--max-content);
  margin-inline: auto;
  min-width: 0;
  width: 100%;
}

.fantasy-play h2 {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.fantasy-play h3 {
  color: #fff;
  text-transform: none;
}

.fantasy-play__intro p {
  max-width: 720px;
  margin-inline: auto;
  color: #f2f2f2;
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.45;
}

.fantasy-play__intro strong {
  color: #fff;
}

.fantasy-play__subtitle {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.3;
  text-align: center;
  font-weight: 700;
}

.fantasy-play__count {
  font-weight: 400;
  opacity: 0.88;
}

.fantasy-play__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "pool team"
    "cta cta";
  column-gap: clamp(20px, 4vw, 36px);
  row-gap: clamp(18px, 3vw, 28px);
  margin-top: 28px;
  align-items: start;
}

.fantasy-play__col--pool {
  grid-area: pool;
}

.fantasy-play__col--team {
  grid-area: team;
}

.fantasy-play__cta {
  grid-area: cta;
  margin-top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Plantel: cuadrícula escritorio / carrusel ≤900px */
.fantasy-pool-wrap {
  width: 100%;
  min-width: 0;
}

.fantasy-pool-grid {
  display: none;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  align-items: stretch;
}

.fantasy-pool-mobile {
  display: none;
  width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  .fantasy-pool-grid {
    display: grid;
  }

  .fantasy-pool-mobile {
    display: none !important;
  }
}

@media (min-width: 1201px) {
  .fantasy-pool-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fantasy-pool-grid {
    display: none !important;
  }
}

.fantasy-pool-swiper.swiper {
  width: 100%;
  padding-bottom: 42px;
  overflow: hidden;
}

.fantasy-pool-swiper .swiper-slide {
  height: auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.fantasy-pool-swiper .swiper-pagination {
  bottom: 6px !important;
}

.fantasy-play .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.45;
}

.fantasy-play .swiper-pagination-bullet-active {
  background: var(--c-orange);
  opacity: 1;
}

.fantasy-pool-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 14px 18px;
  min-height: 360px;
  background: radial-gradient(circle at 20% 0%, #8e4c12, #0a0a0a 62%);
  border: 1px solid var(--c-gray-border);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.fantasy-pool-grid .fantasy-pool-card {
  max-width: none;
  margin-inline: 0;
  min-height: 340px;
  height: 100%;
}

.fantasy-pool-card__photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.fantasy-pool-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.fantasy-pool-card__name {
  margin: 14px 0 6px;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}

.fantasy-pool-card__profile {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #e0e0e0;
  flex-grow: 1;
  max-width: 260px;
}

.fantasy-pool-card .btn {
  max-width: none;
  width: 100%;
  min-height: 48px;
  height: auto;
  margin-top: auto;
  align-self: stretch;
}

.fantasy-pool-card__add:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

/* Equipo: 2 columnas; en móvil misma lógica sin scroll horizontal roto */
.fantasy-team-rail {
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.fantasy-team-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.fantasy-team-cell {
  min-width: 0;
}

.fantasy-team-slot {
  min-height: 280px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  box-sizing: border-box;
}

.fantasy-team-slot--empty {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.fantasy-team-slot--filled {
  background: radial-gradient(circle at 20% 0%, #8e4c12, #0a0a0a 62%);
  border: 1px solid var(--c-gray-border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  align-items: center;
  justify-content: flex-start;
  min-height: 280px;
}

.fantasy-team-slot__placeholder {
  font-weight: 700;
  color: var(--c-orange);
  font-size: 1.05rem;
}

.fantasy-team-slot__hint {
  font-size: 0.875rem;
  color: #bbb;
  margin-top: 8px;
}

.fantasy-team-slot__photo {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.fantasy-team-slot__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.fantasy-team-slot__name {
  margin: 12px 0 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.fantasy-team-slot--filled .btn {
  max-width: none;
  width: 100%;
  min-height: 44px;
  height: auto;
  margin-top: auto;
}

.fantasy-play__submit:not([hidden]) {
  display: flex;
}

.fantasy-play__submit {
  max-width: 300px;
  width: 100%;
}

.fantasy-modal.fantasy-modal--form .fantasy-modal__inner,
.fantasy-modal.fantasy-modal--thanks .fantasy-modal__inner {
  width: min(100%, 500px);
}

.fantasy-modal .fantasy-play-form .form__input {
  text-align: left;
  font-style: normal;
}

.fantasy-modal__title {
  margin: 0 0 12px;
  color: var(--c-orange);
  font-size: 1.35rem;
  line-height: 1.25;
}

.fantasy-modal__lead {
  margin: 0 0 18px;
  color: #eee;
  font-size: 1rem;
}

.fantasy-modal__lead strong {
  color: #fff;
}

.fantasy-modal__thanks {
  margin: 0;
  padding: 8px 8px 0;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: center;
}

.fantasy-play-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fantasy-modal__inner--scroll {
  max-height: min(88vh, 720px);
  overflow-y: auto;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

/* —— Fantasy: móvil / tablet ≤900px (carrusel + equipo + Jugar) —— */
@media (max-width: 900px) {
  .fantasy-play {
    padding-block: 48px 64px;
  }

  .fantasy-play__shell.flex {
    gap: 20px;
  }

  .fantasy-play__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "pool"
      "team"
      "cta";
    row-gap: 22px;
    column-gap: 0;
    margin-top: 20px;
  }

  .fantasy-play__col--pool,
  .fantasy-play__col--team {
    width: 100%;
    min-width: 0;
  }

  .fantasy-play__subtitle {
    margin-bottom: 12px;
  }

  /* Carrusel: altura visible y tarjeta a ancho completo */
  .fantasy-pool-wrap {
    overflow: visible;
  }

  .fantasy-pool-mobile {
    display: block !important;
    width: 100%;
    min-width: 0;
    position: relative;
  }

  .fantasy-pool-swiper.swiper {
    width: 100% !important;
    max-width: 100%;
    min-height: 420px;
    height: auto !important;
    margin: 0;
    padding: 0 0 52px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .fantasy-pool-swiper .swiper-wrapper {
    box-sizing: border-box;
    align-items: stretch;
  }

  .fantasy-pool-swiper .swiper-slide {
    box-sizing: border-box;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
  }

  .fantasy-pool-swiper .swiper-slide .fantasy-pool-card {
    width: 100%;
    max-width: min(100vw - 2 * var(--pad-inline), 400px);
    margin-inline: auto;
    min-height: 360px;
    height: auto;
  }

  .fantasy-pool-swiper .fantasy-pool-card__photo {
    max-width: 200px;
  }

  .fantasy-play__cta {
    padding-top: 4px;
  }

  .fantasy-team-track {
    gap: 12px;
  }

  .fantasy-team-slot {
    min-height: 200px;
  }

  .fantasy-team-slot--filled {
    min-height: 240px;
  }

  .fantasy-team-slot__photo {
    max-width: 128px;
  }
}

@media (max-width: 400px) {
  .fantasy-team-track {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .fantasy-pool-swiper.swiper {
    min-height: 400px;
  }
}

.tasks {
  background: url("../assets/img/traks-bg.webp") center / cover no-repeat;
  padding-block: 130px;
  padding-left: 400px;
}

.tasks-text {
  max-width: 756px;
  align-self: end;
}

.tasks li {
  color: #fff;
}

.big-logo {
  background: url("../assets/img/achivments-img.webp") center / contain
    no-repeat;
  width: 100%;
  height: 100%;
  min-height: 440px;
  aspect-ratio: 1 / 1;
}

.achvements {
  align-items: center;
}

.grid-2-small {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* —— Schedule / table —— */
.table-wrapper {
  background: url("../assets/img/schedule-bg.webp") center / cover no-repeat;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.table-wrapper thead tr {
  padding-bottom: 10px;
}

.table__header {
  background: var(--c-orange);
  border: 1px solid var(--c-gray-border);
  min-height: 44px;
  width: 100%;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--c-black);
  font-weight: 700;
  text-align: center;
  padding: 5px;
}

.row {
  background: #000000b2;
  border: 1px solid var(--c-gray-border);
  min-height: 44px;
  width: 100%;
  border-radius: 5px;
}

.table-header {
  gap: 20px;
}

.table__line {
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5px;
}

.coaches {
  background: url("../assets/img/coaches-bg.webp") center / cover no-repeat;
}

.coaches__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.coaches__item {
  background: #00000085;
  box-shadow: 0 4px 15px 0 #0000004d;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  border-radius: 5px;
}

.coaches__item p {
  color: #fff;
  text-align: center;
}

.programs__item {
  background: radial-gradient(circle at top left, #8e4c12, #0a0a0a);
  align-items: start;
}

.programs__item li {
  color: #fff;
}

.programs__item h3 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.35;
  font-weight: 700;
  color: #fff;
  text-transform: none;
}

.programs__item p.text-start {
  text-align: start;
  width: 100%;
  align-self: flex-start;
}

/* Sin efecto 3D / tilt en tarjetas de programa (solo contenido estable) */
.programs__item {
  transform: none !important;
}

.programs__item:hover {
  transform: none !important;
}

/* Artículos cortos — Análisis */
.analisis-articles__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

@media (max-width: 749px) {
  .analisis-articles__grid {
    grid-template-columns: 1fr;
  }
}

.table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrapper thead tr,
.table-wrapper tbody tr {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.table-wrapper tbody {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-wrapper thead tr {
  margin-bottom: 0;
}

/* —— Pages / tournaments —— */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.players {
  background: url("../assets/img/players-bg.webp") center / cover no-repeat;
}

.players .coaches__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.coaches__img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* —— Forms —— */
.register__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
}

.contact__form {
  max-width: 822px;
}

.form__input {
  background: #000000;
  min-height: 44px;
  padding: 10px 20px;
  color: #fff;
  width: 100%;
  border-radius: 5px;
  border: 1px solid var(--c-gray-border);
  font-style: italic;
  text-align: center;
  font-size: 20px;
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__input::placeholder {
  color: var(--c-gray-ph);
  text-align: center;
}

.form__input:focus {
  outline: 2px solid var(--c-orange-deep);
  outline-offset: 2px;
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  padding: 100px 20px 0;
  top: 0;
  left: 0;
  z-index: 10050;
}

.modal__body {
  box-shadow: inset 0 4px 10px 0 rgba(0, 0, 0, 0.3);
  background: #0a0e24;
  padding: 40px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  width: 400px;
  max-width: 100%;
  height: fit-content;
  color: var(--c-orange-deep);
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--c-orange-deep);
}

@media (max-width: 600px) {
  .modal__body {
    padding: 20px;
  }
}

.contacts-logo {
  width: 189px;
  max-width: 100%;
  height: auto;
}

.contacts__info {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.contacts__info p {
  color: #fff;
}

/* —— Footer —— */
.footer {
  background: var(--c-orange-deep);
  padding-block: 40px;
  margin-top: auto;
}

.footer p,
.footer a {
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
}

.footer__body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__right {
  max-width: 606px;
  width: 100%;
}

.footer__links,
.help-list {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.help-list a {
  display: block;
}

.help-list img {
  display: block;
  max-height: 48px;
  width: auto;
  height: auto;
}

/* —— Legal text pages —— */
.legal-page {
  container-type: inline-size;
}

.legal-page p {
  max-width: 90ch;
}

/* —— 3D tilt target —— */
.tilt-card {
  transform-style: preserve-3d;
}

/* —— Container query cards —— */
@container (max-width: 520px) {
  .legal-page h1 {
    font-size: clamp(1.25rem, 5cqi, 2rem);
  }
}

@media (max-width: 1100px) {
  .pad-top {
    padding-block: 60px;
  }

  .hero__grad {
    width: 700px;
    right: -100px;
  }

  .hero__header {
    font-size: 32px;
    line-height: 40px;
  }

  .tasks {
    padding-left: 200px;
  }

  .big-logo {
    min-height: auto;
    min-width: 340px;
  }

  .grid-2-small {
    grid-template-columns: 1fr;
  }

  .table__line,
  .table__header {
    font-size: 15px;
  }

  .table-header {
    gap: 10px;
  }

  .coaches__list {
    gap: 10px;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 930px) {
  .table__line,
  .table__header {
    font-size: 12px;
    min-height: 40px;
  }

  .programs__list {
    grid-template-columns: 1fr;
  }

  .coaches__item {
    padding: 10px;
  }
}

@media (max-width: 850px) {
  .achvements {
    display: flex;
    flex-direction: column;
  }

  .big-logo {
    max-width: 400px;
    min-width: auto;
  }
}

@media (max-width: 749px) {
  .pad-top {
    padding-block: 20px;
  }

  h1,
  h2 {
    font-size: 20px;
    line-height: 24px;
  }

  p,
  a,
  li,
  span,
  label,
  input {
    font-size: 14px;
    line-height: 16px;
  }

  .gap-40 {
    gap: 20px;
  }
  .gap-20 {
    gap: 10px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero__header {
    font-size: 24px;
    line-height: 28px;
    text-align: center;
  }

  .hero__info p {
    text-align: center;
  }

  .hero__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero__img,
  .schedule__img,
  .reserve__img,
  .tournaments__img,
  .events__img,
  .analisis__img,
  .predicciones__img,
  .fantasy__img {
    max-width: 300px;
    margin-inline: auto;
  }

  .hero__grad {
    bottom: -10px;
    width: 500px;
    align-self: center;
    right: auto;
    background: radial-gradient(circle at bottom, #ff7600, #0b0b0b 50%);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .tasks {
    background: url("../assets/img/tasks-bg-mob.webp") center / cover no-repeat;
    padding-block: 40px;
    padding-left: 12px;
  }

  .contacts-logo {
    width: 100px;
  }

  .grid-2-small {
    gap: 10px;
  }

  .footer {
    padding-block: 20px;
  }

  .footer__body {
    flex-direction: column;
    align-items: start;
  }

  .help-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 336px;
    gap: 10px;
  }

  .help-list li img {
    width: 100%;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
  }

  .table-wrapper {
    padding: 10px 5px;
  }

  .table__line,
  .table__header {
    font-size: 10px;
  }

  .table-header {
    gap: 5px;
  }

  .coaches__list {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .players .coaches__item {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  .form__input {
    min-height: 37px;
  }

  .register__form {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .table__line,
  .table__header {
    font-size: 8px;
    line-height: 10px;
  }
}

@media (max-width: 350px) {
  .table__line,
  .table__header {
    font-size: 6px;
    line-height: 8px;
  }

  .privacy h1,
  .privacy h2 {
    word-break: break-all;
  }
}

body.nav-open {
  overflow: hidden;
}

/* —— Torneos TA26 (calendario, pestañas, inscripción) —— */
.ta26-intro {
  max-width: 720px;
  margin-inline: auto;
}

.ta26-year-cal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.ta26-cal__month {
  background: #00000085;
  border: 1px solid var(--c-gray-border);
  border-radius: 8px;
  padding: 12px 14px 14px;
  min-height: 120px;
}

.ta26-cal__month-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-orange);
  text-align: center;
}

.ta26-cal__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ta26-cal__chip {
  width: 100%;
  text-align: left;
  background: #0a0a0a;
  border: 1px solid var(--c-gray-border);
  border-radius: 6px;
  padding: 10px 10px 10px 12px;
  cursor: pointer;
  color: #fff;
  border-left: 4px solid var(--c-orange);
  font: inherit;
}

.ta26-cal__chip:focus-visible {
  outline: 2px solid var(--c-orange-deep);
  outline-offset: 2px;
}

.ta26-cal__chip-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  color: #fff;
}

.ta26-cal__chip-dates {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
  margin-top: 4px;
  color: var(--c-orange-deep);
}

.ta26-cat--juniors,
.ta26-cal__chip.ta26-cat--juniors {
  border-left-color: #4a9eff;
}

.ta26-cat--adults,
.ta26-cal__chip.ta26-cat--adults {
  border-left-color: #b47cff;
}

.ta26-cat--open,
.ta26-cal__chip.ta26-cat--open {
  border-left-color: var(--c-orange);
}

.ta26-cal__empty {
  margin: 0;
  color: #888;
  font-size: 0.9rem;
  text-align: center;
}

.ta26-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: #fff;
  font-size: 0.95rem;
}

.ta26-legend__sw {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

.ta26-legend__sw.ta26-cat--open {
  background: var(--c-orange);
}

.ta26-legend__sw.ta26-cat--juniors {
  background: #4a9eff;
}

.ta26-legend__sw.ta26-cat--adults {
  background: #b47cff;
}

.ta26-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 24px;
}

.ta26-tab {
  background: #00000085;
  border: 1px solid var(--c-gray-border);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}

.ta26-tab:hover {
  border-color: var(--c-orange-deep);
}

.ta26-tab--active {
  background: var(--c-orange);
  color: var(--c-black);
  border-color: var(--c-orange);
}

.ta26-tabpanel__hint {
  max-width: 640px;
  margin: 0 auto 20px;
  color: #ccc;
  font-size: 0.95rem;
}

.ta26-tabpanel__hint a {
  color: var(--c-orange);
}

.ta26-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-bottom: 24px;
}

.ta26-filter-label {
  font-weight: 700;
}

.ta26-filter-select {
  max-width: 280px;
  font-style: normal;
}

.ta26-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.ta26-card {
  align-items: stretch;
  text-align: start;
  padding: 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ta26-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.ta26-card__title {
  flex: 1 1 200px;
  margin: 0;
}

.ta26-card__dates {
  width: 100%;
  color: var(--c-orange-deep);
  font-weight: 700;
  margin: 0;
}

.ta26-card__facts {
  margin: 0;
  padding-left: 1.1em;
  color: #fff;
  width: 100%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ta26-card__facts .ta26-cat {
  font-weight: 700;
}

.ta26-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ta26-badge--abierta {
  background: #1e6b2e;
  color: #e8ffe8;
}

.ta26-badge--pronto {
  background: #8a6a00;
  color: #fff8d4;
}

.ta26-badge--llena {
  background: #8b1a1a;
  color: #ffe0e0;
}

.ta26-badge--cerrada {
  background: #444;
  color: #ddd;
}

.ta26-rules-acc {
  width: 100%;
  border: 1px solid var(--c-gray-border);
  border-radius: 6px;
  padding: 8px 12px;
  background: #0006;
}

.ta26-rules-acc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--c-orange);
}

.ta26-rules-acc ol {
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: #eee;
  font-size: 0.9rem;
  line-height: 1.45;
}

.ta26-card-winners {
  width: 100%;
  color: #fff;
  font-size: 0.95rem;
}

.ta26-card-winners ul {
  margin: 6px 0 0;
  padding-left: 1.2em;
}

.ta26-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.ta26-card__actions .btn {
  width: auto;
  flex: 1 1 160px;
  max-width: none;
  min-height: 48px;
  height: auto;
  padding: 10px 16px;
}

.ta26-empty {
  text-align: center;
  color: #aaa;
  grid-column: 1 / -1;
}

.ta26-lookup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: flex-end;
  max-width: 720px;
  margin: 0 auto 20px;
}

.ta26-field--inline {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
}

.ta26-field__label {
  font-weight: 700;
  font-size: 0.9rem;
}

.ta26-field__input--left {
  text-align: left;
  font-style: normal;
}

.ta26-lookup-submit {
  flex: 0 0 auto;
  align-self: flex-end;
}

.ta26-lookup-result {
  max-width: 520px;
  margin: 0 auto;
}

.ta26-lookup-msg {
  color: #ccc;
  text-align: center;
}

.ta26-lookup-msg a {
  color: var(--c-orange);
}

.ta26-lookup-msg--warn {
  color: #ffb4a4;
}

.ta26-lookup-card {
  background: #00000085;
  border: 1px solid var(--c-gray-border);
  border-radius: 8px;
  padding: 20px;
  color: #fff;
}

.ta26-lookup-note {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 0;
}

.ta26-modal {
  padding: 40px 16px 24px;
  align-items: flex-start;
  overflow-y: auto;
}

.ta26-modal__body {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.ta26-modal__body li {
  color: #fff
}

.ta26-modal__body--message {
  width: min(100%, 480px);
}

.ta26-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 2;
}

.ta26-modal__close:hover {
  color: var(--c-orange);
}

.ta26-modal__text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  padding-right: 28px;
}

.ta26-modal__text p {
  color: #fff;
}

.ta26-modal__text .ta26-modal__title--inline {
  margin-top: 0;
  color: var(--c-orange);
  font-size: 1.25rem;
}

.ta26-modal__text strong {
  color: var(--c-orange-deep);
}

.ta26-ref-line {
  margin-top: 16px;
}

.ta26-ref-hint {
  font-size: 0.88rem;
  color: #bbb;
  margin-bottom: 0;
}

.ta26-modal__title {
  margin: 0 0 12px;
  color: var(--c-orange);
  font-size: 1.35rem;
  line-height: 1.25;
}

.ta26-modal__subtitle {
  margin: 16px 0 8px;
  color: var(--c-orange-deep);
  font-size: 1rem;
}

.ta26-modal__meta {
  margin: 6px 0;
  color: #eee;
}

.ta26-modal__rules {
  margin: 0;
  padding-left: 1.2em;
  color: #ddd;
  font-size: 0.92rem;
}

.ta26-detail-winners {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: #fff;
}

.ta26-modal__body--form .ta26-modal__hint {
  margin: 0 0 16px;
  color: #bbb;
  font-size: 0.9rem;
}

.ta26-register-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ta26-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  width: 100%;
}

.ta26-field__input,
.ta26-field__select {
  font-style: normal;
  text-align: left;
  font-weight: 400;
}

.ta26-field__input[readonly] {
  opacity: 0.9;
}

.ta26-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.88rem;
  color: #ddd;
  cursor: pointer;
}

.ta26-check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.ta26-check a {
  color: var(--c-orange);
}

.ta26-results-list {
  text-align: left;
  padding-left: 1.2em;
}

@media (max-width: 900px) {
  .ta26-year-cal {
    grid-template-columns: repeat(2, 1fr);
  }

  .ta26-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ta26-year-cal {
    grid-template-columns: 1fr;
  }

  .ta26-lookup-form {
    flex-direction: column;
    align-items: stretch;
  }

  .ta26-lookup-submit {
    align-self: stretch;
    max-width: none;
  }
}
