/* ==========================================================================
   PORTAL OFICIAL - CLUB DEPORTIVO SENIORS RINCONADA DE MAIPÚ (1923)
   Estética Premium Fútbol Centenario • 100% Adaptable Celulares y PC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,800&family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --rinconada-space: #020617;
  --rinconada-navy-dark: #070e28;
  --rinconada-navy-card: rgba(10, 20, 52, 0.85);
  --rinconada-navy-hover: rgba(18, 35, 86, 0.95);
  
  --rinconada-blue: #1e40af;
  --rinconada-cyan: #00d2ff;
  --rinconada-gold: #fbbf24;
  --rinconada-gold-glow: rgba(251, 191, 36, 0.35);
  --rinconada-silver: #f1f5f9;
  --rinconada-silver-dim: #94a3b8;
  --rinconada-danger: #ef4444;
  --rinconada-success: #10b981;

  --border-glass: rgba(255, 255, 255, 0.12);
  --border-gold: rgba(251, 191, 36, 0.4);
  --border-cyan: rgba(0, 210, 255, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-main: 0 15px 35px -5px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 210, 255, 0.1);
  --shadow-gold: 0 0 35px rgba(251, 191, 36, 0.4);
  --shadow-cyan: 0 0 30px rgba(0, 210, 255, 0.3);

  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-sport: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--rinconada-space);
  color: var(--rinconada-silver);
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 64, 175, 0.5) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(0, 210, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(251, 191, 36, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #030712 0%, #050b22 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* ==========================================================================
   NAVBAR SUPERIOR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  background: rgba(4, 9, 28, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 100;
  padding: 0.75rem 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}

.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rinconada-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

.nav-brand-text {
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

.nav-btn-fixture {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(0, 210, 255, 0.12);
  color: var(--rinconada-cyan) !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-cyan);
  transition: all 0.25s ease;
}

.nav-btn-fixture:hover {
  background: var(--rinconada-cyan);
  color: #020617 !important;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
  transform: translateY(-2px);
}

.nav-btn-tabla {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #000 !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
}

.nav-btn-tabla:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}

/* ==========================================================================
   HERO SECTION CENTENARIO CON ESCUDO OFICIAL
   ========================================================================== */
.hero-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem 1.5rem;
  text-align: center;
}

.hero-shield-wrapper {
  display: inline-block;
  position: relative;
  margin-bottom: 1.5rem;
}

.hero-shield-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--rinconada-gold);
  box-shadow: var(--shadow-gold), 0 0 60px rgba(0, 210, 255, 0.3);
  margin: 0 auto;
  transition: transform 0.3s ease;
  background: #081238;
}

.hero-shield-img:hover {
  transform: scale(1.05);
}

.centenario-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.25rem;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  color: var(--rinconada-gold);
  font-family: var(--font-sport);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.2);
}

.hero-title {
  font-family: var(--font-sport);
  font-size: 2.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #dbeafe 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--rinconada-silver-dim);
  max-width: 720px;
  margin: 0 auto 2rem auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-fixture {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0284c7 0%, #00d2ff 100%);
  color: #020617;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.5);
  transition: all 0.25s ease;
  border: 1px solid #7dd3fc;
}

.btn-hero-fixture:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(0, 210, 255, 0.8);
  color: #000;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #000;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
  transition: all 0.25s ease;
  border: 1px solid var(--border-gold);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.7);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-glass);
  transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   SECCIÓN DE FIXTURE OFICIAL DESTACADO
   ========================================================================== */
.fixture-section {
  max-width: 1200px;
  margin: 1.5rem auto 3.5rem auto;
  padding: 0 1.25rem;
}

.fixture-card {
  background: linear-gradient(180deg, rgba(8, 20, 56, 0.95) 0%, rgba(3, 8, 26, 0.98) 100%);
  border: 1.5px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 210, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.fixture-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.fixture-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--rinconada-cyan);
  font-family: var(--font-sport);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid var(--border-cyan);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.fixture-header-left h2 {
  font-family: var(--font-sport);
  font-size: 1.85rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
}

.fixture-header-left p {
  color: var(--rinconada-silver-dim);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  max-width: 650px;
}

.btn-fixture-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--rinconada-silver);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-fixture-admin:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--rinconada-gold);
  color: var(--rinconada-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

/* CAJA INTERACTIVA DEL FIXTURE */
.fixture-interactive-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  background: #020617;
  transition: all 0.3s ease;
}

.fixture-interactive-box:hover {
  border-color: var(--rinconada-cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.4);
}

.fixture-img-main {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  background: radial-gradient(circle, #081238 0%, #020617 100%);
}

.fixture-interactive-box:hover .fixture-img-main {
  transform: scale(1.008);
}

.fixture-overlay-hint {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.fixture-interactive-box:hover .fixture-overlay-hint {
  opacity: 1;
}

.hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(4, 12, 38, 0.94);
  border: 2px solid var(--rinconada-cyan);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.fixture-interactive-box:hover .hint-pill {
  transform: translateY(0);
}

.fixture-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-actions-left {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-fixture-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rinconada-cyan);
  color: #020617;
  border: none;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fixture-action:hover {
  background: #38bdf8;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
  transform: translateY(-2px);
}

.btn-fixture-action.outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
}

.btn-fixture-action.outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--rinconada-cyan);
  color: var(--rinconada-cyan);
}

