/* ==========================================
   MI CUENTA — Estilos
   ========================================== */

/* Ocultar navbar del sitio público */
body .navbar,
body .header-bg,
body .checkpoint-banner,
body .main-footer {
  display: none !important;
}

body {
  overflow-x: hidden;
}

/* --- Layout Principal --- */
.cuenta-panel {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* --- Sidebar --- */
.cuenta-sidebar {
  width: 220px;
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  font-family: var(--font-body);
}

.cuenta-sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid #1e293b;
}

.cuenta-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.cuenta-logo svg {
  color: var(--accent-orange);
}

.cuenta-sidebar-subtitle {
  display: block;
  font-size: 0.7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-family: var(--font-body);
}

/* --- Navegación --- */
.cuenta-nav {
  flex: 1;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cuenta-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  font-family: var(--font-body);
}

.cuenta-nav-item:hover {
  background: #1e293b;
  color: #e2e8f0;
}

.cuenta-nav-item.active {
  background: #1e293b;
  color: #ffffff;
  border-left-color: var(--accent-orange);
}

.cuenta-nav-item.active svg {
  color: var(--accent-orange);
}

.cuenta-sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid #1e293b;
}

.cuenta-back-link {
  color: #64748b;
  font-size: 0.8rem;
}

.cuenta-back-link:hover {
  color: #94a3b8;
}

.cuenta-logout-link {
  color: #f87171;
  font-size: 0.8rem;
}

.cuenta-logout-link:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* --- Main Content --- */
.cuenta-main {
  flex: 1;
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cuenta-main.full-width {
  margin-left: 0;
}

/* --- Topbar --- */
.cuenta-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cuenta-page-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0;
}

.cuenta-page-date {
  font-size: 0.85rem;
  color: #64748b;
  margin: 2px 0 0 0;
}

.cuenta-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cuenta-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: cuenta-pulse 2s infinite;
}

@keyframes cuenta-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cuenta-status-text {
  font-size: 0.85rem;
  color: #64748b;
}

/* --- Content Area --- */
.cuenta-content {
  flex: 1;
  padding: 32px;
}

/* --- Loading / Spinner --- */
.cuenta-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  height: 100vh;
  color: #94a3b8;
  font-family: var(--font-body);
}

.cuenta-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent-orange);
  border-radius: 50%;
  animation: cuenta-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

/* ==========================================
   AUTH FORMS (Login / Registro)
   ========================================== */

.cuenta-auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #ffffff 100%);
}

.cuenta-auth-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 40px 36px;
  font-family: var(--font-body);
}

.cuenta-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.cuenta-auth-logo svg {
  color: var(--accent-orange);
}

.cuenta-auth-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.cuenta-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cuenta-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cuenta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cuenta-form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
}

.cuenta-form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.cuenta-form-input:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

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

/* --- Buttons --- */
.cuenta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.cuenta-btn-primary {
  background: var(--accent-orange);
  color: #ffffff;
}

.cuenta-btn-primary:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

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

.cuenta-btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.cuenta-btn-secondary:hover {
  background: #e2e8f0;
}

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

.cuenta-btn-outline:hover {
  background: rgba(217, 119, 6, 0.05);
}

/* --- Auth Footer Links --- */
.cuenta-auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #64748b;
}

.cuenta-auth-footer a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 500;
}

.cuenta-auth-footer a:hover {
  text-decoration: underline;
}

/* --- Error / Success Messages --- */
.cuenta-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
}

.cuenta-message.visible {
  display: block;
}

.cuenta-message-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.cuenta-message-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* ==========================================
   AUTHENTICATED VIEWS
   ========================================== */

/* --- Cards --- */
.cuenta-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.cuenta-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cuenta-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #0f172a;
  margin: 0;
}

.cuenta-card-body {
  padding: 24px;
}

/* --- Profile --- */
.cuenta-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cuenta-profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cuenta-profile-field.full-width {
  grid-column: span 2;
}

/* --- Stats Grid --- */
.cuenta-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.cuenta-stat-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cuenta-stat-label {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cuenta-stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #0f172a;
  margin-top: 4px;
}

/* --- Table --- */
.cuenta-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.cuenta-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.cuenta-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.cuenta-table tbody tr:hover {
  background: #fafbfc;
}

