/**
 * Estilos premium BarberPro — teal + ámbar (look barbería profesional).
 * Más color y profundidad, sin caer en morados genéricos.
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --primary: #0d9488;
  --primary-deep: #0f766e;
  --primary-dark: #115e59;
  --primary-soft: #ccfbf1;
  --accent: #d97706;
  --accent-soft: #fff7ed;
  --ink: #0f172a;
  --muted: #64748b;
  --background: #eef6f4;
  --surface: #ffffff;
  --line: #c5ddd8;
  --shadow: 0 10px 40px rgba(15, 118, 110, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(217, 119, 6, 0.12), transparent 50%),
    linear-gradient(180deg, #f3faf8 0%, #eef6f4 40%, #f8fafc 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

h1, h2, h3, .font-display {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  letter-spacing: -0.02em;
}

.ambient-shadow { box-shadow: var(--shadow); }
.card-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* —— Header —— */
.app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 221, 216, 0.8);
  box-shadow: 0 4px 24px rgba(15, 118, 110, 0.06);
}
.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 55%, #d97706 140%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}
.nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all .15s ease;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-link.is-active {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
}

/* —— Cards / KPI —— */
.kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(197, 221, 216, 0.7);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--kpi-accent, var(--primary));
}
.kpi-card .kpi-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kpi-soft, var(--primary-soft));
  color: var(--kpi-accent, var(--primary-deep));
}
.surface-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(197, 221, 216, 0.7);
  box-shadow: var(--shadow);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff !important;
  font-weight: 650;
  border-radius: 0.75rem;
  padding: 0.6rem 1.25rem;
  border: none;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
  transition: transform .15s ease, filter .15s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(135deg, #c2410c, #d97706);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
}

.chart-bar {
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
  border-radius: 0.5rem 0.5rem 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-pendiente { background: #fef3c7; color: #92400e; }
.status-confirmada { background: #ccfbf1; color: #115e59; }
.status-en_curso { background: #dbeafe; color: #1e40af; }
.status-completada { background: #d1fae5; color: #065f46; }
.status-cancelada, .status-no_show { background: #fee2e2; color: #991b1b; }

/* —— Horario visual —— */
.schedule-day {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.schedule-day.is-open {
  background: linear-gradient(90deg, #f0fdfa, #fff);
  border-color: #99f6e4;
}
.schedule-day.is-closed {
  opacity: 0.65;
  background: #f1f5f9;
}
.schedule-day .day-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
}

/* —— Login / guest —— */
.guest-shell {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 118, 110, 0.55)),
    radial-gradient(circle at 20% 20%, rgba(217, 119, 6, 0.35), transparent 40%),
    linear-gradient(160deg, #0f766e, #134e4a 45%, #1c1917);
}
.login-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.flash-ok {
  background: linear-gradient(90deg, #ecfdf5, #f0fdfa);
  border: 1px solid #99f6e4;
  color: #115e59;
}
.flash-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.mobile-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(15, 118, 110, 0.08);
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
