/* Fussion Beauty — estilos base compartidos (portal + panel interno) */
:root {
  --bg: #0e0c0f;
  --bg-soft: #16131a;
  --card: #1d1822;
  --card-2: #251e2b;
  --line: #332a3b;
  --pink: #f2a0b3;
  --pink-strong: #e77e9c;
  --pink-soft: rgba(242, 160, 179, 0.14);
  --text: #f7f2f5;
  --muted: #a99ba6;
  --ok: #7ed9a7;
  --warn: #f2cf9b;
  --danger: #ff8fa5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font-body: 'Montserrat', 'Segoe UI', system-ui, Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-weight: 600; line-height: 1.2; }

a { color: var(--pink); text-decoration: none; }

button { font-family: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-pink { background: var(--pink); color: #23131a; }
.btn-outline { background: transparent; color: var(--pink); border: 1.5px solid var(--pink); }
.btn-ghost { background: var(--card-2); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border: 1.5px solid var(--danger); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

label { display: block; font-size: 12.5px; color: var(--muted); margin: 14px 0 5px; letter-spacing: 0.4px; }
label .req { color: var(--pink); }

input, select, textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 16px; /* evita zoom automático en iPhone */
  font-family: inherit;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--pink); }

/* Safari de iPhone: sin esto los campos de fecha/hora ignoran el ancho,
   se desbordan de su caja y centran el texto */
input[type='date'], input[type='time'] {
  color-scheme: dark;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 47px;
  text-align: left;
}
input[type='date']::-webkit-date-and-time-value,
input[type='time']::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}
textarea { resize: vertical; min-height: 70px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--card-2);
  border: 1.5px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip.active { background: var(--pink); border-color: var(--pink); color: #23131a; font-weight: 600; }
.chip:disabled { opacity: 0.35; cursor: not-allowed; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tag-disponible { background: rgba(126, 217, 167, 0.15); color: var(--ok); }
.tag-apartado { background: rgba(242, 207, 155, 0.15); color: var(--warn); }
.tag-alquilado { background: rgba(255, 143, 165, 0.16); color: var(--danger); }
.tag-sastreria { background: rgba(165, 200, 245, 0.15); color: #a5c8f5; }
.tag-inactivo { background: rgba(170, 155, 166, 0.15); color: var(--muted); }
.tag-pink { background: var(--pink-soft); color: var(--pink); }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.pink { color: var(--pink); }
.center { text-align: center; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #2a2130;
  border: 1px solid var(--pink);
  color: var(--text);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 14px;
  z-index: 300;
  box-shadow: var(--shadow);
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast.error { border-color: var(--danger); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 10, 0.72);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px 18px 26px;
  animation: slide-up 0.18s ease;
}
@keyframes slide-up { from { transform: translateY(30px); opacity: 0.5; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 20px; }
  .modal { border-radius: 18px; }
}
.modal h3 { margin-bottom: 4px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.modal-close {
  background: var(--card-2);
  border: none;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  flex: none;
}

.row { display: flex; gap: 10px; }
.row > * { flex: 1; }

::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
