
/* =====================================================
   KAIZER F.C. — PLANTILLA
   Los estilos globales del menú y footer están en
   styles.css. Este archivo controla el contenido central.
   ===================================================== */

.squad-page {
  --squad-ink: #101114;
  --squad-muted: #6d7076;
  --squad-gold: #f3ca4c;
  --squad-cyan: #b2ffff;
  --squad-paper: #f6f6f3;
  --squad-line: #e4e4df;
  color: var(--squad-ink);
  background: #fff;
  overflow: hidden;
}

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

.squad-page button,
.squad-page select {
  font: inherit;
}

.squad-page button:focus-visible,
.squad-page select:focus-visible,
.squad-page a:focus-visible {
  outline: 3px solid var(--squad-gold);
  outline-offset: 4px;
}

/* PORTADA */

.squad-hero {
  min-height: 390px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 68px max(6%, calc((100% - 1240px) / 2));
  background: #101114;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.squad-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #101114 0%, #101114 45%, rgba(16, 17, 20, .78) 100%);
}

.squad-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 440px;
  height: 440px;
  right: 8%;
  top: -145px;
  border: 1px solid rgba(243, 202, 76, .24);
  transform: rotate(35deg);
  pointer-events: none;
}

.squad-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.squad-eyebrow,
.squad-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a6a7ac;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.squad-eyebrow {
  color: var(--squad-gold);
}

.squad-eyebrow__line {
  width: 28px;
  height: 2px;
  background: var(--squad-gold);
}

.squad-hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6.4vw, 76px);
  line-height: .99;
  letter-spacing: -3px;
  font-weight: 900;
}

.squad-hero h1 span {
  display: block;
  color: var(--squad-gold);
}

.squad-hero__description {
  max-width: 480px;
  margin: 0;
  color: #c5c6ca;
  font-size: 15px;
  line-height: 1.8;
}

.squad-hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  color: #c4c5c8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.squad-hero__meta strong {
  color: #fff;
}

.squad-meta-divider {
  width: 1px;
  height: 22px;
  background: #4b4c50;
}

.squad-hero__visual {
  position: absolute;
  right: 12%;
  top: 50%;
  width: 300px;
  height: 300px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.squad-hero__number {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .07);
  font-size: 255px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -18px;
}

.squad-hero__circle {
  position: absolute;
  border: 1px solid rgba(243, 202, 76, .32);
  border-radius: 50%;
}

.squad-hero__circle--outer {
  inset: 8px;
}

.squad-hero__circle--inner {
  inset: 37px;
  border-color: rgba(255, 255, 255, .14);
}

.squad-hero__cross {
  position: absolute;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, .08);
}

.squad-hero__cross::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -150px;
  width: 300px;
  height: 1px;
  background: rgba(255, 255, 255, .08);
}

.squad-hero__label {
  position: absolute;
  bottom: 15px;
  right: -35px;
  color: #a6a7ac;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  transform: rotate(-90deg);
}

