/* ==========================================================================
   CLUB SOCIAL Y DEPORTIVO TRES ALGARROBOS — STYLE.CSS
   ========================================================================== */

:root {
  --rojo: #e11d2a;
  --rojo-club: #d91e2b;
  --rojo-boton: #c81d25;
  --rojo-hover: #a8151c;
  --rojo-oscuro: #9e111b;
  --azul-club: #1d4ed8;
  --azul-brillante: #3b82f6;
  --azul-claro: #93c5fd;
  --azul-noche: #070b18;
  --azul-profundo: #0b1124;
  --azul-panel: #10172e;
  --crema: #f8f6f1;
  --crema-card: #ffffff;
  --texto-oscuro: #0f1424;
  --texto-gris: #5a6275;
  --blanco: #ffffff;
  --borde-claro: rgba(255, 255, 255, 0.1);
  --borde-oscuro: rgba(15, 20, 36, 0.09);
  --ancho-max: 1540px;
  --pad-lateral: 3vw;
  --font-display: 'Anton', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--azul-noche);
  color: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.lock-scroll {
  overflow: hidden !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   1. ELEMENTOS GLOBALES Y BOTONES BISELADOS
   ========================================================================== */
.sec-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.sec-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sec-tag.rojo { color: var(--rojo); }
.sec-tag.blanco { color: rgba(255, 255, 255, 0.7); }
.sec-tag.azul { color: var(--azul-claro); }

.sec-div {
  width: 42px;
  height: 2px;
  border-radius: 2px;
}

.sec-div.rojo { background: var(--rojo); }
.sec-div.blanco { background: rgba(255, 255, 255, 0.35); }
.sec-div.azul { background: var(--azul-brillante); }

.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.section-h2.dark { color: var(--texto-oscuro); }
.section-h2.light { color: var(--blanco); }

.section-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--rojo);
}

.btn-rojo,
.btn-ghost,
.btn-azul {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 2.2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-rojo {
  background: var(--rojo-boton);
  color: var(--blanco);
  border: none;
}

.btn-rojo:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(7, 11, 20, 0.42);
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.btn-azul {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--blanco);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.btn-azul:hover {
  transform: translateY(-2px);
}

.btn-submit {
  width: 100%;
  padding: 1.05rem 1.8rem;
  background: var(--rojo-boton);
  color: var(--blanco);
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  margin-top: 0.6rem;
  transition: background 0.2s ease, transform 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-submit:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   2. NAVBAR (#mainNav): ESCUDO OFICIAL + APARICIÓN AL SCROLLEAR
   ========================================================================== */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem var(--pad-lateral);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

#mainNav .nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

#mainNav.nav-scrolled,
body.vista-futbol-activa #mainNav {
  background: rgba(7, 11, 24, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem var(--pad-lateral);
}

#mainNav.nav-scrolled .nav-brand,
body.vista-futbol-activa #mainNav .nav-brand {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Escudo oficial del club en la navbar */
.nav-escudo {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  flex-shrink: 0;
}

.nav-escudo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.nav-nombre {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--blanco);
  white-space: nowrap;
}

.nav-nombre small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.nav-centenario-widget {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(217, 30, 43, 0.25) 0%, rgba(29, 78, 216, 0.32) 100%);
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: var(--blanco);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(29, 78, 216, 0.3);
}

.nav-centenario-widget.visible {
  display: inline-flex;
}

.ncw-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--azul-claro);
}

.ncw-time {
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--blanco);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--blanco);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-links a {
  position: relative;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.42rem 0.65rem;
  border-radius: 6px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blanco);
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a[data-sec]::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 2px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rojo) 0%, var(--azul-brillante) 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a[data-sec].nav-active {
  color: var(--blanco);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
}

.nav-links a[data-sec].nav-active::after {
  transform: scaleX(1);
}

.nav-links .nav-btn {
  padding: 0.5rem 1.15rem;
  background: var(--rojo);
  color: var(--blanco) !important;
  font-weight: 600;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.nav-links .nav-btn::after {
  display: none;
}

.nav-links .nav-btn.nav-active {
  background: #ff2433;
  box-shadow: 0 0 18px rgba(225, 29, 42, 0.7);
}

.nav-scroll-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}

.nav-scroll-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--rojo) 0%, var(--azul-brillante) 100%);
  transition: width 0.1s linear;
}

.nav-futbol-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(217, 30, 43, 0.16);
  border: 1px solid rgba(217, 30, 43, 0.55);
  color: var(--blanco) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

.nav-futbol-switch:hover,
body.vista-futbol-activa .nav-futbol-switch {
  background: var(--rojo-club);
  border-color: var(--rojo-club);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b47;
  box-shadow: 0 0 8px #ff3b47;
  animation: pulseLive 1.4s infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

/* ==========================================================================
   3. PORTADA PRINCIPAL (.hero)
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--pad-lateral) 5.6rem var(--pad-lateral);
  background-color: #060a12;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      180deg,
      rgba(5, 36, 86, 0.66) 0%,
      rgba(6, 28, 68, 0.62) 54%,
      rgba(7, 9, 14, 0.94) 90%,
      #07090e 100%
    ),
    url('img/WhatsApp Image 2026-02-21 at 22.13.08.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-stripe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #991b36 52%, #e11d2a 100%);
  z-index: 4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.7rem;
}

.hero-tag {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--rojo);
}

.hero-line {
  width: 50px;
  height: 2px;
  background: var(--rojo);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 8.8vw, 6rem);
  line-height: 0.91;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--blanco);
  margin-bottom: 1.5rem;
}

.hero h1 .sub-word {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 4.5vw, 3.85rem);
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.05;
  margin-bottom: 0.15rem;
  letter-spacing: 0;
}

.hero h1 .accent {
  color: var(--rojo);
}

.hero-desc {
  max-width: 500px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 2.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.05rem;
}

.hero-stats {
  position: absolute;
  right: var(--pad-lateral);
  bottom: 4.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1.55rem;
  padding-right: 1.35rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hstat-val {
  font-family: var(--font-display);
  font-size: 2.55rem;
  line-height: 0.95;
  color: var(--blanco);
}

.hstat-val span {
  color: var(--rojo);
  font-size: 1.75rem;
  margin-left: 2px;
}

.hstat-lbl {
  font-family: var(--font-sans);
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: rgba(255, 255, 255, 0.44);
  margin-top: 0.32rem;
}

.hero-scroll {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.scroll-txt {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.42);
}

.scroll-bar {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   4. PANTALLA COMPLETA INICIAL DEL CENTENARIO (#centenarioSplash)
   ========================================================================== */
#centenarioSplash {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2500;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 30, 43, 0.32) 0%, transparent 46%),
    radial-gradient(circle at 82% 80%, rgba(29, 78, 216, 0.32) 0%, transparent 48%),
    linear-gradient(180deg, #050814 0%, #0a1229 52%, #060913 100%);
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem var(--pad-lateral);
  overflow-y: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.48s cubic-bezier(0.16, 1, 0.3, 1), transform 0.48s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.48s;
}

#centenarioSplash.minimized {
  opacity: 0;
  transform: translateY(-46vh) scale(0.2);
  pointer-events: none;
  visibility: hidden;
}

