/* =====================================================================
   Fénix FS · Estilos
   Paleta: negro, rojo Fénix y dorado (basada en la identidad del club)
   ===================================================================== */

:root {
  --black: #0b0b0c;
  --black-2: #141416;
  --black-3: #1d1d21;
  --red: #e2001a;
  --red-dark: #b00014;
  --gold: #d6a63a;
  --white: #f5f3ef;
  --grey: #a8a6a1;
  --grey-dark: #55534f;
  --line: rgba(255, 255, 255, 0.08);

  --font-display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 1rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.06em; line-height: 1; }
.brand-name span { color: var(--red); }

.main-nav { display: flex; gap: 1.8rem; align-items: center; }
.main-nav a {
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--grey); transition: color 0.2s;
}
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta {
  color: #fff; background: var(--red); padding: 0.5rem 1.1rem; border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.4rem; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 0 3rem; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/img/bg-dark.jpg") center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.35) 0%, rgba(11,11,12,0.15) 50%, var(--black) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-kicker {
  font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.hero-title {
  font-size: clamp(4.5rem, 14vw, 9.5rem); line-height: 0.9; margin: 0.2rem 0 0.5rem;
}
.hero-title span { color: var(--red); }
.hero-tagline {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: 0.25em;
  color: var(--white); margin-bottom: 1.2rem;
}
.hero-text { font-size: 1.1rem; color: var(--grey); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-stats {
  position: relative; z-index: 1;
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.stat {
  padding: 1rem 1.2rem; border-left: 3px solid var(--red);
  background: rgba(255,255,255,0.03); backdrop-filter: blur(4px);
}
.stat-value { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey); }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--black-2); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-kicker {
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); font-weight: 700;
  margin-bottom: 0.4rem;
}
.section-title { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin-bottom: 1rem; }
.section-intro { color: var(--grey); font-size: 1.05rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 60px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--red), var(--gold));
}
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 0 0 2.2rem; position: relative; }
.timeline-year {
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); line-height: 1.2;
  position: relative;
}
.timeline-year::after {
  content: ""; position: absolute; left: 53px; top: 0.55rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--black); border: 3px solid var(--red);
}
.timeline-body h3 { font-size: 1.6rem; margin-bottom: 0.3rem; }
.timeline-body p { color: var(--grey); margin: 0; }

/* ---------- Grids y tarjetas ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-teams { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-members { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.card {
  background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(226,0,26,0.5); }
.card-body { padding: 1.5rem; }
.card-kicker { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.card h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.card p { color: var(--grey); }
.card-meta { font-size: 0.85rem; color: var(--grey-dark); margin: 0; }

.team-media {
  aspect-ratio: 16 / 9; position: relative;
  background: url("../assets/img/bg-dark.jpg") center / cover no-repeat;
}
.team-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--black-3) 100%);
}

.member { text-align: center; }
.member-avatar {
  width: 120px; height: 120px; margin: 0 auto 0.9rem; border-radius: 50%; overflow: hidden;
  background: var(--black-3); border: 3px solid var(--red);
  display: grid; place-items: center; position: relative;
}
.member-avatar::before {
  content: attr(data-initials); font-family: var(--font-display); font-size: 2.4rem; color: var(--grey);
}
.member-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 0.1rem; }
.member p { color: var(--grey); font-size: 0.85rem; margin: 0; }

/* ---------- Patrocinadores ---------- */
.sponsors-main { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.sponsors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.sponsor {
  display: grid; place-items: center; min-height: 110px; padding: 1.2rem;
  background: var(--white); border-radius: var(--radius); color: var(--black);
  font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.05em; text-align: center;
  transition: transform 0.2s ease;
}
.sponsor:hover { transform: scale(1.03); }
.sponsor img { max-height: 70px; width: auto; object-fit: contain; }
.sponsor-main { min-height: 160px; width: min(100%, 420px); }
.sponsor-main img { max-height: 110px; }
.sponsor-cta {
  margin-top: 3rem; text-align: center; padding: 2.2rem; border-radius: var(--radius);
  border: 1px dashed rgba(214,166,58,0.5);
}
.sponsor-cta p { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; }

/* ---------- Contacto ---------- */
.section-contact {
  position: relative;
  background: url("../assets/img/bg-light.jpg") center / cover no-repeat;
  color: var(--black);
}
.section-contact::before {
  content: ""; position: absolute; inset: 0; background: rgba(245,243,239,0.55);
}
.contact-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-text .section-kicker { color: var(--red); }
.contact-text p { color: #3a3835; }
.contact-list { padding-left: 1.2rem; color: #3a3835; margin-bottom: 1.5rem; }
.contact-list li { margin-bottom: 0.4rem; }
.contact-direct a { color: var(--red); font-weight: 600; border-bottom: 1px solid currentColor; }

.contact-form {
  background: var(--black); color: var(--white); padding: 2rem; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grey); margin-bottom: 0.35rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.8rem 0.95rem; font: inherit; color: var(--white);
  background: var(--black-3); border: 1px solid var(--line); border-radius: 8px;
  transition: border-color 0.2s;
}
.form-row select { color-scheme: dark; }
.form-row select option { color: var(--white); background: var(--black-3); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--red); }
.form-row textarea { resize: vertical; }
.form-check { display: flex; gap: 0.6rem; align-items: flex-start; }
.form-check input { width: auto; margin-top: 0.25rem; }
.form-check label { text-transform: none; letter-spacing: 0; font-size: 0.85rem; margin: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { margin: 1rem 0 0; font-size: 0.9rem; min-height: 1.2em; }
.form-status.ok { color: #6fd18a; }
.form-status.error { color: #ff6b6b; }

/* ---------- Pie ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 3rem 0 2rem; }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: 1fr auto; align-items: start; }
.footer-brand p { color: var(--grey); margin: 0.4rem 0 0; font-size: 0.9rem; }
.footer-hashtag { font-family: var(--font-display); letter-spacing: 0.2em; color: var(--red) !important; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--grey); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em; font-weight: 600; }
.footer-links a:hover { color: var(--white); }
.footer-copy { grid-column: 1 / -1; color: var(--grey-dark); font-size: 0.8rem; margin: 1rem 0 0; }

/* ---------- Animación reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(11,11,12,0.97);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav a { font-size: 1.3rem; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: 0.3rem; padding-left: 2rem; }
  .timeline-year::after { left: -2rem; top: 0.4rem; }
  .section { padding: 4rem 0; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
  .stat-value { font-size: 1.7rem; }
  .grid-members { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .member-avatar { width: 96px; height: 96px; }
  .contact-form { padding: 1.4rem; }
}

/* =====================================================================
   v2 · Escudo, hashtag, equipación 26/27 y patrocinadores reales
   ===================================================================== */

/* Hero a dos columnas con el escudo */
.hero-content {
  max-width: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2rem;
}
.hero-text-block { max-width: 640px; }
.hero-crest img {
  width: min(380px, 32vw); height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
  animation: crest-float 6s ease-in-out infinite;
}
@keyframes crest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .hero-crest img { animation: none; } }

/* Hashtag bicolor, como en la identidad del club */
.hero-tagline, .kit-hashtag, .footer-hashtag { text-transform: uppercase; }
.hero-tagline span, .kit-hashtag span, .footer-hashtag span { color: var(--red); }
.footer-hashtag { color: var(--white) !important; }

/* Escudo en cabecera y pie */
.brand-logo { border-radius: 50%; }
.footer-logo { width: 64px; height: auto; margin-bottom: 0.6rem; }

/* Sección equipación 26/27 */
.section-kit { background: var(--black-2); overflow: hidden; }
.kit-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3.5rem; align-items: center; }
.kit-media {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.kit-media img { width: 100%; height: auto; }
.kit-text .section-title { margin-bottom: 1.2rem; }
.kit-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.kit-list li {
  padding: 0.7rem 0; border-top: 1px solid var(--line); color: var(--grey); font-size: 0.95rem;
  display: flex; gap: 1rem; align-items: baseline;
}
.kit-list li:last-child { border-bottom: 1px solid var(--line); }
.kit-list li span {
  font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.1em; color: var(--gold);
  min-width: 90px;
}
.kit-hashtag { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.2em; margin-bottom: 1.4rem; }

/* Patrocinadores reales: cada tarjeta lleva su color de fondo */
.sponsors-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sponsor { min-height: 170px; padding: 1.2rem; border: 1px solid var(--line); }
.sponsor img { max-height: 130px; max-width: 100%; }
.sponsors-grid-collab { grid-template-columns: repeat(auto-fit, minmax(200px, 320px)); justify-content: start; }
.sponsors-subtitle {
  font-size: 1.4rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey);
  margin: 2.5rem 0 1rem;
}

@media (max-width: 860px) {
  .kit-inner { grid-template-columns: 1fr; gap: 2rem; }
  .kit-media { max-width: 420px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 6rem; }
  .hero-content { grid-template-columns: 1fr; gap: 1rem; }
  .hero-crest { order: -1; }
  .hero-crest img { width: 150px; }
  .sponsors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .sponsors-grid-collab { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor { min-height: 120px; padding: 1rem; }
  .sponsor img { max-height: 80px; }
}

/* =====================================================================
   v3 · Partidos, Noticias, Tienda, Instagram
   ===================================================================== */

.btn-small { padding: 0.55rem 1.2rem; font-size: 1rem; }
.section-head-center { margin-inline: auto; text-align: center; }

/* ---------- Partidos ---------- */
.matches-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.matches-subtitle {
  font-size: 1.3rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line);
}
.matches { display: grid; gap: 0.9rem; }
.matches-empty { color: var(--grey-dark); font-size: 0.95rem; }
.match {
  background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem; border-left: 4px solid var(--grey-dark);
}
.match-next { border-left-color: var(--red); }
.match-played.win { border-left-color: #4ccf6f; }
.match-played.draw { border-left-color: var(--gold); }
.match-played.loss { border-left-color: var(--grey-dark); }
.match-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); margin-bottom: 0.6rem; }
.match-team { color: var(--gold); font-weight: 700; }
.match-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.8rem; }
.match-side { font-weight: 600; font-size: 0.95rem; line-height: 1.25; }
.match-side:last-child { text-align: right; }
.match-side.is-fenix { color: var(--white); }
.match-side:not(.is-fenix) { color: var(--grey); }
.match-score {
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1; letter-spacing: 0.05em;
  min-width: 70px; text-align: center; padding: 0.3rem 0.6rem; border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.match-score i { font-style: normal; color: var(--grey-dark); margin: 0 0.15em; }
.match-score small { font-size: 1.2rem; color: var(--red); letter-spacing: 0.1em; }
.match-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--grey-dark); margin-top: 0.6rem; }
.match-foot span:first-child { text-transform: capitalize; }
.matches-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

