/* ==========================================================================
   Elegance & Luxury Nails Studio — quiet luxury
   Crema/nude, dorado rosado, marrón taupe. Mobile-first.
   ========================================================================== */
:root {
  --cream: #faf6f0;
  --cream-2: #f4eade;
  --nude: #f1e6da;
  --card: #fffdf9;
  --rose: #b76e79;
  --rose-soft: #d9a1a9;
  --rose-pale: #f3e0dc;
  --gold: #c9a227;
  --taupe: #6b584f;
  --ink: #46352e;
  --muted: #96837a;
  --line: #e7d9cb;
  --ok: #7d9b76;
  --warn: #c9a227;
  --bad: #b3543f;
  --info: #7a8ba0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(107, 88, 79, 0.12);
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); margin: 0 0 .4em; }
a { color: var(--rose); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  letter-spacing: .35em; text-transform: uppercase; font-size: .68rem;
  color: var(--rose); font-weight: 600; text-align: center; margin-bottom: .6rem;
}
.section { padding: 56px 0 8px; }
.section h2 { text-align: center; font-size: 1.9rem; }
.section .sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Header / hero ---------- */
.site-header {
  text-align: center; padding: 34px 20px 10px;
  background: linear-gradient(180deg, #fffdf9 0%, var(--cream) 100%);
}
.site-header .logo { width: 118px; height: 118px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; box-shadow: var(--shadow); border: 2px solid var(--rose-pale); }
.site-header h1 { font-size: 2rem; letter-spacing: .02em; }
.site-header h1 .amp { color: var(--rose); font-style: italic; }
.site-header p { color: var(--taupe); margin: 4px 0 0; font-size: .98rem; }
.hero-line { width: 64px; height: 2px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, var(--rose-soft), transparent); }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-weight: 600; letter-spacing: .04em;
  padding: 13px 26px; border-radius: 999px; font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--rose-soft), var(--rose)); color: #fff; box-shadow: 0 8px 20px rgba(183, 110, 121, .35); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--rose); border: 1.5px solid var(--rose-soft); }
.btn-whatsapp { background: #4caf7d; color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-small { padding: 8px 16px; font-size: .85rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Servicios ---------- */
.services { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.service-photo { height: 190px; position: relative; overflow: hidden; }
.service-photo img { width: 100%; height: 100%; object-fit: cover; }
.service-photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, #f7e3d3 0, transparent 55%),
    radial-gradient(circle at 80% 90%, #e5b8a8 0, transparent 50%),
    linear-gradient(140deg, #eed9c8, #dcb49d 60%, #c99a86);
}
.service-photo.placeholder span {
  font-family: var(--serif); font-size: 2.6rem; color: rgba(255, 253, 249, .92);
  letter-spacing: .08em; text-shadow: 0 2px 14px rgba(107, 88, 79, .35);
}
.service-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.service-body h3 { font-size: 1.3rem; margin: 0; }
.service-body p { color: var(--taupe); margin: 0; font-size: .94rem; flex: 1; }

/* ---------- Reserva ---------- */
.booking-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 20px; max-width: 640px; margin: 0 auto;
}
.step-label { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rose); font-weight: 700; margin: 18px 0 10px; }
.step-label:first-child { margin-top: 0; }
.date-row { display: flex; gap: 10px; align-items: center; }
input[type="date"], input[type="time"], input[type="text"], input[type="tel"],
input[type="password"], input[type="number"], select, textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 13px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rose-pale); border-color: var(--rose-soft); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot {
  border: 1.5px solid var(--line); background: #fff; color: var(--taupe);
  border-radius: 999px; padding: 9px 15px; font-family: var(--sans); font-size: .92rem; cursor: pointer;
}
.slot:hover { border-color: var(--rose-soft); }
.slot.selected { background: var(--rose); border-color: var(--rose); color: #fff; font-weight: 600; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--taupe); margin-bottom: 5px; }
.policy-box {
  background: var(--nude); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-size: .88rem; color: var(--taupe); margin-bottom: 10px;
}
.policy-box h4 { margin: 0 0 4px; font-family: var(--serif); color: var(--ink); font-size: 1rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--rose); flex: none; margin-top: 2px; }
.msg { border-radius: 12px; padding: 12px 15px; font-size: .92rem; margin: 12px 0; display: none; }
.msg.error { display: block; background: #f9e8e2; color: var(--bad); border: 1px solid #ecc9bd; }
.msg.ok { display: block; background: #edf3ea; color: #4c6b47; border: 1px solid #cfdfc9; }
.empty-note { color: var(--muted); font-size: .92rem; padding: 6px 0; }

/* ---------- Confirmación ---------- */
.confirmation { text-align: center; }
.confirmation .big-check {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--rose-soft), var(--rose)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.confirm-detail {
  text-align: left; background: var(--nude); border-radius: 14px; padding: 16px 18px; margin: 16px 0;
}
.confirm-detail div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .95rem; }
.confirm-detail dt { color: var(--muted); } .confirm-detail dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- Horario laboral ---------- */
.hours-card {
  max-width: 520px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px;
}
.hours-card .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .97rem; }
.hours-card .row:last-child { border-bottom: 0; }
.hours-card .row b { color: var(--taupe); font-weight: 600; }
.special-tag { color: var(--rose); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; color: var(--muted); font-size: .88rem; padding: 48px 20px 90px; }
.admin-link { color: var(--muted); text-decoration: underline; cursor: pointer; background: none; border: 0; font: inherit; }

