/* Admin Panel */

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

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

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-light: #a78bfa;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
  --purple: #8b5cf6;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

/* Login - Diseño Elegante */
#login-screen {
  min-height: 100vh;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Elementos decorativos de fondo */
.login-bg-shape {
  position: absolute;
  pointer-events: none;
}

.login-bg-diamond {
  width: 200px;
  height: 200px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  transform: rotate(45deg);
  left: 10%;
  top: 30%;
}

.login-bg-diamond-2 {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transform: rotate(45deg);
  right: 15%;
  top: 20%;
}

.login-bg-circle {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  left: 25%;
  top: 15%;
}

.login-bg-circle-2 {
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  right: 25%;
  bottom: 30%;
}

.login-bg-circle-3 {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  left: 15%;
  bottom: 20%;
}

/* Botón volver */
.back-to-home-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  text-decoration: none;
  font-weight: 700;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
}

.back-to-home-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.back-to-home-btn .material-icons-round {
  font-size: 1.2rem;
}

.login-container {
  width: 100%;
  max-width: 420px;
  z-index: 10;
}

/* Logo BRINCAPARK */
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.login-logo-dot {
  width: 12px;
  height: 12px;
  background: #facc15;
  border-radius: 50%;
}

.login-logo-castle {
  font-size: 3rem !important;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-brand {
  color: white;
  font-family: "Nunito", sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin: 0;
}

/* Tarjeta de login */
.login-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.login-card h2 {
  color: var(--text-dark);
  font-family: "Nunito", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  text-align: center;
}

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

.form-group label {
  display: block;
  color: var(--text-gray);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-size: 1rem;
  font-family: "Nunito", sans-serif;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form-group input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  background: white;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Nunito", sans-serif;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

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

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Dashboard */
#dashboard-screen {
  display: flex;
  min-height: 100vh;
}

/* ========================================
   NUEVO SIDEBAR ELEGANTE - Estilo Violet
   ======================================== */
.sidebar-new {
  width: 80px;
  height: 100vh;
  background: #4c1d95;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1rem;
  border-radius: 0 3rem 3rem 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  z-index: 100;
  position: fixed;
  transition: all 0.3s ease;
}


@media (min-width: 1024px) {
  .sidebar-new {
    width: 260px;
    padding: 2rem 1.25rem;
  }
}

/* Header del sidebar */
.sidebar-new-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

@media (min-width: 1024px) {
  .sidebar-new-header {
    justify-content: flex-start;
  }
}

.sidebar-new-logo {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  color: #4c1d95;
}

.sidebar-new-logo .material-icons-round {
  font-size: 1.5rem;
}

.sidebar-new-title {
  display: none;
  font-family: "Nunito", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  letter-spacing: 0.05em;
}

.sidebar-new-title span {
  color: #facc15;
}

@media (min-width: 1024px) {
  .sidebar-new-title {
    display: block;
  }
}

/* Navegación del sidebar */
.sidebar-new-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.sidebar-new-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  color: rgba(233, 213, 255, 0.8);
  text-decoration: none;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  border-radius: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sidebar-new-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: scale(1.05);
}

.sidebar-new-item.active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

.sidebar-new-item .material-icons-round {
  font-size: 1.5rem;
}

.sidebar-new-text {
  display: none;
}

@media (min-width: 1024px) {
  .sidebar-new-text {
    display: block;
    font-size: 0.95rem;
  }
}

/* Botón Cerrar Sesión */
.sidebar-new-logout {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  color: rgba(233, 213, 255, 0.8);
  text-decoration: none;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  border-radius: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: auto;
}

.sidebar-new-logout:hover {
  color: #fca5a5;
}

.sidebar-new-logout .material-icons-round {
  font-size: 1.5rem;
}

/* Botón cerrar sidebar móvil */
.sidebar-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* CONTENIDO PRINCIPAL - Ajustado para nuevo sidebar */
.main-content {
  flex: 1;
  margin-left: 80px;
  padding: 2rem;
  background: var(--bg-light);
}