.splash-close-top {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(29, 78, 216, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--blanco);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.splash-close-top:hover {
  background: var(--rojo-club);
  border-color: var(--rojo-club);
}

.cent-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(9rem, 26vw, 24rem);
  color: rgba(59, 130, 246, 0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.cent-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  text-align: center;
}

.cent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(217, 30, 43, 0.22), rgba(29, 78, 216, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.55);
  color: var(--azul-claro);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.cent-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.cent-title .rb-grad {
  background: linear-gradient(135deg, #ff4d58 0%, #ffffff 48%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cent-sub {
  max-width: 660px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.cent-timer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(105px, 180px));
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.cent-box {
  position: relative;
  background: linear-gradient(160deg, rgba(29, 78, 216, 0.16) 0%, rgba(10, 15, 32, 0.92) 100%);
  border: 1px solid rgba(59, 130, 246, 0.42);
  border-radius: 16px;
  padding: 1.4rem 0.9rem 1.15rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.cent-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 18%;
  right: 18%;
  height: 3px;
  background: linear-gradient(90deg, var(--rojo-club), var(--azul-brillante));
  border-radius: 3px;
}

.cent-num {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1;
  color: var(--blanco);
  font-variant-numeric: tabular-nums;
}

.cent-lbl {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--azul-claro);
  font-weight: 600;
}

.cent-progress-wrap {
  max-width: 720px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  padding: 0.95rem 1.3rem;
}

.cent-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.cent-progress-labels strong {
  color: var(--azul-claro);
}

.cent-progress-track {
  width: 100%;
  height: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.cent-progress-fill {
  height: 100%;
  width: 99%;
  background: linear-gradient(90deg, var(--rojo-club) 0%, var(--azul-brillante) 100%);
  border-radius: 999px;
}

.cent-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-entrar-sitio {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.92rem 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: var(--blanco);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* ==========================================================================
   5. APARTADO DE FÚTBOL (#apartado-futbol)
   ========================================================================== */
#apartado-futbol {
  display: none;
  min-height: 100vh;
  padding: 6.8rem var(--pad-lateral) 5rem;
  background-color: #060914;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(217, 30, 43, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(29, 78, 216, 0.18) 0%, transparent 48%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  color: var(--blanco);
}

body.vista-futbol-activa #apartado-futbol {
  display: block;
}

body.vista-futbol-activa .seccion-institucional {
  display: none !important;
}

.fhub-container { max-width: var(--ancho-max); margin: 0 auto; }
.fhub-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.4rem; margin-bottom: 2rem; background: rgba(13, 20, 40, 0.9); border: 1px solid rgba(59, 130, 246, 0.25); border-left: 4px solid var(--rojo-club); border-radius: 12px; }
.fhub-topbar-left { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.fhub-sunday-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.8rem; border-radius: 6px; background: rgba(217, 30, 43, 0.22); border: 1px solid rgba(217, 30, 43, 0.5); color: #ff8a92; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.fhub-sync-info { font-size: 0.82rem; color: rgba(255, 255, 255, 0.68); }
.btn-volver-web { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.15rem; border-radius: 8px; background: rgba(29, 78, 216, 0.2); border: 1px solid rgba(59, 130, 246, 0.45); color: var(--blanco); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.fhub-main-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; margin-bottom: 3.5rem; }
.fdo-match-card { background: linear-gradient(165deg, #0b1226 0%, #170b16 100%); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.fdo-mc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fdo-mc-tab { padding: 1.05rem 1rem; background: rgba(8, 12, 24, 0.9); border: none; color: rgba(255, 255, 255, 0.58); font-family: var(--font-display); font-size: 0.96rem; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.fdo-mc-tab.active { background: var(--rojo-club); color: var(--blanco); }
.fdo-mc-body { padding: 2rem 2.2rem; }
.fdo-mc-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.1rem; }
.fdo-pill-torneo { padding: 0.35rem 0.85rem; border-radius: 6px; background: rgba(217, 35, 46, 0.15); border: 1px solid rgba(217, 35, 46, 0.45); color: #ff6b74; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; text-transform: uppercase; }
.fdo-hora-txt { font-family: var(--font-mono); font-size: 0.8rem; color: var(--azul-claro); }
.fdo-versus-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; text-align: center; margin-bottom: 2.2rem; }
.fdo-team-col { display: flex; flex-direction: column; align-items: center; }
.fdo-escudo-box { width: 96px; height: 96px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.85rem; margin-bottom: 0.95rem; padding: 0.7rem; overflow: hidden; }
.fdo-escudo-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.fdo-table-crest { width: 22px; height: 22px; object-fit: contain; vertical-align: middle; margin-right: 0.5rem; display: inline-block; }
.fdo-escudo-box.rojo { background: linear-gradient(145deg, #2b1019 0%, #121b38 100%); border: 2px solid var(--rojo-club); color: var(--blanco); box-shadow: 0 10px 30px rgba(225, 45, 57, 0.28); }
.fdo-escudo-box.verde { background: linear-gradient(145deg, #0b2926 0%, #071918 100%); border: 2px solid #10b981; color: #10b981; }
.fdo-team-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--blanco); text-transform: uppercase; }
.fdo-team-sub { font-family: var(--font-mono); font-size: 0.74rem; margin-top: 0.2rem; }
.fdo-team-sub.rojo { color: #ff5c66; }
.fdo-team-sub.gris { color: rgba(255, 255, 255, 0.55); }
.fdo-vs-center { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.fdo-vs-label-top { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; color: var(--azul-claro); max-width: 140px; }
.fdo-vs-box { padding: 0.55rem 1.15rem; border-radius: 12px; background: #080d1a; border: 1px solid rgba(59, 130, 246, 0.25); font-family: var(--font-display); font-size: 1.65rem; color: #f0323f; }
.fdo-vs-label-bot { font-family: var(--font-mono); font-size: 0.68rem; color: rgba(255, 255, 255, 0.5); }
.fdo-stadium-box { background: rgba(7, 11, 24, 0.82); border: 1px solid rgba(59, 130, 246, 0.18); border-radius: 12px; padding: 1.15rem 1.35rem; }
.fdo-st-row { display: flex; align-items: flex-start; gap: 0.75rem; }
.fdo-st-title { font-weight: 700; font-size: 0.92rem; color: var(--blanco); }
.fdo-st-sub { font-size: 0.82rem; color: rgba(255, 255, 255, 0.68); margin-top: 0.15rem; }
.fdo-radio-pill { display: inline-block; margin-top: 0.85rem; padding: 0.35rem 0.9rem; border-radius: 6px; background: rgba(29, 78, 216, 0.18); border: 1px solid rgba(59, 130, 246, 0.45); color: var(--azul-claro); font-family: var(--font-mono); font-size: 0.74rem; }

.fdo-table-card { background: #0a1022; border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 16px; padding: 1.75rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.fdo-tc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.fdo-tc-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: #f0323f; margin-bottom: 0.2rem; }
.fdo-tc-title { font-family: var(--font-display); font-size: 1.65rem; color: var(--blanco); text-transform: uppercase; line-height: 1.1; }
.fdo-fecha-badge { padding: 0.32rem 0.75rem; border-radius: 6px; background: rgba(29, 78, 216, 0.2); border: 1px solid rgba(59, 130, 246, 0.4); font-family: var(--font-mono); font-size: 0.74rem; color: var(--azul-claro); white-space: nowrap; }
.fdo-subtabs { display: flex; gap: 0.45rem; margin-bottom: 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fdo-subtab-btn { flex: 1; padding: 0.5rem 0.65rem; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.fdo-subtab-btn.active { background: var(--azul-club); border-color: var(--azul-brillante); color: var(--blanco); }
.fdo-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.fdo-table th { text-align: left; padding: 0.6rem 0.65rem; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.fdo-table th.num, .fdo-table td.num { text-align: right; font-family: var(--font-mono); }
.fdo-table td { padding: 0.82rem 0.65rem; border-bottom: 1px solid rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.85); }
.fdo-table tr.row-social { background: linear-gradient(90deg, rgba(217, 35, 46, 0.25) 0%, rgba(29, 78, 216, 0.15) 100%); border-left: 3px solid #f0323f; }
.fdo-table tr.row-social td { font-weight: 700; color: var(--blanco); }
.dg-pos { color: #10b981; font-weight: 700; }
.dg-neg { color: rgba(255, 255, 255, 0.55); }
.pts-col { font-weight: 700; color: var(--blanco); }
tr.row-social .pts-col { color: #ff5c66; font-size: 0.96rem; }

/* Pizarra Táctica */
.tactica-section { background: #0a1022; border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 18px; padding: 2.2rem; margin-bottom: 3.5rem; }
.tactica-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1.8rem; }
.formacion-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.form-btn { padding: 0.5rem 1rem; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.form-btn.active { background: var(--azul-club); border-color: var(--azul-brillante); color: var(--blanco); }
.tactica-layout { display: grid; grid-template-columns: 1.45fr 0.85fr; gap: 2rem; align-items: start; }
.cancha-col-wrap { display: flex; flex-direction: column; gap: 1rem; width: 100%; }
.cancha-pitch { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 410px; border-radius: 14px; background: repeating-linear-gradient(90deg, #115e38 0%, #115e38 10%, #146c41 10%, #146c41 20%); border: 3px solid rgba(255, 255, 255, 0.82); overflow: hidden; }
.pitch-midline { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: rgba(255, 255, 255, 0.65); transform: translateX(-50%); }
.pitch-circle { position: absolute; top: 50%; left: 50%; width: 110px; height: 110px; border: 2px solid rgba(255, 255, 255, 0.65); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-area-left, .pitch-area-right { position: absolute; top: 22%; height: 56%; width: 16%; border: 2px solid rgba(255, 255, 255, 0.65); }
.pitch-area-left { left: 0; border-left: none; }
.pitch-area-right { right: 0; border-right: none; }
.pitch-tech-zone-mark { position: absolute; bottom: 4px; left: 22%; transform: translateX(-50%); padding: 2px 12px; border: 1.5px dashed rgba(255, 255, 255, 0.55); border-bottom: none; border-radius: 6px 6px 0 0; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.8); background: rgba(6, 12, 24, 0.38); pointer-events: none; }
.pitch-player { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: left 0.45s ease, top 0.45s ease, transform 0.2s ease; z-index: 5; }
.pitch-shirt { position: relative; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ff3b47, #b80d18); border: 2px solid var(--blanco); color: var(--blanco); font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); }
.pitch-player.gk .pitch-shirt { background: radial-gradient(circle at 30% 30%, #3b82f6, #1d4ed8); }
.pitch-player.active .pitch-shirt { border-color: var(--azul-claro); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.65); }
.pitch-player.awaiting-sub-click .pitch-shirt {
  animation: subTargetPulse 1.15s infinite ease-in-out;
  border-color: #fde047;
}
@keyframes subTargetPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.65); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
}
.pitch-sub-badge { position: absolute; top: -5px; right: -6px; font-size: 0.62rem; font-weight: 800; color: #4ade80; background: #052e16; border: 1.5px solid #4ade80; border-radius: 50%; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; }
.pitch-pname { margin-top: 4px; padding: 2px 7px; border-radius: 4px; background: rgba(6, 9, 18, 0.88); color: var(--blanco); font-size: 0.72rem; font-weight: 600; white-space: nowrap; }

/* Banner de cambio directo sobre el césped y Cartel Electrónico de 4° Árbitro */
.pitch-sub-mode-banner {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 18;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(6, 10, 24, 0.94);
  border: 1.5px solid #fde047;
  color: #ffffff;
  padding: 0.4rem 0.65rem 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}
.pitch-sub-mode-banner button {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.led-sub-board {
  position: absolute;
  bottom: 0.9rem;
  right: 0.9rem;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.92);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.led-sub-board.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.led-board-frame {
  background: #05070f;
  border: 3px solid #334155;
  outline: 1.5px solid #94a3b8;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8);
  min-width: 190px;
}
.led-board-top {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.22rem;
  margin-bottom: 0.3rem;
}
.led-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.12rem 0;
}
.led-board-row.led-in { color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, 0.55); }
.led-board-row.led-out { color: #f87171; text-shadow: 0 0 8px rgba(248, 113, 113, 0.55); }
.led-arrow { font-size: 0.65rem; }
.led-num { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.04em; }
.led-name { font-size: 0.76rem; flex: 1; text-align: right; }

/* ==========================================================================
   CORRALITO TÉCNICO SOBRE CÉSPED + CABINA DE SUPLENTES 3D (DUGOUT ESTADIO)
   ========================================================================== */
.tactica-sideline-stage {
  position: relative;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(17, 94, 56, 0.55) 0%, rgba(10, 38, 25, 0.82) 38%, #080f22 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.85rem 1rem 1rem;
  box-shadow: inset 0 8px 20px rgba(0, 0, 0, 0.38), 0 14px 32px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.sideline-chalk-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.72);
}

.sideline-zones-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

/* 1. El Corralito del DT (Área Técnica demarcada con cal blanca sobre el césped) */
.corralito-dt-zone {
  display: flex;
  flex-direction: column;
}

.corralito-chalk-border {
  position: relative;
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.62);
  border-top: none;
  border-radius: 0 0 12px 12px;
  background:
    repeating-linear-gradient(90deg, rgba(17, 94, 56, 0.42) 0%, rgba(17, 94, 56, 0.42) 24px, rgba(20, 108, 65, 0.48) 24px, rgba(20, 108, 65, 0.48) 48px);
  padding: 0.65rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
}

.corralito-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  text-transform: uppercase;
}

.corralito-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.tactica-dt-list {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.dt-corralito-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  background: linear-gradient(140deg, rgba(9, 15, 34, 0.92) 0%, rgba(20, 32, 66, 0.92) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-left: 3.5px solid var(--rojo-club);
  border-radius: 11px;
  padding: 0.5rem 0.65rem;
  color: var(--blanco);
  cursor: pointer;
  text-align: left;
  transition: all 0.22s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.42);
}

.dt-corralito-card:hover,
.dt-corralito-card.active {
  border-color: var(--azul-claro);
  background: linear-gradient(140deg, rgba(29, 78, 216, 0.42) 0%, rgba(12, 20, 44, 0.95) 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.45), 0 10px 22px rgba(0, 0, 0, 0.55);
}

.dt-coach-figure {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.35), rgba(6, 10, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dt-coach-svg {
  width: 38px;
  height: 38px;
}

.dt-whistle-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--rojo-club);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
  line-height: 1.1;
}

.dt-coach-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.dt-coach-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ff6b74;
}

.dt-coach-name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-coach-tactic {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.1rem;
}

.dt-coach-tactic em {
  font-style: normal;
  font-weight: 700;
  color: var(--azul-claro);
}

.dt-staff-subrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.38rem;
}

.dt-staff-pill {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  background: rgba(7, 12, 26, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 0.32rem 0.42rem;
  color: var(--blanco);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
  min-width: 0;
}

.dt-staff-pill:hover,
.dt-staff-pill.active {
  background: rgba(29, 78, 216, 0.36);
  border-color: var(--azul-claro);
}

.dt-staff-tag {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(29, 78, 216, 0.45);
  border: 1px solid rgba(147, 197, 253, 0.6);
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dt-staff-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.dt-staff-txt strong {
  font-size: 0.7rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dt-staff-txt small {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 2. Cabina Techada del Banco de Suplentes (Dugout con Butacas de Estadio) */
.dugout-shelter-zone {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: linear-gradient(180deg, #0b132b 0%, #050915 100%);
  border: 1.5px solid rgba(148, 163, 184, 0.32);
  box-shadow: inset 0 12px 26px rgba(0, 0, 0, 0.7), 0 10px 24px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  min-width: 0;
}

.dugout-roof-canopy {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 2px solid rgba(96, 165, 250, 0.42);
}

.dugout-roof-stripes {
  height: 4px;
  background: linear-gradient(90deg, var(--rojo-club) 0%, var(--rojo-club) 50%, var(--azul-club) 50%, var(--azul-club) 100%);
}

.dugout-roof-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
}

.dugout-roof-title {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.dugout-roof-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.dugout-sub-hint {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.68);
}

.dugout-interior-seats {
  padding: 0.7rem 0.75rem 0.75rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.14), transparent 70%);
}

.tactica-bench-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(68px, 1fr));
  gap: 0.52rem;
}

/* Butaca individual de estadio */
.dugout-seat-unit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #162244 0%, #0b1124 78%, #070b18 100%);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-top: 3px solid var(--rojo-club);
  border-radius: 12px 12px 8px 8px;
  padding: 0.35rem 0.3rem 0.45rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.dugout-seat-unit.gk {
  border-top-color: #3b82f6;
}

.dugout-seat-unit:hover,
.dugout-seat-unit.active {
  transform: translateY(-4px);
  border-color: var(--azul-claro);
  background: linear-gradient(180deg, #1e3a8a 0%, #0f172a 85%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65), 0 0 0 2px rgba(96, 165, 250, 0.42);
}

.dugout-seat-unit.ready-to-enter {
  border-color: #fde047;
  box-shadow: 0 0 0 2.5px #fde047, 0 10px 24px rgba(250, 204, 21, 0.35);
}

.dugout-seat-backrest {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.1rem;
}

.dugout-seat-pos-pill {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.08rem 0.32rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--azul-claro);
}

.dugout-quick-sub-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.35);
  border: 1px solid rgba(147, 197, 253, 0.55);
  font-size: 0.62rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.18s ease, background 0.18s ease;
}

.dugout-quick-sub-btn:hover {
  background: var(--rojo-club);
  border-color: #ffffff;
  transform: rotate(90deg) scale(1.12);
}

.dugout-seat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.dugout-jersey-svg {
  width: 44px;
  height: 40px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.2s ease;
}

.dugout-seat-unit:hover .dugout-jersey-svg {
  transform: scale(1.08);
}

.dugout-player-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.dugout-player-status {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(255, 255, 255, 0.62);
}

.dugout-player-status .sub-out-lbl {
  font-style: normal;
  color: #fca5a5;
}

.dugout-seat-cushion {
  width: 82%;
  height: 4px;
  margin-top: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rojo-club), var(--azul-brillante));
  opacity: 0.75;
}

.btn-reset-cambios {
  background: rgba(225, 29, 42, 0.25);
  border: 1px solid rgba(225, 29, 42, 0.65);
  color: #fecaca;
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-reset-cambios:hover {
  background: var(--rojo);
  color: var(--blanco);
}

.tactica-inspector { background: linear-gradient(160deg, #111a36 0%, #080c1a 100%); border: 1px solid rgba(59, 130, 246, 0.28); border-radius: 14px; padding: 1.8rem; }
.insp-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.insp-dorsal { width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(135deg, var(--rojo-club), var(--azul-club)); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.9rem; color: var(--blanco); flex-shrink: 0; }
.insp-dorsal.is-dt-badge { font-size: 1.45rem; letter-spacing: 0.04em; border: 2px solid rgba(255, 255, 255, 0.8); }
.insp-name { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.insp-pos { font-family: var(--font-mono); font-size: 0.78rem; color: var(--azul-claro); text-transform: uppercase; }
.insp-bio-txt { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin-bottom: 0.8rem; }
.insp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.65rem; margin-top: 1rem; }
.insp-stat-box { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(59, 130, 246, 0.18); border-radius: 8px; padding: 0.75rem; text-align: center; }
.insp-stat-val { font-family: var(--font-display); font-size: 1.45rem; color: var(--blanco); }
.insp-stat-lbl { font-size: 0.7rem; color: rgba(255, 255, 255, 0.55); text-transform: uppercase; }
.insp-cambio-wrap {
  margin-top: 1.1rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
}
.insp-cambio-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--azul-claro);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.insp-cambio-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
.insp-cambio-select {
  flex: 1;
  min-width: 0;
  background: #060a18;
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 8px;
  color: var(--blanco);
  padding: 0.48rem 0.6rem;
  font-size: 0.8rem;
}
.btn-hacer-cambio {
  background: var(--rojo-club);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--blanco);
  border-radius: 8px;
  padding: 0.48rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn-hacer-cambio:hover {
  background: var(--azul-club);
}

.plantel-en-futbol { padding: 2rem 0 0; border-top: 1px solid rgba(59, 130, 246, 0.2); }
.plantel-header { max-width: var(--ancho-max); margin: 0 auto 2.5rem; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.5rem; }
.plantel-filtros { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filtro-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.75); padding: 0.55rem 1.1rem; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; cursor: pointer; }
.filtro-btn:hover, .filtro-btn.active { background: var(--azul-club); border-color: var(--azul-brillante); color: var(--blanco); }
.plantel-grid { max-width: var(--ancho-max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.5rem; }
.jugador-card { position: relative; aspect-ratio: 3 / 4; min-height: 310px; background: linear-gradient(160deg, #151d3b 0%, #090d1c 100%); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; }
.jugador-card:hover { transform: translateY(-5px); border-color: var(--rojo); }
.jugador-img { width: 100%; height: 100%; object-fit: cover; }
.jugador-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, rgba(217, 30, 43, 0.28), rgba(10, 12, 24, 0.96)); color: rgba(255, 255, 255, 0.2); font-family: var(--font-display); font-size: 4.5rem; }
.jugador-badge { position: absolute; top: 0.9rem; right: 0.9rem; width: 38px; height: 42px; background: var(--azul-club); color: var(--blanco); font-family: var(--font-display); font-size: 1.05rem; display: flex; align-items: center; justify-content: center; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); z-index: 2; }
.jugador-overlay { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1.2rem 1.15rem; background: linear-gradient(0deg, rgba(6, 9, 20, 0.96) 0%, rgba(6, 9, 20, 0.65) 60%, transparent 100%); z-index: 2; }
.jugador-num { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--rojo); }
.jugador-nombre { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.03em; color: var(--blanco); }
.jugador-pos { font-size: 0.8rem; color: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   6. SECCIÓN HISTORIA (#historia) — DISEÑO EDITORIAL EXACTO
   ========================================================================== */
#historia {
  position: relative;
  background-color: #f6f4ef;
  color: #0d1b3e;
  padding: 5.5rem var(--pad-lateral) 6.5rem;
  overflow: hidden;
}

#historia::after {
  content: "1978";
  position: absolute;
  right: -1vw;
  top: 48%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(14rem, 25vw, 24rem);
  line-height: 1;
  color: rgba(13, 32, 76, 0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.historia-layout {
  position: relative;
  z-index: 1;
  max-width: var(--ancho-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.92fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.historia-media {
  position: relative;
  padding-bottom: 2.5rem;
}

.hist-badge {
  position: absolute;
  top: 1.4rem;
  left: -1.1rem;
  z-index: 3;
  background: #c81d25;
  color: #ffffff;
  padding: 0.95rem 1.45rem;
  text-align: center;
  box-shadow: 0 12px 28px rgba(200, 29, 37, 0.35);
}

.hist-badge-year {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hist-badge-txt {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
}

.hist-img-main {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0;
  box-shadow: 0 20px 45px rgba(10, 15, 30, 0.14);
}

.hist-img-overlay {
  position: absolute;
  bottom: -1.5rem;
  right: -1.2rem;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 6px solid #f6f4ef;
  border-radius: 0;
  box-shadow: 0 16px 35px rgba(10, 15, 30, 0.2);
  z-index: 2;
}

.historia-texto {
  padding-top: 0.5rem;
}

#historia .sec-eyebrow {
  margin-bottom: 0.6rem;
}

#historia .sec-tag.rojo {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #c81d25;
}

#historia .section-h2.dark {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.04;
  color: #0b1f52;
  margin-bottom: 1.5rem;
}

#historia .section-h2.dark em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: #c81d25;
}

.historia-texto p {
  font-family: var(--font-sans);
  color: #4a5568;
  line-height: 1.72;
  margin-bottom: 1.15rem;
  font-size: 0.92rem;
}

.historia-texto p.lead {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.58;
  color: #0b2259;
  margin-bottom: 1.25rem;
}

.hist-hitos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: #e8e6e1;
  border: 1px solid #e8e6e1;
  margin-top: 2.2rem;
}

.hito {
  background-color: #ffffff;
  padding: 1.15rem 1.4rem;
  border-radius: 0;
  border: none;
}

.hito-year {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #0b2259;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.hito-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #5a6578;
  margin-top: 0.22rem;
}

/* ==========================================================================
   7. DEPORTES, RESTAURANTE Y NOTICIAS
   ========================================================================== */
#deportes { background: var(--azul-profundo); padding: 6rem var(--pad-lateral); position: relative; }
.deportes-head-wrap, .deporte-tabs, .deporte-panels { max-width: var(--ancho-max); margin-left: auto; margin-right: auto; }
.deporte-tabs { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 2rem auto 2.5rem; }
.tab-btn { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.78); padding: 0.7rem 1.35rem; font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.tab-btn.active, .tab-btn:hover { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.deporte-panel { display: none; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: start; }
.deporte-panel.active { display: grid; }
.panel-img-wrap { position: relative; border-radius: 8px; overflow: hidden; background: #060913; }
.panel-img { width: 100%; height: 100%; max-height: 480px; object-fit: cover; }
.panel-img-badge { position: absolute; bottom: 0; left: 0; background: var(--rojo); color: var(--blanco); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.05em; padding: 0.65rem 1.4rem; }
.panel-title { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: 0.03em; line-height: 1; margin-bottom: 1rem; }
.panel-desc { color: rgba(255, 255, 255, 0.78); margin-bottom: 1.6rem; font-size: 1rem; }
.panel-datos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 1.8rem; }
.panel-dato { background: var(--azul-panel); padding: 1.1rem 1.3rem; }
.pd-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.5); }
.pd-val { font-weight: 700; font-size: 1rem; color: var(--blanco); margin-top: 0.2rem; }

#restaurante { background: var(--crema); color: var(--texto-oscuro); padding: 6rem var(--pad-lateral); }
.restaurante-layout { max-width: var(--ancho-max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: center; }
.rest-img-side, .rest-content { width: 100%; }
.rest-img { width: 100%; border-radius: 10px; box-shadow: 0 22px 48px rgba(10, 15, 30, 0.2); object-fit: cover; }
.rest-content p { color: #394154; margin-bottom: 1rem; font-size: 1rem; }
.rest-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 1.6rem 0; }
.rest-feat { display: flex; align-items: center; gap: 0.85rem; background: var(--blanco); padding: 1rem 1.2rem; border-radius: 8px; border: 1px solid var(--borde-oscuro); }
.rfeat-ico { font-size: 1.6rem; }
.rfeat-t { font-weight: 700; font-size: 0.95rem; color: var(--texto-oscuro); }
.rfeat-d { font-size: 0.8rem; color: var(--texto-gris); }
.horarios-box { background: var(--azul-profundo); color: var(--blanco); padding: 1.5rem 1.8rem; border-radius: 10px; margin-top: 1.4rem; width: 100%; }
.horarios-box h4 { font-family: var(--font-display); letter-spacing: 0.06em; text-transform: uppercase; font-size: 1.05rem; color: var(--azul-claro); margin-bottom: 0.8rem; }
.hor-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 0.45rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); gap: 1rem; }
.hor-row:last-child { border-bottom: none; }

/* Botón Reservar una mesa: ocupa el 100% del ancho de .horarios-box */
.btn-reservar-mesa {
  display: flex;
  width: 100%;
  margin-top: 1.2rem;
  padding: 1.05rem 2rem;
  justify-content: center;
  text-align: center;
}

#noticias { background: var(--azul-profundo); padding: 6rem var(--pad-lateral); }
#noticias .sec-eyebrow, #noticias .section-h2, .news-grid { max-width: var(--ancho-max); margin-left: auto; margin-right: auto; }
.noticias-eyebrow-row { justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.news-sync-badge { font-family: var(--font-mono); font-size: 0.75rem; color: var(--azul-claro); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
.news-card { position: relative; min-height: 290px; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde-claro); background: #070b18; }
.news-card.big { grid-column: span 2; min-height: 360px; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-img { transform: scale(1.05); }
.news-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem; background: linear-gradient(0deg, rgba(6, 9, 20, 0.95) 0%, rgba(6, 9, 20, 0.45) 60%, transparent 100%); }
.news-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--rojo); margin-bottom: 0.35rem; }
.news-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; line-height: 1.22; color: var(--blanco); }
.news-card.big .news-title { font-size: 1.85rem; }
.news-lead-desc { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); margin-top: 0.35rem; }
.news-date { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.5rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem; }
.news-read-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(225, 29, 42, 0.28);
  border: 1px solid rgba(225, 29, 42, 0.65);
  color: var(--blanco);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.news-card:hover .news-read-pill {
  background: var(--rojo);
}

/* Modal Lector de Noticias (Sin publicidades externas) */
.noticia-modal-box {
  max-width: 880px !important;
  width: 95vw !important;
  max-height: 90vh !important;
  padding: 0 !important;
  background: #080d1e !important;
  border: 1px solid rgba(59, 130, 246, 0.35) !important;
  border-radius: 14px !important;
  overflow-y: auto !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.8);
}

.nreader-close {
  position: sticky !important;
  top: 1rem !important;
  float: right;
  margin: 1rem 1rem -3.2rem 0;
  z-index: 20;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  background: rgba(7, 11, 24, 0.85) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-size: 1.1rem;
}

.nreader-close:hover {
  background: var(--rojo) !important;
  border-color: var(--rojo) !important;
}

.nreader-hero {
  position: relative;
  width: 100%;
  height: 330px;
  background: #040711;
  overflow: hidden;
}

.nreader-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nreader-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 2.4rem 1.6rem;
  background: linear-gradient(
    0deg,
    #080d1e 0%,
    rgba(8, 13, 30, 0.78) 52%,
    rgba(8, 13, 30, 0.2) 100%
  );
}

.nreader-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.nreader-cat-badge {
  background: var(--rojo);
  color: var(--blanco);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.nreader-date-txt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--azul-claro);
}

.nreader-title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.16;
  color: var(--blanco);
}

