:root {
  --primary-color: #f15a24;
  --secondary-color: #e67e22; /* Naranja medio cálido */
  --accent-color: #f39c12; /* Naranja vibrante */
  --light-color: #ecf0f1;
  --dark-color: #d35400; /* Naranja oscuro intenso */
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --header-orange: rgb(255, 140, 0);
  --footer-orange: rgb(51, 28, 5);
  --hover-orange: rgba(255, 165, 0, 0.1);
}

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);
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, rgb(22, 24, 24), rgb(255, 140, 0));
  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;
}

.navbar-scroll {
  background: rgba(139, 51, 0, 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 {
  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;
}

.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;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
  bottom: 30% !important;
}

.collapse {
  visibility: visible !important;
}

.countdown-section {
  background-color: #853102;
  background-size: contain;
  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;
  margin: 0 auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .countdown-section {
    min-height: 40vh;
  }
  .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);
}

@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;
  }
  .countdown-overlay h2 {
    font-size: 1.5rem;
  }
}

.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);
}

.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: #e67e22;
  border-color: #e67e22;
  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 {
  color: white;
  padding: 3rem 0;
  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);
}

.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;
}

.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(243, 156, 18, 0.25);
}

.form-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.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;
}

.table {
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

@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;
  }
}

#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: #fef5e7;
  border: 2px solid #f39c12;
  color: #f39c12;
}

.dorsal-disponible:hover {
  background-color: #f39c12;
  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;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1040;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-backdrop.show {
  opacity: 0.5 !important;
  background-color: #000 !important;
  z-index: 1040 !important;
  display: block !important;
}

#inscripcionModal {
  z-index: 1050 !important;
}

.modal-static {
  pointer-events: none;
}

.modal-static .modal-dialog {
  pointer-events: all;
}

body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}