.squad-hero__bottom {
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: #a6a7ac;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

/* SECCIÓN PRINCIPAL */

.squad-section {
  width: min(1240px, 88%);
  margin: 0 auto;
  padding: 76px 0 84px;
}

.squad-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.squad-kicker {
  color: #8b8d91;
}

.squad-section__heading h2 {
  margin: 10px 0 0;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.12;
  letter-spacing: -1.6px;
  font-weight: 850;
}

.squad-section__heading h2 span {
  color: #a27b13;
}

.squad-section__intro {
  max-width: 330px;
  margin: 0 0 3px;
  color: var(--squad-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* SELECTOR */

.team-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.team-selector > label {
  color: #777a80;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.7px;
}

.team-selector__control {
  position: relative;
  max-width: 570px;
}

.team-selector select {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 50px 0 18px;
  appearance: none;
  border: 1px solid #deded8;
  border-radius: 3px;
  background: #fff;
  color: #17181b;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.team-selector select:hover {
  border-color: #b99a39;
}

.team-selector__arrow {
  position: absolute;
  top: 50%;
  right: 19px;
  color: #98720d;
  font-size: 23px;
  line-height: 1;
  transform: translateY(-58%);
  pointer-events: none;
}

.team-selector__note {
  margin: 0;
  color: #777a80;
  font-size: 11px;
  line-height: 1.6;
}

/* RESUMEN DEL EQUIPO */

.team-overview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 25px 28px;
  margin: 28px 0 27px;
  background: var(--squad-paper);
  border-left: 3px solid var(--squad-gold);
}

.team-overview__crest {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}

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

.team-overview__eyebrow {
  color: #8b6b10;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.7px;
}

.team-overview__text h2 {
  margin: 5px 0 6px;
  font-size: clamp(22px, 3vw, 31px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.8px;
}

.team-overview__text p {
  margin: 0;
  color: #6d7076;
  font-size: 12px;
  line-height: 1.6;
}

.team-overview__count {
  min-width: 90px;
  padding-left: 25px;
  border-left: 1px solid #d8d8d1;
  text-align: center;
}

.team-overview__count strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
}

.team-overview__count span {
  display: block;
  margin-top: 8px;
  color: #777a80;
  font-size: 8px;
  line-height: 1.6;
  font-weight: 850;
  letter-spacing: 1px;
}

/* FILTROS */

.squad-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
}

.position-filter {
  min-height: 39px;
  padding: 0 17px;
  border: 1px solid #e1e1dc;
  border-radius: 2px;
  background: #fff;
  color: #55585e;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.position-filter:hover {
  border-color: #c2a23e;
  color: #111;
}

.position-filter.is-active {
  border-color: #111214;
  background: #111214;
  color: #fff;
}

/* TARJETAS */

.players-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.player-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e8e3;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.player-card:hover {
  transform: translateY(-5px);
  border-color: #d5bd69;
  box-shadow: 0 16px 32px rgba(18, 19, 20, .09);
}

.player-card__top {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  background: #f7f7f4;
}

.player-card__demo {
  color: #88701d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.player-card__number {
  color: #17181b;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.5px;
}

.player-card__portrait {
  position: relative;
  min-height: 215px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(178, 255, 255, .22), transparent 60%),
    linear-gradient(180deg, #e9eae6 0%, #d8d9d4 100%);
}

.player-card__portrait::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: 20px;
  left: 50%;
  border: 1px solid rgba(16, 17, 20, .12);
  border-radius: 50%;
  transform: translateX(-50%);
}

.player-card__portrait::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 1px;
  bottom: 40px;
  left: 50%;
  background: rgba(16, 17, 20, .1);
  transform: translateX(-50%);
}

.player-card__portrait-ring {
  position: absolute;
  top: 33px;
  left: 50%;
  width: 148px;
  height: 148px;
  border: 1px dashed rgba(16, 17, 20, .15);
  border-radius: 50%;
  transform: translateX(-50%);
}

.player-card__silhouette {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 140px;
  height: 166px;
  transform: translateX(-50%);
}

.player-card__head {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 50%;
  width: 57px;
  height: 66px;
  border-radius: 46% 46% 42% 42%;
  background: #aaaDA8;
  transform: translateX(-50%);
}

.player-card__body {
  position: absolute;
  bottom: -20px;
  left: 50%;
  width: 140px;
  height: 122px;
  border-radius: 45% 45% 0 0;
  background: linear-gradient(90deg, #25272a, #46484a 50%, #222427);
  transform: translateX(-50%);
}

.player-card__body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 100%;
  background: var(--squad-gold);
  transform: translateX(-50%);
  opacity: .9;
}

.player-card__initial {
  position: absolute;
  z-index: 3;
  top: 75px;
  left: 50%;
  color: #fff;
  font-size: 27px;
  font-weight: 900;
  transform: translateX(-50%);
}