.nreader-content-wrap {
  padding: 1.5rem 2.4rem 2.2rem;
}

.nreader-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.nreader-body p {
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  border-left: 2px solid rgba(59, 130, 246, 0.25);
}

.nreader-body p strong {
  color: var(--blanco);
}

.nreader-body h2,
.nreader-body h3,
.nreader-body h4 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--azul-claro);
  margin: 1.6rem 0 0.75rem;
}

.nreader-body ul,
.nreader-body ol {
  margin: 0 0 1.25rem 1.4rem;
  list-style: disc;
}

.nreader-body li {
  margin-bottom: 0.4rem;
}

.nreader-inline-icon {
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 4px 3px 2px;
}

.nreader-inline-photo,
.nreader-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 10px;
  margin: 1rem auto;
  background: #040711;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nreader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nreader-nav-btns {
  display: flex;
  gap: 0.6rem;
}

.nreader-source-credit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--azul-claro);
  padding: 0.4rem 0.85rem;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nreader-source-credit:hover {
  background: var(--azul-club);
  color: var(--blanco);
}

/* ==========================================================================
   8. GALERÍA: MODO MOSAICO (FOTO OCUPA TODO Y TEXTO SOBRE LA FOTO) VS POLAROID
   ========================================================================== */
#galeria { position: relative; background: var(--azul-noche); padding: 6rem var(--pad-lateral); border-top: 1px solid var(--borde-claro); }
.galeria-inner { max-width: var(--ancho-max); margin: 0 auto; position: relative; z-index: 2; }
.galeria-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.galeria-title-col { max-width: 680px; }
.galeria-sub { color: rgba(255, 255, 255, 0.74); font-size: 0.98rem; }
.galeria-cta-col { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.galeria-stats-bar { display: flex; align-items: center; gap: 1.2rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--borde-claro); padding: 0.85rem 1.4rem; border-radius: 12px; }
.gstat { text-align: center; }
.gstat-num { display: block; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--blanco); }
.gstat-lbl { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.08em; }
.gstat-sep { width: 1px; height: 28px; background: rgba(255, 255, 255, 0.14); }
.btn-subir-foto { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--rojo); color: var(--blanco); border: none; padding: 0.9rem 1.6rem; font-family: var(--font-display); font-size: 0.98rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.galeria-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--borde-claro); }
.galeria-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gcat-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.8); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.84rem; cursor: pointer; }
.gcat-btn.active, .gcat-btn:hover { background: var(--rojo); border-color: var(--rojo); color: var(--blanco); }
.gcat-count { background: rgba(0, 0, 0, 0.25); padding: 0.1rem 0.45rem; border-radius: 999px; font-size: 0.74rem; margin-left: 0.25rem; }
.galeria-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.galeria-sort-wrap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.7); }
.galeria-sort-wrap select { background: var(--azul-panel); color: var(--blanco); border: 1px solid rgba(255, 255, 255, 0.18); padding: 0.45rem 0.8rem; border-radius: 6px; }
.galeria-view-toggle { display: flex; background: rgba(255, 255, 255, 0.05); border-radius: 8px; padding: 0.2rem; }
.gview-btn { background: transparent; border: none; color: rgba(255, 255, 255, 0.7); padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 0.82rem; cursor: pointer; }
.gview-btn.active { background: var(--rojo); color: var(--blanco); }

