/* Estilos principales - Torneo Internacional Valesanito */
:root {
  --primary-color: #dc2626; /* Rojo del Club Libertad */
  --primary-light: #ef4444;
  --primary-dark: #991b1b;
  --secondary-color: #111827; /* Negro institucional */
  --secondary-light: #1f2937;
  --accent-color: #f59e0b;
  --dark-color: #0b0f19;
  --surface-color: #ffffff;
  --bg-color: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Navbar */
.navbar-blur {
  background: rgba(11, 15, 25, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.brand-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.96) 0%, rgba(185, 28, 28, 0.88) 50%, rgba(11, 15, 25, 0.96) 100%),
              url('https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  position: relative;
}

.hero-overlay-grid {
  position: absolute;
  inset: 0;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  pointer-events: none;
}

/* Tarjetas */
.card-valesanito {
  background: var(--surface-color);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-valesanito:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -4px rgba(0, 0, 0, 0.1);
}

/* Botones Dinámicos vinculados a variables CSS */
.btn-primary-val {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}
.btn-primary-val:hover {
  filter: brightness(0.9);
  box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.4);
}

.btn-secondary-val {
  background-color: var(--secondary-color) !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}
.btn-secondary-val:hover {
  filter: brightness(1.2);
}

.btn-results-highlight {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  animation: pulse-glow 2.5s infinite;
  transition: all 0.2s ease;
}

.btn-results-highlight:hover {
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.6);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.7);
  }
}