.cuenta-table .order-id {
  font-weight: 600;
  color: var(--accent-orange);
}

/* --- Badges --- */
.cuenta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.cuenta-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

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

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

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

.cuenta-badge-reembolso {
  background: #e0e7ff;
  color: #3730a3;
}

/* --- Empty State --- */
.cuenta-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #94a3b8;
  text-align: center;
}

.cuenta-empty-state svg {
  margin-bottom: 16px;
  color: #cbd5e1;
}

.cuenta-empty-state p {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.5;
}

/* --- Form Actions --- */
.cuenta-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* --- Mobile Bottom Bar (hidden on desktop) --- */
.cuenta-bottombar {
  display: none;
}

@media (max-width: 768px) {
  /* Hide the old sidebar completely on mobile */
  .cuenta-sidebar {
    display: none !important;
  }

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

  .cuenta-content {
    padding: 20px 16px;
    padding-bottom: 100px;
  }

  .cuenta-auth-card {
    padding: 32px 24px;
  }

  .cuenta-profile-grid {
    grid-template-columns: 1fr;
  }

  .cuenta-profile-field.full-width {
    grid-column: span 1;
  }

  .cuenta-form-row {
    grid-template-columns: 1fr;
  }

  .cuenta-table {
    font-size: 0.8rem;
  }

  .cuenta-table th,
  .cuenta-table td {
    padding: 10px 8px;
  }

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

  .cuenta-topbar {
    padding: 16px 20px;
  }

  .cuenta-page-title {
    font-size: 1.2rem;
  }

  /* Show bottom bar */
  .cuenta-bottombar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0f172a;
    border-top: 1px solid #1e293b;
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
  }

  .cuenta-bottombar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
  }

  .cuenta-bottombar-item svg {
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
  }

  .cuenta-bottombar-item.active {
    color: var(--accent-orange);
  }

  .cuenta-bottombar-item.active svg {
    transform: scale(1.1);
  }

  /* Active indicator dot */
  .cuenta-bottombar-item.active::after {
    content: '';
    position: absolute;
    top: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-orange);
  }

  .cuenta-bottombar-item:active {
    color: #94a3b8;
  }

  .cuenta-bottombar-item:active svg {
    transform: scale(0.9);
  }

  .cuenta-bottombar-logout {
    color: #ef4444;
  }

  .cuenta-bottombar-logout:active {
    color: #dc2626;
  }
}

/* ==========================================
   CHECK-IN VIEW
   ========================================== */

.cc-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 80px 20px;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.cc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  color: #94a3b8;
}

.cc-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: #475569;
  margin: 0 0 8px;
}

.cc-empty p {
  font-size: 0.9rem;
  max-width: 320px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.cc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.cc-btn-primary:hover {
  background: #b45309;
}

.cc-btn-primary:active {
  transform: scale(0.97);
}

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

.cc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.cc-btn-secondary:hover {
  background: #e2e8f0;
}

/* --- Check-in wrap --- */
.cc-checkin-wrap {
  max-width: 900px;
}

.cc-checkin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cc-checkin-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0;
}

.cc-checkin-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cc-checkin-done {
  background: #dcfce7;
  color: #166534;
}

.cc-checkin-pending {
  background: #fef3c7;
  color: #92400e;
}

/* --- Grid --- */
.cc-checkin-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

/* --- Summary card --- */
.cc-checkin-summary {
  position: sticky;
  top: 100px;
}

.cc-checkin-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cc-checkin-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
}

.cc-checkin-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #0f172a;
  margin: 0 0 10px;
}

.cc-checkin-dates {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 6px;
}

.cc-checkin-guests {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0 0 6px;
}

.cc-checkin-total {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-orange);
  font-weight: 700;
  margin: 10px 0 0;
}

/* --- Form area --- */
.cc-checkin-form-area {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cc-checkin-alert {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  margin-bottom: 24px;
}

.cc-checkin-form-area h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #0f172a;
  margin: 0 0 16px;
}

/* --- Form elements --- */
.cc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.cc-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cc-form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  font-family: var(--font-body);
}