.footer-info-text {
  font-size: 0.85rem;
  color: var(--rinconada-silver-dim);
}

/* ESTADO VACÍO CUANDO NO HAY FIXTURE */
.fixture-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: rgba(3, 8, 26, 0.8);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  opacity: 0.8;
}

.fixture-empty-state h3 {
  font-family: var(--font-sport);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.fixture-empty-state p {
  color: var(--rinconada-silver-dim);
  font-size: 0.95rem;
  max-width: 500px;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   BANNER LIENZO CONMEMORATIVO (BIGOTE QUERIDO #11)
   ========================================================================== */
.memorial-section {
  max-width: 1140px;
  margin: 1.5rem auto 3.5rem auto;
  padding: 0 1.25rem;
}

.memorial-card {
  background: linear-gradient(180deg, rgba(8, 18, 50, 0.95) 0%, rgba(3, 7, 22, 0.98) 100%);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 210, 255, 0.2);
  text-align: center;
  overflow: hidden;
}

.memorial-header {
  margin-bottom: 1.25rem;
}

.memorial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--rinconada-gold);
  font-family: var(--font-sport);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.memorial-header h3 {
  font-family: var(--font-sport);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
}

.memorial-img-wrapper {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: #000;
}

.memorial-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.memorial-img:hover {
  transform: scale(1.02);
}

.memorial-caption {
  font-size: 0.95rem;
  color: var(--rinconada-silver-dim);
  margin-top: 1rem;
  font-style: italic;
}

/* ==========================================================================
   GRID DE ACCESOS Y SECCIONES
   ========================================================================== */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-family: var(--font-sport);
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
}

.section-heading p {
  color: var(--rinconada-silver-dim);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portal-card {
  background: var(--rinconada-navy-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-main);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.portal-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  background: var(--rinconada-navy-hover);
}

.portal-card.highlight {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, rgba(16, 32, 80, 0.9) 0%, rgba(10, 20, 52, 0.9) 100%);
}

.portal-card.highlight-cyan {
  border-color: rgba(0, 210, 255, 0.5);
  background: linear-gradient(135deg, rgba(8, 30, 75, 0.9) 0%, rgba(5, 18, 48, 0.9) 100%);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.portal-card.highlight .card-icon {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
}

.portal-card.highlight-cyan .card-icon {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
}

.card-content h3 {
  font-family: var(--font-sport);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--rinconada-silver-dim);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rinconada-cyan);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.2s ease;
  cursor: pointer;
}

.card-link:hover {
  gap: 0.75rem;
  color: #fff;
}

.portal-card.highlight .card-link {
  color: var(--rinconada-gold);
}

/* ==========================================================================
   MODAL 1: VISOR LIGHTBOX PANTALLA COMPLETA HD CON SCROLL DE MOUSE
   ========================================================================== */
.fixture-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 18, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.fixture-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(6, 14, 42, 0.98);
  border-bottom: 1px solid var(--border-glass);
  z-index: 10;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.toolbar-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--rinconada-cyan);
  color: var(--rinconada-cyan);
}

.btn-tool.active-tool {
  background: rgba(0, 210, 255, 0.18);
  border-color: var(--rinconada-cyan);
  color: var(--rinconada-cyan);
}

.btn-tool.accent {
  background: var(--rinconada-cyan);
  color: #020617;
  border-color: var(--rinconada-cyan);
}

.btn-tool.accent:hover {
  background: #38bdf8;
  color: #000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.btn-tool.close {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.9rem;
  padding: 0.5rem 0.9rem;
}

.btn-tool.close:hover {
  background: var(--rinconada-danger);
  color: #fff;
}

.zoom-indicator {
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--rinconada-cyan);
  padding: 0 0.3rem;
  min-width: 45px;
  text-align: center;
}

/* CONTENEDOR DE SCROLL VERTICAL NATURAL (SIN MANO NI DESPLAZAMIENTOS) */
.lightbox-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem 4rem 1rem;
  cursor: default;
  scroll-behavior: smooth;
}

/* Scrollbar estilizada */
.lightbox-content::-webkit-scrollbar {
  width: 10px;
}
.lightbox-content::-webkit-scrollbar-track {
  background: rgba(2, 6, 23, 0.8);
}
.lightbox-content::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.4);
  border-radius: 5px;
}
.lightbox-content::-webkit-scrollbar-thumb:hover {
  background: var(--rinconada-cyan);
}

.lightbox-img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: default;
  transition: width 0.2s ease-out;
}

.lightbox-mobile-bar {
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(4, 10, 30, 0.95);
  border-top: 1px solid var(--border-glass);
  justify-content: space-around;
  gap: 0.5rem;
  z-index: 10;
}

.btn-mobile-zoom {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.8rem;
  text-align: center;
}