/* Contenedor con flechas laterales para pasar páginas en Galería y Libro de Oro */
.carousel-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
}

.carousel-stage-wrap > .galeria-grid,
.carousel-stage-wrap > .relatos-grid {
  flex: 1;
  min-width: 0;
  width: 100%;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.carousel-stage-wrap > .galeria-grid.sliding-out,
.carousel-stage-wrap > .relatos-grid.sliding-out {
  opacity: 0;
  transform: translateX(calc(var(--slide-dir, 14px) * -0.8)) scale(0.99);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.carousel-stage-wrap > .galeria-grid.sliding-in,
.carousel-stage-wrap > .relatos-grid.sliding-in {
  opacity: 0;
  transform: translateX(var(--slide-dir, 14px)) scale(0.99);
  transition: none;
}

.section-slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(22, 33, 66, 0.95), rgba(10, 15, 32, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: var(--blanco);
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  z-index: 4;
  user-select: none;
}

.section-slider-arrow:hover:not(:disabled) {
  background: var(--rojo);
  border-color: var(--rojo);
  transform: scale(1.08);
}

.section-slider-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  box-shadow: none;
}

.section-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.8rem;
}

.spag-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spag-btn:hover:not(:disabled),
.spag-btn.active {
  background: var(--rojo);
  border-color: var(--rojo);
  color: var(--blanco);
}