@media (min-width: 1024px) {
  .main-content {
    margin-left: 260px;
  }
}

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

.sidebar-header img {
  width: 40px;
  height: 40px;
}

.sidebar-header h2 {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.5rem;
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

.nav-item.active {
  background: linear-gradient(90deg,
      rgba(124, 58, 237, 0.1) 0%,
      transparent 100%);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.nav-item svg {
  flex-shrink: 0;
}

/* CONTENIDO PRINCIPAL */
.main-content {
  flex: 1;
  margin-left: 260px;
  padding: 2rem;
  background: var(--bg-light);
}

/* HEADER */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.header-title h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.header-title p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
}

.btn-refresh:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

/* Botones de acción */
.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-action::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-action:hover::before {
  width: 300px;
  height: 300px;
}

.btn-action svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-action .btn-text {
  position: relative;
  z-index: 1;
}

.btn-notifications {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-notifications:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-notifications:hover svg {
  animation: ring 0.5s ease;
}

@keyframes ring {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-10deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(10deg);
  }
}

.btn-refresh {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-refresh:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-refresh:hover svg {
  animation: rotate 0.6s ease;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 22px;
  text-align: center;
  animation: pulse 2s infinite;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

@media (max-width: 768px) {
  .btn-action .btn-text {
    display: none;
  }

  .btn-action {
    padding: 0.75rem;
  }
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.07);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(31, 38, 135, 0.12);
}

.stat-card:hover::before {
  opacity: 0.6;
}

/* Colores de las stat cards */
.stat-primary::before {
  background: #7c3aed;
}

.stat-success::before {
  background: #10b981;
}

.stat-warning::before {
  background: #f59e0b;
}

.stat-info::before {
  background: #3b82f6;
}

.stat-purple::before {
  background: #8b5cf6;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stat-primary .stat-icon {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
}

.stat-success .stat-icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.stat-warning .stat-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.stat-info .stat-icon {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.stat-purple .stat-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--purple);
}

.stat-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.stat-label {
  color: var(--text-gray);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-dark);
}

/* CONTENEDOR DE CARTAS */
.chart-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.chart-header {
  margin-bottom: 1.5rem;
}

.chart-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.chart-body {
  position: relative;
  height: 300px;
}

/* Tabla */
.table-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.table-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* BÚSQUEDA Y FILTROS MEJORADOS */
.search-filters-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  border-radius: 12px;
  border: 1px solid #e8eaf6;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-box svg {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.05);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1),
    0 4px 12px rgba(124, 58, 237, 0.15);
  transform: translateY(-1px);
}

.search-input::placeholder {
  color: var(--text-gray);
  font-weight: 400;
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.filter-group label {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

.filter-select,
.filter-date {
  padding: 0.75rem 1.125rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  min-width: 150px;
  font-weight: 500;
}

.filter-select:hover,
.filter-date:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.filter-select:focus,
.filter-date:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.btn-clear-filters {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: var(--danger);
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: "Outfit", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-filters:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-clear-filters svg {
  transition: transform 0.3s ease;
}

.btn-clear-filters:hover svg {
  transform: rotate(90deg);
}

.results-counter {
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-dark);
  border: 2px solid #e9d5ff;
  font-weight: 500;
}

.results-counter strong {
  color: var(--primary);
  background: var(--bg-light);
}

/* Tabla de reservas */
#tabla-reservas {
  width: 100%;
  min-width: 1000px;
  /* Ancho mínimo para que todas las columnas se vean bien */
  border-collapse: collapse;
  table-layout: auto;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}

#tabla-reservas th {
  padding: 0.75rem 0.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  background: var(--bg-light);
}

#tabla-reservas td {
  padding: 0.75rem 0.5rem;
  /* Reducido para ganar espacio */
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-dark);
  white-space: nowrap;
}

