/*==============================
  BASE PROFESIONAL UCI-STYLE MTB
==============================*/

/* Importaciones */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;700&display=swap');

/* Variables */
:root {
  /* Colores principales */
  --azul-oscuro: #001A33;
  --azul-medio: #004C99;
  --naranja-licivilla: #FF4C02;
  --amarillo-vibrante: #FFD600;
  --amarillo-fluor: #FFEB3B;

  /* Grises y fondo */
  --gris-asfalto: #1A1A1A;
  --gris-borde: #444;
  --gris-claro: #E6E6E6;

  /* Tipografía */
  --texto-claro: #F2F2F2;

  /* Colores de acento */
  --acero: #17a2b8;

  /* Marca IQDOTNET */
  --azul-iq: #2490F1;
}

/*==============================
  BASE
==============================*/
body {
  background-color: var(--gris-asfalto);
  color: var(--texto-claro);
  font-family: 'Rajdhani', Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding-top: 90px; /* Espacio para header fijo */
}

/*==============================
  LAYOUT
==============================*/
header, .header-licivilla-transparente {
  animation: slideDown 0.6s ease-out;
  background: linear-gradient(270deg, var(--azul-oscuro), var(--azul-medio), var(--naranja-licivilla));
  background-size: 300% 300%; /* Reducido para mejor rendimiento */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 15px 0;
  position: sticky;
  text-align: center;
  text-transform: uppercase;
  top: 0;
  z-index: 1000;
}

header {
  animation: headerAnim 25s ease infinite;
}

.header-licivilla-transparente {
  background-color: rgba(0, 26, 51, 0.95);
  backdrop-filter: blur(5px);
  border-bottom: 3px solid var(--naranja-licivilla);
}

.header-scroll-activo {
  background-color: rgba(0, 26, 51, 1) !important;
  transition: background-color 0.3s ease;
}

@keyframes headerAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header h1, .titulo-licivilla {
  color: var(--amarillo-vibrante);
  font-size: 1.6rem;
  margin: 0 10px;
  text-shadow: 1px 1px 2px black;
}

.subtitulo-licivilla {
  color: var(--texto-claro);
  font-size: 0.95rem;
  font-style: italic;
}

.barra-header {
  animation: moverBarra 8s linear infinite;
  background: linear-gradient(to right, var(--naranja-licivilla), var(--amarillo-vibrante));
  background-size: 200% 100%;
  height: 4px;
}

@keyframes moverBarra {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 1; transform: translateY(0); }
}

nav {
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: white;
  font-weight: 600;
  padding: 10px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--amarillo-fluor);
}

section {
  background-color: #2A2A2A;
  border-left: 8px solid var(--naranja-licivilla);
  border-radius: 10px;
  box-shadow: 0 0 10px #111;
  margin: 30px auto;
  max-width: 1200px;
  padding: 40px 20px;
}

