/* Estilos generales */
:root {
  --primary-color: #f15a24;      /* Naranjo vibrante */
  --secondary-color: rgb(25, 113, 194);    /* Azul moderno */
  --accent-color: #05937a;                 /* Azul original (conservado) */
  --light-color: #ecf0f1;                  /* Blanco helado */
  --dark-color: #2c3e50;                   /* Azul oscuro original */
  --success-color: #27ae60;                /* Verde original */
  --warning-color: #f39c12;                /* Naranja original */
  --danger-color: #e74c3c;                 /* Rojo original */
  --header-orange: rgb(255, 140, 0);     /* Naranja intenso para header */
  --footer-orange: rgb(51, 28, 5);       /* Marrón oscuro anaranjado */
  --hover-orange: rgba(255, 165, 0, 0.1);/* Efectos hover */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}
html {
    scroll-behavior: smooth;
}
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

/* Header */
.navbar {
  /*background-color: var(--primary-color);*/
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgb(22 24 24), rgb(2 161 133));
  transition: all 0.3s ease;
}
.navbar-brand:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: white !important;
}
/* Efecto scroll navbar */
.navbar-scroll {
  background: rgba(12, 83, 18, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}
.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
   position: relative;
}

.nav-link:hover {
  color: white !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 70%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  color: white;
  padding: 5rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
}

/* Carrusel */
.carousel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
  margin-bottom: 2rem;
}

.carousel-item img {
  height: 550px;
  /*object-fit: cover;*/
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
  bottom: 30% !important;
}
/*@media (min-width: 768px) {    
    .container {
        max-width: 920px;
    }
}*/
.countdown-section {
    background-color: #853102; /* Fondo blanco para los espacios laterales */
    background-size: contain; /* Muestra la imagen completa sin recortar */
    background-position: center;
    background-repeat: repeat;
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    width: 100%;
    max-width: 1200px; /* Ancho máximo del contenido */
    margin: 0 auto;
    border-radius: 10px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .countdown-section {
        min-height: 40vh; /* Reduce altura en móviles */
    }
    
    .countdown-overlay {
        background: rgba(0, 0, 0, 0.65);
        padding: 1rem;
        margin: 0 15px;
    }
}

.countdown-overlay h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Montserrat', sans-serif;
}

#countdown {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3.5rem;
    color: white;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#countdown span {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

#countdown span::after {
    content: attr(data-label);
    font-size: 1rem;
    font-weight: 500;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-overlay .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.countdown-overlay .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    #countdown {
        font-size: 2.5rem;
        gap: 10px;
    }
    
    #countdown span {
        min-width: 80px;
        padding: 12px 15px;
    }
    
    .countdown-overlay h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #countdown {
        font-size: 1.8rem;
        flex-wrap: wrap;
    }
    
    #countdown span {
        min-width: 70px;
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    #countdown span::after {
        font-size: 0.8rem;
    }
    
    .countdown-overlay {
        padding: 0px 0; /*era 50*/
    }
    
    .countdown-overlay h2 {
        font-size: 1.5rem;
    }
}

/* Tarjetas de eventos */
.card {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  border-radius: 8px 8px 0 0;
  height: 200px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  color: var(--primary-color);
}

/* Botones */
.btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline-primary:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Footer */
.footer {
  /*background-color: var(--primary-color);*/
  color: white;
  padding: 3rem 0;
  /*margin-top: 3rem;*/
  background-color: #032f02;
  position: relative;
  overflow: hidden;
}

.footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer ul {
  list-style: none;
  padding-left: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: var(--header-orange) !important;
  text-decoration: none;
}
.footer::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: linear-gradient(to bottom, rgba(255,140,0,0.3), transparent);
}
/* Modales */
.modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.footer ul li:hover {
  transform: translateX(10px);
}

.modal-header {
  border-bottom: none;
  padding-bottom: 0;
}

.modal-title {
  font-weight: 600;
  color: var(--primary-color);
}

.modal-footer {
  border-top: none;
}

/* Formularios */
.form-control {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

/* Alertas */
.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

/* Panel de administración */
.sidebar {
  width: 250px;
  min-height: 100vh;
  position: fixed;
}

.sidebar-header {
  background-color: rgba(0, 0, 0, 0.2);
}

.main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  border-radius: 4px;
  padding: 0.75rem 1rem !important;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-link i {
  margin-right: 0.5rem;
}

/* Tablas */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .carousel-item img {
    height: 200px;
  }
  
  .carousel-caption {
    bottom: 20% !important;
    padding: 1rem;
  }
}
/* Estilos para los dorsales - agregar en style.css */
#btnSeleccionarDorsal {
    height: 45px;
    transition: all 0.3s ease;
}

#contenedorDorsales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    padding: 15px 0;
}

.dorsal-btn {
    width: 100%;
    height: 60px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dorsal-disponible {
    background-color: #e9f7fe;
    border: 2px solid #0d6efd;
    color: #0d6efd;
}

.dorsal-disponible:hover {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.05);
}

.dorsal-ocupado {
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

#dorsalSeleccionado {
    font-weight: 500;
}

#infoDorsales {
    margin-bottom: 20px;
}
/* Asegurar que el backdrop sea visible */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5) !important;
  }
  
 /* En tu archivo CSS - Forzar visibilidad del backdrop */
.modal-backdrop.show {
    opacity: 0.5 !important;
    background-color: #000 !important;
    z-index: 1040 !important;
    display: block !important; /* Asegurar que se muestre */
  }
  
  #inscripcionModal {
    z-index: 1050 !important; /* Mayor que el backdrop */
  }
  
  /* Deshabilitar clic fuera pero mantener el fondo */
  .modal-static {
    pointer-events: none;
  }
  
  .modal-static .modal-dialog {
    pointer-events: all;
  }
  

  /* Reset para el body cuando hay modales abiertos */
  body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
  }