/* Carrusel continuo infinito de sponsors */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-content {
  display: inline-flex;
  gap: 3rem;
  align-items: center;
  animation: marquee-slide 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.sponsor-logo-card {
  height: 80px;
  min-width: 140px;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sponsor-logo-card:hover {
  transform: scale(1.06);
  border-color: var(--primary-color);
}

.sponsor-logo-img {
  max-height: 55px;
  max-width: 130px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s ease;
}

.sponsor-logo-card:hover .sponsor-logo-img {
  filter: grayscale(0%);
}

/* Contador cuenta regresiva */
.countdown-box {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 75px;
}

.countdown-number {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* Tarjeta de Documentos Compacta y Estilizada */
.doc-card {
  border-top: 3px solid var(--primary-color);
  background: var(--surface-color);
  border-radius: 0.875rem;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  border-top-color: var(--primary-color);
}

.doc-icon-container {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.doc-card:hover .doc-icon-container {
  transform: scale(1.05);
}

/* Colores temáticos para badges de iconos */
.doc-icon-theme-trophy { background-color: #fef3c7; color: #b45309; }
.doc-icon-theme-book { background-color: #dbeafe; color: #1d4ed8; }
.doc-icon-theme-medical { background-color: #fee2e2; color: #b91c1c; }
.doc-icon-theme-map { background-color: #dcfce7; color: #15803d; }
.doc-icon-theme-clipboard { background-color: #f3e8ff; color: #7e22ce; }
.doc-icon-theme-megaphone { background-color: #ffedd5; color: #c2410c; }
.doc-icon-theme-default { background-color: #f1f5f9; color: #475569; }

.btn-doc-action {
  transition: all 0.15s ease;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-whatsapp-share {
  background-color: #25d366 !important;
  color: #ffffff !important;
  transition: all 0.2s ease;
}

.btn-whatsapp-share:hover {
  background-color: #128c7e !important;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

/* ============================================================
   PANELES INFORMATIVOS CONFIGURABLES (Estilos temáticos)
   ============================================================ */
.info-panel-box {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.info-panel-box:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.info-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
}

.info-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-panel-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  color: #0f172a !important; /* Alto contraste garantizado */
}

.info-panel-content {
  color: #334155;
  font-size: 0.925rem;
  line-height: 1.6;
}

.info-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

/* Variación Roja Institucional (Fondo blanco sólido, borde rojo) */
.info-panel-red {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-left: 6px solid #dc2626;
}
.info-panel-red .info-panel-icon {
  background: #fee2e2;
  color: #b91c1c;
}
.info-panel-red .info-panel-title {
  color: #0f172a !important;
}

/* Variación Azul Informativa (Fondo blanco sólido, borde azul) */
.info-panel-blue {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 6px solid #2563eb;
}
.info-panel-blue .info-panel-icon {
  background: #dbeafe;
  color: #1d4ed8;
}
.info-panel-blue .info-panel-title {
  color: #0f172a !important;
}

/* Variación Dorada Trofeos / Premios (Fondo blanco sólido, borde dorado) */
.info-panel-gold {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-left: 6px solid #f59e0b;
}
.info-panel-gold .info-panel-icon {
  background: #fef3c7;
  color: #b45309;
}
.info-panel-gold .info-panel-title {
  color: #0f172a !important;
}

/* Variación Neutro / Sobrio Oscuro */
.info-panel-dark {
  background: #0f172a;
  border: 1px solid #334155;
  border-left: 6px solid #94a3b8;
}
.info-panel-dark .info-panel-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}
.info-panel-dark .info-panel-title {
  color: #ffffff !important;
}
.info-panel-dark .info-panel-content {
  color: #cbd5e1 !important;
}

/* Botones dentro de los Paneles */
.btn-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-panel-primary {
  background: var(--primary-color, #dc2626);
  color: #ffffff !important;
}
.btn-panel-primary:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.btn-panel-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155 !important;
}
.btn-panel-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a !important;
}

.btn-panel-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}
.btn-panel-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-panel-whatsapp {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}
.btn-panel-whatsapp:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

.btn-panel-white {
  background: #ffffff;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.btn-panel-white:hover {
  background: #f1f5f9;
}

/* Carrusel Multimedia */
.gallery-slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.gallery-slide-item {
  display: none;
  position: relative;
  width: 100%;
  height: 480px;
}

.gallery-slide-item.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 2rem 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #ffffff;
}

.gallery-btn-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.gallery-btn-nav:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.gallery-btn-prev { left: 1rem; }
.gallery-btn-next { right: 1rem; }

.gallery-dots {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 8px;
}

/* Instagram Feed Card */
.ig-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1 / 1;
}

.ig-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ig-card:hover img {
  transform: scale(1.08);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-card:hover .ig-overlay {
  opacity: 1;
}

/* Banner de Alojamientos en Home */
.accommodation-home-banner {
  background: linear-gradient(135deg, #111827 0%, var(--primary-color) 100%);
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

@media (max-width: 768px) {
  .gallery-slide-item { height: 320px; }
  .countdown-box { min-width: 60px; padding: 0.5rem; }
  .countdown-number { font-size: 1.4rem; }
  .marquee-content { gap: 1.5rem; }
  .sponsor-logo-card { height: 65px; min-width: 110px; padding: 0.5rem 0.75rem; }
  .sponsor-logo-img { max-height: 40px; max-width: 95px; }
}

/* ===================================================
   TARJETAS COMPACTAS DE DOCUMENTOS CON ICONOS TEMÁTICOS
   =================================================== */
.doc-card {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  border-top: 3.5px solid var(--primary-color) !important;
  background: #ffffff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
  border-top-color: var(--primary-color) !important;
}

.doc-icon-container {
  width: 42px;
  height: 42px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.doc-card:hover .doc-icon-container {
  transform: scale(1.08);
}

/* Iconos Temáticos por Categoría */
.doc-icon-theme-trophy {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a;
}

.doc-icon-theme-book {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe;
}

.doc-icon-theme-medical {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
  border: 1px solid #fecdd3;
}

.doc-icon-theme-map {
  background: #d1fae5 !important;
  color: #047857 !important;
  border: 1px solid #a7f3d0;
}

.doc-icon-theme-clipboard {
  background: #ede9fe !important;
  color: #6d28d9 !important;
  border: 1px solid #ddd6fe;
}

.doc-icon-theme-announcement {
  background: #ffedd5 !important;
  color: #c2410c !important;
  border: 1px solid #fed7aa;
}

.doc-icon-theme-bus {
  background: #ccfbf1 !important;
  color: #0f766e !important;
  border: 1px solid #99f6e4;
}

.doc-icon-theme-default {
  background: rgba(220, 38, 38, 0.08) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(220, 38, 38, 0.15);
}

.btn-whatsapp-share {
  background: #25d366;
  color: #ffffff;
  transition: all 0.2s ease;
}

.btn-whatsapp-share:hover {
  background: #1ebc57;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ===================================================
   PANELES INFORMATIVOS CONFIGURABLES Y BOTONES
   =================================================== */
.info-panel-box {
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.info-panel-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1);
}

.info-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-panel-title {
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.info-panel-content {
  font-size: 0.925rem;
}

.info-panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1rem;
}

/* Estilos de Paneles */
/* 1. Red Libertad */
.info-panel-red {
  background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.info-panel-red .info-panel-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* 2. Blue Informativo */
.info-panel-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border: 1px solid rgba(96, 165, 250, 0.4);
}
.info-panel-blue .info-panel-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* 3. Gold Trofeos */
.info-panel-gold {
  background: linear-gradient(135deg, #78350f 0%, #d97706 60%, #b45309 100%);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.4);
}
.info-panel-gold .info-panel-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* 4. Dark Neutro */
.info-panel-dark {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: #f8fafc;
  border: 1px solid #334155;
}
.info-panel-dark .info-panel-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

/* Botones en Paneles */
.btn-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-panel-primary {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-panel-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-panel-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}
.btn-panel-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.btn-panel-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}
.btn-panel-gold:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-panel-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}
.btn-panel-whatsapp:hover {
  background: #1ebc57;
  transform: translateY(-1px);
}

.btn-panel-white {
  background: #ffffff;
  color: var(--primary-color);
  font-weight: 800;
}
.btn-panel-white:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .info-panel-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .info-panel-icon {
    width: 40px;
    height: 40px;
  }
}