.cc-form-group input,
.cc-form-group select {
  padding: 11px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.cc-form-group input:focus,
.cc-form-group select:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

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

/* --- Companions --- */
.cc-companions-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.cc-companions-section h4 {
  margin-bottom: 14px;
}

.cc-companion-count {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.85rem;
}

.cc-companion-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.cc-companion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cc-companion-header span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.cc-companion-remove {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
  line-height: 1;
}

.cc-companion-remove:hover {
  background: #fef2f2;
}

.cc-checkin-submit {
  margin-top: 24px;
  width: 100%;
}

/* ==========================================
   QR VIEW
   ========================================== */

.cc-qr-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.cc-qr-header {
  margin-bottom: 28px;
}

.cc-qr-badge {
  display: inline-block;
  padding: 5px 16px;
  background: #dcfce7;
  color: #166534;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.cc-qr-header h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #0f172a;
  margin: 0 0 8px;
}

.cc-qr-header p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.cc-qr-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 32px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.cc-qr-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.cc-qr-canvas canvas,
.cc-qr-canvas img {
  border-radius: 10px;
}

.cc-qr-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.cc-qr-detail {
  font-size: 0.88rem;
  color: #334155;
  font-family: var(--font-body);
}

.cc-qr-detail strong {
  color: #0f172a;
}

.cc-qr-actions {
  margin-top: 28px;
}

/* ==========================================
   CHECK-IN / QR RESPONSIVE
   ========================================== */

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

  .cc-checkin-summary {
    position: static;
  }

  .cc-checkin-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 14px;
    align-items: center;
  }

  .cc-checkin-img {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
  }

  .cc-form-row {
    grid-template-columns: 1fr;
  }

  .cc-checkin-form-area {
    padding: 20px;
  }

  .cc-checkin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cc-checkin-header h2 {
    font-size: 1.2rem;
  }
}

/* ==========================================
   DASHBOARD / FAVORITOS / PENDIENTES
   ========================================== */

/* --- Hero saludo --- */
.cuenta-dash-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  border-radius: 14px;
  padding: 28px 28px;
  margin-bottom: 24px;
  color: #ffffff;
}

.cuenta-dash-greeting {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: #ffffff;
}

.cuenta-dash-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

/* --- Tiles de acceso rápido --- */
.cuenta-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.cuenta-dash-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.cuenta-dash-tile svg {
  color: var(--accent-orange);
}

.cuenta-dash-tile:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.12);
  transform: translateY(-2px);
}

/* --- Fila de reserva en resumen --- */
.cuenta-reserva-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cuenta-reserva-row:last-child {
  border-bottom: none;
}

.cuenta-reserva-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cuenta-reserva-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.cuenta-reserva-total {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-orange);
  white-space: nowrap;
}

/* --- Chips de favoritos --- */
.cuenta-fav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cuenta-fav-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.2s;
}

.cuenta-fav-chip:hover {
  background: #fff7ed;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* --- Lista de favoritos --- */
.cuenta-fav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cuenta-fav-item:last-child {
  border-bottom: none;
}

.cuenta-fav-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cuenta-fav-item-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.cuenta-fav-item-link:hover {
  color: var(--accent-orange);
}

.cuenta-fav-item-type {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.cuenta-btn-danger:hover {
  background: #fecaca;
}

.cuenta-btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

/* --- Reservas pendientes de pago --- */
.cuenta-pendiente-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.cuenta-pendiente-row:last-child {
  border-bottom: none;
}

.cuenta-pendiente-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cuenta-pendiente-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.cuenta-pendiente-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.cuenta-pendiente-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 768px) {
  .cuenta-dash-hero {
    padding: 22px 18px;
  }

  .cuenta-dash-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cuenta-pendiente-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cuenta-fav-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   DASHBOARD MODERNO (escritorio cliente)
   ========================================== */

.cdash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  color: #fff;
  background: linear-gradient(120deg, #0f172a 0%, #1e3a5f 55%, #0ea5b7 130%);
}

.cdash-hero-bg {
  position: absolute;
  top: -60%;
  right: -10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 183, 0.35) 0%, rgba(14, 165, 183, 0) 70%);
  pointer-events: none;
}

.cdash-hero-content {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  z-index: 1;
}

