/* ==========================================================================
   ARENA BEACH VOLLEY · hoja de estilos
   Tema "broadcast": oscuro, con acentos naranja y azul océano.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg:        #020617;   /* slate-950 */
  --bg-2:      #0f172a;   /* slate-900 */
  --bg-3:      #1e293b;   /* slate-800 */
  --line:      #1e293b;
  --line-soft: #334155;
  --text:      #f1f5f9;
  --text-dim:  #94a3b8;
  --text-mute: #64748b;

  --orange:      #f97316;
  --orange-600:  #ea580c;
  --orange-700:  #c2410c;
  --orange-400:  #fb923c;
  --ocean:       #004880;
  --ocean-light: #00427c;
  --red:         #dc2626;
  --emerald:     #10b981;
  --pink:        #e1306c;

  --grad-orange: linear-gradient(135deg, #ffb326 0%, #f57c00 50%, #e65100 100%);
  --grad-ocean:  linear-gradient(135deg, #002d58 0%, #00427c 50%, #001830 100%);
  --grad-insta:  linear-gradient(135deg, #833ab4 0%, #c13584 25%, #e1306c 50%, #fd1d1d 75%, #f77737 100%);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, .5);
  --maxw: 80rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* Fondo de ruido sutil ------------------------------------------------------ */
.noise { position: relative; }
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Tipografía --------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: .95;
  font-weight: 400;
}
h1.display { font-size: clamp(2.75rem, 7vw, 5rem); }
h2.display { font-size: clamp(2.25rem, 5vw, 3.25rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(2, 6, 23, .8);
  color: var(--orange-400);
  font-weight: 900;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .4rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
}

.lead { color: var(--text-dim); font-size: 1.05rem; max-width: 42rem; }

/* Botones ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, filter .15s ease;
  white-space: nowrap;
  box-shadow: none;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-yt { background: var(--red); color: #fff; }
.btn-yt:hover { background: #b91c1c; }
.btn-orange { background: var(--orange-600); color: #fff; }
.btn-orange:hover { background: var(--orange-700); }
/* Botón configurable de cada diapositiva (colores vía style inline) */
.hero-btn { box-shadow: none; }
.hero-btn:hover { filter: brightness(.92); }
.btn-dark { background: rgba(15, 23, 42, .85); color: #fff; border-color: var(--line-soft); }
.btn-dark:hover { background: var(--bg-2); }
.btn-light { background: #fff; color: var(--bg); }
.btn-ghost { background: rgba(2, 6, 23, .8); color: #fff; border-color: rgba(255,255,255,.2); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: .55rem 1rem; font-size: .72rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Barra superior + navegación
   ========================================================================== */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-block: .45rem; }
.topbar-left { display: flex; align-items: center; gap: .75rem; color: var(--text-mute); font-weight: 600; }
.live-dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--orange); display: inline-block; animation: pulse 1.6s infinite; }
.topbar-left .live { color: var(--orange-400); display: inline-flex; align-items: center; gap: .35rem; }
.topbar-right { display: flex; align-items: center; gap: .85rem; }
.topbar-right a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--text-dim); }
.topbar-right a:hover { color: var(--orange-400); }
.topbar-right svg { width: .95rem; height: .95rem; }
@media (max-width: 640px) { .topbar-left .sep, .topbar-left .muted { display: none; } }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(100deg, #ffb326 0%, #f57c00 46%, #e65100 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 10px 30px rgba(230, 81, 0, .3);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 5rem; }

.brand { display: flex; align-items: center; gap: .75rem; }
.brand-logo {
  height: 3rem; width: auto; display: block; flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .28));
  transition: transform .2s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }
.brand-logo-lg { height: 3.4rem; }
@media (max-width: 480px) { .brand-logo { height: 2.6rem; } }