.footer-licivilla {
  animation: footerAnim 25s ease infinite;
  background: linear-gradient(270deg, var(--azul-oscuro), var(--azul-medio), var(--naranja-licivilla));
  background-size: 300% 300%;
  border-top: 4px solid var(--amarillo-vibrante);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

@keyframes footerAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.footer-licivilla a {
  color: var(--amarillo-vibrante);
  transition: color 0.3s ease;
}

.footer-licivilla a:hover {
  color: white;
  text-decoration: underline;
}

#particles-footer {
  height: 100%;
  left: 0;
  opacity: 0.15;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

/*==============================
  COMPONENTES
==============================*/
.card-base {
  background: var(--gris-asfalto);
  border: 2px solid var(--naranja-licivilla);
  border-radius: 14px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  color: var(--texto-claro);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-base:hover {
  box-shadow: 0 0 20px var(--naranja-licivilla);
  transform: scale(1.02);
}

.card-premiacion {
  padding: 1rem;
  text-align: center;
}

.card-premiacion-dark {
  background: var(--gris-asfalto) !important; /* Fondo oscuro reforzado */
  color: var(--texto-claro);
}

.card-premiacion .card-header {
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid #ffc107;
  text-transform: uppercase;
  padding: 10px;
  border-radius: 12px 12px 0 0;
  color: #000;
}

/* Fondos por lugar */
.card-premiacion-dark.p1 .card-header { background-color: #FFD700; } /* Oro */
.card-premiacion-dark.p2 .card-header { background-color: #C0C0C0; } /* Plata */
.card-premiacion-dark.p3 .card-header { background-color: #CD7F32; color: #fff; } /* Bronce */
.card-premiacion-dark.p4 .card-header { background-color: #2490F1; color: #fff; } /* Azul IQ */
.card-premiacion-dark.p5 .card-header { background-color: #43AA8B; color: #fff; } /* Verde suave */


.card-premiacion .card-body {
  padding: 1rem;
}

#premiacion-final .card-premiacion .card-header {
  background-color: var(--amarillo-vibrante);
}

.premio-monto {
  background-color: var(--amarillo-vibrante);
  border-radius: 8px;
  color: #000;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: bold;
  padding: 6px 12px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.premio-detalle {
  color: #E0E0E0;
  font-size: 1rem;
  font-style: italic;
}

.card-testimonio {
  background-color: #1F1F1F;
  border-left: 5px solid var(--naranja-licivilla);
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  font-size: 1rem;
  margin: 0 auto;
  max-width: 500px;
  padding: 20px;
}

.card-testimonio p {
  color: #ddd;
  font-style: italic;
}

.card-testimonio h4 {
  color: var(--amarillo-vibrante);
  font-weight: bold;
  margin-top: 10px;
}

.card-patrocinador {
  align-items: center;
  background: #1A1A1A;
  border: 2px solid #333;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  padding: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-patrocinador:hover {
  box-shadow: 0 0 20px #fc4c02aa;
  transform: translateY(-5px) scale(1.03);
}

.card-patrocinador img {
  filter: drop-shadow(0 0 5px #000);
  max-height: 80px;
  object-fit: contain;
}

.card-patrocinador.destacado {
  background: #2a2a2a;
  border: 3px solid var(--amarillo-fluor);
  box-shadow: 0 0 18px #FFD60066;
  transform: scale(1.05);
}

.card-patrocinador.destacado:hover {
  transform: scale(1.08);
}

.btn-base {
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-licivilla {
  background-color: var(--naranja-licivilla);
  border: 2px solid var(--naranja-licivilla);
  color: #000;
}

.btn-licivilla:hover {
  background-color: var(--amarillo-vibrante);
  border-color: var(--amarillo-vibrante);
}

.btn-outline-licivilla {
  background-color: transparent;
  border: 2px solid var(--naranja-licivilla);
  color: var(--naranja-licivilla);
}

.btn-outline-licivilla:hover {
  background-color: var(--naranja-licivilla);
  color: #000;
}

.card-patrocinador .btn, .card .btn {
  background-color: transparent;
  transition: all 0.3s ease;
}

.card-patrocinador .btn:hover, .card .btn:hover {
  background-color: var(--color-equipo, var(--naranja-licivilla));
  box-shadow: 0 0 8px var(--color-equipo, var(--naranja-licivilla));
  color: #fff;
  font-weight: bold;
}

.boton-flotante-top {
  align-items: center;
  background: linear-gradient(145deg, #FFC107, #FFA000);
  border: none;
  border-radius: 50%;
  bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  color: #212529;
  cursor: pointer;
  display: none;
  font-size: 1.5rem;
  height: 55px;
  justify-content: center;
  position: fixed;
  right: 30px;
  transition: all 0.3s ease-in-out;
  width: 55px;
  z-index: 2000;
}

.boton-flotante-top:hover {
  background: linear-gradient(145deg, #FFD54F, #FFB300);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  transform: scale(1.15);
}

.boton-hamburguesa {
  background: none;
  border: none;
  color: var(--amarillo-vibrante);
  display: none;
  font-size: 1.8rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 1100;
}

#hero img {
  border-bottom: 5px solid var(--amarillo-fluor);
  filter: brightness(0.85);
  max-height: 420px;
  object-fit: cover;
  width: 100%;
}

.seccion-inscripciones {
  animation: parpadeoInscripcion 2s ease-in-out infinite alternate;
  background: linear-gradient(135deg, #0d1c2b, var(--azul-oscuro));
  border-left: 8px solid var(--naranja-licivilla);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(255, 128, 0, 0.3);
  color: var(--texto-claro);
  margin: 40px auto;
}

@keyframes parpadeoInscripcion {
  0% { box-shadow: 0 0 18px rgba(255, 128, 0, 0.3); }
  100% { box-shadow: 0 0 26px rgba(255, 128, 0, 0.6); }
}

.seccion-inscripciones h2,
.seccion-inscripciones p,
.seccion-inscripciones small,
.seccion-inscripciones a {
  color: var(--texto-claro);
  opacity: 1;
}

.seccion-inscripciones .btn {
  background-color: var(--amarillo-vibrante);
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px 25px;
}

.seccion-inscripciones .btn:hover {
  background-color: var(--naranja-licivilla);
  color: #000;
}

#inscripciones img:hover {
  transform: scale(1.08);
}

table {
  background-color: var(--azul-oscuro);
  border-collapse: collapse;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  color: var(--texto-claro);
  font-size: 1rem;
  margin-top: 15px;
  overflow: hidden;
  width: 100%;
}

thead {
  background-color: var(--azul-medio);
  color: var(--amarillo-vibrante);
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

th, td {
  border: 1px solid var(--azul-medio);
  padding: 12px;
  text-align: center;
}

tr:nth-child(even) {
  background-color: #000F1F;
}

tr:hover {
  background-color: var(--naranja-licivilla);
  color: #000;
  font-weight: bold;
}

#tabla-puntuacion th {
  background-color: var(--naranja-licivilla);
  color: white
}

#tabla-puntuacion td {
  color: #000;
  font-weight: bold;
  background-color: #fff;
}



#filtro-mes {
  background-color: #222;
  border: 2px solid #ffc107;
  border-radius: 8px;
  color: #ffc107;
  font-weight: bold;
  transition: all 0.3s ease;
}

#filtro-mes:focus {
  background-color: #111;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.4);
  outline: none;
}

#filtro-mes option {
  background-color: #222;
  color: #fff;
}

.proxima-fecha {
  background-color: var(--naranja-licivilla);
  border-radius: 6px;
  box-shadow: 0 0 10px #fc4c02aa;
  color: white;
  font-weight: bold;
  padding: 10px;
  text-align: center;
}

.proxima-fecha-alert {
  animation: aparecer 0.6s ease-out;
}

@keyframes aparecer {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

#contador {
  background-color: #1A1A1A;
  border: 2px solid var(--naranja-licivilla);
  border-radius: 12px;
  margin-top: 2rem;
  padding: 1rem;
}

#reloj {
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.contador-dinamico {
  color: var(--amarillo-vibrante);
  display: flex;
  flex-wrap: wrap;
  font-family: 'Courier New', monospace;
  font-size: 1.1rem;
  font-weight: bold;
  gap: 8px;
  justify-content: center;
}

.contador-bloque {
  animation: ticTac 2s ease-in-out infinite;
  background: #1a1a1a;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(255, 193, 7, 0.3);
  min-width: 50px;
  padding: 8px 12px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

@keyframes ticTac {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.07); }
}

.testimonios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-card {
  animation: aparecer 0.4s ease-in-out;
  background: #1A1A1A;
  border-left: 5px solid var(--naranja-licivilla);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  position: relative;
}

.timeline-card h5 {
  color: var(--amarillo-vibrante);
  font-weight: bold;
}

.timeline-card small {
  color: #ccc;
}

.timeline-card .badge {
  font-size: 0.75rem;
  position: absolute;
  right: 10px;
  top: 10px;
}

.timeline-card .btn {
  margin-top: 10px;
}

.badge-proximo-evento {
  animation: pulsoEvento 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes pulsoEvento {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.07); }
}

.alert-premiacion-final {
  background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
  border-left: 6px solid var(--naranja-licivilla);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 128, 0, 0.3);
  color: var(--amarillo-vibrante);
  font-size: 1rem;
  padding: 1rem;
  text-align: center;
}

#texto-reglamento {
  background: #1a1a1a;
  border-left: 4px solid var(--naranja-licivilla);
  border-radius: 6px;
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

#tabs-reglamento .nav-link {
  background-color: #2F2F2F;
  border: 1px solid var(--gris-borde);
  border-radius: 5px 5px 0 0;
  color: var(--texto-claro);
  font-weight: bold;
  margin: 0 5px;
  transition: background 0.3s, color 0.3s;
}

#tabs-reglamento .nav-link.active {
  background-color: var(--naranja-licivilla);
  border-color: var(--naranja-licivilla);
  box-shadow: 0 0 8px #fc4c02aa;
  color: white;
}

.modal-content {
  background-color: var(--gris-asfalto);
  border: 2px solid var(--naranja-licivilla);
  border-radius: 10px;
  color: var(--texto-claro);
}

.modal-header {
  background-color: var(--gris-asfalto);
  border-bottom: 1px solid var(--gris-borde);
}

.modal-title {
  color: var(--amarillo-fluor);
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body .btn-outline-info {
  border-color: var(--acero);
  color: var(--acero);
}

.modal-body .btn-outline-info:hover {
  background-color: var(--acero);
  color: var(--gris-asfalto);
}

.modal-body .btn-outline-warning {
  border-color: var(--amarillo-fluor);
  color: var(--amarillo-fluor);
}

.modal-body .btn-outline-warning:hover {
  background-color: var(--amarillo-fluor);
  color: var(--gris-asfalto);
}

.modal-footer {
  border-top: 1px solid var(--gris-borde);
}

.modal-footer .btn-outline-secondary {
  border-color: var(--gris-borde);
  color: var(--texto-claro);
}

.modal-footer .btn-outline-secondary:hover {
  background-color: var(--gris-borde);
  color: var(--gris-asfalto);
}

#modalEventoPDF, #modalEventoGPX {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

#modalEventoPDF:hover, #modalEventoGPX:hover {
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
  transform: scale(1.05);
}

.card-img-top {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.card-img-top:hover {
  filter: drop-shadow(0 0 6px #ffc107);
  transform: scale(1.05) rotate(-1deg);
}

.logo-breathing {
  animation: breathing 3s ease-in-out infinite;
  transition: filter 0.3s ease;
}

.logo-breathing:hover {
  filter: drop-shadow(0 0 10px #ffc107);
}

@keyframes breathing {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.integrante-fade {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
  bottom: 0;
  height: 40px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: opacity 0.3s ease;
}

#perfil-elevacion .elevation-graph {
  background: #222 !important;
  stroke: #FFC107;
}

.leaflet-interactive {
  filter: drop-shadow(0 0 8px #ff4c02);
}

.label-icon {
  filter: drop-shadow(0 0 5px #000);
  font-size: 1rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.ruta-animada {
  animation: glowRuta 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #FF4C02) brightness(1.4);
}

@keyframes glowRuta {
  0%, 100% { filter: drop-shadow(0 0 10px #FF4C02) brightness(1.4); }
  50% { filter: drop-shadow(0 0 15px #FFD600) brightness(1.8); }
}

.map-legend {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  padding: 10px;
  font-size: 0.9rem;
  color: #000;
}

/*==============================
  TERCEROS
==============================*/
.swiper-button-prev,
.swiper-button-next {
  color: var(--naranja-licivilla);
  filter: drop-shadow(0 0 2px #000);
}

.swiper-pagination-bullet {
  background: var(--naranja-licivilla);
  opacity: 0.8;
}

.swiper-pagination-bullet-active {
  background: var(--amarillo-vibrante);
  opacity: 1;
}

/*==============================
  RESPONSIVE
==============================*/
@media (max-width: 768px) {
  .boton-hamburguesa {
    display: block;
  }

  .header-licivilla-transparente nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .header-licivilla-transparente nav ul.mostrar-menu {
    display: flex;
  }

  .header-licivilla-transparente .nav-link {
    margin: 10px 0;
  }

 #menuPrincipal {
  all: unset;
  display: none;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 60px; /* justo debajo del header */
  right: 10px;
  left: 10px;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.98);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
}

#menuPrincipal.mostrar-menu {
  display: flex !important;
}


  table, th, td {
    font-size: 0.9rem;
  }

  nav a {
    display: block;
    margin: 10px 0;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-body p {
    font-size: 0.95rem;
  }

  .modal-body .btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .map-legend {
    font-size: 0.8rem;
    padding: 8px;
  }
}

/*==============================
  MAPA
==============================*/
.mapa-ruta {
  border: 4px solid var(--amarillo-vibrante); /* Borde más grueso */
  border-radius: 10px;
  height: 500px;
  max-height: 80vh;
  min-height: 300px;
  width: 100%;
  background: #1A1A1A; /* Fondo más oscuro por defecto */
  position: relative; /* Para superponer elementos si es necesario */
}

.ruta-animada {
  animation: glowRuta 2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px #FF4C02) brightness(1.8); /* Mayor efecto */
  z-index: 10; /* Asegurar que esté por encima del fondo */
}

@keyframes glowRuta {
  0%, 100% { filter: drop-shadow(0 0 20px #FF4C02) brightness(1.8); }
  50% { filter: drop-shadow(0 0 25px #FFD600) brightness(2.2); }
}

.label-icon {
  background: rgba(0, 0, 0, 0.8); /* Fondo oscuro para contraste */
  border-radius: 6px;
  color: #fff;
  filter: drop-shadow(0 0 10px #000);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 6px 12px;
  pointer-events: none;
  z-index: 20; /* Por encima de la ruta */
}

.map-legend {
  background: rgba(0, 0, 0, 0.8); /* Fondo oscuro para contraste */
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.9rem;
  padding: 10px;
  z-index: 30; /* Por encima de todo */
}

/*==============================
  RESPONSIVE
==============================*/
@media (max-width: 768px) {
  .mapa-ruta {
    height: 400px;
    min-height: 250px;
  }

  .map-legend {
    font-size: 0.8rem;
    padding: 8px;
  }

  .label-icon {
    font-size: 0.9rem;
    padding: 4px 8px;
  }
}
.header-modern {
  background: linear-gradient(90deg, #000000, #0F1115);
  border-bottom: 3px solid var(--naranja-licivilla);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-modern {
  height: 44px;
  filter: drop-shadow(0 0 4px #FF4C02);
}

.titulo-modern {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--amarillo-vibrante);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-modern {
  color: var(--texto-claro);
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.nav-modern:hover {
  color: var(--amarillo-vibrante);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.btn-modern {
  background-color: var(--naranja-licivilla);
  border-radius: 20px;
  color: black !important;
  padding: 6px 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-modern:hover {
  background-color: var(--amarillo-vibrante);
  color: black;
}
.header-modern.shrink {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  background: linear-gradient(90deg, var(--azul-oscuro), var(--gris-asfalto), var(--naranja-licivilla)) !important;
  background-size: 300% 300%;
  animation: headerShrinkAnim 25s ease infinite;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes headerShrinkAnim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.header-modern .titulo-modern.shrink-text {
  font-size: 1rem !important;
  transition: font-size 0.3s ease;
}

.header-modern .logo-modern.shrink-logo {
  height: 32px !important;
  transition: height 0.3s ease;
}

.header-modern.oculto {
  transform: translateY(-100%);
  transition: transform 0.4s ease;
}

.seccion-titulo {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--amarillo-vibrante);
  letter-spacing: 2px;
}

.seccion-subtitulo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  color: var(--texto-claro);
  opacity: 0.85;
}

#buscar-categorias::placeholder {
  color: #aaa;
  font-style: italic;
}

#filtro-tipo {
  background-color: #1a1a1a;
  border: 2px solid var(--naranja-licivilla);
  color: var(--amarillo-vibrante);
  font-weight: bold;
}

#filtro-tipo option {
  background-color: #1a1a1a;
  color: #fff;
}
.hero-modern {
  position: relative;
  height: 400px;
  max-height: 90vh;
  overflow: hidden;
}

.hero-modern .hero-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.85));
  padding: 40px 20px;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  font-family: 'Anton', sans-serif;
}

.hero-titulo {
  font-size: 4rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
  color: var(--amarillo-vibrante);
}

.hero-subtitulo {
  font-size: 1.8rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  margin-top: 10px;
  color: var(--texto-claro);
  text-transform: uppercase;
}
.hero-botones .btn {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  transition: all 0.3s ease-in-out;
  border-width: 2px;
}

.hero-botones .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.card-evento {
  border-radius: 10px;
  transition: transform 0.2s ease;
}

.card-evento:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.titulo-evento {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.fecha-evento,
.ubicacion-evento {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
}

.logo-mini {
  height: 24px;
  object-fit: contain;
}

.badge-proximo-evento {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}
.btn-warning.fw-bold {
  animation: pulseBtn 1.5s infinite;
}

@keyframes pulseBtn {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,193,7,0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255,193,7,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,193,7,0); }
}

#puntuacion .table th,
#puntuacion .table td {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
}

#puntuacion .form-control::placeholder {
  text-align: center;
  font-style: italic;
  color: #bbb;
}

.card-premiacion {
  background-color: #1c1c1e;
  border-radius: 16px;
  border: 2px solid #ffc107;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-premiacion:hover {
  transform: scale(1.03);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.3);
}

/* .card-premiacion .card-header {
  background-color: #000;
  color: #ea590bf8;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid #ffc107;
} */

.card-premiacion .card-body {
  color: #fff;
}

.premio-monto {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  background-color: #2490F1;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-block;
}


.premio-detalle {
  font-size: 0.9rem;
  color: #ffc107;
}

.alert-premiacion-final {
  background-color: #222;
  color: #3d310b;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #ffc107;
  max-width: 800px;
  margin: auto;
}

.card-premiacion-dark .premio-monto {
  font-weight: bold;
  font-size: 1.2rem;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
  color: #000;
  background-color: #FFD700; /* color por default */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-premiacion-dark:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  border: 2px solid #ffcc00;
}

.card-premiacion-dark .premio-monto:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.card-premiacion-dark .premio-detalle {
  color: #ccc;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Opcional: diferentes fondos por posición (si no usas inline styles en JS) */
.card-premiacion-dark.p1 .premio-monto { background-color: #FFD700; } /* Oro */
.card-premiacion-dark.p2 .premio-monto { background-color: #C0C0C0; } /* Plata */
.card-premiacion-dark.p3 .premio-monto { background-color: #CD7F32; } /* Bronce */
.card-premiacion-dark.p4 .premio-monto { background-color: #2490F1; }
.card-premiacion-dark.p5 .premio-monto { background-color: #43AA8B; }



/* Estilo mejorado para encabezados de premiación */
.card-premiacion .card-header {
  border-radius: 12px 12px 0 0;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  font-weight: bold;
  font-size: 1.1rem;
  color: inherit;
}

/* Paleta mejorada por posición */
.card-premiacion-dark.p1 .card-header { background-color: #e6b800; color: #000; }
.card-premiacion-dark.p2 .card-header { background-color: #bcbcbc; color: #000; }
.card-premiacion-dark.p3 .card-header { background-color: #b87333; color: #fff; }
.card-premiacion-dark.p4 .card-header { background-color: #1e88e5; color: #fff; }
.card-premiacion-dark.p5 .card-header { background-color: #43a047; color: #fff; }


#tabs-reglamento .btn {
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

#tabs-reglamento .btn:hover,
#tabs-reglamento .btn.active {
  background-color: #ffc107;
  color: #000;
  border-color: #ffc107;
}

#contenido-reglamento p {
  line-height: 1.8;
  font-size: 1.05rem;
}
.card-testimonio {
  background-color: #1c1c1e;
  color: #f1f1f1;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-style: italic;
  position: relative;
  transition: transform 0.3s ease;
}

.card-testimonio:hover {
  transform: translateY(-5px);
}

.card-testimonio::before {
  content: "“";
  font-size: 4rem;
  color: #fc0;
  position: absolute;
  top: -20px;
  left: 20px;
}

.card-testimonio h4 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #ffc107;
}

.card-patrocinador {
  background-color: #1f1f1f;
  border: 1px solid #444;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  height: 100%;
}

.card-patrocinador img {
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card-patrocinador img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(255, 193, 7, 0.4));
}


.card-patrocinador h6 {
  color: #ffc107;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.card-patrocinador a {
  margin-top: 0.5rem;
}

.card-patrocinador.destacado {
  border: 2px solid #ffc107;
  background: linear-gradient(145deg, #222, #1a1a1a);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
}

#ubicacion iframe {
  border-radius: 12px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}