.spag-btn.azul:hover:not(:disabled),
.spag-btn.azul.active {
  background: var(--azul-club);
  border-color: var(--azul-brillante);
  color: var(--blanco);
}

.spag-btn:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

.spag-info {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
  padding: 0 0.5rem;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}

/* VISTA MOSAICO: Sin superposición de filas ni de etiquetas internas */
.galeria-grid.vista-mosaico {
  grid-auto-rows: 295px;
}

.galeria-grid.vista-mosaico .gcard {
  position: relative;
  width: 100%;
  height: 295px;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--borde-claro);
  background: #050811;
  cursor: pointer;
  isolation: isolate;
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.galeria-grid.vista-mosaico .gcard:hover {
  transform: translateY(-4px);
  border-color: var(--rojo);
}

.galeria-grid.vista-mosaico .gcard-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.galeria-grid.vista-mosaico .gcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.galeria-grid.vista-mosaico .gcard:hover .gcard-media img {
  transform: scale(1.05);
}

.galeria-grid.vista-mosaico .gcard-top-badges {
  position: absolute;
  top: 0.55rem;
  left: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: flex;
  gap: 0.35rem;
  pointer-events: none;
}

.galeria-grid.vista-mosaico .gcard-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 2.1rem 0.75rem 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.12rem;
  overflow: hidden;
  background: linear-gradient(
    0deg,
    rgba(5, 8, 18, 0.88) 0%,
    rgba(5, 8, 18, 0.42) 34%,
    rgba(5, 8, 18, 0) 62%
  );
}

.galeria-grid.vista-mosaico .gcard-title {
  font-size: 1.08rem;
  line-height: 1.18;
  margin: 0;
}

.galeria-grid.vista-mosaico .gcard-story {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.28;
  margin: 0;
}

.galeria-grid.vista-mosaico .gcard-footer {
  padding-top: 0.18rem;
  margin-top: 0.08rem;
}

.galeria-grid.vista-mosaico .gcard-like-btn {
  padding: 0.18rem 0.52rem;
  font-size: 0.75rem;
}

/* VISTA POLAROID: Formato álbum clásico con marco claro y texto debajo */
.galeria-grid.vista-polaroid .gcard {
  background: #fdfbf7;
  color: var(--texto-oscuro);
  padding: 0.85rem 0.85rem 0.9rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.galeria-grid.vista-polaroid .gcard:hover {
  transform: translateY(-4px);
}

.galeria-grid.vista-polaroid .gcard-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #050811;
}

.galeria-grid.vista-polaroid .gcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.galeria-grid.vista-polaroid .gcard-top-badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.4rem;
}

.galeria-grid.vista-polaroid .gcard-body {
  padding: 0.65rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.15rem;
}

.galeria-grid.vista-polaroid .gcard-title,
.galeria-grid.vista-polaroid .gcard-author-name {
  color: var(--texto-oscuro);
}

.galeria-grid.vista-polaroid .gcard-story {
  color: var(--texto-gris);
}

.galeria-grid.vista-polaroid .gcard-like-btn {
  background: rgba(15, 20, 36, 0.08);
  color: var(--texto-oscuro);
  border-color: rgba(15, 20, 36, 0.18);
}

.gcard-cat {
  background: rgba(7, 11, 24, 0.82);
  backdrop-filter: blur(6px);
  color: var(--blanco);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
}

.gcard-title {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--blanco);
  margin: 0 0 0.12rem 0;
  line-height: 1.2;
}

.gcard-story {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.32;
  margin: 0 0 0.18rem 0;
}

.gcard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.22rem;
  margin-top: 0.08rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gcard-author-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.gcard-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--blanco);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
}

.gcard-like-btn.liked {
  background: rgba(211, 29, 42, 0.35);
  border-color: var(--rojo);
}

/* ==========================================================================
   9. LIBRO DE ORO, SOCIOS, CONTACTO, MODALES Y FOOTER
   ========================================================================== */
#relatos { background: linear-gradient(180deg, #080d1d 0%, #0d152c 100%); padding: 5.5rem var(--pad-lateral); color: var(--blanco); border-top: 1px solid rgba(59, 130, 246, 0.15); }
.relatos-inner { max-width: var(--ancho-max); margin: 0 auto; }
.relatos-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.relatos-sub { max-width: 680px; color: rgba(255, 255, 255, 0.74); margin-top: 0.7rem; }
.relatos-toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.relatos-cats { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.rcat-btn { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.82); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.84rem; cursor: pointer; }
.rcat-btn.active, .rcat-btn:hover { background: var(--azul-club); border-color: var(--azul-brillante); color: var(--blanco); }
.relatos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; align-items: stretch; }
.relato-card { position: relative; background: rgba(16, 25, 52, 0.7); border: 1px solid rgba(59, 130, 246, 0.2); border-radius: 16px; padding: 1.75rem 1.6rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; }
.relato-quote-mark { position: absolute; top: 0.8rem; right: 1.2rem; font-family: var(--font-serif); font-size: 4.5rem; line-height: 1; color: rgba(59, 130, 246, 0.2); pointer-events: none; }
.relato-badge-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.9rem; }
.relato-cat-pill { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; padding: 0.28rem 0.75rem; border-radius: 999px; background: rgba(217, 30, 43, 0.2); border: 1px solid rgba(217, 30, 43, 0.45); color: #ff99a0; }
.relato-epoca { font-size: 0.76rem; color: var(--azul-claro); }
.relato-titulo { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--blanco); margin-bottom: 0.7rem; }
.relato-texto { font-size: 0.95rem; line-height: 1.68; color: rgba(255, 255, 255, 0.84); margin: 0 0 1.4rem; white-space: pre-line; }
.relato-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.relato-autor-wrap { display: flex; align-items: center; gap: 0.7rem; }
.relato-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--rojo-club), var(--azul-club)); color: var(--blanco); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.82rem; }
.relato-autor-nombre { font-size: 0.88rem; font-weight: 600; color: var(--blanco); display: block; }
.relato-autor-rol { font-size: 0.75rem; color: rgba(255, 255, 255, 0.58); }

#socios { background: var(--azul-profundo); padding: 6rem var(--pad-lateral); border-top: 1px solid var(--borde-claro); }
.socios-inner { max-width: var(--ancho-max); margin: 0 auto; }
.socios-top { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.socios-top p { color: rgba(255, 255, 255, 0.72); }
.socio-unico-showcase { max-width: 1360px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 0.9fr; background: linear-gradient(155deg, #0f1834 0%, #090e1f 100%); border: 1px solid rgba(59, 130, 246, 0.35); border-radius: 20px; overflow: hidden; box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55); }
.socio-unico-info { padding: 3.2rem 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.socio-unico-badge { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; padding: 0.38rem 0.95rem; border-radius: 999px; background: rgba(217, 30, 43, 0.18); border: 1px solid rgba(217, 30, 43, 0.5); color: #ff8088; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.socio-unico-title { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.85rem); text-transform: uppercase; line-height: 1.05; color: var(--blanco); margin-bottom: 0.75rem; }
.socio-unico-desc { color: rgba(255, 255, 255, 0.76); font-size: 1rem; margin-bottom: 1.8rem; }
.socio-beneficios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; margin-bottom: 2.2rem; }
.sben-item { display: flex; align-items: flex-start; gap: 0.85rem; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(59, 130, 246, 0.18); border-radius: 12px; padding: 1.05rem 1.15rem; }
.sben-ico { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg, var(--rojo-club), var(--azul-club)); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.sben-title { font-weight: 700; font-size: 0.94rem; color: var(--blanco); line-height: 1.2; }
.sben-sub { font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.2rem; }
.socio-cta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.socio-unico-card-col { background: radial-gradient(circle at 20% 20%, rgba(217, 30, 43, 0.28), transparent 55%), radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.32), transparent 55%), #070c1a; border-left: 1px solid rgba(59, 130, 246, 0.22); padding: 3rem 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.carnet-mockup { width: 100%; max-width: 380px; aspect-ratio: 1.58 / 1; border-radius: 16px; padding: 1.35rem 1.5rem; background: linear-gradient(135deg, #d91e2b 0%, #8f101a 42%, #15358a 75%, #1d4ed8 100%); border: 1px solid rgba(255, 255, 255, 0.32); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; margin-bottom: 1.8rem; }
.carnet-top { display: flex; justify-content: space-between; align-items: center; }
.carnet-club-name { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; }
.carnet-club-name small { display: block; font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.8); }
.carnet-chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.15)); border: 1px solid rgba(255, 255, 255, 0.5); }
.carnet-label { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75); }
.carnet-holder { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.05em; color: var(--blanco); }
.carnet-bottom { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.9); }
.socio-pasos { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 0.7rem; }
.spaso-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.84rem; color: rgba(255, 255, 255, 0.82); }
.spaso-num { width: 24px; height: 24px; border-radius: 50%; background: var(--azul-club); border: 1px solid var(--azul-claro); color: var(--blanco); font-weight: 700; font-size: 0.74rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

#contacto { background: var(--azul-noche); padding: 6rem var(--pad-lateral); border-top: 1px solid var(--borde-claro); }
#contacto .sec-eyebrow, #contacto .section-h2, .contacto-grid { max-width: var(--ancho-max); margin-left: auto; margin-right: auto; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 4rem; margin-top: 2.2rem; align-items: start; }
.cinfo-item { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.4rem; }
.cinfo-icon { width: 46px; height: 46px; border-radius: 0; background: rgba(211, 29, 42, 0.16); border: 1px solid rgba(211, 29, 42, 0.42); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.ci-lbl { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.55); }
.ci-val { font-weight: 600; font-size: 1.02rem; color: var(--blanco); margin-top: 0.15rem; }
.contacto-redes-wrap { margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.social-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.soc-link { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.1rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 0; color: var(--blanco); font-family: var(--font-display); font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px)); }
.soc-link svg { color: var(--rojo); flex-shrink: 0; transition: color 0.2s ease; }
.soc-link:hover { background: var(--rojo-boton); border-color: var(--rojo-boton); transform: translateY(-2px); }
.soc-link:hover svg { color: var(--blanco); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.fgroup { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.05rem; }
.fgroup label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: rgba(255, 255, 255, 0.82); }
.fgroup input, .fgroup select, .fgroup textarea { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.18); border-left: 3px solid var(--rojo); border-radius: 0 !important; padding: 0.88rem 1rem; color: var(--blanco); outline: none; transition: border-color 0.2s ease, background 0.2s ease; }
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.45); border-left-color: var(--azul-brillante); }
.fgroup select option { background: var(--azul-profundo); color: var(--blanco); }

