:root {
  --vino: #743a39;
  --vino-2: #5e2d2c;
  --rosa: #c28a85;
  --beige: #e6c7a8;
  --blush: #f2dcdc;
  --crema: #f8f1e6;
  --papel: #fdfaf5;
  --tinta: #2b1d1c;
  --gris: #7d6e6a;
  --linea: #ead9cc;
  --ok: #4f7a5a;
  --alerta: #b5762f;
  --error: #a33b3b;
  --radio: 18px;
  --rosa-oscuro: #a86c64;
  --oro-rosa: linear-gradient(135deg, #c58b80 0%, #9d5d55 55%, #7d4442 100%);
  --sombra-alta: 0 24px 48px -20px rgba(80, 35, 30, .35);
  --sombra: 0 1px 2px rgba(60, 30, 25, .06), 0 8px 24px rgba(60, 30, 25, .06);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); font-size: 16px; line-height: 1.45;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--vino); margin: 0; letter-spacing: .2px; }
h1 { font-size: 2rem; } h2 { font-size: 1.55rem; } h3 { font-size: 1.2rem; }
a { color: var(--vino); }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--gris); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; background: var(--oro-rosa); color: #fff;
  padding: .78rem 1.5rem; border-radius: 999px; cursor: pointer; font-weight: 500;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; transition: filter .2s, transform .2s, box-shadow .2s; min-height: 46px;
  box-shadow: 0 12px 24px -14px rgba(116, 58, 57, .7);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: rgba(255,255,255,.6); color: var(--vino); border-color: var(--linea); box-shadow: none; }
.btn.ghost:hover { background: var(--blush); }
.btn.soft { background: var(--blush); border-color: var(--blush); color: var(--vino); box-shadow: none; }
.btn.wa { background: linear-gradient(135deg, #3c9a6e, #2a6f4f); }
.btn.danger { background: transparent; color: var(--error); border-color: var(--error); box-shadow: none; }
.btn.sm { padding: .4rem .95rem; min-height: 36px; font-size: .68rem; letter-spacing: .12em; }
.btn.block { width: 100%; }

label { display: block; font-size: .85rem; color: var(--gris); margin: .7rem 0 .25rem; }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=time], select, textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--linea); border-radius: 10px;
  background: #fff; min-height: 44px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--rosa); box-shadow: 0 0 0 3px rgba(194, 138, 133, .2); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; align-items: center; gap: .5rem; margin: .6rem 0; color: var(--tinta); font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--vino); }

.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); box-shadow: var(--sombra); }
.pill { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--crema); color: var(--vino); border: 1px solid var(--linea); white-space: nowrap; }
.pill.vip { background: var(--beige); border-color: var(--beige); color: var(--vino-2); }
.pill.postop { background: var(--vino); color: var(--crema); border-color: var(--vino); }
.pill.nueva { background: #fff4e5; color: var(--alerta); border-color: #f3dcb9; }
.pill.confirmada { background: #eef5ef; color: var(--ok); border-color: #d2e5d6; }
.pill.atendida { background: #ecebf3; color: #4c4a76; border-color: #d9d7ea; }
.pill.cancelada, .pill.no_asistio { background: #f8eaea; color: var(--error); border-color: #efd0d0; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(20px);
  background: var(--tinta); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; opacity: 0;
  transition: .25s; z-index: 1000; max-width: calc(100% - 32px); text-align: center; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--error); }

/* ---------- Página pública · estilo med-spa ---------- */
body.pub { background: var(--papel); }
.eyebrow { font-family: var(--sans); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--rosa-oscuro); margin: 0 0 10px; font-weight: 500; }
h1 em, h2 em, h3 em, .date-title em { font-style: italic; color: var(--rosa); font-weight: 500; }
.pub-nav {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(253, 250, 245, .82); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid rgba(234, 217, 204, .6);
}
.pub-nav img { height: 34px; width: auto; }
.hero {
  position: relative; overflow: hidden; display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1fr; padding: clamp(36px, 7vw, 96px) clamp(16px, 5vw, 64px) clamp(44px, 7vw, 96px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(242, 220, 220, .95) 0%, rgba(242, 220, 220, 0) 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(230, 199, 168, .45) 0%, rgba(230, 199, 168, 0) 70%),
    linear-gradient(180deg, #fbf3ee 0%, var(--papel) 100%);
}
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); line-height: 1.02; color: var(--tinta); font-weight: 500; letter-spacing: -.5px; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--gris); max-width: 34rem; margin: 18px 0 28px; line-height: 1.65; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; gap: 0; margin-top: 38px; flex-wrap: wrap; }
.hero-facts div { padding: 0 22px; border-left: 1px solid var(--linea); }
.hero-facts div:first-child { padding-left: 0; border-left: none; }
.hero-facts b { display: block; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; color: var(--tinta); line-height: 1.1; }
.hero-facts span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gris); }
.hero-art { position: relative; display: grid; place-items: center; min-height: 340px; }
.hero-card {
  width: min(380px, 82vw); aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px;
  background: linear-gradient(160deg, #f6d9d6 0%, #e8b9b0 45%, #b9776d 100%);
  box-shadow: 0 40px 80px -30px rgba(116, 58, 57, .45), inset 0 0 0 10px rgba(255, 255, 255, .35);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.hero-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 40% at 30% 20%, rgba(255,255,255,.55), transparent 70%); }