/* ---------- Noticias ---------- */
.grid-news { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-card { display: block; color: inherit; }
.news-media { aspect-ratio: 16 / 9; background: url("../assets/img/bg-dark.jpg") center / cover no-repeat; position: relative; overflow: hidden; }
.news-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-card h3 { font-size: 1.6rem; }
.news-card .card-body p { font-size: 0.95rem; }
.news-more { color: var(--red); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Tienda ---------- */
.grid-shop { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.product-media {
  aspect-ratio: 4 / 5; background: var(--black-2) url("../assets/img/bg-dark.jpg") center / cover no-repeat;
  position: relative; overflow: hidden; display: grid; place-items: center;
}
.product-media::before {
  content: ""; width: 90px; height: 112px; opacity: 0.25;
  background: url("../assets/img/logo.png") center / contain no-repeat;
}
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product h3 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.product { display: flex; flex-direction: column; }
.product .card-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); margin: 0; }
.product .btn { align-self: flex-start; margin-top: auto; }
.shop-note { margin-top: 2rem; color: var(--grey); font-size: 0.95rem; text-align: center; }

/* ---------- Instagram ---------- */
.section-instagram { background: var(--black); }
.instagram-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; justify-items: center; }
.instagram-grid .instagram-media { width: 100% !important; }
.instagram-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 2.5rem 2rem; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(226,0,26,0.12), rgba(214,166,58,0.08)), var(--black-3);
  width: min(100%, 520px); text-align: center; transition: transform 0.2s ease, border-color 0.2s ease;
}
.instagram-placeholder:hover { transform: translateY(-3px); border-color: rgba(226,0,26,0.5); }
.instagram-placeholder img { width: 110px; height: auto; }
.instagram-handle { font-family: var(--font-display); font-size: 2rem; letter-spacing: 0.08em; }
.instagram-hint { color: var(--grey); font-size: 0.95rem; }
.instagram-cta { text-align: center; margin-top: 2rem; }

/* ---------- Contacto ---------- */
.btn-send { font-size: 1.4rem; letter-spacing: 0.15em; padding: 1rem 1.7rem; }

@media (max-width: 860px) {
  .matches-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .grid-shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .product .card-body { padding: 1rem; }
  .product h3 { font-size: 1.05rem; }
  .product-price { font-size: 1.5rem; }
  .match-main { gap: 0.5rem; }
  .match-side { font-size: 0.85rem; }
  .match-score { font-size: 1.5rem; min-width: 58px; }
}

/* =====================================================================
   v4 · Patrocinadores sin tarjeta: logos directamente sobre el fondo
   ===================================================================== */
.sponsors-grid, .sponsors-grid-collab {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 3rem;
}
.sponsor, .sponsors-grid .sponsor, .sponsors-grid-collab .sponsor {
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
  min-height: 0; padding: 0.5rem; width: auto;
  display: grid; place-items: center;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.sponsor img { max-height: 140px; max-width: 260px; width: auto; height: auto; object-fit: contain; }
.sponsor:hover { transform: scale(1.06); filter: brightness(1.1); }
.sponsor span { color: var(--white); }
/* Tarjeta solo para los logos que no se leen sobre oscuro */
.sponsor-tile { border-radius: 12px; padding: 0.9rem 1.4rem; }
.sponsor-tile img { max-height: 96px; }
.sponsors-grid-collab img { max-height: 120px; max-width: 240px; }
.sponsors-subtitle { text-align: center; margin-top: 3rem; }
.sponsors-collab { margin-bottom: 0.5rem; }
@media (max-width: 720px) {
  .sponsors-grid, .sponsors-grid-collab { gap: 1.2rem 2rem; }
  .sponsor img { max-height: 84px; max-width: 160px; }
  .sponsor-tile img { max-height: 70px; }
  .sponsors-grid-collab img { max-height: 80px; max-width: 150px; }
}

/* =====================================================================
   v5 · Equipos: 4 equipos, cuerpo técnico y etiqueta de equipo en preparación
   ===================================================================== */
.grid-teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-media { aspect-ratio: 21 / 9; }
.team-media .team-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 1;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--red); color: #fff;
}
.team-media .team-badge:empty { display: none; }
.team-pending .team-badge { background: var(--gold); color: var(--black); }
.team-pending .team-media { filter: grayscale(0.4); }
.team-pending { border-style: dashed; border-color: rgba(214,166,58,0.45); }
.team-staff { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.35rem; }
.team-staff li { font-size: 0.92rem; color: var(--white); }
.team-staff li span {
  display: inline-block; min-width: 175px; margin-right: 0.6rem; font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
}
.card-meta a { color: var(--red); font-weight: 600; }
@media (max-width: 720px) {
  .grid-teams { grid-template-columns: 1fr; }
  .team-media { aspect-ratio: 16 / 9; }
  .team-staff li span { display: block; min-width: 0; }
}