/* Modales, Preview de subida y Footer */
.gmodal-backdrop, .lightbox-backdrop { position: fixed; inset: 0; z-index: 3000; background: rgba(4, 7, 15, 0.88); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 1.2rem; overflow-y: auto; }
.gmodal-backdrop.open, .lightbox-backdrop.open { display: flex; }
.gmodal-box { position: relative; width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto; background: var(--azul-profundo); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 0; padding: 2.2rem; }
.gmodal-close, .lb-close { position: absolute; top: 1.1rem; right: 1.1rem; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: var(--blanco); cursor: pointer; }
.gmodal-title { font-family: var(--font-serif); font-size: 1.85rem; margin-bottom: 0.8rem; }
.gmodal-title em { color: var(--rojo); }
.dropzone-area { border: 2px dashed rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); padding: 1.6rem; text-align: center; cursor: pointer; margin-bottom: 1.2rem; }
.preview-multi-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.btn-limpiar-imgs { background: rgba(225, 29, 42, 0.2); border: 1px solid var(--rojo); color: var(--blanco); padding: 0.35rem 0.8rem; font-size: 0.78rem; cursor: pointer; }
.preview-multi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(85px, 1fr)); gap: 0.6rem; }
.preview-thumb-item { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); }
.preview-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.dni-field-wrap { display: flex; gap: 0.6rem; align-items: stretch; }
.dni-field-wrap input { flex: 1; }
.btn-verificar-dni { background: var(--azul-club); color: var(--blanco); border: none; padding: 0 1.3rem; font-weight: 600; cursor: pointer; }
.btn-toggle-pass { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--blanco); padding: 0 0.95rem; cursor: pointer; font-size: 1.05rem; }
.btn-toggle-pass:hover { background: rgba(255, 255, 255, 0.14); }

/* Panel de Administración y Moderación Ampliado */
.admin-modal-box {
  max-width: 1220px !important;
  width: 96vw !important;
  max-height: 92vh !important;
  padding: 2.2rem 2.4rem !important;
}

.admin-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  padding-right: 2.8rem;
}

.btn-logout-admin {
  background: rgba(225, 29, 42, 0.16);
  border: 1px solid rgba(225, 29, 42, 0.5);
  color: #fca5a5;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-logout-admin:hover {
  background: var(--rojo);
  color: var(--blanco);
}

.admin-sec-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(29, 78, 216, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.admin-sec-notice span {
  font-size: 1.4rem;
  line-height: 1;
}

.admin-sec-notice p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.admin-login-error {
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  background: rgba(225, 29, 42, 0.18);
  border-left: 3px solid var(--rojo);
  color: #fca5a5;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-tabs-bar {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-mod-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.admin-mod-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 1.75rem;
  background: linear-gradient(155deg, rgba(16, 25, 52, 0.85) 0%, rgba(9, 14, 30, 0.92) 100%);
  padding: 1.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  align-items: start;
}

.admin-mod-img-wrap {
  position: relative;
  width: 100%;
  height: 310px;
  background: #040711;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}

.admin-mod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.admin-mod-img-wrap:hover img {
  transform: scale(1.03);
}

.admin-mod-zoom-pill {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(7, 11, 24, 0.88);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--blanco);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  pointer-events: none;
}

.admin-mod-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  gap: 1rem;
}

.admin-mod-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.admin-mod-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.admin-mod-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.42);
  color: var(--azul-claro);
}

.admin-mod-story-box {
  background: rgba(4, 7, 17, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--azul-brillante);
  padding: 1.1rem 1.3rem;
  border-radius: 6px;
  font-size: 1.04rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
  white-space: pre-line;
  margin-bottom: 0.6rem;
}

.admin-mod-meta {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-mod-approve,
.btn-mod-reject,
.btn-mod-zoom,
.btn-mod-edit,
.btn-mod-save,
.btn-mod-cancel {
  padding: 0.75rem 1.4rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-mod-approve {
  background: #059669;
  color: var(--blanco);
}

.btn-mod-reject {
  background: #d91e2b;
  color: var(--blanco);
}

.btn-mod-edit {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: #fde68a;
}

.btn-mod-save {
  background: var(--azul-club);
  border: 1px solid var(--azul-brillante);
  color: var(--blanco);
}

.btn-mod-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
}

.btn-mod-zoom {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--blanco);
}

.btn-mod-approve:hover,
.btn-mod-reject:hover,
.btn-mod-zoom:hover,
.btn-mod-edit:hover,
.btn-mod-save:hover,
.btn-mod-cancel:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.admin-edit-box {
  background: rgba(5, 9, 22, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 0.6rem;
}

.admin-edit-header {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fde68a;
  margin-bottom: 0.9rem;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.admin-edit-box .fgroup {
  margin-bottom: 0.65rem;
}

.admin-edit-box .fgroup input,
.admin-edit-box .fgroup select,
.admin-edit-box .fgroup textarea {
  padding: 0.68rem 0.85rem;
  font-size: 0.92rem;
}

.admin-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.5rem;
}

.admin-aprob-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.admin-aprob-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-mod-relato-card {
  background: linear-gradient(155deg, rgba(16, 25, 52, 0.85) 0%, rgba(9, 14, 30, 0.92) 100%);
  padding: 1.75rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
}
.lb-container { max-width: 1150px; width: 100%; background: var(--azul-profundo); border: 1px solid rgba(255, 255, 255, 0.15); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; }
.lb-media-col { background: #04060d; display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 0.75rem; }
.lb-media-col img { max-height: 78vh; max-width: 100%; width: auto; object-fit: contain; display: block; transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.lb-media-col img.lb-fading { opacity: 0; transform: scale(0.985); }
.lb-info-col { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--blanco); font-size: 1.6rem; cursor: pointer; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.galeria-toast { position: fixed; bottom: 1.8rem; right: 1.8rem; z-index: 3500; background: #111933; border-left: 4px solid var(--rojo); color: var(--blanco); padding: 1rem 1.4rem; box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5); transform: translateY(140%); opacity: 0; transition: all 0.3s ease; }
.galeria-toast.show { transform: translateY(0); opacity: 1; }

/* Buscador de Galería (Personas, título, autor) */
.galeria-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.galeria-search-wrap input {
  background: var(--azul-panel);
  color: var(--blanco);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 0.46rem 1rem;
  font-size: 0.84rem;
  min-width: 245px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.galeria-search-wrap input:focus {
  border-color: var(--azul-brillante);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22);
}

.galeria-search-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

/* Indicador de carga progresiva en tarjeta de galería */
.gcard.img-pending .gcard-img {
  filter: blur(4px);
  opacity: 0.8;
}

/* Etiquetas de personas en tarjetas de galería */
.gcard-people-tags {
  font-size: 0.76rem;
  font-weight: 600;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.22rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.galeria-grid.vista-polaroid .gcard-people-tags {
  background: rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.28);
  color: #1e40af;
}

.gcard-tag-count {
  background: rgba(37, 99, 235, 0.85);
  backdrop-filter: blur(6px);
  color: var(--blanco);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}

/* Carrusel rotativo de fotos seleccionadas en Deportes */
.deporte-carousel-stage {
  position: relative;
  width: 100%;
  height: 440px;
  min-height: 360px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050914;
  border: 1px solid rgba(59, 130, 246, 0.28);
  overflow: hidden;
}

.deporte-slides-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.deporte-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  opacity: 0;
  transform: scale(1.045);
  pointer-events: none;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.deporte-slide-img.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.deporte-carousel-stage:hover .deporte-slide-img.active {
  transform: scale(1.02);
}

.deporte-slide-top-pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  background: rgba(7, 11, 24, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: var(--blanco);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
}

.deporte-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(7, 11, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--blanco);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.deporte-slide-arrow.prev { left: 0.75rem; }
.deporte-slide-arrow.next { right: 0.75rem; }

.deporte-slide-arrow:hover {
  background: var(--rojo);
  border-color: var(--rojo);
  transform: translateY(-50%) scale(1.08);
}

.deporte-slide-dots {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 5;
  display: flex;
  gap: 0.38rem;
  background: rgba(7, 11, 24, 0.68);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.deporte-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.deporte-dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--rojo);
}

.deporte-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 2.2rem 1.25rem 0.85rem;
  background: linear-gradient(0deg, rgba(4, 7, 17, 0.94) 0%, rgba(4, 7, 17, 0.62) 65%, transparent 100%);
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.deporte-slide-caption.caption-fading {
  opacity: 0;
  transform: translateY(4px);
}

.deporte-slide-caption strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--blanco);
}

.deporte-slide-caption span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.78);
}

.deporte-slide-tags {
  color: #93c5fd !important;
  font-weight: 600;
}

.deporte-carousel-stage .panel-img-badge {
  top: auto;
  bottom: 0;
  right: 0;
  left: auto;
  z-index: 4;
  font-size: 0.78rem;
  padding: 0.42rem 0.95rem;
}

/* Etiquetado de personas en modal de subida y pines sobre la foto */
.tag-input-row {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
}

.tag-input-row input {
  flex: 1;
}

.btn-add-tag {
  background: var(--azul-club);
  border: 1px solid var(--azul-brillante);
  color: var(--blanco);
  padding: 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-add-tag:hover {
  background: var(--rojo);
  border-color: var(--rojo);
}

.tag-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.tag-person-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: var(--blanco);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag-person-chip button {
  background: transparent;
  border: none;
  color: #fca5a5;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0 0.15rem;
  line-height: 1;
}

.taggable-thumb {
  cursor: crosshair;
}

.photo-tag-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(7, 11, 24, 0.9);
  border: 1.5px solid #60a5fa;
  color: var(--blanco);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

.photo-tag-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border-width: 5px 4px 0 4px;
  border-style: solid;
  border-color: #60a5fa transparent transparent transparent;
}