.btn-mobile-zoom.download {
  background: var(--rinconada-cyan);
  color: #000;
  border-color: var(--rinconada-cyan);
}

.btn-mobile-zoom.close {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
}

/* ==========================================================================
   MODAL 2: PANEL DE ADMINISTRACIÓN
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  backdrop-filter: blur(14px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.admin-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.admin-modal-card {
  background: linear-gradient(180deg, #0a1438 0%, #050c24 100%);
  border: 1.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), var(--shadow-gold);
  padding: 2rem;
  position: relative;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.admin-modal-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-modal-title h3 {
  font-family: var(--font-sport);
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

.btn-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--rinconada-silver);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.btn-modal-close:hover {
  background: var(--rinconada-danger);
  color: #fff;
}

/* PESTAÑAS DE ADMIN */
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.admin-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: transparent;
  border: none;
  color: var(--rinconada-silver-dim);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-tab-btn.active {
  background: var(--rinconada-cyan);
  color: #020617;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* AUTENTICACIÓN */
.admin-auth-box {
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.auth-icon-badge {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.admin-auth-box h4 {
  font-family: var(--font-sport);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
}

.admin-auth-box p {
  color: var(--rinconada-silver-dim);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.auth-input-group {
  display: flex;
  max-width: 360px;
  margin: 0 auto;
  gap: 0.5rem;
}

.auth-input-group input {
  flex: 1;
  background: rgba(2, 6, 23, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-sport);
  font-size: 1rem;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-input-group input:focus {
  border-color: var(--rinconada-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.btn-admin-submit {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border: none;
  color: #000;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-admin-submit:hover {
  transform: scale(1.03);
}

.auth-error-msg {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.auth-success-msg {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 1rem;
}

.input-shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* FORMULARIO DE CAMBIO DE PIN */
.pin-change-form {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.form-group-custom {
  margin-bottom: 1rem;
}

.form-group-custom label {
  display: block;
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--rinconada-silver);
  margin-bottom: 0.4rem;
}

.form-group-custom input {
  width: 100%;
  background: rgba(2, 6, 23, 0.9);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-sport);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group-custom input:focus {
  border-color: var(--rinconada-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

/* ZONA DE SUBIDA DRAG AND DROP */
.upload-section-title h4 {
  font-family: var(--font-sport);
  font-size: 1.1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.25rem;
}

.upload-section-title p {
  font-size: 0.88rem;
  color: var(--rinconada-silver-dim);
  margin-bottom: 1.25rem;
}

.fixture-drop-zone {
  border: 2px dashed var(--rinconada-cyan);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: rgba(0, 210, 255, 0.03);
  transition: all 0.25s ease;
  cursor: pointer;
}

.fixture-drop-zone.drag-active {
  background: rgba(0, 210, 255, 0.12);
  border-color: #fff;
  transform: scale(1.02);
}

.drop-icon {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.drop-main-text {
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.drop-sub-text {
  font-size: 0.85rem;
  color: var(--rinconada-silver-dim);
  margin: 0.35rem 0 1.25rem 0;
}

.btn-select-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.btn-select-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
}

/* PREVIEW BOX */
.upload-preview-box {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-glass);
}

.preview-header {
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--rinconada-cyan);
  margin-bottom: 0.75rem;
}

.preview-img-wrapper {
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-img-wrapper img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.upload-actions-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn-save-fixture {
  flex: 1;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease;
}

.btn-save-fixture:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.btn-cancel-upload {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 800;
  cursor: pointer;
}

/* GESTIÓN Y ELIMINACIÓN */
.admin-divider {
  border: 0;
  height: 1px;
  background: var(--border-glass);
  margin: 1.75rem 0 1.25rem 0;
}

.current-fixture-management h4 {
  font-family: var(--font-sport);
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1rem;
}

.admin-buttons-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-admin-danger {
  flex: 1;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-admin-danger:hover {
  background: var(--rinconada-danger);
  color: #fff;
}

.btn-admin-secondary {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--rinconada-silver);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.btn-admin-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================================
   NOTIFICACIONES TOAST FLOTANTES
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: rgba(6, 14, 42, 0.95);
  border: 1px solid var(--border-cyan);
  color: #fff;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sport);
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
}

.toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  border-color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.toast-error {
  border-color: #ef4444;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.4);
}

.toast-info {
  border-color: var(--rinconada-cyan);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
}

/* ==========================================================================
   FOOTER OFICIAL
   ========================================================================== */
footer {
  background: #020512;
  border-top: 1px solid var(--border-glass);
  padding: 3rem 1.5rem 2rem 1.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-sport);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: var(--rinconada-silver-dim);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.footer-copy {
  color: #64748b;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */
@media (max-width: 768px) {
  .hero-shield-img {
    width: 130px;
    height: 130px;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .fixture-header-left h2 {
    font-size: 1.45rem;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .toolbar-controls {
    display: none;
  }
  .lightbox-mobile-bar {
    display: flex;
  }
  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }
  .nav-brand-text {
    font-size: 0.9rem;
  }
  .nav-btn-fixture, .nav-btn-tabla {
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }
}