/* =====================================================================
   v6 · Fotos de equipo y galería con flechas
   ===================================================================== */
.team-media { aspect-ratio: 3 / 2; }
.team-media img { object-position: center 30%; }
.team-media::after { background: linear-gradient(180deg, transparent 60%, var(--black-3) 100%); pointer-events: none; }
.team-gallery { position: absolute; inset: 0; }
.team-gallery img { opacity: 0; transition: opacity 0.4s ease; }
.team-gallery img.active { opacity: 1; }
.gal-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(11,11,12,0.6); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}
.gal-btn:hover { background: var(--red); }
.gal-prev { left: 0.8rem; }
.gal-next { right: 0.8rem; }
.gal-dots { position: absolute; bottom: 0.8rem; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gal-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.gal-dots span.active { background: var(--red); transform: scale(1.25); }
@media (max-width: 720px) {
  .team-media { aspect-ratio: 4 / 3; }
  .gal-btn { width: 34px; height: 34px; }
}

/* =====================================================================
   v7 · Pop-up de plantilla por posición
   ===================================================================== */
.team-card { cursor: pointer; }
.team-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.team-open {
  display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 1rem;
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red);
}
.team-open i { font-style: normal; font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.team-card:hover .team-open i { transform: translateX(4px); }

body.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.78); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(100%, 900px); max-height: calc(100svh - 2rem); overflow-y: auto;
  background: var(--black-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7); padding: 2.2rem;
  animation: modal-in 0.25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 0.9rem; right: 0.9rem; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--black-3); color: var(--white); font-size: 1.6rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center; transition: background 0.2s;
}
.modal-close:hover { background: var(--red); }
.modal-head { padding-right: 3rem; margin-bottom: 1.2rem; }
.modal-head .section-title { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 0.2rem; }
.modal-tagline { color: var(--gold); font-family: var(--font-display); letter-spacing: 0.15em; text-transform: uppercase; margin: 0; }
.modal-staff { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; padding: 0.9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.modal-staff span { font-size: 0.95rem; color: var(--white); }
.modal-staff em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-right: 0.5rem; }
.position-group { margin-bottom: 1.6rem; }
.position-title {
  font-size: 1.4rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white);
  display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.9rem;
}
.position-title span { font-family: var(--font-body); font-size: 0.75rem; color: var(--grey); letter-spacing: 0.05em; }
.players { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1rem; }
.player { text-align: center; }
.player-photo {
  position: relative; width: 96px; height: 96px; margin: 0 auto 0.5rem; border-radius: 50%; overflow: hidden;
  background: var(--black-3); border: 3px solid var(--red); display: grid; place-items: center;
}
.player-photo::before { content: attr(data-initials); font-family: var(--font-display); font-size: 1.9rem; color: var(--grey); }
.player-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.player-number {
  position: absolute; bottom: 4px; right: 4px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px;
  background: var(--red); color: #fff; font-family: var(--font-display); font-size: 0.95rem;
  display: grid; place-items: center; z-index: 1;
}
.player-name { display: block; font-size: 0.85rem; font-weight: 600; line-height: 1.25; }
.modal-empty { color: var(--grey); }
.modal-empty a { color: var(--red); font-weight: 600; }
@media (max-width: 720px) {
  .modal { padding: 0.5rem; }
  .modal-panel { padding: 1.5rem 1.1rem; max-height: calc(100svh - 1rem); }
  .players { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
  .player-photo { width: 78px; height: 78px; }
  .player-name { font-size: 0.78rem; }
}

/* =====================================================================
   v8 · Pop-up de noticias
   ===================================================================== */
.news-card { cursor: pointer; }
.news-card:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.news-more { display: inline-flex; align-items: center; gap: 0.3rem; }
.news-more i { font-style: normal; font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.news-card:hover .news-more i { transform: translateX(4px); }
.modal-news { width: min(100%, 760px); }
.modal-news .modal-head .section-kicker { color: var(--gold); }
.modal-news .modal-tagline { color: var(--grey); font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: 1.05rem; }
.news-modal-media { border-radius: 10px; overflow: hidden; margin-bottom: 1.4rem; max-height: 420px; }
.news-modal-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; object-position: top; }
.news-modal-text p { color: var(--white); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1em; }
.news-modal-text p:last-child { margin-bottom: 0; }
.news-modal-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* =====================================================================
   v9 · Tienda en modo "Próximamente": se entrevé, no se compra
   ===================================================================== */
.product-soon .product-media img {
  filter: blur(4px) brightness(0.55) saturate(0.8);
  transform: scale(1.05);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.product-soon:hover .product-media img { filter: blur(1.5px) brightness(0.8) saturate(1); transform: scale(1.02); }
.product-soon .product-media::before { opacity: 0.35; z-index: 1; }
.product-badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--gold); color: var(--black);
}
.product-price-soon { font-family: var(--font-body); font-size: 0.85rem; color: var(--grey); letter-spacing: 0.05em; text-transform: uppercase; }
.product-soon:hover { border-color: rgba(214,166,58,0.5); }
.shop-soon .section-title { position: relative; }
.shop-soon .section-title::after {
  content: "Próximamente"; display: inline-block; margin-left: 0.8rem; vertical-align: middle;
  font-size: 0.9rem; letter-spacing: 0.2em; padding: 0.3rem 0.8rem; border-radius: 999px;
  background: var(--gold); color: var(--black);
}

/* =====================================================================
   v10 · Previsualización del perfil de Instagram
   ===================================================================== */
.instagram-grid:has(.instagram-profile) { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.instagram-profile { width: min(100%, 540px); }
.instagram-profile-frame {
  display: block; width: 100%; height: 560px; border: 0; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.instagram-posts { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; justify-items: center; }

/* =====================================================================
   v11 · Widget de Instagram: cabecera propia + cuadrícula en vivo
   ===================================================================== */
.instagram-grid:has(.ig-widget) { display: block; }
.ig-widget {
  width: 100%; background: var(--black-3); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.ig-head { display: flex; align-items: center; gap: 1.4rem; padding: 1.3rem 1.6rem; flex-wrap: wrap; }
.ig-avatar {
  flex: none; width: 74px; height: 74px; border-radius: 50%; padding: 3px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
}
.ig-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--black); border: 3px solid var(--black-3); }
.ig-names { display: flex; flex-direction: column; min-width: 140px; }
.ig-name { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.05em; line-height: 1.1; color: var(--white); }
.ig-handle { color: var(--grey); font-size: 0.95rem; }
.ig-stats { display: flex; gap: 2rem; margin-left: auto; }
.ig-stat { text-align: center; }
.ig-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--white); }
.ig-stat span { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.ig-follow {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.3rem; border-radius: 10px;
  background: #0095f6; color: #fff; font-weight: 700; font-size: 0.95rem; transition: background 0.2s, transform 0.15s;
}
.ig-follow:hover { background: #1877f2; transform: translateY(-2px); }
.ig-grid { position: relative; overflow: hidden; width: 100%; height: 700px; background: #fff; }
.ig-grid .instagram-profile-frame { position: absolute; left: 0; top: -156px; width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.ig-grid-link {
  display: block; text-align: center; padding: 0.9rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey); border-top: 1px solid var(--line); transition: color 0.2s, background 0.2s;
}
.ig-grid-link:hover { color: var(--white); background: rgba(255,255,255,0.03); }
.section-instagram .section-head-center { margin-bottom: 2rem; }
.section-instagram .instagram-cta { display: none; }
@media (max-width: 860px) {
  .ig-stats { margin-left: 0; width: 100%; justify-content: flex-start; gap: 1.5rem; }
}
@media (max-width: 720px) {
  .ig-head { padding: 1rem; gap: 0.9rem 1rem; }
  .ig-avatar { width: 60px; height: 60px; }
  .ig-name { font-size: 1.4rem; }
  .ig-stat strong { font-size: 1.3rem; }
  .ig-follow { padding: 0.5rem 1rem; font-size: 0.85rem; }
}

/* v11b · El widget de Instagram no debe superar los 760 px: las miniaturas de
   Instagram son pequeñas y a más tamaño se ven pixeladas y recortadas */
.ig-widget { max-width: 760px; margin: 0 auto; }
.ig-head { gap: 1rem; padding: 1.2rem 1.3rem; }
.ig-names { min-width: 110px; }
.ig-stats { gap: 1.3rem; }
.ig-stat strong { font-size: 1.45rem; }
.ig-follow { padding: 0.55rem 1.05rem; font-size: 0.9rem; }

/* v12 · Cuadrícula de publicaciones enteras (un embed por post, recortado a la imagen) */
.ig-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--black-2); }
.ig-post { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.ig-post-frame { position: absolute; left: 0; top: -54px; width: 100%; border: 0; pointer-events: none; }
.ig-post-link { position: absolute; inset: 0; z-index: 2; transition: background 0.2s, box-shadow 0.2s; }
.ig-post-link:hover { background: rgba(226,0,26,0.12); box-shadow: inset 0 0 0 3px var(--red); }
@media (max-width: 720px) { .ig-posts { gap: 2px; } }

/* =====================================================================
   v13 · Datos oficiales de la FCF: pestañas por equipo, partidos y clasificación
   ===================================================================== */
.fcf-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.fcf-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
  padding: 0.6rem 1.1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--black-3);
  color: var(--grey); font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.1em; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fcf-tab small { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-dark); }