/* Panel Admin: Etiquetas de personas y selector de carrusel Deportes */
.badge-deporte {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: rgba(16, 185, 129, 0.55) !important;
  color: #6ee7b7 !important;
}

.admin-aprob-deporte-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.admin-tags-preview-box {
  background: rgba(29, 78, 216, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.6rem;
  font-size: 0.84rem;
}

.admin-tags-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.admin-deporte-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 8px;
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.6rem;
  font-size: 0.84rem;
  color: #d1fae5;
}

.admin-deporte-quick-row select {
  background: #071024;
  color: var(--blanco);
  border: 1px solid rgba(16, 185, 129, 0.55);
  padding: 0.42rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

/* Ficha Forense de Rastreo del Remitente y Botón de Bloqueo */
.admin-forense-box {
  background: rgba(8, 13, 29, 0.85);
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-left: 3px solid #3b82f6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.55rem;
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.88);
}

.admin-forense-box.is-blocked {
  border-color: rgba(239, 68, 68, 0.65);
  border-left-color: #ef4444;
  background: rgba(45, 10, 18, 0.65);
}

.admin-forense-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-forense-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.admin-forense-alert {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #fde68a;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.admin-forense-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem 1rem;
  line-height: 1.45;
}

.admin-forense-grid code {
  background: rgba(37, 99, 235, 0.25);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #bfdbfe;
}