/* Optimizar columnas específicas */
#tabla-reservas th:nth-child(2),
/* Contacto */
#tabla-reservas td:nth-child(2) {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabla-reservas th:nth-child(1),
/* Cliente */
#tabla-reservas td:nth-child(1) {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#tabla-reservas tbody tr {
  transition: all 0.2s ease;
}

#tabla-reservas tbody tr:hover {
  background: var(--bg-light);
}

/* Estado badges */
.estado-select {
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-family: "Outfit", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.estado-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Botones de acción */
.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-edit,
.btn-delete {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
}

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

.btn-edit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.btn-delete {
  background: var(--danger);
  color: white;
}

.btn-delete:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* SECCIONES DE CONTENIDO */
.content-section {
  animation: fadeIn 0.4s ease;
  width: 100%;
  max-width: 100%;
}

/* Alineación secciones */
#section-inicio,
#section-reservas,
#section-reportes,
#section-configuracion {
  width: 100%;
}

/* Contenedores */
.table-container,
.chart-container {
  width: 100%;
  max-width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DISEÑO RESPONSIVO */
@media (max-width: 1024px) {
  .sidebar-new {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 280px;
    padding: 2rem 1.25rem;
  }

  .sidebar-new.active {
    transform: translateX(0);
  }

  .sidebar-new-text {
    display: block;
    font-size: 0.95rem;
  }

  .sidebar-new-title {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #tabla-reservas {
    font-size: 0.8rem;
  }

  #tabla-reservas th,
  #tabla-reservas td {
    padding: 0.75rem 0.5rem;
  }
}

/* SweetAlert custom */
.swal2-popup {
  border-radius: 15px !important;
  font-family: "Outfit", sans-serif !important;
}

.swal2-title {
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.swal2-input {
  border: 2px solid var(--border) !important;
  border-radius: 8px !important;
  font-family: "Outfit", sans-serif !important;
  padding: 0.75rem !important;
}

.swal2-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}

