/* Estilos personalizados */
:root {
  --primary-color: #013df5;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --naran-color: #f15a25;
}

h1{
   color: var(--naran-color) !important;
}



.text-muted{
   color: var(--light-color) !important;
}

p{
   color: var(--naran-color) !important;
}

.text-color{
   color: var(--dark-color) !important;
}
/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
  background: url("../img/pag/Portada_UnoSport.jpeg") center center / cover no-repeat;
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section-LP {
  background: url("../img/pag/Portada_UnoSport.jpeg") center center / cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-section img {
  max-height: 400px;
  object-fit: cover;
}

/* Navbar */
.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
}
.navbar-theme {
  background: linear-gradient(135deg, var(--primary-color) 0%, #013df5 100%);
}

.navbar-theme-construc {
  background: linear-gradient( #ffffff 100%);
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Cards */
.cancha-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cancha-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cancha-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cancha-card:hover .card-img-top {
  transform: scale(1.05);
}

.precio {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--success-color);
}

/* Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.5em 0.75em;
}

/* Horarios */
.hora-slot {
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.hora-slot.disponible {
  background: #d1edff;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.hora-slot.disponible:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.hora-slot.ocupado {
  background: #f8d7da;
  border-color: var(--danger-color);
  color: var(--danger-color);
  cursor: not-allowed;
  opacity: 0.6;
}

.hora-slot.seleccionado {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Calendario */
#calendario-reservas {
  min-height: 300px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #dee2e6;
}

/* Promociones */
.promo-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 1px solid #dee2e6;
  transition: transform 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-3px);
}

/* Tabs */
.nav-pills .nav-link {
  border-radius: 25px;
  padding: 10px 20px;
  margin: 0 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Tables */
.table th {
  background-color: var(--light-color);
  font-weight: 600;
  border-top: none;
}

.table-hover tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Social Icons */
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
 
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Modals */
.modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  padding: 20px 30px;
}

.modal-body {
  padding: 30px;
}

.modal-footer {
  border-top: none;
  padding: 20px 30px;
}

/* Forms */
.form-control,
.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .cancha-card .card-img-top {
    height: 180px;
  }

  .hora-slot {
    padding: 10px;
    font-size: 0.9rem;
  }

  .modal-body {
    padding: 20px;
  }

  .btn {
    padding: 8px 16px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .cancha-card .card-img-top {
    height: 160px;
  }

  .nav-pills .nav-link {
    padding: 8px 15px;
    margin: 2px;
    font-size: 0.9rem;
  }

  .table-responsive {
    font-size: 0.9rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.flatpickr-day:hover {
  background: rgba(13, 110, 253, 0.1);
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0056b3;
}