.fcf-tab:hover { color: var(--white); border-color: rgba(226,0,26,0.5); }
.fcf-tab.active { background: var(--red); color: #fff; border-color: var(--red); }
.fcf-tab.active small { color: rgba(255,255,255,0.75); }
.fcf-panel { display: none; }
.fcf-panel.active { display: block; }
.fcf-clas-title { margin-top: 2.2rem; }
.fcf-crest { width: 22px; height: 22px; object-fit: contain; flex: none; border-radius: 4px; background: rgba(255,255,255,0.06); }
.fcf-crest-empty { display: inline-block; }
.fcf-match .match-side { display: inline-flex; align-items: center; gap: 0.5rem; }
.fcf-match .match-side:last-child { justify-content: flex-end; }
.fcf-match .match-meta span:last-child { text-transform: capitalize; color: var(--grey); }
.fcf-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--black-3); }
.fcf-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }
.fcf-table th { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); font-weight: 600; padding: 0.8rem 0.6rem; text-align: center; border-bottom: 1px solid var(--line); }
.fcf-table td { padding: 0.65rem 0.6rem; text-align: center; border-bottom: 1px solid var(--line); color: var(--grey); }
.fcf-table tr:last-child td { border-bottom: 0; }
.fcf-table .fcf-th-team, .fcf-table .fcf-team { text-align: left; }
.fcf-table .fcf-team { display: flex; align-items: center; gap: 0.6rem; color: var(--white); font-weight: 600; white-space: nowrap; }
.fcf-table .fcf-pos { font-family: var(--font-display); font-size: 1.15rem; color: var(--grey); }
.fcf-table .fcf-pts { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); }
.fcf-table tr.is-club td { background: rgba(226,0,26,0.12); }
.fcf-table tr.is-club .fcf-team { color: var(--white); }
.fcf-table tr.is-club .fcf-pos { color: var(--red); }
.fcf-table tr:nth-child(-n+3) .fcf-pos { color: var(--gold); }
.fcf-note { color: var(--grey-dark); font-size: 0.85rem; margin: 0.8rem 0 0; }
.fcf-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: 0.8rem; color: var(--grey-dark); }
@media (max-width: 720px) {
  .fcf-tab { font-size: 1rem; padding: 0.5rem 0.9rem; }
  .fcf-table { font-size: 0.85rem; }
  .fcf-match .match-side { font-size: 0.8rem; gap: 0.35rem; }
  .fcf-crest { width: 18px; height: 18px; }
}

/* =====================================================================
   v14 · Tipografía de cartel (Anton) en títulos y más aire en el hero
   ===================================================================== */
:root { --font-title: "Anton", "Bebas Neue", Impact, sans-serif; }
.hero-title, .section-title, .card h3, .modal-head .section-title, .timeline-body h3 {
  font-family: var(--font-title); font-weight: 400; letter-spacing: 0.01em; text-transform: uppercase;
}
.hero-title {
  font-size: clamp(4rem, 12vw, 8.4rem); line-height: 0.92;
  text-shadow: 0 6px 30px rgba(0,0,0,0.6);
}
.hero-title span { text-shadow: 0 0 28px rgba(226,0,26,0.45), 0 6px 30px rgba(0,0,0,0.6); }
.hero-kicker { margin-bottom: 1.6rem; }
.hero-tagline { margin-top: 1rem; }
.section-title { font-size: clamp(2.2rem, 4.6vw, 3.3rem); }
.card h3 { font-size: 1.8rem; }
.stat-value { font-family: var(--font-title); font-size: 2rem; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .hero-kicker { margin-bottom: 1.1rem; }
  .stat-value { font-size: 1.5rem; }
}

/* v14b · Más aire en la parte alta del hero */
.hero { padding-top: 9.5rem; }
.hero-kicker { margin-bottom: 2.4rem; }
.hero-title { line-height: 1; padding-top: 0.1em; }
@media (max-width: 720px) {
  .hero { padding-top: 7rem; }
  .hero-kicker { margin-bottom: 1.6rem; }
}

/* v14c · Tres cifras en el hero */
.hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; } .stat { padding: 0.8rem 0.7rem; } .stat-label { font-size: 0.65rem; } }

/* v14d · Hashtag en la cabecera, junto al escudo, en lugar de "Fénix FS" */
.brand { align-items: center; gap: 0.8rem; }
.brand-logo { height: 46px; }
.brand-hashtag { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1; padding-top: 2px; }
.brand-hashtag span { color: var(--red); }
.hero-text { margin-top: 1.4rem; }
@media (max-width: 720px) { .brand-hashtag { font-size: 1.2rem; letter-spacing: 0.15em; } .brand-logo { height: 40px; } }

/* =====================================================================
   v15 · Patrocinadores y colaboradores en dos bloques diferenciados
   ===================================================================== */
.sponsors-block { border-radius: var(--radius); padding: 1.8rem 1.5rem 2rem; }
.sponsors-block-main { background: var(--black-3); border: 1px solid rgba(226,0,26,0.35); }
.sponsors-block-collab { margin-top: 1.4rem; border: 1px dashed var(--line); }
.sponsors-block-collab:has(#collaborators:empty) { display: none; }
.sponsors-subtitle {
  display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; text-align: left;
  margin: 0 0 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--line);
  font-size: 1.5rem; letter-spacing: 0.2em; color: var(--white);
}
.sponsors-block-main .sponsors-subtitle { color: var(--red); }
.sponsors-block-collab .sponsors-subtitle { color: var(--gold); font-size: 1.2rem; }
.sponsors-subtitle small { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.05em; text-transform: none; color: var(--grey); }
.sponsors-block-collab .sponsor img { max-height: 76px; max-width: 200px; opacity: 0.85; }
.sponsors-block-collab .sponsor:hover img { opacity: 1; }
.sponsors-block-collab .sponsors-grid, .sponsors-grid-collab { justify-content: flex-start; gap: 1rem 2.5rem; }
.sponsors-block-main .sponsors-grid { justify-content: center; }
@media (max-width: 720px) {
  .sponsors-block { padding: 1.2rem 1rem 1.4rem; }
  .sponsors-block-collab .sponsor img { max-height: 60px; max-width: 150px; }
}

