/* Paleta de REFERENCIA tomada del estilo publicado en novaspapty.com (identidad aún sin confirmar) */
:root {
  --bg: #f4f8f6; --card: #fff; --ink: #1d3029; --muted: #4f635d; --line: #dfe8e3; --soft: #eaf1ee;
  --primary: #2e7d60; --primary-2: #276b52; --primary-ink: #fff; --leaf: #45a17e; --coral: #e29e8d; --coral-soft: #fbece8;
  --deep: #1b3a2f; --deep-2: #2a5a47; --warn-ink: #7a3b2c; --danger: #a8402f;
  --sh: 0 1px 2px rgba(29,48,41,.05), 0 10px 30px rgba(29,48,41,.07);
  --sh-lg: 0 2px 4px rgba(29,48,41,.06), 0 18px 48px rgba(29,48,41,.14);
  --r: 20px; --gutter: clamp(16px, 4vw, 56px);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); padding-top: 38px; min-height: 100vh;
  background: radial-gradient(900px 420px at 92% -8%, #dcefe6 0%, transparent 62%), radial-gradient(700px 360px at -8% 8%, #fbece8 0%, transparent 58%), var(--bg); }
.demo-banner { position: fixed; inset: 0 0 auto 0; z-index: 40; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; font-size: .8125rem; letter-spacing: .03em; padding: 0 12px; text-align: center; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
svg.ico-svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- Cabecera del sitio (clienta) ---- */
header.site { background: linear-gradient(135deg, var(--deep) 0%, var(--deep-2) 55%, #3b8a6c 100%); color: #fff; position: relative; overflow: hidden; }
header.site::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,158,141,.35), transparent 65%); pointer-events: none; }
.site-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0 14px; position: relative; }
.brand { font: 600 clamp(1.9rem, 3vw, 2.4rem)/1 var(--serif); margin: 0; letter-spacing: .01em; }
header.site .brand { color: #fff; }
.tag { margin: 0; font-size: .8125rem; color: var(--muted); }
header.site .tag { color: #cfe3da; }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0 0 18px; overflow-x: auto; position: relative; }
.steps[hidden] { display: none; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; font-size: .875rem; color: #cfe3da;
  background: rgba(255,255,255,.08); white-space: nowrap; }
.steps li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-weight: 600; font-size: .75rem; background: rgba(255,255,255,.16); }
.steps li.on { background: #fff; color: var(--deep); } .steps li.on b { background: var(--primary); color: #fff; }
.steps li.done b { background: var(--leaf); color: #fff; }

main { padding-block: 8px 100px; }
#app.enter > * { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
#app.enter > *:nth-child(2) { animation-delay: .04s; } #app.enter > *:nth-child(3) { animation-delay: .08s; }
#app.enter > *:nth-child(4) { animation-delay: .12s; } #app.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 22px 0 8px; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); } h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.lead, .muted { color: var(--muted); } .lead { font-size: 1.125rem; max-width: 56ch; } .small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--primary); font-weight: 600; margin: 24px 0 0; }
.hero { padding: clamp(14px, 3vw, 36px) 0 6px; display: grid; gap: 22px; align-items: center; } .hero h1 { margin-top: 6px; max-width: 18ch; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perks li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.7); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.perks .ico { margin: 0; width: 44px; height: 44px; border-radius: 14px; flex: none; }
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 56px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 12px 0; box-shadow: var(--sh); }
button, .btn { font: inherit; cursor: pointer; }
.choice { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left; color: inherit; position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.choice:hover, .choice:focus-visible { border-color: var(--leaf); box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card-title { font: 600 1.55rem/1.1 var(--serif); }
.row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.price { font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums; }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--primary);
  background: linear-gradient(135deg, #e3f1ea, #f6e4de); margin-bottom: 4px; }
.ico .ico-svg { width: 26px; height: 26px; }
.arrow { position: absolute; right: 18px; top: 20px; color: var(--primary); opacity: 0; transform: translateX(-6px); transition: .18s; }
.choice:hover .arrow { opacity: 1; transform: none; }
.services { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 14px; }
.services .card { margin: 0; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 11px; border-radius: 99px; font-size: .8125rem; background: var(--soft); color: var(--ink); }
.chip.warn, .chip.solicitada { background: var(--coral-soft); color: var(--warn-ink); }
.chip.confirmada, .chip.confirmado, .chip.pagado, .chip.vigente, .chip.revisado { background: #dcefe6; color: #17523d; }
.chip.asistio { background: var(--primary); color: #fff; }
.chip.ausente, .chip.rechazado, .chip.anulado, .chip.vencida, .chip.requiere_correccion { background: #f3dcd6; color: var(--danger); }
.chip.cancelada { background: #e7ebe9; color: var(--muted); text-decoration: line-through; }
.chip.sin_pago { background: var(--coral-soft); color: var(--warn-ink); } .chip.parcial, .chip.pendiente { background: #fdf0d5; color: #6b4a00; }
.chip.enviado { background: #e3ecf7; color: #1f3d66; } .chip.prueba { background: var(--ink); color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px;
  border: 1.5px solid var(--primary-2); background: linear-gradient(180deg, var(--primary), var(--primary-2)); color: var(--primary-ink);
  font-weight: 500; text-decoration: none; box-shadow: 0 6px 16px rgba(46,125,96,.22); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(46,125,96,.28); }
.btn:active { transform: none; }
.btn.ghost { background: transparent; color: var(--primary); box-shadow: none; } .btn.ghost:hover { background: var(--soft); box-shadow: none; }
.btn.danger { background: transparent; border-color: var(--danger); color: var(--danger); box-shadow: none; } .btn.danger:hover { background: #fbeeea; box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.back { background: none; border: 0; color: var(--primary); padding: 12px 0 0; font-weight: 500; }
label { display: block; font-weight: 500; margin: 14px 0 5px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; color: inherit; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover { border-color: #c9d8d1; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(69,161,126,.2); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Selector de día y hora ---- */
.split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 380px; } .split .aside { position: sticky; top: 64px; } }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 12px; scroll-snap-type: x proximity; }
.day { flex: 0 0 68px; scroll-snap-align: start; min-height: 82px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.day:not([disabled]):hover { transform: translateY(-2px); border-color: var(--leaf); box-shadow: var(--sh); }
.day b { font: 600 1.55rem/1 var(--serif); } .day span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day[aria-pressed="true"] { background: linear-gradient(180deg, var(--primary), var(--primary-2)); border-color: var(--primary-2); color: #fff; box-shadow: var(--sh); }
.day[aria-pressed="true"] span { color: #e3f1ea; } .day[disabled] { opacity: .38; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.slot { min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: inherit; font-variant-numeric: tabular-nums; transition: .15s; }
.slot:hover { border-color: var(--leaf); transform: translateY(-1px); }
.slot[aria-pressed="true"] { background: linear-gradient(180deg, var(--primary), var(--primary-2)); border-color: var(--primary-2); color: #fff; }
.skel { border-radius: 14px; min-height: 48px; background: linear-gradient(90deg, #e9f0ed 25%, #f6faf8 45%, #e9f0ed 65%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skel.day { flex: 0 0 68px; min-height: 82px; border: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.summary { background: linear-gradient(160deg, #fff, #f1f7f4); }
.summary .kv span:first-child { color: var(--muted); }
.notice { border-radius: 16px; padding: 14px 16px; margin: 14px 0; background: var(--coral-soft); color: var(--warn-ink); }
.notice.ok { background: #dcefe6; color: #17523d; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 50; width: max-content; max-width: min(92vw, 560px); padding: 13px 20px;
  border-radius: 99px; background: var(--ink); color: #fff; box-shadow: var(--sh-lg); animation: rise .3s both; }
.toast.err { background: var(--danger); }
.checkmark { width: 84px; height: 84px; margin: 22px 0 0; }
.checkmark circle { fill: #dcefe6; } .checkmark path { fill: none; stroke: var(--primary); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; } .kv b { font-variant-numeric: tabular-nums; }
.seg { display: flex; gap: 6px; margin: 12px 0; max-width: 520px; } .seg button { flex: 1; min-height: 46px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: inherit; }
.seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
pre.doc { white-space: pre-wrap; word-break: break-word; font: 400 .8125rem/1.55 ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 1px dashed var(--muted); border-radius: 14px; padding: 14px; }
.menu { display: block; width: 100%; text-align: left; color: inherit; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ---- Panel de la administradora ---- */
.shell { display: block; }
.side-brand { padding: 20px var(--gutter) 0; }
.nav { position: fixed; inset: auto 0 0 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.nav[hidden] { display: none; }
.nav button { flex: 1; max-width: 150px; min-height: 62px; background: none; border: 0; color: var(--muted); font-size: .75rem; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; padding: 0 2px; }
.nav button .ico-svg { width: 22px; height: 22px; }
.nav button[aria-current="page"] { color: var(--primary); font-weight: 600; box-shadow: inset 0 3px 0 var(--primary); }
.content { padding-inline: var(--gutter); }
.datenav { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .datenav h2 { flex: 1; text-align: center; margin: 0; font-size: 1.5rem; line-height: 1.15; }
.datenav h2::first-letter { text-transform: uppercase; } .datenav .btn { min-width: 48px; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; margin: 0; }
.stat b { font: 600 2.4rem/1 var(--serif); color: var(--primary); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }
.booking { display: flex; gap: 16px; position: relative; overflow: hidden; }
.booking::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--line); }
.booking.s-confirmada::before { background: var(--leaf); } .booking.s-asistio::before { background: var(--primary-2); }
.booking.s-solicitada::before { background: var(--coral); } .booking.s-ausente::before, .booking.s-cancelada::before { background: #cbb3ad; }
.booking .body { flex: 1; min-width: 0; } .time { font: 600 1.6rem/1 var(--serif); min-width: 84px; padding-left: 6px; }
body.admin #app { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
body.admin #app > * { grid-column: 1 / -1; margin-block: 0; }
body.admin #app > article.card, body.admin #app > button.card, body.admin #app > div.card:not(.stat) { grid-column: auto; }
body.admin #app > form.card { max-width: 760px; }
body.admin #app > .notice, body.admin #app > .seg { max-width: 760px; }
body.admin h1 { margin-top: 20px; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: calc(100vh - 38px); }
  .side { position: sticky; top: 38px; align-self: start; height: calc(100vh - 38px); display: flex; flex-direction: column; gap: 26px; padding: 30px 18px;
    background: linear-gradient(180deg, var(--deep), var(--deep-2)); color: #fff; }
  .side-brand { padding: 0 10px; } .side .brand { color: #fff; } .side .tag { color: #cfe3da; margin-top: 6px; }
  .nav { position: static; background: none; backdrop-filter: none; border: 0; flex-direction: column; justify-content: flex-start; padding: 0; gap: 4px; }
  .nav button { flex: none; max-width: none; width: 100%; min-height: 50px; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 0 16px;
    border-radius: 14px; color: #d6e8df; font-size: 1rem; text-align: left; transition: background .15s; }
  .nav button:hover { background: rgba(255,255,255,.08); }
  .nav button[aria-current="page"] { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
  main { padding-bottom: 60px; }
}
@media (max-width: 520px) { .stat b { font-size: 1.9rem; } .stat { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 520px) { .booking { flex-direction: column; gap: 6px; } .time { padding-left: 6px; } }
