/* BOOTSTRAP 5.3 CDN */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* TAILWIND CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* VARIABLES CSS PERSONALIZADAS */
:root {
  --primary: #2563eb;
  --secondary: #64748b;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  --light: #f8fafc;
  --dark: #1e293b;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* RESET Y BASE */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: #f8fafc;
}

/* COMPONENTES PERSONALIZADOS */
.btn-primary {
  background: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-secondary {
  background: var(--secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #475569;
  color: white;
}

.btn-success {
  background: var(--success);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-success:hover {
  background: #16a34a;
  color: white;
}

.btn-danger {
  background: var(--danger);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-danger:hover {
  background: #dc2626;
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.card-custom {
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-header-custom {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem 0.75rem 0 0;
  margin: -1.5rem -1.5rem 1.5rem -1.5rem;
  font-weight: 600;
}

/* FORMULARIOS */
.form-control-custom {
  border: 2px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.form-control-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.form-label-custom {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* NAVEGACIÓN */
.navbar-custom {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand-custom {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.navbar-brand-custom:hover {
  color: var(--primary);
}

.nav-link-custom {
  color: var(--secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.nav-link-custom:hover {
  color: var(--primary);
  background: #f1f5f9;
}

.nav-link-custom.active {
  color: var(--primary);
  background: #eff6ff;
}

/* HERO SECTION */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* SEARCH BAR */
.search-container {
  background: white;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

/* BUSINESS CARDS */
.business-card {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.business-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.business-card-image {
  height: 200px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.business-card-content {
  padding: 1.5rem;
}

.business-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.business-card-description {
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.business-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* RESERVA FORM */
.booking-form {
  background: white;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

.step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-item.active .step-number {
  background: var(--primary);
  color: white;
}

.step-item.completed .step-number {
  background: var(--success);
  color: white;
}

/* DASHBOARD */
.dashboard-header {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dashboard-subtitle {
  opacity: 0.9;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--secondary);
  font-weight: 500;
}

/* TABLES */
.table-custom {
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-custom table {
  width: 100%;
  border-collapse: collapse;
}

.table-custom th {
  background: #f8fafc;
  padding: 1rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid #e2e8f0;
}

.table-custom td {
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.table-custom tr:hover {
  background: #f8fafc;
}

/* BADGES */
.badge-custom {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

.badge-info {
  background: #e0f2fe;
  color: #0c4a6e;
}

/* ALERTS */
.alert-custom {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background: #f0fdf4;
  border-color: var(--success);
  color: #166534;
}

.alert-danger {
  background: #fef2f2;
  border-color: var(--danger);
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-color: var(--warning);
  color: #92400e;
}

.alert-info {
  background: #f0f9ff;
  border-color: var(--info);
  color: #0c4a6e;
}

/* FOOTER */
.footer-custom {
  background: var(--dark);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-custom a {
  color: var(--primary);
  text-decoration: none;
}

.footer-custom a:hover {
  color: #60a5fa;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .business-card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .table-custom {
    overflow-x: auto;
  }
  
  .booking-form {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }
  
  .card-custom {
    padding: 1rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .dashboard-header {
    padding: 1rem 0;
  }
  
  .dashboard-title {
    font-size: 1.5rem;
  }
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

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

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

/* PAYPAL CONTAINER */
.paypal-container {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

/* UTILITIES */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: var(--shadow-lg);
}

.border-custom {
  border: 1px solid #e2e8f0;
}

.rounded-custom {
  border-radius: 0.75rem;
}