/* v15b · Los dos bloques con el mismo formato; el de colaboradores solo cambia el color del título (dorado) */
.sponsors-block-collab { background: var(--black-3); border: 1px solid rgba(214,166,58,0.35); }
.sponsors-block-collab .sponsors-subtitle { font-size: 1.5rem; }
.sponsors-block-collab .sponsor img { max-height: 140px; max-width: 260px; opacity: 1; }
.sponsors-block-collab .sponsors-grid, .sponsors-grid-collab { justify-content: center; gap: 1.5rem 3rem; }
@media (max-width: 720px) { .sponsors-block-collab .sponsor img { max-height: 84px; max-width: 160px; } }

/* =====================================================================
   v16 · Fondo negro con textura en toda la página
   ===================================================================== */
body { background: var(--black); position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--black) url("../assets/img/bg-texture.jpg") center / cover no-repeat;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: rgba(11,11,12,0.42);
}
.hero-bg { display: none; }
.hero { background: transparent; }
.section { background: transparent; }
.section-alt { background: rgba(14,14,16,0.55); backdrop-filter: blur(2px); }
.section-kit { background: rgba(14,14,16,0.55); }
.section-instagram { background: transparent; }
.site-footer { background: rgba(11,11,12,0.7); }
.team-media, .news-media { background-color: var(--black-3); }

/* v16b · Contacto también en oscuro, mismo concepto que el resto */
.section-contact { background: rgba(14,14,16,0.55); color: var(--white); }
.section-contact::before { background: transparent; }
.contact-text p, .contact-list { color: var(--grey); }
.contact-direct a { color: var(--red); }
.contact-form { background: var(--black-3); border: 1px solid var(--line); }
.section-contact { background-image: none !important; background-color: rgba(14,14,16,0.55) !important; }
.section-contact::before { background: transparent !important; }

/* =====================================================================
   v17 · Pie compacto con iconos
   ===================================================================== */
.site-footer { padding: 1.1rem 0; border-top: 1px solid var(--line); background: rgba(11,11,12,0.85); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo { width: 34px; height: auto; margin: 0; }
.footer-hashtag { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--white) !important; margin: 0; }
.footer-hashtag span { color: var(--red); }
.footer-links { display: flex; gap: 0.5rem; }
.footer-links a {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--grey); transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.15s;
}
.footer-links a svg { width: 17px; height: 17px; }
.footer-links a:hover { color: #fff; background: var(--red); border-color: var(--red); transform: translateY(-2px); }
.footer-copy { margin: 0; font-size: 0.78rem; color: var(--grey-dark); grid-column: auto; }
@media (max-width: 720px) {
  .footer-inner { justify-content: center; text-align: center; gap: 0.8rem; }
  .footer-brand, .footer-links, .footer-copy { width: 100%; justify-content: center; }
  .footer-brand { display: flex; }
}

/* v18 · Colaboradores con la misma apariencia que Patrocinadores (título y borde en rojo);
   el CTA de patrocinio con tipografía distinta para diferenciarlo */
.sponsors-block-collab { border-color: rgba(226,0,26,0.35); }
.sponsors-block-collab .sponsors-subtitle { color: var(--red); }
.sponsor-cta { border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.sponsor-cta p {
  font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; letter-spacing: 0;
  text-transform: none; color: var(--white); margin-bottom: 1.1rem;
}

/* v18b · Patrocinadores en filas de tres (3 + 2), centradas */
.sponsors-block-main .sponsors-grid .sponsor { flex: 0 0 30%; max-width: 30%; }
@media (max-width: 720px) { .sponsors-block-main .sponsors-grid .sponsor { flex: 0 0 45%; max-width: 45%; } }

/* =====================================================================
   v19 · Ajustes móvil
   ===================================================================== */
@media (max-width: 720px) {
  /* Hero: escudo más pequeño, menos aire, cifras en fila */
  .hero { padding-top: 5.5rem; padding-bottom: 2rem; }
  .hero-crest img { width: 110px; }
  .hero-kicker { font-size: 0.72rem; letter-spacing: 0.22em; margin-bottom: 1rem; }
  .hero-title { font-size: clamp(3.4rem, 18vw, 4.6rem); }
  .hero-text { font-size: 1rem; margin-top: 1rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn { padding: 0.7rem 1.3rem; font-size: 1.05rem; }
  .hero-stats { margin-top: 2rem; gap: 0.5rem; }
  .stat { padding: 0.7rem 0.6rem; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: 0.6rem; letter-spacing: 0.08em; line-height: 1.3; }

  /* Secciones más compactas */
  .section { padding: 3.2rem 0; }
  .section-head { margin-bottom: 1.8rem; }
  .section-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .section-intro { font-size: 0.98rem; }

  /* Patrocinadores y colaboradores: dos por fila */
  .sponsors-block-main .sponsors-grid .sponsor,
  .sponsors-block-collab .sponsors-grid .sponsor { flex: 0 0 46%; max-width: 46%; padding: 0.3rem; }
  .sponsors-block-main .sponsors-grid, .sponsors-block-collab .sponsors-grid { gap: 1rem 0.8rem; }
  .sponsor img, .sponsors-block-collab .sponsor img { max-height: 70px; max-width: 100%; }
  .sponsors-subtitle { font-size: 1.2rem; gap: 0.3rem; }
  .sponsors-subtitle small { display: block; width: 100%; }
  .sponsor-cta { padding: 1.4rem 1rem; }
  .sponsor-cta p { font-size: 1rem; }

  /* Miembros */
  .member-avatar { width: 84px; height: 84px; }

  /* Equipos */
  .team-media { aspect-ratio: 16 / 10; }
  .card h3 { font-size: 1.5rem; }
  .card-body { padding: 1.1rem; }

  /* Partidos FCF: nombres largos sin ocupar tres líneas */
  .fcf-match .match-side { font-size: 0.72rem; line-height: 1.2; gap: 0.3rem; }
  .fcf-match .match-side .fcf-crest { width: 16px; height: 16px; }
  .fcf-match .match-score { font-size: 1.25rem; min-width: 50px; padding: 0.25rem 0.4rem; }
  .fcf-match .match-score small { font-size: 0.95rem; }
  .match-meta { font-size: 0.62rem; }
  .fcf-table { min-width: 0; font-size: 0.8rem; }
  .fcf-table th, .fcf-table td { padding: 0.5rem 0.35rem; }
  .fcf-table .fcf-team { white-space: normal; font-size: 0.78rem; }
  .fcf-table th:nth-child(n+4):nth-child(-n+6), .fcf-table td:nth-child(n+4):nth-child(-n+6) { display: none; } /* G E P */

  /* Noticias */
  .news-card h3 { font-size: 1.35rem; }

  /* Tienda: títulos más discretos, dos por fila */
  .product h3 { font-size: 0.9rem; line-height: 1.25; }
  .product-price { font-size: 1.1rem; }
  .product-price-soon { font-size: 0.68rem; }
  .product .btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
  .product-badge { font-size: 0.72rem; padding: 0.25rem 0.55rem; top: 0.6rem; left: 0.6rem; }

  /* Instagram */
  .ig-head { padding: 0.9rem; }
  .ig-stats { gap: 1rem; }
  .ig-stat strong { font-size: 1.15rem; }
  .ig-stat span { font-size: 0.6rem; }

  /* Contacto */
  .contact-form { padding: 1.2rem 1rem; }
  .btn-send { font-size: 1.2rem; }
}
@media (max-width: 400px) {
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-shop { gap: 0.7rem; }
}

/* =====================================================================
   v20 · Historia con storytelling: hitos destacados y fotos
   ===================================================================== */
.timeline-item { grid-template-columns: 120px minmax(0, 1fr); align-items: start; padding-bottom: 2.6rem; }
.timeline-item.has-image { grid-template-columns: 120px minmax(0, 1fr) 260px; }
.timeline-media {
  margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(1.5deg);
  transition: transform 0.3s ease;
}
.timeline-item:nth-child(even) .timeline-media { transform: rotate(-1.5deg); }
.timeline-item:hover .timeline-media { transform: rotate(0) scale(1.03); }
.timeline-media img { width: 100%; height: 100%; object-fit: cover; }
.timeline-item.is-highlight .timeline-year { color: var(--gold); }
.timeline-item.is-highlight .timeline-year::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(214,166,58,0.18); }
.timeline-item.is-highlight h3 { color: var(--white); }
.timeline-item.is-highlight h3::after {
  content: "Ascenso"; display: inline-block; margin-left: 0.6rem; vertical-align: middle;
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em;
  padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(214,166,58,0.15); color: var(--gold);
}
.timeline-item:last-child .timeline-year::after { background: var(--red); border-color: var(--red); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(226,0,26,0.5); } 50% { box-shadow: 0 0 0 8px rgba(226,0,26,0); } }
.timeline-item:last-child h3 { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .timeline-item:last-child .timeline-year::after { animation: none; } }
@media (max-width: 860px) {
  .timeline-item.has-image { grid-template-columns: 120px minmax(0, 1fr); }
  .timeline-media { grid-column: 2; max-width: 320px; margin-top: 0.8rem; }
}
@media (max-width: 720px) {
  .timeline-item, .timeline-item.has-image { grid-template-columns: 1fr; }
  .timeline-media { grid-column: 1; max-width: 100%; transform: none !important; }
}

/* v21 · Sin franjas de sección: todo plano sobre la textura */
.section-alt, .section-kit, .section-contact, .section-instagram { background: transparent !important; backdrop-filter: none !important; }
.site-footer { background: transparent; }
body::after { background: rgba(11,11,12,0.35); }

/* =====================================================================
   v22 · Estadísticas: balance, goleadores con foto recortada y tarjetas
   ===================================================================== */
.stats-tabs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.stats-panel { display: none; }
.stats-panel.active { display: block; }
.stat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 2rem; }
.stat-tile { background: var(--black-3); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 0.6rem; text-align: center; border-top: 3px solid var(--grey-dark); }
.stat-tile strong { display: block; font-family: var(--font-title); font-size: 2rem; line-height: 1; color: var(--white); }
.stat-tile span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.stat-tile.stat-win { border-top-color: #4ccf6f; }
.stat-tile.stat-draw { border-top-color: var(--gold); }
.stat-tile.stat-loss { border-top-color: var(--red); }
.stats-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
.stats-sub2 { margin-top: 2rem; }
.scorers { display: grid; gap: 0.9rem; }
.scorer {
  display: grid; grid-template-columns: 110px 1fr; align-items: end; gap: 1rem; min-height: 120px;
  background: linear-gradient(135deg, rgba(226,0,26,0.16), rgba(29,29,33,0.9) 60%), var(--black-3);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative;
}
.scorer-top { grid-template-columns: 170px 1fr; min-height: 200px; background: linear-gradient(135deg, rgba(226,0,26,0.35), rgba(29,29,33,0.92) 65%), var(--black-3); border-color: rgba(226,0,26,0.45); }
.scorer-media { align-self: stretch; position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.scorer-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.6)); transform: translateY(2px); }
.scorer-top .scorer-media img { max-height: 200px; }
.scorer-initials { font-family: var(--font-display); font-size: 2.4rem; color: var(--grey); margin-bottom: 1rem; }
.scorer-info { padding: 1rem 1.2rem 1rem 0; display: grid; gap: 0.1rem; align-content: end; }
.scorer-rank { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.2em; color: var(--gold); }
.scorer-rank::before { content: "#"; }
.scorer-name { font-family: var(--font-title); font-size: 1.5rem; text-transform: uppercase; color: var(--white); line-height: 1.05; }
.scorer-top .scorer-name { font-size: 2.2rem; }
.scorer-goals { color: var(--grey); font-size: 0.9rem; }
.scorer-goals strong { font-family: var(--font-title); font-size: 1.9rem; color: var(--red); margin-right: 0.3rem; }
.scorer-top .scorer-goals strong { font-size: 3rem; }
.cards-list, .events-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.cards-list li, .events-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.7rem 0.9rem; background: var(--black-3); border: 1px solid var(--line); border-radius: 10px; }
.cards-name { font-weight: 600; }
.cards-count { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-display); font-size: 1.1rem; }
.cards-count i { display: inline-block; width: 11px; height: 15px; border-radius: 2px; margin-left: 0.6rem; }
.cards-count .card-y { background: #f2c94c; }
.cards-count .card-r { background: var(--red); }
.events-list li { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
.events-list li strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--white); margin: 0 0.3rem; }
.events-list li small { color: var(--grey-dark); font-size: 0.75rem; }
.stats-source { margin-top: 1.5rem; font-size: 0.78rem; color: var(--grey-dark); }
@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; gap: 2rem; } .stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .scorer { grid-template-columns: 90px 1fr; min-height: 100px; }
  .scorer-top { grid-template-columns: 130px 1fr; min-height: 160px; }
  .scorer-top .scorer-media img { max-height: 160px; }
  .scorer-top .scorer-name { font-size: 1.6rem; }
  .scorer-top .scorer-goals strong { font-size: 2.2rem; }
  .stat-tile strong { font-size: 1.5rem; }
}