.btn-block-sender {
  background: rgba(225, 29, 42, 0.22);
  border: 1px solid rgba(225, 29, 42, 0.6);
  color: #fca5a5;
  padding: 0.26rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-block-sender:hover {
  background: var(--rojo);
  color: var(--blanco);
}

.btn-block-sender.unblock {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  color: #6ee7b7;
}

.admin-tags-edit-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.admin-tag-edit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-tag-edit-item input {
  flex: 1;
  padding: 0.45rem 0.7rem !important;
  font-size: 0.86rem !important;
}

.admin-pin-coord {
  font-size: 0.75rem;
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.btn-remove-tag-admin {
  background: rgba(225, 29, 42, 0.2);
  border: 1px solid rgba(225, 29, 42, 0.5);
  color: #fca5a5;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  font-size: 0.8rem;
}

/* Lightbox: Pines interactivos sobre la imagen y lista de etiquetados */
.lb-img-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.lb-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lb-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background: rgba(7, 11, 24, 0.92);
  border: 1.5px solid #60a5fa;
  color: var(--blanco);
  padding: 0.24rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.lb-pin.pin-highlight {
  background: var(--rojo);
  border-color: var(--blanco);
  transform: translate(-50%, -110%) scale(1.14);
  z-index: 10;
}

.lb-tags-wrap {
  margin-top: 1.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lb-tags-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 0.5rem;
}

.lb-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.lb-person-pill {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: var(--blanco);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lb-person-pill:hover {
  background: var(--azul-club);
}

footer { background: #040711; border-top: 1px solid var(--borde-claro); padding: 3rem var(--pad-lateral); }
.footer-inner { max-width: var(--ancho-max); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.85rem; }
.footer-brand-txt { font-family: var(--font-display); letter-spacing: 0.04em; line-height: 1.15; }
.footer-brand-txt small { display: block; font-family: var(--font-sans); font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); }
.footer-copy { width: 100%; text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   9B. BOTONES PARA LIMPIAR FILTROS Y ETIQUETADO INTERACTIVO ESTILO FACEBOOK
   ========================================================================== */
.galeria-search-clear-x {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.28);
  border: 1px solid rgba(225, 29, 42, 0.65);
  color: var(--blanco);
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.galeria-search-clear-x:hover {
  background: var(--rojo);
  transform: translateY(-50%) scale(1.08);
}

.galeria-search-wrap input {
  padding-right: 2.5rem;
}

.btn-limpiar-filtros {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-limpiar-filtros:hover,
.btn-limpiar-filtros.has-active-filters {
  background: rgba(225, 29, 42, 0.22);
  border-color: rgba(225, 29, 42, 0.75);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(225, 29, 42, 0.28);
}

.btn-limpiar-filtros.has-active-filters:hover {
  background: var(--rojo);
  border-color: var(--rojo);
}

.galeria-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.8rem 1.5rem;
  background: rgba(11, 17, 36, 0.65);
  border: 1px dashed rgba(96, 165, 250, 0.35);
  border-radius: 14px;
}

.galeria-empty-state p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.btn-empty-clear {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: var(--rojo);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--blanco);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
}

/* Escenario de etiquetado estilo Facebook en subida de fotos */
.fb-upload-tagger-wrap {
  margin: 0.8rem 0 1.25rem;
}

.fb-upload-stage-outer {
  background: #060a17;
  border: 1.5px solid rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
}

.fb-upload-stage-hint {
  font-size: 0.82rem;
  color: #bfdbfe;
  background: rgba(29, 78, 216, 0.22);
  border: 1px solid rgba(59, 130, 246, 0.4);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  text-align: center;
}

.fb-upload-stage-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.fb-upload-stage-canvas {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: crosshair;
  border-radius: 8px;
  overflow: visible;
  user-select: none;
}

.fb-upload-stage-img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}

.fb-upload-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.preview-thumb-item.active-thumb {
  border: 2.5px solid #60a5fa;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.preview-thumb-tag-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(29, 78, 216, 0.92);
  border: 1px solid #93c5fd;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.38rem;
  border-radius: 999px;
}

/* Capa flotante de etiqueta estilo Facebook (Recuadro + Popover en el clic) */
.fb-tag-active-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}

.fb-tag-target-box {
  position: absolute;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border: 2.5px solid #ffffff;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.95), 0 8px 24px rgba(0, 0, 0, 0.75);
  background: rgba(59, 130, 246, 0.12);
  pointer-events: none;
  animation: fbTargetPulse 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.fb-tag-target-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 1.5px solid #ffffff;
  transform: translate(-50%, -50%);
}

@keyframes fbTargetPulse {
  from {
    transform: translate(-50%, -50%) scale(0.65);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.fb-upload-tags-summary {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fb-upload-tags-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
}

.fb-upload-tags-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip-edit-name {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.fb-tag-popover {
  position: absolute;
  transform: translateX(-50%);
  width: min(265px, 84vw);
  background: #0b132b;
  border: 1.5px solid #60a5fa;
  border-radius: 12px;
  padding: 0.7rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.88);
  pointer-events: auto;
  z-index: 45;
  text-align: left;
}

.fb-tag-popover.pop-above {
  transform: translateX(-50%);
}

.fb-tag-pop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 0.45rem;
}

.fb-tag-pop-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
}

.fb-tag-pop-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.fb-tag-pop-input {
  flex: 1;
  min-width: 0;
  background: #060a18 !important;
  border: 1px solid rgba(96, 165, 250, 0.55) !important;
  border-radius: 7px !important;
  color: #ffffff !important;
  padding: 0.45rem 0.65rem !important;
  font-size: 0.84rem !important;
}

.fb-tag-pop-save {
  background: var(--azul-club);
  border: 1px solid #60a5fa;
  color: #ffffff;
  border-radius: 7px;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.fb-tag-pop-save:hover {
  background: var(--rojo);
  border-color: var(--rojo);
}

.fb-tag-pop-delete {
  background: rgba(225, 29, 42, 0.22);
  border: 1px solid rgba(225, 29, 42, 0.65);
  color: #fca5a5;
  border-radius: 7px;
  padding: 0.42rem 0.52rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.fb-tag-pop-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
  max-height: 92px;
  overflow-y: auto;
}

.fb-tag-sugg-pill {
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.fb-tag-sugg-pill:hover {
  background: var(--azul-club);
  color: #ffffff;
}

/* Pines interactivos y controles de etiquetado en Lightbox */
.photo-tag-pin.interactive-pin {
  pointer-events: auto;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding-right: 0.32rem;
}

.photo-tag-pin.pin-edge-left {
  transform: translate(-12%, -100%);
}

.photo-tag-pin.pin-edge-right {
  transform: translate(-88%, -100%);
}

.photo-tag-pin.pin-edge-bottom {
  transform: translate(-50%, 16%);
}

.pin-remove-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.85);
  border: none;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.lb-container {
  overflow: visible;
}

.lb-media-col {
  position: relative;
  overflow: visible;
}

.lb-img-stage {
  cursor: crosshair;
  overflow: visible;
}

.lb-img-stage.fb-tagging-mode img {
  outline: 2px dashed #60a5fa;
  outline-offset: 3px;
}

.lb-tag-mode-banner {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(11, 19, 43, 0.94);
  border: 1px solid #60a5fa;
  color: #ffffff;
  padding: 0.38rem 0.6rem 0.38rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65);
  pointer-events: auto;
}

.lb-tag-mode-banner button {
  background: var(--azul-club);
  border: 1px solid #93c5fd;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.16rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.lb-tag-actions-bar {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn-fb-tag-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.62rem 1rem;
  border-radius: 8px;
  background: rgba(29, 78, 216, 0.26);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fb-tag-photo:hover,
.btn-fb-tag-photo.active {
  background: var(--rojo);
  border-color: var(--blanco);
}

.lb-tag-subhint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
}

.lb-person-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.lb-person-pill-del {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(225, 29, 42, 0.28);
  border: 1px solid rgba(225, 29, 42, 0.65);
  color: #fca5a5;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Alternar visibilidad de etiquetas en la foto (Mostrar / Ocultar) */
.lb-pins-layer.pins-hidden .photo-tag-pin {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lb-pins-layer.pins-hidden .photo-tag-pin.pin-highlight {
  opacity: 1;
}

.lb-floating-toggle-pins {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 26;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(6, 10, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(96, 165, 250, 0.55);
  color: #ffffff;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  transition: all 0.2s ease;
}

.lb-floating-toggle-pins:hover {
  background: var(--azul-club);
  border-color: #ffffff;
}

.lb-floating-toggle-pins.pins-are-hidden {
  background: rgba(29, 78, 216, 0.9);
  border-color: #93c5fd;
}

.lb-actions-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn-fb-toggle-pins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.54rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #dbeafe;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fb-toggle-pins:hover {
  background: rgba(29, 78, 216, 0.32);
  border-color: #60a5fa;
  color: #ffffff;
}

.lb-tags-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.lb-tags-header-row .lb-tags-label {
  margin-bottom: 0;
}

.lb-tags-inline-toggle {
  background: rgba(29, 78, 216, 0.25);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93c5fd;
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lb-tags-inline-toggle:hover {
  background: var(--azul-club);
  color: #ffffff;
}

/* Botón de instalación PWA en el Footer */
.btn-instalar-pwa {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: rgba(37, 99, 235, 0.22) !important;
  border: 1px solid rgba(59, 130, 246, 0.55) !important;
  color: #ffffff !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: 999px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease;
}

.btn-instalar-pwa:hover {
  background: rgba(37, 99, 235, 0.45) !important;
  border-color: rgba(96, 165, 250, 0.8) !important;
  color: #ffffff !important;
}

.btn-instalar-pwa img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
}

/* ==========================================================================
   10. ADAPTACIÓN RESPONSIVE MULTI-DISPOSITIVO (MONITORES, NOTEBOOKS, TABLETS Y CELULARES)
   ========================================================================== */

/* Pantallas Ultra-Wide y Monitores Grandes (1600px+) */
@media (min-width: 1600px) {
  :root {
    --ancho-max: 1660px;
  }
  .galeria-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Notebooks compactas y pantallas medianas-grandes (<= 1460px) */
@media (max-width: 1460px) {
  .ncw-tag {
    display: none;
  }
  .nav-links {
    gap: 0.38rem;
  }
  .nav-links a {
    font-size: 0.71rem;
    padding: 0.38rem 0.5rem;
  }
  .nav-nombre {
    font-size: 1rem;
  }
  .nav-nombre small {
    font-size: 0.58rem;
  }
  .nav-escudo {
    width: 40px;
    height: 40px;
  }
  .historia-layout,
  .restaurante-layout,
  .deporte-panel.active {
    gap: 2.6rem;
  }
}

/* Notebooks chicas, Tablets y pantallas medianas (<= 1200px) */
@media (max-width: 1200px) {
  .nav-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }
  .nav-centenario-widget {
    margin-left: auto;
    margin-right: 0.35rem;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 84vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(7, 11, 24, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 5rem 1.8rem 2.5rem;
    gap: 1rem;
    overflow-y: auto;
    transition: right 0.35s ease;
    z-index: 1001;
    box-shadow: -14px 0 40px rgba(0, 0, 0, 0.7);
  }
  .nav-links.nav-open {
    right: 0;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.45rem 0;
    font-size: 0.92rem;
  }
  .fhub-main-grid,
  .tactica-layout,
  .socio-unico-showcase,
  .historia-layout,
  .deporte-panel.active,
  .restaurante-layout,
  .contacto-grid,
  .lb-container,
  .news-grid,
  .admin-mod-card {
    grid-template-columns: 1fr;
  }
  .relatos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* En tablets y pantallas táctiles medianas, la galería se puede deslizar horizontalmente con el dedo */
  .galeria-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.15rem;
    padding-bottom: 0.65rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(255, 255, 255, 0.06);
  }
  .galeria-grid .gcard {
    flex: 0 0 46%;
    max-width: 46%;
    scroll-snap-align: start;
  }
  .galeria-grid .galeria-empty-state {
    flex: 1 1 100%;
  }
  .news-card.big {
    grid-column: span 1;
  }
  .socio-unico-card-col {
    border-left: none;
    border-top: 1px solid rgba(59, 130, 246, 0.22);
  }
  .hist-badge {
    left: 0.75rem;
  }
  .hist-img-overlay {
    right: 0.5rem;
    bottom: -1rem;
  }
  .lb-container {
    max-height: 92vh;
    overflow-y: auto;
    padding: 1rem;
  }
  .lb-img-wrap img {
    max-height: 58vh;
  }
}

/* Celulares estándar y Tablets verticales (<= 768px) */
@media (max-width: 768px) {
  :root {
    --pad-lateral: 1.15rem;
  }

  #mainNav,
  #mainNav.nav-scrolled,
  body.vista-futbol-activa #mainNav {
    height: 64px;
    padding: 0 0.85rem;
    gap: 0.45rem;
  }

  #mainNav .nav-brand {
    gap: 0.45rem;
    min-width: 0;
  }

  .nav-escudo {
    width: 34px;
    height: 34px;
  }

  .nav-nombre {
    font-size: 0.88rem;
    letter-spacing: 0.02em;
  }

  .nav-nombre small {
    display: none;
  }

  .nav-centenario-widget {
    padding: 0.28rem 0.58rem;
    gap: 0.3rem;
    margin-left: auto;
    margin-right: 0.15rem;
  }

  .ncw-time {
    font-size: 0.74rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  /* Popup Centenario en celulares: conserva el mismo diseño de PC pero se ubica arriba del texto sin taparlo */
  #centenarioSplash {
    padding: 0.85rem 1rem 2rem;
    justify-content: flex-start;
  }

  .splash-close-top {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    margin-bottom: 0.65rem;
    flex-shrink: 0;
  }

  .cent-container {
    margin-top: 0.25rem;
  }

  .cent-pill {
    font-size: 0.68rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
  }

  .cent-title {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
    margin-bottom: 0.55rem;
  }

  .cent-sub {
    font-size: 0.88rem;
    margin-bottom: 1.15rem;
    line-height: 1.45;
  }

  .cent-timer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.15rem;
  }

  .cent-box {
    padding: 0.75rem 0.35rem 0.65rem;
    border-radius: 12px;
  }

  .cent-num {
    font-size: clamp(1.35rem, 5.5vw, 1.9rem);
  }

  .cent-lbl {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
  }

  .cent-progress-wrap {
    padding: 0.75rem 0.9rem;
    margin-bottom: 1.2rem;
  }

  .cent-progress-labels {
    font-size: 0.72rem;
  }

  .cent-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .cent-actions .btn-rojo,
  .cent-actions .btn-entrar-sitio {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 6.2rem 1.15rem 2.8rem;
  }

  .hero-h1 {
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

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

  .hero-btns .btn-rojo,
  .hero-btns .btn-ghost {
    width: 100%;
  }

  .hero-stats {
    position: relative;
    right: auto;
    bottom: auto;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-top: 2rem;
    padding-right: 0;
    padding-top: 1.2rem;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .stat-num {
    font-size: 2rem;
  }

  .hero-scroll {
    display: none;
  }

  /* Secciones Generales */
  #historia,
  #deportes,
  #restaurante,
  #noticias,
  #galeria,
  #relatos,
  #socios,
  #contacto {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .socio-beneficios-grid,
  .form-row,
  .admin-edit-grid,
  .rest-feats,
  .hist-hitos,
  .social-links,
  .relatos-grid,
  .admin-forense-grid {
    grid-template-columns: 1fr;
  }

  /* En celulares, cada foto de la galería ocupa el 85% del ancho permitiendo deslizar con el dedo y ver asomar la siguiente */
  .galeria-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.9rem;
    padding-bottom: 0.55rem;
  }
  .galeria-grid .gcard {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }

  .sideline-zones-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }
  .dugout-roof-sub-hint {
    display: none;
  }
  .tactica-bench-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
  }
  .dugout-seat-unit {
    flex: 0 0 74px;
  }
  .led-sub-board {
    min-width: 240px;
    padding: 0.45rem 0.65rem;
  }

  .galeria-toolbar,
  .relatos-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .galeria-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .galeria-search-wrap {
    width: 100%;
    max-width: none;
  }

  .galeria-view-switch {
    width: 100%;
    justify-content: center;
  }

  .galeria-view-btn {
    flex: 1;
    justify-content: center;
  }

  .btn-limpiar-filtros {
    width: 100%;
  }

  .galeria-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .gfilter-btn {
    flex-shrink: 0;
  }

  /* Apartado Fútbol en móvil */
  #apartado-futbol {
    padding: 5.2rem 1rem 3.5rem;
  }

  .fdo-mc-body,
  .fdo-table-card,
  .tactica-section {
    padding: 1.25rem 1rem;
  }

  .fdo-versus-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
  }

  .fdo-escudo-box {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    padding: 0.45rem;
  }

  .fdo-team-name {
    font-size: 1rem;
  }

  .fdo-vs-box {
    font-size: 1.2rem;
    padding: 0.4rem 0.7rem;
  }

  .fdo-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cancha-pitch {
    min-height: 290px;
    aspect-ratio: 4 / 3;
  }

  .pitch-shirt {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .pitch-pname {
    font-size: 0.62rem;
    padding: 1px 5px;
  }

  .plantel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .jugador-card {
    min-height: 230px;
  }

  .jugador-nombre {
    font-size: 1.05rem;
  }

  /* Carruseles y Modales */
  .carousel-stage-wrap {
    gap: 0.35rem;
  }

  .section-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .upload-modal-box {
    padding: 1.35rem 1.1rem;
    max-height: 92dvh;
  }

  .nreader-hero {
    height: 230px;
  }

  .nreader-hero-overlay,
  .nreader-content-wrap {
    padding: 1.2rem;
  }
}

/* Celulares pequeños / compactos (<= 480px y 360px) */
@media (max-width: 480px) {
  .nav-escudo {
    width: 28px;
    height: 28px;
  }

  .nav-nombre {
    font-size: 0.78rem;
  }

  .nav-centenario-widget {
    padding: 0.22rem 0.46rem;
    gap: 0.22rem;
  }

  .ncw-time {
    font-size: 0.68rem;
  }

  .fdo-versus-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .panel-datos {
    grid-template-columns: 1fr;
  }

  .hor-row {
    flex-direction: column;
    gap: 0.15rem;
  }

  .lb-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }

  .lb-prev {
    left: 0.4rem;
  }

  .lb-next {
    right: 0.4rem;
  }
}

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

  .cent-timer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

/* Modo horizontal en celulares (Landscape Mobile) */
@media (max-height: 540px) and (orientation: landscape) {
  #centenarioSplash {
    justify-content: flex-start;
    padding: 0.6rem 1.2rem 1.4rem;
  }

  .cent-title {
    font-size: 1.65rem;
  }

  .cent-sub {
    margin-bottom: 0.75rem;
    font-size: 0.84rem;
  }

  .cent-timer-grid {
    grid-template-columns: repeat(4, minmax(75px, 130px));
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .cent-box {
    padding: 0.5rem 0.4rem;
  }

  .cent-num {
    font-size: 1.4rem;
  }
}