.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav a.navlink {
  font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255, 255, 255, .82); padding-block: .4rem; border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a.navlink:hover { color: #fff; border-color: rgba(255, 255, 255, .7); }
.main-nav a.navlink.active { color: #fff; border-color: #fff; }

.search-trigger {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(2, 6, 23, .22); color: #fff;
  border: 1px solid rgba(255, 255, 255, .32); border-radius: var(--radius);
  padding: .5rem .85rem; font-size: .75rem; font-weight: 700;
}
.search-trigger:hover { background: rgba(2, 6, 23, .34); }
.search-trigger svg { width: 1rem; height: 1rem; color: #fff; }
.search-trigger kbd {
  background: rgba(2, 6, 23, .3); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px; padding: .1rem .35rem; font-size: .65rem; font-family: monospace;
}

.nav-icons { display: none; align-items: center; gap: .25rem; }
.icon-btn { padding: .5rem; color: #fff; background: none; border: none; }
.icon-btn:hover { color: #0f172a; }
.icon-btn svg { width: 1.6rem; height: 1.6rem; }

.mobile-nav { display: none; background: var(--bg-2); border-top: 1px solid var(--line); padding: .75rem 1rem 1.5rem; }
.mobile-nav a {
  display: block; padding: .8rem 1rem; border-radius: var(--radius);
  font-weight: 700; text-transform: uppercase; color: var(--text-dim);
}
.mobile-nav a.active { background: var(--bg-3); color: var(--orange-400); }
.mobile-nav.open { display: block; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-icons { display: flex; }
}

/* ==========================================================================
   Pie de página + bottom nav móvil
   ========================================================================== */
.site-footer { background: var(--bg); border-top: 4px solid var(--orange); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; } }
.site-footer h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--orange-400); margin-bottom: 1rem; font-weight: 800; }
.site-footer p { color: var(--text-mute); font-size: .9rem; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; font-weight: 600; font-size: .9rem; }
.site-footer ul a:hover { color: var(--orange-400); }
.footer-social { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.footer-social a { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.footer-social svg { width: 1.25rem; height: 1.25rem; }
.footer-social .yt { background: var(--red); color: #fff; }
.footer-social .ig { background: var(--bg-3); color: #fff; border: 1px solid var(--line-soft); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.5rem; font-size: .75rem; color: var(--text-mute); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.footer-bottom .tags { display: flex; gap: 1rem; }
.footer-bottom .tags span:first-child { color: var(--orange); font-weight: 700; }

.bottom-nav {
  position: fixed; inset: auto 0 0 0; z-index: 45;
  background: rgba(2, 6, 23, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: none;
}
.bottom-nav .row { display: flex; justify-content: space-around; align-items: center; height: 4rem; }
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: .15rem;
  background: none; border: none; color: var(--text-mute);
  font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.bottom-nav a.active { color: var(--orange-400); }
.bottom-nav svg { width: 1.25rem; height: 1.25rem; }
.bottom-nav .search-pill svg { color: var(--orange-400); }
@media (max-width: 900px) {
  .bottom-nav { display: block; }
  body { padding-bottom: 4rem; }
}

/* ==========================================================================
   Secciones y franjas
   ========================================================================== */
.section { padding-block: clamp(3rem, 7vw, 6rem); position: relative; }
/* Compensa la cabecera fija al saltar a una sección con ancla (#latest, #youtube…) */
section[id] { scroll-margin-top: 5.5rem; }
.section-dark { background: var(--bg); }
.section-slate { background: linear-gradient(180deg, #0f172a 0%, #122c4d 55%, #184173 100%); border-top: 1px solid var(--line); }
.strip-orange { background: var(--grad-orange); color: #fff; border-block: 1px solid rgba(255,255,255,.15); }
.strip-ocean { background: var(--grad-ocean); color: #fff; border-block: 1px solid var(--line); }

.section-head {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 1.25rem; margin-bottom: 2.5rem;
}
.section-head h2 { color: #fff; }

.grid { display: grid; gap: 2rem; grid-template-columns: repeat(1, 1fr); }
.grid-2 { grid-template-columns: repeat(1, 1fr); }
.grid-3 { grid-template-columns: repeat(1, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Slider de portada
   ========================================================================== */
.hero { position: relative; width: 100%; height: clamp(28rem, 80vh, 46rem); background: var(--bg); overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; z-index: 0;
  transition: opacity .8s ease; pointer-events: none;
}
/* La diapositiva saliente se queda opaca por debajo (z-index 1) mientras la nueva
   entra por encima (z-index 2). Así solo se funde la que entra y el fondo oscuro
   nunca asoma a mitad de transición: se acaba el "efecto raro" del degradado
   de la izquierda. */
.hero-slide.prev { opacity: 1; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; pointer-events: auto; }
.hero-slide > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
/* Oscurecido: fuerte a la izquierda (contraste del texto), tenue a la derecha
   (la foto se ve bien). Antes lo hacía img { opacity:.6 }, que atenuaba toda la
   imagen y empeoraba la mezcla durante la transición. */
.hero-slide .overlay-1 { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(234,88,12,.92) 0%, rgba(249,115,22,.6) 22%, rgba(8,47,73,.5) 42%, rgba(8,47,73,.12) 58%, transparent 72%); }
.hero-slide .overlay-2 { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,6,23,.8) 0%, rgba(2,6,23,.46) 32%, rgba(2,6,23,.24) 58%, rgba(2,6,23,.2) 100%); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-content .container { max-width: var(--maxw); }
.hero-inner { max-width: 46rem; position: relative; z-index: 2; }
.hero-inner .tag {
  display: inline-flex; background: rgba(2,6,23,.8); backdrop-filter: blur(8px);
  color: var(--orange-400); font-weight: 900; letter-spacing: .18em; text-transform: uppercase;
  font-size: .8rem; padding: .55rem 1rem; border-radius: var(--radius); margin-bottom: 1.5rem;
}
.hero-inner h1 { color: #fff; margin-bottom: 1.25rem; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.hero-inner p { color: #e2e8f0; font-size: clamp(1rem, 2vw, 1.25rem); max-width: 38rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: rgba(2,6,23,.6); color: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .75rem; backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: var(--orange); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
.hero-arrow svg { width: 1.5rem; height: 1.5rem; display: block; }
@media (max-width: 640px) { .hero-arrow { display: none; } }
@media (max-width: 768px) {
  /* Movil: sin degradados sobre la foto y cabecera mas baja, para que las
     imagenes horizontales no se recorten tanto ni ocupen toda la pantalla. */
  .hero { height: auto; aspect-ratio: 16 / 9; min-height: 19rem; max-height: 62vh; }
  .hero-slide .overlay-1,
  .hero-slide .overlay-2 { display: none; }
  .hero-slide > img { transform: none; }
  .hero-inner .tag { margin-bottom: 1rem; }
  .hero-inner h1 { text-shadow: 0 2px 8px rgba(0,0,0,.85), 0 6px 28px rgba(0,0,0,.7); }
  .hero-inner p { margin-bottom: 1.25rem; text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 4px 18px rgba(0,0,0,.7); }
  .player-hero > .bg::after { background: linear-gradient(95deg, rgba(2,6,23,.9), rgba(2,6,23,.55) 55%, rgba(2,6,23,.35)); }
}

.hero-dots { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); display: flex; gap: .75rem; z-index: 5; }
.hero-dots button { width: 2.5rem; height: .5rem; border-radius: 999px; border: none; background: rgba(255,255,255,.3); transition: width .3s, background .3s; }
.hero-dots button.active { background: var(--orange); width: 4rem; }

.plus-grid { position: absolute; top: 3rem; left: 3rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; color: rgba(254,215,170,.4); font-family: monospace; z-index: 2; }
@media (max-width: 1024px) { .plus-grid { display: none; } }

/* Franja naranja de "Últimos partidos" (mismo degradado que la barra de menú) */
.section-orange {
  position: relative; overflow: hidden;
  background: linear-gradient(100deg, #ffb326 0%, #f57c00 46%, #e65100 100%);
  border-block: 1px solid rgba(255, 255, 255, .22);
}
.section-orange .container { position: relative; z-index: 2; }

/* ==========================================================================
   Tarjetas de partido
   ========================================================================== */
.match-card {
  background: var(--bg-2); border: none; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.match-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.match-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.match-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,6,23,.9), transparent 55%); }
.match-badges { position: absolute; top: .75rem; left: .75rem; display: flex; align-items: center; gap: .5rem; z-index: 2; }
.match-badges > span { display: inline-flex; align-items: center; line-height: 1; border-radius: 8px; }
.match-badges .date { background: rgba(2,6,23,.8); backdrop-filter: blur(6px); color: #fff; font-size: .72rem; font-weight: 700; padding: .4rem .7rem; }
.match-badges .new { background: var(--orange-600); color: #fff; font-family: var(--font-display); letter-spacing: .08em; font-size: .9rem; padding: .32rem .6rem .24rem; }
.match-badges .feat { background: var(--ocean); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; padding: .4rem .6rem; }
.match-body { padding: .6rem 1.25rem .85rem; display: flex; flex-direction: column; flex: 1; background: linear-gradient(to bottom, var(--bg-2), var(--bg)); }
.match-title { min-height: 3.25rem; margin-bottom: .5rem; }
.match-title h3 { font-weight: 800; font-size: 1.05rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.match-card:hover .match-title h3 { color: var(--orange-400); }
.match-date-line { margin-top: .35rem; font-size: .72rem; font-weight: 700; color: var(--text-mute); }
.match-players { padding-top: .55rem; border-top: 1px solid var(--line); }
.player-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; }
.player-chip {
  display: flex; align-items: center; gap: .4rem;
  background: transparent; border: 1px solid transparent; border-radius: 10px;
  padding: .25rem; font-size: .72rem; font-weight: 700; min-width: 0;
}
.player-chip:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.player-chip img { width: 1.5rem; height: 1.5rem; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.player-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted-note { color: var(--text-mute); font-style: italic; font-size: .8rem; }

/* --- Vídeo destacado (último añadido), presentación tipo Netflix --------- */
.match-hero {
  position: relative; margin-bottom: 2rem;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow-lg);
}
.match-hero-media { display: block; position: relative; aspect-ratio: 16/9; background: var(--bg); overflow: hidden; }
.match-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.match-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(2,6,23,.72) 0%, rgba(2,6,23,.3) 22%, transparent 42%),
    linear-gradient(to right, rgba(2,6,23,.45) 0%, transparent 40%);
}

.match-hero-info {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  padding: 0 2.5rem 2.25rem; max-width: min(46rem, 90%);
  pointer-events: none;
}
.match-hero-info > * { pointer-events: auto; }
.match-hero-title { display: block; }
.match-hero-info h3 {
  color: #fff; font-family: var(--font-display); line-height: .95;
  font-size: clamp(1.6rem, 3.4vw, 3rem); letter-spacing: .01em;
  text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 6px 28px rgba(0,0,0,.6);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.match-hero:hover .match-hero-title h3,
.match-hero-title:hover h3 { color: var(--orange-400); }
.match-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem;
  margin-top: .9rem; color: #e2e8f0;
  font-size: .95rem; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 4px 16px rgba(0,0,0,.6);
}
.match-hero-meta > span { display: inline-flex; align-items: center; }
.match-hero-meta > span + span::before {
  content: "•"; margin-right: .75rem; color: rgba(255,255,255,.55); font-size: .7em;
}
.match-hero-meta .chip {
  border-radius: 6px; padding: .18rem .5rem; line-height: 1.3;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #fff;
  text-shadow: none;
}
.match-hero-meta .chip.new { background: var(--orange-600); }
.match-hero-meta .chip.feat { background: var(--ocean); }
.match-hero-meta .chip + .chip::before, .match-hero-meta .chip::before { content: none; margin: 0; }

.match-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.match-hero-actions .btn { padding: .9rem 3.1rem; font-size: .82rem; }
.match-hero-actions .btn-light:hover { background: rgba(255,255,255,.82); }

@media (min-width: 1024px) {
  .match-hero { margin-bottom: 2.5rem; }
  .match-hero-media { aspect-ratio: 21/9; }
}
@media (max-width: 639px) {
  .match-hero-info { padding: 0 1.25rem 1.4rem; max-width: 100%; }
  .match-hero-actions .btn { padding: .75rem 2.4rem; font-size: .74rem; }
}
/* En movil el ultimo partido anadido se muestra como una tarjeta mas, no en
   formato "Netflix": se oculta el hero y se saca su tarjeta equivalente. */
.featured-mobile-card { display: none; }
@media (max-width: 768px) {
  .match-hero { display: none; }
  .featured-mobile-card { display: contents; }
}

/* ==========================================================================
   Tarjetas de jugadora
   ========================================================================== */
.player-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: var(--bg-2); border: none; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.player-card .photo { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--bg); }
.player-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.player-card .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(2,6,23,.15) 55%, transparent); }
.player-card .share { position: absolute; top: .75rem; right: .75rem; z-index: 2; padding: .5rem; border-radius: 10px; background: rgba(2,6,23,.7); color: var(--text-dim); border: 1px solid var(--line-soft); }
.player-card .share:hover { color: #fff; }
.player-card .share svg { width: .9rem; height: .9rem; display: block; }
.player-card .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.25rem; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.player-card .pill { order: 2; display: inline-flex; align-items: baseline; gap: .35rem; color: #fff; margin: .1rem 0 0; }
.player-card .pill b { font-size: 1.1rem; font-weight: 400; }
.player-card .pill span { font-size: .6rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; }
.player-card h3 { order: 1; font-family: var(--font-display); font-size: 1.9rem; color: #fff; text-transform: uppercase; letter-spacing: .03em; line-height: 1; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.5); transition: color .25s; }
.player-card:hover h3 { color: var(--orange-400); }

/* ==========================================================================
   Toolbar de búsqueda / filtros
   ========================================================================== */
.toolbar {
  background: transparent;
  border: none; border-radius: var(--radius-lg);
  padding: 1rem; margin-bottom: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.field-search { position: relative; flex: 1; min-width: 15rem; }
.field-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--bg); }
.field-search input {
  width: 100%; background: transparent; color: var(--bg); border: 2px solid var(--bg);
  border-radius: var(--radius); padding: .7rem 1rem .7rem 2.6rem; font: inherit; font-size: .9rem; font-weight: 700;
}
.field-search input::placeholder { color: var(--bg); opacity: .7; font-weight: 700; }
.field-search input:focus { outline: none; border: 2px solid var(--bg); }
.count-pill { background: transparent; border: 1px solid var(--bg); color: var(--bg); border-radius: var(--radius); padding: .5rem 1rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

/* Estado vacío */
.empty {
  background: rgba(15,23,42,.8); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 3rem 2rem; text-align: center; max-width: 40rem; margin: 2rem auto;
}
.empty .icon { width: 5rem; height: 5rem; margin: 0 auto 1.5rem; background: var(--bg); border: 2px solid rgba(249,115,22,.4); border-radius: var(--radius-lg); display: grid; place-items: center; }
.empty .icon svg { width: 2.5rem; height: 2.5rem; color: var(--orange-400); }
.empty h3 { font-family: var(--font-display); font-size: 1.9rem; text-transform: uppercase; margin-bottom: .75rem; }
.empty p { color: var(--text-dim); font-size: .9rem; max-width: 26rem; margin: 0 auto 1.5rem; }
.suggestions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; }
.suggestions button { background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .4rem .9rem; font-size: .75rem; font-weight: 700; }
.suggestions button:hover { background: var(--orange); color: #fff; }

/* ==========================================================================
   Página de jugadora
   ========================================================================== */
.back-bar { background: var(--bg); border-bottom: 1px solid var(--bg-2); padding-block: .8rem; }
.back-bar a { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.back-bar a:hover { color: var(--orange-400); }
.back-bar svg { width: 1rem; height: 1rem; }

.player-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 10vw, 7rem); border-bottom: 4px solid var(--orange); background: var(--bg); }
.player-hero > .bg { position: absolute; inset: 0; z-index: 0; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.player-hero > .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .7; }
.player-hero > .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(2,6,23,.9) 0%, rgba(2,6,23,.55) 35%, rgba(2,6,23,.15) 55%, transparent 70%); }
.player-hero .container { position: relative; z-index: 2; }
.player-hero .badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--ocean); color: #fff; font-weight: 900; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; padding: .4rem .75rem; border-radius: 6px; margin-bottom: 1rem; }
.player-hero .badge small { background: rgba(255,255,255,.2); padding: .1rem .4rem; border-radius: 4px; }
.player-hero h1 { color: #fff; margin-bottom: 1rem; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.player-hero .desc { max-width: 40rem; background: rgba(2,6,23,.4); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1rem; backdrop-filter: blur(4px); color: #e2e8f0; }

.panel-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.panel-head .left { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.panel-head .ico { background: rgba(2,6,23,.8); color: var(--orange-400); padding: .6rem; border-radius: var(--radius); display: grid; place-items: center; }
.panel-head .ico svg { width: 1.4rem; height: 1.4rem; }
.panel-head h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.25rem); }
.panel-head .pill { background: none; color: #fff; border: 0; border-radius: 0; padding: 0; font-size: .72rem; font-weight: 400; text-transform: uppercase; letter-spacing: .12em; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); } }
.gallery-grid button { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; border: 0; background: var(--bg); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid button:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(2,6,23,.96); backdrop-filter: blur(12px); display: none; flex-direction: column; padding: 1.5rem; }
.lightbox.open { display: flex; }
.lightbox .lb-top { display: flex; align-items: center; justify-content: space-between; color: #fff; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.lightbox .lb-top .who { background: var(--orange-600); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; padding: .3rem .7rem; border-radius: 6px; }
.lightbox .lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; margin-block: 1rem; }
.lightbox .lb-stage img { max-height: 75vh; max-width: 100%; object-fit: contain; border-radius: var(--radius-lg); border: 2px solid var(--line); }
.lightbox .lb-nav { position: absolute; padding: .75rem; border-radius: 999px; background: rgba(15,23,42,.8); color: #fff; border: 1px solid var(--line-soft); }
.lightbox .lb-nav:hover { background: var(--orange-600); }
.lightbox .lb-nav svg { width: 1.75rem; height: 1.75rem; display: block; }
.lightbox .lb-nav.prev { left: 0; }
.lightbox .lb-nav.next { right: 0; }
.lightbox .lb-close { padding: .6rem; border-radius: 999px; background: rgba(15,23,42,.8); color: #fff; border: 1px solid var(--line-soft); }
.lightbox .lb-close svg { width: 1.5rem; height: 1.5rem; display: block; }
.lb-thumbs { display: flex; gap: .5rem; justify-content: center; overflow-x: auto; padding-block: .5rem; }
.lb-thumbs button { width: 3.5rem; height: 3.5rem; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); opacity: .5; flex-shrink: 0; }
.lb-thumbs button.active { border-color: var(--orange); opacity: 1; }

/* ==========================================================================
   Sección YouTube / Instagram (home)
   ========================================================================== */
.cta-yt { background: var(--grad-orange); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta-yt .container { position: relative; z-index: 2; max-width: 60rem; }
.cta-yt h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; letter-spacing: -.01em; }
.cta-yt p { color: #fff7ed; max-width: 40rem; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-yt .blob { position: absolute; width: 24rem; height: 24rem; border-radius: 999px; filter: blur(60px); }
.cta-yt .blob.a { background: rgba(255,255,255,.12); top: -6rem; right: -6rem; }
.cta-yt .blob.b { background: rgba(8,47,73,.35); bottom: -6rem; left: -6rem; }
.cta-yt-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-yt-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(124,45,18,.78), rgba(15,23,42,.82)); }
.cta-yt.has-bg h2 { text-shadow: 0 3px 18px rgba(0,0,0,.45); }

.insta-section { background: var(--grad-insta); color: #fff; position: relative; overflow: hidden; padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.insta-section .container { position: relative; z-index: 2; }
.insta-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.insta-head .title { display: flex; align-items: center; gap: .75rem; }
.insta-head .badge { width: 2.75rem; height: 2.75rem; border-radius: var(--radius); background: rgba(255,255,255,.2); display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); }
.insta-head .badge svg { width: 1.5rem; height: 1.5rem; fill: #fff; }

/* ==========================================================================
   Toasts
   ========================================================================== */
.toast-wrap { position: fixed; right: 1rem; bottom: 5rem; z-index: 70; display: flex; flex-direction: column; gap: .6rem; max-width: 22rem; }
@media (min-width: 768px) { .toast-wrap { bottom: 1.5rem; } }
.toast {
  background: rgba(15,23,42,.97); color: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem; font-size: .78rem; font-weight: 700;
  animation: toast-in .25s ease;
}
.toast .dot { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.toast.success .dot { background: rgba(16,185,129,.2); color: var(--emerald); }
.toast.share .dot { background: rgba(56,189,248,.2); color: #38bdf8; }
.toast svg { width: 1.1rem; height: 1.1rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Modal de búsqueda global
   ========================================================================== */
.search-modal { position: fixed; inset: 0; z-index: 65; background: rgba(2,6,23,.8); backdrop-filter: blur(10px); display: none; align-items: flex-start; justify-content: center; padding: 4rem 1rem; }
.search-modal.open { display: flex; }
.search-modal .box { position: relative; width: 100%; max-width: 40rem; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.search-modal .box-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.search-modal .box-head svg { width: 1.4rem; height: 1.4rem; color: var(--orange-400); flex-shrink: 0; }
.search-modal .box-head input { flex: 1; background: none; border: none; color: #fff; font: inherit; font-size: 1.1rem; }
.search-modal .box-head input:focus { outline: none; }
.search-modal .box-head .esc { font-size: .68rem; font-weight: 700; color: var(--text-dim); background: var(--bg-3); border: 1px solid var(--line-soft); border-radius: 8px; padding: .35rem .6rem; text-transform: uppercase; }
.search-modal .results { max-height: 60vh; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1.5rem; }
.search-modal .res-group h4 { display: flex; align-items: center; gap: .5rem; font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; margin-bottom: .75rem; }
.search-modal .res-group.players h4 { color: #38bdf8; }
.search-modal .res-group.matches h4 { color: var(--orange-400); }
.search-modal .res-group h4 svg { width: 1rem; height: 1rem; }
.res-item { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .65rem; background: rgba(30,41,59,.8); border: 1px solid var(--line-soft); border-radius: var(--radius); text-align: left; color: inherit; }
.res-item:hover { border-color: var(--orange); background: rgba(249,115,22,.12); }
.res-item img { width: 3rem; height: 2.4rem; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.res-item .meta { flex: 1; min-width: 0; }
.res-item .meta b { display: block; font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-item .meta span { font-size: .72rem; color: var(--text-mute); }
.search-empty { text-align: center; color: var(--text-dim); font-size: .9rem; padding: 2rem 0; }

/* ==========================================================================
   Alertas / mensajes flash
   ========================================================================== */
.flash-stack { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 34rem); }
.flash {
  padding: .9rem 1.1rem; border-radius: var(--radius); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; gap: .6rem; box-shadow: var(--shadow-lg);
}
.flash.success { background: var(--emerald); color: #04241a; }
.flash.error { background: var(--red); color: #fff; }
.flash.info { background: var(--bg-3); color: #fff; border: 1px solid var(--line-soft); }

.hidden { display: none !important; }