/* v23 · Estadísticas: pestaña Club, siluetas y equipos sin datos */
.scorer-silhouette { width: 70%; max-height: 90%; color: rgba(255,255,255,0.14); align-self: flex-end; }
.scorer-top .scorer-silhouette { width: 65%; }
.scorer-placeholder { opacity: 0.75; border-style: dashed; }
.scorer-placeholder .scorer-name { color: var(--grey-dark); }
.scorer-placeholder .scorer-goals strong { color: var(--grey-dark); }
.stat-tiles-empty .stat-tile strong { color: var(--grey-dark); }
.stats-tabs .fcf-tab:first-child { border-color: rgba(214,166,58,0.5); }
.stats-tabs .fcf-tab:first-child.active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.stats-tabs .fcf-tab:first-child.active small { color: rgba(0,0,0,0.6); }

/* v24 · Tabla FCF: filas alineadas (la celda de equipo vuelve a ser celda normal) */
.fcf-table .fcf-team { display: table-cell; vertical-align: middle; white-space: nowrap; }
.fcf-table .fcf-team-inner { display: inline-flex; align-items: center; gap: 0.6rem; vertical-align: middle; }
.fcf-table td, .fcf-table th { vertical-align: middle; }
@media (max-width: 720px) { .fcf-table .fcf-team { white-space: normal; } .fcf-table .fcf-team-inner { display: flex; } }

/* v25 · Partidos: pestañas de equipos cuyo grupo aún no ha publicado la FCF */
.fcf-tab-pending { opacity: 0.75; border-style: dashed; }
.fcf-tab-pending.active { opacity: 1; }
.fcf-pending { border: 1px dashed rgba(214,166,58,0.45); border-radius: var(--radius); padding: 2.2rem 1.6rem; text-align: center; background: var(--black-3); }
.fcf-pending-badge { display: inline-block; font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--gold); color: var(--black); margin-bottom: 1rem; }
.fcf-pending h3 { font-family: var(--font-title); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.6rem; }
.fcf-pending p { color: var(--grey); max-width: 560px; margin: 0 auto; }

/* v26 · Animaciones GSAP: las cajas de imagen recortan el exceso del parallax */
.team-media, .kit-media, .timeline-media, .news-media, .product-media, .scorer-media { overflow: hidden; }
.team-media img, .news-media img, .product-media img, .kit-media img, .timeline-media img { will-change: transform; }