.player-card__portrait-label {
  position: absolute;
  z-index: 4;
  bottom: 10px;
  left: 12px;
  color: #5f625f;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.player-card__info {
  padding: 19px 16px 17px;
}

.player-card__position {
  display: inline-block;
  color: #8b6b10;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.player-card__info h3 {
  min-height: 42px;
  margin: 8px 0 14px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.player-card__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #777a80;
  font-size: 9px;
  line-height: 1.5;
}

.player-card__details strong {
  color: #1b1c1f;
}

.player-card__bottom {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-top: 1px solid #ededeb;
  color: #777a80;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.3px;
}

.player-card__arrow {
  color: #927311;
  font-size: 16px;
}

.squad-empty {
  padding: 35px 20px;
  border: 1px dashed #d7d7d0;
  color: #66696f;
  font-size: 13px;
  text-align: center;
}

.squad-empty[hidden],
.players-grid[hidden] {
  display: none;
}

/* AVISO SOBRE LOS DATOS DE EJEMPLO */

.squad-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 30px;
  padding: 17px 19px;
  border: 1px solid #e8e3d2;
  background: #fbfaf6;
}

.squad-disclaimer__icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 1px solid #b89b3c;
  border-radius: 50%;
  color: #846711;
  font-size: 11px;
  font-weight: 900;
}

.squad-disclaimer p {
  margin: 0;
  color: #696a67;
  font-size: 11px;
  line-height: 1.7;
}

.squad-disclaimer strong {
  color: #252629;
}

/* MENSAJE INSTITUCIONAL */

.squad-manifesto {
  position: relative;
  display: flex;
  align-items: center;
  gap: 45px;
  min-height: 270px;
  padding: 55px max(6%, calc((100% - 1240px) / 2));
  overflow: hidden;
  background: #101114;
  color: #fff;
}

.squad-manifesto__mark {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 202, 76, .55);
  color: var(--squad-gold);
  font-size: 85px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-8deg);
}

.squad-manifesto__content {
  max-width: 500px;
}

.squad-manifesto .squad-kicker {
  color: var(--squad-gold);
}

.squad-manifesto h2 {
  margin: 12px 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.05;
  letter-spacing: -1.6px;
  font-weight: 900;
}

.squad-manifesto h2 span {
  color: var(--squad-gold);
}

.squad-manifesto__content p {
  max-width: 460px;
  margin: 0;
  color: #c5c6ca;
  font-size: 13px;
  line-height: 1.8;
}

.squad-manifesto__signature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
  padding-left: 30px;
  border-left: 1px solid #414247;
  white-space: nowrap;
}

.squad-manifesto__signature span {
  color: #c5c6ca;
  font-size: 10px;
  letter-spacing: 2px;
}

.squad-manifesto__signature strong {
  color: var(--squad-gold);
  font-size: 12px;
  letter-spacing: 2px;
}

/* TABLETAS */

@media (max-width: 1050px) {
  .squad-hero__visual {
    right: 3%;
    opacity: .65;
    transform: translateY(-50%) scale(.82);
  }

  .squad-hero__content {
    max-width: 590px;
  }

  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .player-card__portrait {
    min-height: 235px;
  }

  .squad-manifesto {
    gap: 28px;
  }

  .squad-manifesto__mark {
    width: 105px;
    height: 105px;
    font-size: 65px;
  }

  .squad-manifesto__signature {
    padding-left: 20px;
  }
}

/* MÓVILES */