/* ---------- Panel administrativo ---------- */
.admin { display: none; }
body.admin-mode .public-view { display: none; }
body.admin-mode .admin { display: block; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0 6px; flex-wrap: wrap;
}
.admin-top h2 { margin: 0; font-size: 1.5rem; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 18px; }
.tab {
  border: 1.5px solid var(--line); background: #fff; color: var(--taupe); cursor: pointer;
  padding: 9px 16px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .9rem;
}
.tab.active { background: var(--rose); border-color: var(--rose); color: #fff; }
.login-card { max-width: 380px; margin: 60px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: center; }
.login-card input { text-align: center; font-size: 1.3rem; letter-spacing: .4em; }
.view-switch { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.view-switch .spacer { flex: 1; }
.appt {
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--muted);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; box-shadow: 0 4px 14px rgba(107,88,79,.07);
}
.appt .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.appt .time { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; }
.appt .meta { color: var(--taupe); font-size: .9rem; }
.appt .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: #fff; }
.st-pendiente { background: var(--warn); }
.st-confirmada { background: var(--ok); }
.st-en_proceso { background: var(--info); }
.st-completada { background: var(--taupe); }
.st-cancelada { background: #b09a8e; }
.st-no_presentada { background: var(--bad); }
.appt.b-pendiente { border-left-color: var(--warn); }
.appt.b-confirmada { border-left-color: var(--ok); }
.appt.b-en_proceso { border-left-color: var(--info); }
.appt.b-completada { border-left-color: var(--taupe); }
.appt.b-cancelada { border-left-color: #b09a8e; opacity: .75; }
.appt.b-no_presentada { border-left-color: var(--bad); }
.mini-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--taupe); cursor: pointer;
  border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-family: var(--sans); font-weight: 600;
}
.mini-btn:hover { border-color: var(--rose-soft); color: var(--rose); }
.mini-btn.danger { color: var(--bad); border-color: #ecc9bd; }
.confirm-box { background: #f9e8e2; border: 1px solid #ecc9bd; border-radius: 12px; padding: 12px 14px; margin-top: 10px; font-size: .9rem; }
.day-title { font-family: var(--serif); font-size: 1.15rem; margin: 20px 0 8px; color: var(--taupe); text-transform: capitalize; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel-card h3 { font-size: 1.2rem; }
.note-item { background: var(--nude); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: .9rem; }
.note-item small { color: var(--muted); display: block; }
.hidden { display: none !important; }
.mt { margin-top: 14px; }
.small { font-size: .85rem; color: var(--muted); }