/* =====================================================================
   v27 · Ficha de jugador (desde el pop-up de plantilla)
   ===================================================================== */
.player { cursor: pointer; border-radius: 12px; padding: 0.5rem 0.2rem; transition: background 0.2s, transform 0.2s; }
.player:hover, .player:focus-visible { background: rgba(255,255,255,0.04); transform: translateY(-2px); outline: none; }
.player-dorsal { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: 0.15rem; }
.modal-player { width: min(100%, 820px); }
.pcard { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: start; }
.pcard-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(226,0,26,0.35), var(--black-3) 70%); border: 1px solid rgba(226,0,26,0.35);
  display: grid; place-items: center;
}
.pcard-media::before { content: attr(data-initials); font-family: var(--font-title); font-size: 5rem; color: rgba(255,255,255,0.15); }
.pcard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pcard-number {
  position: absolute; right: 0.8rem; bottom: 0.6rem; font-family: var(--font-title); font-size: 5rem; line-height: 1;
  color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,0.8); opacity: 0.95;
}
.pcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 1.4rem; }
.pcard-stat { background: var(--black-3); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 0.6rem; text-align: center; }
.pcard-stat strong { display: block; font-family: var(--font-title); font-size: 2.2rem; line-height: 1; color: var(--white); }
.pcard-stat span { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); display: inline-flex; align-items: center; gap: 0.35rem; }
.pcard-stat i { display: inline-block; width: 9px; height: 12px; border-radius: 2px; }
.pcard-stat .card-y { background: #f2c94c; } .pcard-stat .card-r { background: var(--red); }
.pcard-facts { margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.2rem; }
.pcard-facts div { border-bottom: 1px solid var(--line); padding-bottom: 0.4rem; }
.pcard-facts dt { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.pcard-facts dd { margin: 0; color: var(--white); font-weight: 600; }
.pcard-bio { color: var(--grey); line-height: 1.7; }
.pcard-back { margin: 1.4rem 0 0; font-size: 0.85rem; }
.pcard-back a { color: var(--grey); }
.pcard-back a:hover { color: var(--white); }
@media (max-width: 720px) {
  .pcard { grid-template-columns: 1fr; gap: 1.2rem; }
  .pcard-media { max-width: 260px; margin: 0 auto; }
  .pcard-number { font-size: 3.6rem; }
  .pcard-stat strong { font-size: 1.7rem; }
}

/* v28 · Plantilla del pop-up: cuatro jugadores por fila */
.players { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .players { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* =====================================================================
   v29 · Cuerpo técnico: tarjetas con foto en el pop-up y ficha propia
   ===================================================================== */
.modal-staff-cards { display: flex; flex-wrap: wrap; gap: 0.8rem; padding: 0.4rem 0 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.staffcard {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.5rem 1rem 0.5rem 0.5rem; border-radius: 999px;
  background: var(--black-3); border: 1px solid rgba(214,166,58,0.35); cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.staffcard:hover, .staffcard:focus-visible { transform: translateY(-2px); border-color: var(--gold); background: rgba(214,166,58,0.08); outline: none; }
.staffcard-photo {
  position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--black-2); border: 2px solid var(--gold); display: grid; place-items: center;
}
.staffcard-photo::before { content: attr(data-initials); font-family: var(--font-display); font-size: 1.1rem; color: var(--grey); }
.staffcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.staffcard-info { display: grid; line-height: 1.2; }
.staffcard-info em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.staffcard-info strong { font-size: 0.95rem; color: var(--white); }
.pcard-staff .pcard-media { background: linear-gradient(160deg, rgba(214,166,58,0.3), var(--black-3) 70%); border-color: rgba(214,166,58,0.4); }
.pcard-role-note { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.pcard-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcard-stat.stat-win { border-top: 3px solid #4ccf6f; }
.pcard-stat.stat-draw { border-top: 3px solid var(--gold); }
.pcard-stat.stat-loss { border-top: 3px solid var(--red); }
.pcard-quote { margin: 0 0 1rem; padding: 0.8rem 1rem; border-left: 3px solid var(--gold); background: rgba(214,166,58,0.06); color: var(--white); font-style: italic; }
@media (max-width: 720px) { .pcard-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .staffcard { width: 100%; } }

/* v30 · Ancla real al principio de la página (la cabecera es fija) */
#top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* v31 · El desplazamiento a secciones lo hace GSAP (más rápido); se quita el suave del navegador */
html { scroll-behavior: auto; }

/* =====================================================================
   v32 · Botón flotante de WhatsApp (abajo a la derecha)
   ===================================================================== */
.wa-float {
  position: fixed; right: 1.2rem; bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: flex; align-items: center; gap: 0.6rem; text-decoration: none;
}
.wa-icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(226,0,26,0.45), 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.2s ease, background 0.2s ease;
  animation: wa-pulse 2.6s ease-out infinite;
}
.wa-icon svg { width: 30px; height: 30px; }
.wa-float:hover .wa-icon { transform: scale(1.08); background: var(--red-dark); animation: none; }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 30px rgba(226,0,26,0.45), 0 0 0 0 rgba(226,0,26,0.55); }
  70% { box-shadow: 0 10px 30px rgba(226,0,26,0.45), 0 0 0 16px rgba(226,0,26,0); }
  100% { box-shadow: 0 10px 30px rgba(226,0,26,0.45), 0 0 0 0 rgba(226,0,26,0); }
}
.wa-bubble {
  background: var(--white); color: var(--black); font-weight: 700; font-size: 0.9rem;
  padding: 0.55rem 0.9rem; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.45); white-space: nowrap;
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
  position: relative;
}
.wa-bubble::after { content: ""; position: absolute; right: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left-color: var(--white); border-right: 0; }
.wa-float.wa-show .wa-bubble, .wa-float:hover .wa-bubble { opacity: 1; transform: none; }
body.modal-open .wa-float, body.nav-open .wa-float { display: none; }
@media (prefers-reduced-motion: reduce) { .wa-icon { animation: none; } }
@media (max-width: 720px) { .wa-icon { width: 52px; height: 52px; } .wa-icon svg { width: 27px; height: 27px; } .wa-float { right: 0.9rem; } }

/* v33 · Partido jugado cuya acta aún no ha publicado la FCF */
.match-pending { border-left-color: var(--grey-dark); opacity: 0.85; }
.match-score .score-pending { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

/* v34 · Ficha de jugador: dorsal arriba a la izquierda, en rojo, para no tapar la foto */
.pcard-number { right: auto; bottom: auto; left: 0.7rem; top: 0.3rem; font-size: 4.2rem; color: var(--red); text-shadow: 0 3px 14px rgba(0,0,0,0.55); }
@media (max-width: 720px) { .pcard-number { font-size: 3.2rem; } }

/* v35 · Dorsales con halo rojo */
.player-number { box-shadow: 0 0 0 2px rgba(226,0,26,0.35), 0 0 12px rgba(226,0,26,0.9); }
.pcard-number { text-shadow: 0 0 6px rgba(226,0,26,0.95), 0 0 22px rgba(226,0,26,0.75), 0 3px 14px rgba(0,0,0,0.6); }

/* v36 · Cuadrícula de Instagram: recuadros cuadrados (las publicaciones del club son 1:1) */
.ig-post { aspect-ratio: 1 / 1; }

/* =====================================================================
   v37 · Socios: tarjetas de carnet y formulario de alta en el pop-up
   ===================================================================== */
.grid-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; overflow: visible; }
.plan .card-body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: 1.8rem 1.5rem 1.5rem; }
.plan h3 { margin-bottom: 0; }
.plan .plan-price { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--gold); margin: 0; }
.plan-price small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey); margin-left: 0.4rem; }
.plan-price-soon { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--grey); }
.plan-desc { font-size: 0.95rem; margin: 0; }
.plan-list { list-style: none; margin: 0.4rem 0 1.2rem; padding: 0; display: grid; gap: 0.5rem; }
.plan-list li { position: relative; padding-left: 1.5rem; font-size: 0.95rem; color: var(--white); line-height: 1.4; }
.plan-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.3em; width: 0.42rem; height: 0.72rem;
  border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.plan .btn { margin-top: auto; }