.cdash-hero-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.cdash-hero-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cdash-hero-date {
  margin: 0;
  font-size: 0.8rem;
  text-transform: capitalize;
  color: #7dd3fc;
  letter-spacing: 0.3px;
}

.cdash-hero-greeting {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.15;
  color: #fff;
}

.cdash-hero-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5e1;
  max-width: 520px;
}

.cdash-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.cdash-hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
}

.cdash-hero-chip.warning {
  background: rgba(251, 191, 36, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

/* --- Próximo viaje --- */
.cdash-next-trip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--accent-orange);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.cdash-next-trip.done {
  border-left-color: #16a34a;
}

.cdash-next-trip-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  background: #fff7ed;
}

.cdash-next-trip.done .cdash-next-trip-icon {
  color: #16a34a;
  background: #f0fdf4;
}

.cdash-next-trip-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cdash-next-trip-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-orange);
}

.cdash-next-trip.done .cdash-next-trip-label {
  color: #16a34a;
}

.cdash-next-trip-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdash-next-trip-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.cdash-next-trip-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Botones del dashboard --- */
.cdash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cdash-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.25);
}

.cdash-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
}

.cdash-btn-outline {
  background: #fff;
  border-color: #cbd5e1;
  color: #334155;
}

.cdash-btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* --- Secciones --- */
.cdash-section {
  margin-bottom: 24px;
}

.cdash-section-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #0f172a;
}

/* --- Accesos rápidos --- */
.cdash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.cdash-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  color: #334155;
  transition: all 0.2s;
}

.cdash-action:hover {
  border-color: var(--accent-orange);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.12);
  transform: translateY(-3px);
}

.cdash-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff7ed;
  color: var(--accent-orange);
}

.cdash-action-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.cdash-action-sub {
  font-size: 0.74rem;
  color: #64748b;
}

/* --- Alerta pendientes de pago --- */
.cdash-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
}

.cdash-alert-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fef3c7;
  color: #d97706;
}

.cdash-alert-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.85rem;
  color: #78350f;
}

/* --- Stats --- */
.cdash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.cdash-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.cdash-stat-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cdash-stat-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cdash-stat-value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.cdash-stat-label {
  font-size: 0.76rem;
  color: #64748b;
}

/* --- Cards genéricas --- */
.cdash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
}

.cdash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid #f1f5f9;
}

.cdash-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  color: #0f172a;
}

.cdash-card-body {
  padding: 6px 22px;
}

.cdash-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-orange);
  text-decoration: none;
}

.cdash-link:hover {
  text-decoration: underline;
}

/* --- Filas de reserva --- */
.cdash-reserva-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f1f5f9;
}

.cdash-reserva-row:last-child {
  border-bottom: none;
}

.cdash-reserva-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-orange);
  background: #fff7ed;
}

.cdash-reserva-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cdash-reserva-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cdash-reserva-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.cdash-reserva-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.cdash-reserva-total {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

/* --- Badges --- */
.cdash-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
}

.cdash-badge-completado {
  background: #f0fdf4;
  color: #16a34a;
}

.cdash-badge-pendiente {
  background: #fffbeb;
  color: #d97706;
}

.cdash-badge-cancelado {
  background: #fef2f2;
  color: #dc2626;
}

.cdash-badge-reembolso {
  background: #eff6ff;
  color: #2563eb;
}

/* --- Chips favoritos --- */
.cdash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
}

.cdash-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
}

.cdash-chip:hover {
  background: #fff7ed;
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* --- Estado vacío --- */
.cdash-empty {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.cdash-empty p {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

/* --- Responsive dashboard --- */
@media (max-width: 768px) {
  .cdash-hero {
    padding: 24px 20px;
  }

  .cdash-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .cdash-hero-greeting {
    font-size: 1.4rem;
  }

  .cdash-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cdash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cdash-next-trip {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .cdash-next-trip-actions {
    width: 100%;
  }

  .cdash-next-trip-actions .cdash-btn {
    flex: 1;
  }

  .cdash-alert {
    flex-direction: column;
    align-items: flex-start;
  }

  .cdash-reserva-row {
    flex-wrap: wrap;
  }

  .cdash-reserva-right {
    align-items: flex-start;
  }
}