@media (max-width: 650px) {
  .squad-hero {
    min-height: 360px;
    padding: 52px 6% 70px;
  }

  .squad-hero::after {
    right: -220px;
  }

  .squad-hero__visual {
    right: -115px;
    opacity: .32;
    transform: translateY(-50%) scale(.72);
  }

  .squad-hero h1 {
    font-size: clamp(39px, 11vw, 58px);
    letter-spacing: -2px;
  }

  .squad-hero__description {
    max-width: 350px;
    font-size: 13px;
  }

  .squad-hero__meta {
    gap: 12px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .squad-hero__bottom {
    left: 6%;
    right: 6%;
    justify-content: space-between;
    gap: 8px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .squad-section {
    width: 88%;
    padding: 53px 0 58px;
  }

  .squad-section__heading {
    display: block;
    margin-bottom: 25px;
  }

  .squad-section__heading h2 {
    font-size: 34px;
  }

  .squad-section__intro {
    margin-top: 12px;
    font-size: 12px;
  }

  .team-selector select {
    min-height: 53px;
    font-size: 12px;
  }

  .team-overview {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 15px;
  }

  .team-overview__crest {
    width: 53px;
    height: 53px;
  }

  .team-overview__text h2 {
    font-size: 21px;
    overflow-wrap: anywhere;
  }

  .team-overview__text p {
    font-size: 11px;
  }

  .team-overview__count {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 0 0;
    border-left: 0;
    border-top: 1px solid #d8d8d1;
    text-align: left;
  }

  .team-overview__count strong {
    font-size: 24px;
  }

  .team-overview__count span {
    margin-top: 0;
  }

  .squad-filters {
    gap: 7px;
  }

  .position-filter {
    min-height: 36px;
    padding: 0 11px;
    font-size: 10px;
  }

  .players-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .player-card__top {
    min-height: 38px;
    padding: 0 10px;
  }

  .player-card__demo {
    font-size: 7px;
    letter-spacing: .8px;
  }

  .player-card__number {
    font-size: 16px;
  }

  .player-card__portrait {
    min-height: 155px;
  }

  .player-card__portrait::before {
    width: 135px;
    height: 135px;
    top: 10px;
  }

  .player-card__portrait-ring {
    top: 20px;
    width: 112px;
    height: 112px;
  }

  .player-card__silhouette {
    width: 110px;
    height: 128px;
  }

  .player-card__head {
    top: 17px;
    width: 45px;
    height: 52px;
  }

  .player-card__body {
    width: 110px;
    height: 96px;
  }

  .player-card__initial {
    top: 61px;
    font-size: 22px;
  }

  .player-card__portrait-label {
    bottom: 7px;
    left: 7px;
    font-size: 6px;
    letter-spacing: .5px;
  }

  .player-card__info {
    padding: 14px 10px 13px;
  }

  .player-card__position {
    font-size: 8px;
    letter-spacing: .6px;
  }

  .player-card__info h3 {
    min-height: 48px;
    margin: 7px 0 11px;
    font-size: 13px;
    line-height: 1.35;
  }

  .player-card__details {
    font-size: 8px;
  }

  .player-card__bottom {
    min-height: 36px;
    padding: 0 10px;
    font-size: 7px;
    letter-spacing: .7px;
  }

  .squad-disclaimer {
    gap: 10px;
    padding: 13px;
  }

  .squad-disclaimer p {
    font-size: 10px;
  }

  .squad-manifesto {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    padding: 43px 6%;
  }

  .squad-manifesto__mark {
    width: 64px;
    height: 64px;
    font-size: 40px;
  }

  .squad-manifesto h2 {
    font-size: 33px;
  }

  .squad-manifesto__content p {
    font-size: 12px;
  }

  .squad-manifesto__signature {
    grid-column: 2;
    margin-left: 0;
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid #414247;
  }
}

/* PANTALLAS MUY ESTRECHAS */

@media (max-width: 360px) {
  .players-grid {
    grid-template-columns: 1fr;
  }

  .player-card__portrait {
    min-height: 220px;
  }

  .player-card__info h3 {
    min-height: auto;
  }

  .squad-hero__meta {
    flex-wrap: wrap;
  }
}

/* REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE */

@media (prefers-reduced-motion: reduce) {
  .player-card,
  .position-filter {
    transition: none;
  }

  .player-card:hover {
    transform: none;
  }
}