button.btn-outline { background: transparent; }
/* Niveles de carnet: borde, precio y pastilla en bronce, plata u oro */
.plan-bronce { --tier: #c9783c; --tier-glow: rgba(201,120,60,0.16); }
.plan-plata { --tier: #c9ced6; --tier-glow: rgba(201,206,214,0.14); }
.plan-oro { --tier: #e0b13f; --tier-glow: rgba(224,177,63,0.18); }
.plan-tier { border: 2px solid var(--tier); box-shadow: 0 18px 50px var(--tier-glow), var(--shadow); }
.plan-tier:hover { border-color: var(--tier); box-shadow: 0 22px 60px var(--tier-glow), 0 0 0 1px var(--tier), var(--shadow); }
.plan-tier .plan-price { color: var(--tier); }
.plan-tier .plan-badge { background: var(--tier); }
.plan-badge {
  position: absolute; top: -0.8rem; left: 1.5rem; z-index: 2; padding: 0.25rem 0.8rem; border-radius: 999px;
  background: var(--gold); color: var(--black); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-actions .btn-gold { border-color: var(--gold); color: var(--gold); }
.hero-actions .btn-gold:hover { background: var(--gold); color: var(--black); }

/* Formulario de alta */
.modal-socio { width: min(100%, 680px); }
.socio-summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin: 0 0 1.3rem; padding: 0.8rem 1rem; border-radius: 10px;
  background: rgba(214,166,58,0.08); border: 1px solid rgba(214,166,58,0.35);
}
.socio-summary strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; font-weight: 400; color: var(--white); }
.socio-summary span { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); }
.socio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.socio-grid .socio-full { grid-column: 1 / -1; }
.socio-grid [hidden] { display: none; }
.socio-form input[type="date"] { color-scheme: dark; }
.socio-legal { font-size: 0.75rem; line-height: 1.5; color: var(--grey); margin: 0 0 1.2rem; }
.socio-done { text-align: center; padding: 0.6rem 0 0.4rem; }
.socio-done h3 { font-size: 2rem; margin-bottom: 0.6rem; }
.socio-done p { color: var(--grey); margin: 0 auto 0.9rem; max-width: 46ch; }
.socio-done p strong { color: var(--white); }
.socio-done .socio-ref { font-size: 0.85rem; letter-spacing: 0.05em; }
.socio-done .btn { margin-top: 0.6rem; }
@media (max-width: 720px) {
  .grid-plans { grid-template-columns: 1fr; gap: 1.6rem; }
  .plan-price { font-size: 2.5rem; }
  .socio-grid { grid-template-columns: 1fr; }
  .socio-summary strong { font-size: 1.3rem; }
}

/* =====================================================================
   v38 · Socios: vista previa del carnet (botón del ojo, carnet que gira)
   ===================================================================== */
.plan-eye, .socio-eye {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: none; border: 0; padding: 0.35rem 0.5rem; color: var(--grey);
  font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; transition: color 0.2s;
}
.plan-eye svg, .socio-eye svg { width: 1.3rem; height: 1.3rem; flex: none; }
.plan-eye:hover, .socio-eye:hover, .plan-eye:focus-visible, .socio-eye:focus-visible { color: var(--white); }
.plan .plan-eye { align-self: center; margin-top: 0.3rem; }
.plan-tier .plan-eye:hover { color: var(--tier); }
.socio-eye { margin: -0.6rem 0 1.1rem; padding-left: 0; color: var(--gold); }
.socio-preview { margin-bottom: 1.4rem; }
.socio-preview[hidden] { display: none; }

.carnet-wrap { max-width: 600px; margin-inline: auto; }
.carnet { aspect-ratio: 1084 / 517; perspective: 1400px; cursor: pointer; }
.carnet-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.carnet-wrap.is-flipped .carnet-inner { transform: rotateY(180deg); }
.carnet-face { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.carnet-front svg {
  display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 3.6% / 7.5%;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08);
}
.carnet-back { transform: rotateY(180deg); }
.carnet-back img { width: 100%; height: auto; border-radius: 3.6% / 8.8%; box-shadow: 0 18px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.08); }
.carnet-name { font-family: "Bebas Neue", var(--font-display); font-size: 37px; letter-spacing: 1px; fill: #ececec; }
.carnet-tier { font-family: var(--font-body); font-size: 17px; font-weight: 500; letter-spacing: 6px; fill: #d9d9d9; }
.carnet-badge { font-family: "Bebas Neue", var(--font-display); font-size: 31px; letter-spacing: 1px; fill: #fff; }
.carnet-actions { text-align: center; margin-top: 1rem; }
.carnet-note { margin: 0.8rem auto 0; max-width: 48ch; text-align: center; font-size: 0.8rem; color: var(--grey); }
.carnet-cta { text-align: center; margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .carnet-inner { transition: none; } }

/* v39 · Goleadores de la pestaña Club: desglose de goles por equipo para quien juega en varios */
.scorer-has-split { grid-template-columns: 110px 1fr auto; }
.scorer-top.scorer-has-split { grid-template-columns: 170px 1fr auto; }
.scorer-split {
  align-self: center; display: grid; gap: 0.55rem; margin: 1rem 1.2rem 1rem 0; padding-left: 1.1rem;
  border-left: 1px solid rgba(255,255,255,0.14); min-width: 7.5rem;
}
.scorer-split span { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.5rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); white-space: nowrap; }
.scorer-split strong { font-family: var(--font-title); font-size: 1.5rem; line-height: 1; color: var(--gold); min-width: 1.2ch; text-align: right; }
.scorer-top .scorer-split strong { font-size: 1.9rem; }
@media (max-width: 720px) {
  .scorer-has-split { grid-template-columns: 90px 1fr; }
  .scorer-top.scorer-has-split { grid-template-columns: 130px 1fr; }
  .scorer-split { grid-column: 2; grid-auto-flow: column; justify-content: start; gap: 1.2rem; margin: 0 0 1rem; padding: 0; border-left: 0; min-width: 0; }
  .scorer-has-split .scorer-info { padding-bottom: 0.3rem; }
}

/* v40 · Goleadores: solo los 3 primeros a la vista, el resto en desplegable */
.scorers-more { margin-top: 0.9rem; }
.scorers-more[hidden] { display: none; }
.scorers-toggle {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1rem; padding: 0.6rem 1.1rem;
  background: transparent; border: 1px solid var(--line); border-radius: 999px; color: var(--grey);
  font: inherit; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.scorers-toggle:hover, .scorers-toggle:focus-visible { color: var(--white); border-color: var(--gold); background: rgba(214,166,58,0.08); outline: none; }
.scorers-toggle i { width: 0.5rem; height: 0.5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.scorers-toggle.open i { transform: translateY(2px) rotate(-135deg); }

/* v41 · Aviso de plantilla provisional en el pop-up del equipo */
.modal-note { margin: 0 0 1.2rem; padding: 0.6rem 0.9rem; border-left: 3px solid var(--gold); background: rgba(214,166,58,0.08); color: var(--grey); font-size: 0.85rem; }

/* v42 · Enlace discreto a la gestión del club en el pie */
.footer-admin { color: var(--grey-dark); font-size: 0.8rem; margin-left: 0.3rem; }
.footer-admin:hover { color: var(--white); }

/* v43 · Acceso a la gestión del club en el menú, junto a Contacto */
.main-nav .nav-admin { color: var(--grey); padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.main-nav .nav-admin:hover { color: var(--white); border-color: var(--gold); }
