/* OficioRed - Estilos Globales y Diseño Premium */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Paleta de Colores */
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-light: #eff6ff;
  --secondary: #f59e0b;
  --secondary-hover: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Tonos Neutros */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  
  /* Oscuros (para ciertas secciones y modo oscuro/glassmorphism) */
  --dark-bg: #0b0f19;
  --dark-card: #1e293b;
  --dark-border: #334155;
  
  /* Fuentes */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Sombras y Bordes */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  color: #0f172a;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

input, select, textarea {
  font-family: var(--font-body);
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Contenedor Principal */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: #0f172a;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Botones Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background-color: white;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-main);
  border-color: #cbd5e1;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

/* User Profile Dropdown */
.user-menu {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-weight: 600;
  color: var(--primary-hover);
}

.user-profile-btn img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Vistas de la aplicación */
.view-section {
  display: none;
  flex: 1;
}

.view-section.active {
  display: block;
}

/* --- LANDING PAGE VISTA --- */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 10% 20%, rgba(239, 246, 255, 0.7) 0%, rgba(219, 234, 254, 0.3) 90%);
  padding: 5rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.badge-mouth {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: #fef3c7;
  color: #d97706;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid #fde68a;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buscador del Hero */
.search-container {
  background-color: white;
  border-radius: var(--radius-xl);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  gap: 0.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.search-field {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 0.5rem 0.75rem;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
}

.search-field:last-of-type {
  border-right: none;
}

.search-field select, .search-field input {
  border: none;
  width: 100%;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-main);
  height: 36px;
}

.search-field svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .search-container {
    flex-direction: column;
    padding: 1rem;
    border-radius: var(--radius-lg);
  }
  
  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: 0.75rem 0;
  }
  
  .search-container button {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Categorías */
.categories-section {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.category-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background-color: var(--primary);
  color: white;
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 600;
}

/* Profesionales Destacados */
.featured-section {
  background-color: #f1f5f9;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-container {
  max-width: 1280px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Tarjeta de Profesional */
.prof-card {
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.prof-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.prof-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.prof-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.prof-tag {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-hover);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.prof-body {
  padding: 1.5rem;
  flex: 1;
}

.prof-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.prof-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prof-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: auto;
  font-size: 0.85rem;
}

.prof-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: #1e293b;
}

.prof-rating svg {
  color: var(--secondary);
  fill: var(--secondary);
}

.prof-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.prof-price span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.prof-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  background-color: #fafafa;
  border-top: 1px solid var(--border);
}

/* Cómo funciona */
.how-it-works {
  max-width: 1280px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4);
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- BÚSQUEDA Y FILTROS VISTA --- */
.search-page {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .search-page {
    grid-template-columns: 1fr;
  }
}

.filters-sidebar {
  background-color: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  align-self: start;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group h4 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.35rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.filter-group input[type="text"], .filter-group select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.9rem;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* --- MODALES --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-backdrop.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--bg-main);
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Modales específicos: Login/Register */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: #1e293b;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.error-alert {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: var(--danger);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: none;
}

/* Modal Detalle Profesional */
.prof-detail-modal {
  max-width: 700px;
}

.prof-detail-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.prof-detail-hero img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-light);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.review-item {
  background-color: var(--bg-main);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.review-author {
  font-weight: 600;
}

.review-stars {
  color: var(--secondary);
}

/* Modal Proceso de Reserva (Stepper) */
.booking-modal {
  max-width: 600px;
}

.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2rem;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--border);
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 25%;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.25rem;
  transition: var(--transition);
}

.step.active .step-circle {
  border-color: var(--primary);
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.step.completed .step-circle {
  border-color: var(--success);
  background-color: var(--success);
  color: white;
}

.booking-step-content {
  display: none;
}

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

/* Calendario en Reserva */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  text-align: center;
}

.calendar-header-day {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.calendar-day:hover:not(.disabled) {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

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

.calendar-day.disabled {
  color: var(--text-muted);
  opacity: 0.3;
  background-color: #f1f5f9;
  cursor: not-allowed;
}

/* Horas disponibles */
.time-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.time-slot {
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover {
  border-color: var(--primary);
}

.time-slot.selected {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-hover);
  font-weight: 600;
}

/* Resumen del Pago */
.summary-card {
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Pasarela de pago ficticia */
.webpay-box {
  background: linear-gradient(135deg, #cc292b 0%, #a81c1e 100%);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-lg);
}

.webpay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
}

.webpay-logo {
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
}

.webpay-form input {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.webpay-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.webpay-form input:focus {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: white;
  box-shadow: none;
}

/* --- CLIENT DASHBOARD --- */
.dashboard-container {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

.dashboard-sidebar {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  align-self: start;
}

.dash-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dash-menu-item:hover, .dash-menu-item.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.dashboard-content {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 500px;
}

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

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.stat-info h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-info p {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
}

/* Tablas */
.table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background-color: var(--bg-main);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

tr:last-child td {
  border-bottom: none;
}

/* Badges de Estado */
.badge-status {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
}

.badge-status.pending {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-status.completed {
  background-color: #d1fae5;
  color: #065f46;
}

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

.badge-status.paid {
  background-color: #d1fae5;
  color: #065f46;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 1px solid var(--dark-border);
  margin-top: auto;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: 3rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Alertas de Notificación Dinámicas */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #1e293b;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success);
}

.toast-error {
  border-left: 4px solid var(--danger);
}

/* Modales interactivos vacíos o estados vacíos */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state svg {
  color: var(--text-muted);
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