.hero-card img { width: 76%; position: relative; z-index: 1; filter: drop-shadow(0 6px 14px rgba(80, 30, 28, .35)); margin-top: 18%; }
.hero-badge {
  position: absolute; right: max(0px, calc(50% - 250px)); bottom: 28px; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 12px 16px; border-radius: 18px; box-shadow: var(--sombra-alta); animation: float 6s ease-in-out infinite;
}
.hero-badge span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--oro-rosa); flex: none; }
.hero-badge b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: block; color: var(--tinta); }
.hero-badge small { color: var(--gris); font-size: .78rem; }
@keyframes float { 50% { transform: translateY(-8px); } }

.sec { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px) 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 40px; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); color: var(--tinta); font-weight: 500; line-height: 1.08; }
.sec-head > p { max-width: 24rem; margin: 0; line-height: 1.6; }
.sec-head.center { justify-content: center; text-align: center; }

.svc-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.svc {
  position: relative; overflow: hidden; border: none; cursor: pointer; text-align: left; color: #fff;
  min-height: 300px; border-radius: 26px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 20px 40px -24px rgba(80, 35, 30, .55); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  isolation: isolate;
}
.svc::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,22,20,0) 35%, rgba(43,22,20,.55) 100%); }
.svc.tone-0::before { background: radial-gradient(70% 60% at 75% 25%, #f7dcd7 0%, transparent 60%), linear-gradient(150deg, #e9b8ae, #a8645a); }
.svc.tone-1::before { background: radial-gradient(70% 60% at 25% 25%, #fbeee0 0%, transparent 60%), linear-gradient(150deg, #e6c7a8, #9b6f55); }
.svc.tone-2::before { background: radial-gradient(70% 60% at 70% 30%, #f3d3d6 0%, transparent 60%), linear-gradient(150deg, #c99498, #6e3437); }
.svc.tone-3::before { background: radial-gradient(70% 60% at 30% 30%, #f8ecea 0%, transparent 60%), linear-gradient(150deg, #d9a99b, #7f4a44); }
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -24px rgba(80, 35, 30, .6); }
.svc:hover::before { transform: scale(1.06); }
.svc:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }
.svc.sel { box-shadow: 0 0 0 3px var(--papel), 0 0 0 6px var(--vino), 0 30px 50px -24px rgba(80,35,30,.6); }
.svc-tag { align-self: flex-start; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: .38rem .8rem; border-radius: 999px; background: rgba(255,255,255,.82); color: var(--vino); font-weight: 500; }
.svc-body { display: grid; gap: 6px; }
.svc strong { font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.05; }
.svc-desc { font-size: .9rem; opacity: .9; line-height: 1.45; }
.svc-cta { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; opacity: .95; }

.book-card {
  background: #fff; border-radius: 32px; padding: clamp(22px, 4vw, 44px); border: 1px solid rgba(234, 217, 204, .7);
  box-shadow: 0 30px 60px -40px rgba(80, 35, 30, .35);
}
.book-card h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--tinta); font-weight: 500; margin-bottom: 18px; }
.book-card .sub { font-size: 1.6rem; color: var(--tinta); font-weight: 500; margin: 30px 0 14px; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.day {
  flex: 0 0 70px; scroll-snap-align: start; border: 1px solid var(--linea); background: var(--papel); border-radius: 999px;
  padding: 14px 4px; text-align: center; cursor: pointer; transition: .2s;
}
.day:hover:not(.closed) { border-color: var(--rosa); transform: translateY(-2px); }
.day small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gris); }
.day b { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--tinta); line-height: 1.15; }
.day.sel { background: var(--oro-rosa); border-color: transparent; box-shadow: 0 10px 22px -10px rgba(116,58,57,.6); }
.day.sel small, .day.sel b { color: #fff; }
.day.closed { opacity: .3; cursor: not-allowed; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.time { border: 1px solid var(--linea); background: var(--papel); padding: .8rem 0; border-radius: 999px; cursor: pointer; font-weight: 500; transition: .2s; }
.time:hover:not(:disabled) { border-color: var(--rosa); }
.time.sel { background: var(--oro-rosa); color: #fff; border-color: transparent; }
.time:disabled { text-decoration: line-through; color: #cfc3bd; background: transparent; border-style: dashed; cursor: not-allowed; }
.summary { padding: 16px 18px; margin-top: 20px; background: linear-gradient(135deg, #fbf1ee, #f8ece2); border-radius: 20px; line-height: 1.6; }
.summary b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--vino); }
.success { text-align: center; }
.success .seal { width: 84px; height: 84px; border-radius: 50%; background: var(--oro-rosa); display: grid; place-items: center; margin: 0 auto 18px; color: #fff; font-size: 2rem; box-shadow: 0 18px 40px -16px rgba(116,58,57,.7); }

.band { margin-top: clamp(56px, 8vw, 100px); background: linear-gradient(180deg, #f9e9e7 0%, #fbf3ee 100%); padding-bottom: clamp(48px, 7vw, 88px); }
.feat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feat { background: rgba(255,255,255,.75); border-radius: 24px; padding: 24px; box-shadow: 0 18px 40px -30px rgba(80,35,30,.4); transition: transform .3s; }
.feat:hover { transform: translateY(-4px); }
.feat .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--oro-rosa); font-size: 1.1rem; margin-bottom: 16px; }
.feat h3 { font-size: 1.35rem; color: var(--tinta); font-weight: 500; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--gris); font-size: .92rem; line-height: 1.55; }
.pub-foot { text-align: center; color: var(--gris); font-size: .85rem; padding: 28px 16px 44px; background: #fbf3ee; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .1s; } .reveal.d2 { animation-delay: .2s; } .reveal.d3 { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .hero-badge { animation: none; opacity: 1; transform: none; } .svc, .feat, .day { transition: none; } }
@media (max-width: 520px) {
  .pub-nav img { height: 26px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-facts div { padding: 0 10px; } .hero-facts b { font-size: 1.25rem; } .hero-facts span { font-size: .58rem; letter-spacing: .12em; }
  .hero-art { min-height: 0; } .hero-card { width: min(300px, 78vw); }
  .svc { min-height: 190px; } .svc strong { font-size: 1.5rem; }
}

/* ---------- Panel ---------- */
.week table.sum td, .week table.mtable td { background: #fff; cursor: default; border-bottom: 1px solid var(--linea); border-radius: 0; color: var(--tinta); }
.week table.sum td { text-align: center; }
.week table.mtable { min-width: 560px; }
.week table.mtable th { text-transform: none; }
.topbar {
  position: sticky; top: 0; z-index: 50; background: var(--vino); color: var(--crema);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 58px;
}
.topbar img { height: 30px; width: auto; }
.topbar .who { margin-left: auto; font-size: .88rem; opacity: .9; display: flex; align-items: center; gap: 10px; }
.topbar .who button { background: transparent; border: 1px solid rgba(248, 241, 230, .5); color: var(--crema); border-radius: 999px; padding: .3rem .7rem; cursor: pointer; }
.tabs { display: flex; gap: 4px; overflow-x: auto; background: var(--crema); border-bottom: 1px solid var(--linea); padding: 0 10px; position: sticky; top: 58px; z-index: 40; }
.tab { background: none; border: none; padding: .85rem .9rem; cursor: pointer; color: var(--gris); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tab.on { color: var(--vino); border-bottom-color: var(--vino); }
.main { max-width: 1180px; margin: 0 auto; padding: 16px 16px 90px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar .date-nav { display: flex; align-items: center; gap: 6px; }
.toolbar .date-nav input { width: auto; min-width: 150px; }
.toolbar .spacer { flex: 1; }
.date-title { font-family: var(--serif); font-size: 1.5rem; color: var(--vino); margin: 2px 0 12px; }

.slot { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--linea); }
.slot:first-child { border-top: none; }
.slot-time { font-family: var(--serif); font-size: 1.35rem; color: var(--vino); font-weight: 600; }
.slot-cap { font-size: .76rem; color: var(--gris); margin-top: 2px; }
.slot-cap .bar { height: 5px; background: var(--crema); border-radius: 3px; margin-top: 5px; overflow: hidden; }
.slot-cap .bar i { display: block; height: 100%; background: var(--rosa); }
.slot-cap .bar i.full { background: var(--vino); }
.slot-body { display: grid; gap: 8px; }
.appt {
  border: 1px solid var(--linea); border-left: 4px solid var(--rosa); background: #fff; border-radius: 12px; padding: 10px 12px;
  display: grid; gap: 6px;
}
.appt.is-postop { border-left-color: var(--vino); }
.appt.is-iny { border-left-color: var(--beige); }
.appt.st-cancelada, .appt.st-no_asistio { opacity: .55; }
.appt-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.appt-name { font-weight: 600; margin-right: 4px; }
.appt-meta { font-size: .85rem; color: var(--gris); }
.appt-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.appt-actions select { width: auto; min-height: 34px; padding: .3rem .5rem; font-size: .88rem; }
.hint { font-size: .8rem; color: var(--alerta); }
.slot-empty { font-size: .88rem; color: var(--gris); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.block-row { font-size: .85rem; background: repeating-linear-gradient(45deg, #faf3ec, #faf3ec 8px, #f4e8dc 8px, #f4e8dc 16px); border-radius: 10px; padding: 6px 10px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }

.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1.4fr 1fr; } }
.panel { padding: 16px; }
.panel h3 { margin-bottom: 8px; }

.week { overflow-x: auto; }
.week table { border-collapse: separate; border-spacing: 4px; min-width: 640px; width: 100%; }
.week th { font-weight: 500; font-size: .82rem; color: var(--gris); text-transform: capitalize; }
.week td { text-align: center; border-radius: 8px; padding: 8px 4px; font-size: .9rem; cursor: pointer; background: #f2ece6; }
.week td.l0 { background: #f3e1e0; color: var(--error); }
.week td.l1 { background: #f8ecd9; }
.week td.l2 { background: #e9f1ea; color: var(--ok); }
.week td.off { background: transparent; color: #cdbfb8; cursor: default; }

.list { display: grid; gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 12px; background: #fff; flex-wrap: wrap; }
.row .grow { flex: 1; min-width: 180px; }
.msg-box { white-space: pre-wrap; background: var(--crema); border: 1px solid var(--linea); border-radius: 12px; padding: 12px; font-size: .92rem; }

dialog { border: none; border-radius: 18px; padding: 0; width: min(640px, calc(100% - 24px)); box-shadow: 0 20px 60px rgba(40, 20, 15, .3); }
dialog::backdrop { background: rgba(43, 29, 28, .45); }
.dlg-head { padding: 16px 18px 6px; display: flex; justify-content: space-between; align-items: center; }
.dlg-head button { background: none; border: none; font-size: 1.5rem; color: var(--gris); cursor: pointer; line-height: 1; }
.dlg-body { padding: 0 18px 8px; max-height: 70vh; overflow: auto; }
.dlg-foot { padding: 12px 18px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px solid var(--linea); background: #fff; border-radius: 999px; padding: .3rem .7rem; cursor: pointer; font-size: .88rem; }
.chip.sel { background: var(--vino); color: var(--crema); border-color: var(--vino); }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.suggest { border: 1px solid var(--linea); border-radius: 10px; margin-top: 4px; max-height: 200px; overflow: auto; background: #fff; }
.suggest div { padding: .55rem .8rem; cursor: pointer; border-top: 1px solid var(--linea); }
.suggest div:first-child { border-top: none; }
.suggest div:hover { background: var(--crema); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 120% at 50% 0%, var(--blush), var(--crema) 60%, var(--papel)); }
.login { width: min(380px, 100%); padding: 26px 22px; text-align: center; }
.login img { width: 230px; max-width: 80%; margin-bottom: 8px; }
.login form { text-align: left; }
.err { color: var(--error); font-size: .88rem; min-height: 1.2em; margin-top: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { padding: 12px 14px; }
.stat b { font-family: var(--serif); font-size: 1.8rem; color: var(--vino); display: block; line-height: 1; }
.stat span { font-size: .8rem; color: var(--gris); }
@media (max-width: 520px) {
  .two { grid-template-columns: 1fr; }
  .slot { grid-template-columns: 64px 1fr; gap: 8px; }
  .slot-time { font-size: 1.15rem; }
  .slot-cap { font-size: .68rem; }
  .toolbar .date-nav { flex: 1 1 100%; }
  .toolbar .date-nav input { min-width: 0; flex: 1; }
  .toolbar .spacer { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.45rem; }
  .appt-actions select { flex: 1 1 45%; }
  .topbar img { height: 24px; }
}

/* ---------- Panel · acabado de lujo ---------- */
body:not(.pub) { background: linear-gradient(180deg, #fbf3ee 0%, var(--papel) 320px); background-attachment: fixed; }
.topbar { background: linear-gradient(120deg, #7d4442 0%, #743a39 50%, #5e2d2c 100%); box-shadow: 0 10px 30px -20px rgba(60,20,18,.6); }
.tabs { background: rgba(251, 243, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tab { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.card { border-radius: 22px; border-color: rgba(234, 217, 204, .7); box-shadow: 0 20px 44px -34px rgba(80, 35, 30, .45); }
.date-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; color: var(--tinta); }
.stat b { font-weight: 500; color: var(--tinta); font-size: 2.1rem; }
.stat span { letter-spacing: .14em; text-transform: uppercase; font-size: .66rem; }
.slot-time { font-weight: 500; color: var(--tinta); }
.appt { border-radius: 16px; box-shadow: 0 8px 20px -18px rgba(80,35,30,.5); }
.panel h3 { font-weight: 500; color: var(--tinta); font-size: 1.4rem; }
.login { border-radius: 32px; padding: 34px 28px; }
.login-wrap { background:
  radial-gradient(60% 50% at 80% 10%, rgba(242,220,220,.95), transparent 70%),
  radial-gradient(50% 50% at 10% 90%, rgba(230,199,168,.5), transparent 70%), #fbf3ee; }
dialog { border-radius: 28px; }
.dlg-head h3 { font-weight: 500; color: var(--tinta); font-size: 1.5rem; }
.chip.sel, .day.sel { background: var(--oro-rosa); border-color: transparent; }

/* ───────── Reserva sencilla (página pública) ───────── */
body.bk { background: var(--papel); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bk-top { display: flex; justify-content: center; padding: 18px 16px 6px; padding-top: max(18px, env(safe-area-inset-top)); }
.bk-logo { height: 34px; width: auto; }
.bk-wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 12px 16px 32px; flex: 1; }
.bk-head { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bk-head h1, .success h1 { font-size: 2rem; font-weight: 500; color: var(--tinta); line-height: 1.1; margin: 0; }
.bk-head .eyebrow { margin-bottom: 4px; }
.bk-back { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--linea); background: #fff; color: var(--vino); font-size: 1.2rem; cursor: pointer; }
.bk-progress { height: 4px; background: var(--linea); border-radius: 999px; margin: 16px 0 22px; overflow: hidden; }
.bk-progress span { display: block; height: 100%; width: 33.33%; background: var(--oro-rosa); border-radius: inherit; transition: width .35s cubic-bezier(.2,.7,.2,1); }

.bk-list { display: grid; gap: 10px; }
.bk-svc { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 14px 14px 12px; border: 1px solid var(--linea); border-radius: 18px; background: #fff; cursor: pointer; color: var(--tinta); font: inherit; transition: border-color .2s, box-shadow .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.bk-svc:active { transform: scale(.985); }
.bk-svc:hover, .bk-svc.sel { border-color: var(--rosa); box-shadow: var(--sombra); }
.bk-dot { flex: none; width: 60px; height: 60px; border-radius: 16px; object-fit: cover; background: var(--blush); }
.bk-dot.tone-0 { background: linear-gradient(150deg, #e9b8ae, #a8645a); }
.bk-dot.tone-1 { background: linear-gradient(150deg, #e6c7a8, #9b6f55); }
.bk-dot.tone-2 { background: linear-gradient(150deg, #c99498, #6e3437); }
.bk-dot.tone-3 { background: linear-gradient(150deg, #d9a99b, #7f4a44); }
.bk-svc-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bk-svc-txt strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.15; }
.bk-svc-txt small { color: var(--gris); font-size: .85rem; line-height: 1.35; }
.bk-svc-end { flex: none; display: flex; align-items: center; gap: 8px; color: var(--vino); }
.bk-svc-end b { font-weight: 500; font-size: .9rem; }
.bk-svc-end i { font-style: normal; font-size: 1.6rem; line-height: 1; color: var(--rosa); }

.bk-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--blush); color: var(--vino); }
.bk-chip span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.bk-chip button { border: 0; background: none; color: var(--vino); text-decoration: underline; font: inherit; font-size: .85rem; cursor: pointer; }
.bk-sub { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--rosa-oscuro); font-weight: 500; margin: 22px 0 10px; }
.bk .days { margin: 0 -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; scrollbar-width: none; }
.bk .days::-webkit-scrollbar { display: none; }
.bk .times { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bk .time { padding: .85rem 0; min-height: 48px; font: inherit; font-weight: 500; color: var(--tinta); }
.bk .time:active { background: var(--oro-rosa); color: #fff; }
.bk .summary { margin: 0 0 6px; }
.bk input, .bk textarea { font-size: 16px; } /* evita el zoom en iPhone */
.bk #submit { margin-top: 14px; min-height: 52px; }
.bk .success { text-align: center; padding-top: 20px; }
.bk .success p { line-height: 1.6; }
.bk-foot { text-align: center; color: var(--gris); font-size: .85rem; padding: 18px 16px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.bk-foot a { color: var(--vino); }
@media (max-width: 340px) { .bk .times { grid-template-columns: repeat(2, 1fr); } .bk-svc-end b { display: none; } }
.bk .times > p { grid-column: 1 / -1; margin: 6px 0; }
.bk-price { margin-top: 4px; font-size: .9rem; color: var(--vino); }
.bk-price b { font-weight: 600; }
.bk-price em { font-style: normal; color: var(--rosa-oscuro); }
.bk-cats { display: grid; gap: 14px; }
.bk-cat { position: relative; display: flex; align-items: flex-end; width: 100%; aspect-ratio: 3 / 2; max-height: 300px; padding: 18px 20px; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left; color: #fff; font: inherit; isolation: isolate; box-shadow: var(--sombra); transition: transform .15s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.bk-cat img, .bk-cat video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bk-cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(43,22,20,0) 25%, rgba(60,25,24,.78) 100%); }
.bk-cat:active { transform: scale(.985); }
.bk-cat:hover { box-shadow: var(--sombra-alta); }
.bk-cat span { flex: 1; display: grid; gap: 2px; }
.bk-cat strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1.05; }
.bk-cat small { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.bk-cat i { font-style: normal; font-size: 2rem; line-height: 1; opacity: .9; }
.bk-hello { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; margin-bottom: 16px; border-radius: 20px; background: linear-gradient(135deg, #f7e6e4, #f8efe6); }
.bk-hello img { flex: none; width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.bk-hello p { margin: 0; display: grid; gap: 1px; line-height: 1.35; }
.bk-hello b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--vino); }
.bk-hello span { font-size: .9rem; color: var(--gris); }
.bk-owner { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; }
.bk-owner img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 18px 40px -16px rgba(116,58,57,.7); }
.bk-owner span { position: absolute; right: -2px; bottom: 2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--oro-rosa); color: #fff; font-size: 1rem; box-shadow: 0 0 0 3px #fff; }
.bk-visit { border: 0; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-visit legend { grid-column: 1 / -1; font-size: .85rem; color: var(--gris); margin: .7rem 0 .4rem; padding: 0; }
.bk-visit label { margin: 0; cursor: pointer; }
.bk-visit input { position: absolute; opacity: 0; pointer-events: none; }
.bk-visit span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 10px; border: 1px solid var(--linea); border-radius: 999px; background: #fff; color: var(--tinta); font-weight: 500; text-align: center; transition: .2s; }
.bk-visit input:checked + span { background: var(--oro-rosa); border-color: transparent; color: #fff; box-shadow: 0 10px 22px -12px rgba(116,58,57,.6); }
.bk-visit input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 2px; }
.bk-back-hi { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: #f3ece4; color: var(--tinta); font-size: .92rem; line-height: 1.5; }
.bk-back-hi b { color: var(--vino); }
.bk-back-hi button { border: 0; background: none; padding: 0; color: var(--vino); text-decoration: underline; font: inherit; cursor: pointer; }
.bk-foot p { margin: 0 0 10px; line-height: 1.5; }
.bk-foot .bk-addr { color: var(--tinta); text-decoration: none; }
.bk-foot .bk-copy { font-size: .75rem; letter-spacing: .04em; opacity: .8; margin: 0; }
.bk-foot .bk-mono { display: block; width: 44px; height: 44px; margin: 4px auto 8px; opacity: .9; }
.bk-top { position: relative; }
.bk-lang { position: absolute; right: 16px; top: max(18px, env(safe-area-inset-top)); display: flex; border: 1px solid var(--linea); border-radius: 999px; overflow: hidden; background: #fff; }
.bk-lang button { border: 0; background: none; padding: 6px 10px; min-width: 38px; font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--gris); cursor: pointer; }
.bk-lang button[aria-pressed="true"] { background: var(--vino); color: #fff; }
.bk-policy { margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: #f6efe8; border: 1px solid var(--linea); font-size: .9rem; line-height: 1.5; }
.bk-policy p { margin: 0 0 10px; color: var(--tinta); }
.bk-accept { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--tinta); font-weight: 500; cursor: pointer; }
.bk-accept input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--vino); }
.bk-deposit { margin: 18px 0 6px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, #fbf1ee, #f8ece2); border: 1px solid var(--linea); text-align: left; }
.bk-deposit > b { font-family: var(--serif); font-size: 1.25rem; color: var(--vino); }
.bk-deposit p b { color: var(--vino); }
.bk-deposit p { margin: 6px 0 10px; line-height: 1.5; }
.bk-title { font-size: 2rem; font-weight: 500; color: var(--tinta); line-height: 1.1; margin: 0 0 16px; }