.swal2-confirm {
  background: var(--primary) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.swal2-cancel {
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* NOTIFICAICONES */
.btn-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: white;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-right: 1rem;
  color: var(--text-gray);
}

.btn-icon:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/*DASHBOARD GRID*/
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.widget-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.widget-header {
  margin-bottom: 1.5rem;
}

.widget-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.widget-header-styled h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.widget-header-styled h3 .material-icons-round {
  color: var(--text-dark);
  font-size: 1.5rem;
}

/* Widget calendario con estilo glass */
.widget-calendar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.widget-body {
  position: relative;
  min-height: 300px;
}

/* Calendario */
#calendar-widget {
  width: 100%;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.calendar-month {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.calendar-nav {
  display: flex;
  gap: 0.5rem;
}

.calendar-nav button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-light);
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.calendar-nav button:hover {
  background: var(--primary);
  color: white;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  padding: 0.5rem;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.calendar-day:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

/* Días con reservas */
.calendar-day.has-reservation {
  background: linear-gradient(135deg, #e9d5ff 0%, #c4b5fd 100%);
  color: #4c1d95;
  font-weight: 700;
}

.calendar-day.has-reservation::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 5px;
  height: 5px;
  background: #d946ef;
  border-radius: 50%;
}

/* Día actual */
.calendar-day.today {
  background: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
  border: 3px solid white;
}

.calendar-day.other-month {
  color: var(--text-gray);
  opacity: 0.3;
}

/* SECCION DE REPORTES */
.reports-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.reports-header {
  margin-bottom: 2rem;
}

.reports-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.reports-header p {
  color: var(--text-gray);
}

.export-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.export-card {
  border: 2px solid var(--border);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

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

.export-icon {
  color: var(--primary);
  margin-bottom: 1rem;
}

.export-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.export-card p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Outfit", sans-serif;
  color: white;
}

.btn-pdf {
  background: var(--danger);
}

.btn-pdf:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

.btn-excel {
  background: var(--success);
}

.btn-excel:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* SECCION DE METRICAS */
.metrics-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.metrics-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.metric-card {
  background: var(--bg-light);
  border-radius: 15px;
  padding: 2rem;
}

.metric-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.metric-card canvas {
  max-height: 300px;
}

/*  RESPONSIVE ACTUALIZADO  */
@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

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

  .btn-icon {
    margin-right: 0.5rem;
  }

  .dashboard-grid {
    gap: 1rem;
  }
}

/* Menú Admin Móvil */
.mobile-only {
  display: none;
}

/* Overlay para móvil */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1024px) {

  /* Sidebar oculto por defecto en móvil */
  .sidebar-new {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-radius: 0 2rem 2rem 0;
  }

  .sidebar-new.active {
    transform: translateX(0);
  }

  /* Botón hamburguesa */
  .mobile-only {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    width: 44px;
    height: 44px;
    transition: all 0.3s ease;
  }

  .mobile-only:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
  }

  /* Botón cerrar sidebar */
  .sidebar-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
  }

  /* Header del sidebar en móvil */
  .sidebar-new-header {
    padding-top: 3rem;
    margin-bottom: 2rem;
  }

  /* Mostrar título en móvil cuando sidebar está abierto */
  .sidebar-new.active .sidebar-new-title {
    display: block;
  }

  .sidebar-new.active .sidebar-new-text {
    display: block;
  }

  /* Contenido principal */
  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  /* Header en móvil */
  .dashboard-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 0.5rem;
  }

  .header-title {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-title h1 {
    font-size: 1.25rem;
  }

  .header-title p {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  /* Stats grid en móvil */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Dashboard grid en móvil */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .widget-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  /* Calendario en móvil */
  .calendar-day {
    font-size: 0.8rem;
  }

  .calendar-day-header {
    font-size: 0.65rem;
  }

  /* Tablas en móvil */
  .table-responsive {
    overflow-x: auto;
  }

  .reservations-table {
    min-width: 600px;
  }

  /* Formularios en móvil */
  .filter-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-group input,
  .filter-group select {
    width: 100%;
  }
}

@media (max-width: 480px) {

  /* Pantallas muy pequeñas */
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-direction: row;
    align-items: center;
  }

  .dashboard-header {
    padding: 0.75rem;
  }

  .header-title h1 {
    font-size: 1.1rem;
  }

  .btn-icon {
    width: 38px;
    height: 38px;
  }

  .mobile-only {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 1024px) {
  .sidebar-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .sidebar-new.active {
    transform: translateX(0);
  }

  .sidebar-new-nav {
    flex: 1;
    overflow-y: auto;
  }

  .sidebar-new-logout {
    margin-top: auto;
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {

  .content-section,
  #section-configuracion {
    padding: 0 8px;
    box-sizing: border-box;
  }

  /* Tarjetas de paquetes */
  .widget-card,
  .package-card,
  .card,
  .settings-card {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    max-width: calc(100% - 16px);
  }

  /* Inputs de precios */
  .widget-card input,
  .package-card input,
  .settings-card input,
  .form-group input,
  input[type="number"],
  input[type="text"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
  }

  .form-group,
  .input-group,
  .price-input-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1024px) {

  .main-content {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .metrics-section {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
  }

  .metric-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .metric-card canvas {
    max-width: 100%;
    height: auto !important;
  }

  .reports-container {
    padding: 1rem;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .export-options {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .export-card {
    padding: 1rem;
  }
}

@media (max-width: 768px) {

  .table-responsive,
  .table-container,
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .reservations-table,
  #tabla-reservas,
  table {
    min-width: 600px;
    width: max-content;
  }

  .top-customers-table,
  .clients-table {
    min-width: 500px;
  }

  .widget-card {
    padding: 1rem;
    overflow-x: auto;
  }

  .chart-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .chart-container canvas {
    max-width: 100%;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  body {
    overflow-x: hidden;
  }

  .dashboard-header {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .header-title h1 {
    font-size: 1.1rem;
  }
}