/* fonoLU · Turnos — estilos (paleta y tipografía de marca) */
:root {
  --cream: #FFFBF0;
  --paper: #F7F1E1;
  --peach: #F7D194;
  --orange: #FDC57B;
  --celeste: #89D1DD;
  --teal-fill: #99D1D7;
  --teal: #3E8B96;
  --teal-bright: #4CC3D4;
  --lilac-soft: #F5DCFC;
  --lilac: #C978DE;
  --lilac-fill: #F1A4FF;
  --pink: #EC82CB;
  --green: #B7E28A;
  --blue: #8DA4E5;
  --ink: #4A453E;
  --ink-soft: #7A746B;
  --danger: #C2410C;
  --radius: 22px;
  --shadow: 0 4px 18px rgba(150, 120, 60, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: clip; }  /* red de seguridad: nunca desplazamiento lateral */
main, section, .card, .summary, .notice, .option, .field { min-width: 0; }
h1, h2, h3, p, label { overflow-wrap: break-word; }
code { overflow-wrap: anywhere; }
body {
  margin: 0; min-height: 100vh; background: var(--cream); color: var(--ink);
  font-family: 'Baloo 2', system-ui, sans-serif; font-size: 16px; line-height: 1.45;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 2px; border-radius: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.top { padding: 18px 0 6px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { font-size: 30px; line-height: 1; }
.wordmark .fono { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600; color: var(--teal); }
.wordmark .lu { font-weight: 800; color: var(--lilac); }
.brand-sub { font-size: 12.5px; font-weight: 600; color: var(--teal); line-height: 1.2; }
.rainbow { width: 52px; height: 34px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 18px 0 8px; }
.hero h1 { margin: 0; font-size: clamp(34px, 9vw, 48px); line-height: 1.02; font-weight: 800; color: var(--teal); }
.hero h1 em { font-family: 'Fraunces', Georgia, serif; font-weight: 600; color: var(--lilac); }
.hero p { margin: 10px 0 0; color: var(--ink-soft); max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px;
  font-size: 13.5px; font-weight: 700; background: #fff; border: 2px solid var(--lilac-soft);
}
.chip.teal { background: var(--teal-fill); border-color: var(--teal-fill); color: #20545b; }
.chip.orange { background: var(--orange); border-color: var(--orange); color: #5a3a10; }
.chip.lilac { background: var(--lilac-soft); border-color: var(--lilac-soft); color: #7f3a92; }
.sparkle { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.hero .s1 { right: 6px; bottom: 8px; width: 28px; height: 28px; }
.hero .s2 { right: 44px; bottom: 34px; width: 14px; height: 14px; }

/* ---------- Card / wizard ---------- */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px; margin: 18px 0;
}
@media (min-width: 560px) { .card { padding: 28px; } }

.steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; height: 6px; border-radius: 6px; background: var(--lilac-soft); transition: background .25s; }
.steps li.done { background: var(--lilac-fill); }
.steps li.now { background: var(--teal-bright); }
.step-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--lilac); margin: 0 0 2px; }
.step-title:focus { outline: none; }
.step-title { margin: 0 0 16px; font-size: 25px; line-height: 1.15; font-weight: 800; color: var(--teal); }
.step-help { margin: -8px 0 16px; color: var(--ink-soft); font-size: 15px; }

.back {
  background: none; border: 0; padding: 6px 0; margin: 0 0 6px; font-weight: 700; font-size: 14px; color: var(--teal);
}

/* Opciones grandes */
.options { display: grid; gap: 12px; }
@media (min-width: 560px) { .options.two { grid-template-columns: 1fr 1fr; } }
.option {
  position: relative; display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--cream); border: 2.5px solid var(--lilac-soft); border-radius: 18px; padding: 16px;
  transition: border-color .15s, transform .15s, background .15s;
}
.option:hover { border-color: var(--lilac-fill); transform: translateY(-1px); }
.option[aria-pressed="true"] { border-color: var(--teal-bright); background: #EFFAFB; }
.option .ico { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; }
.option .ico svg { width: 26px; height: 26px; }
.option .o-title { display: block; font-weight: 800; font-size: 17.5px; line-height: 1.2; }
.option .o-desc { display: block; font-size: 14.5px; color: var(--ink-soft); margin-top: 2px; }
.option .o-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 20px; background: #fff; border: 1.5px solid var(--lilac-soft); }
.tag.price { background: var(--orange); border-color: var(--orange); color: #5a3a10; }
.bg-teal { background: var(--teal-fill); } .bg-orange { background: var(--orange); }
.bg-lilac { background: var(--lilac-soft); } .bg-celeste { background: var(--celeste); }

/* ---------- Calendario ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-month { font-weight: 800; font-size: 17px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--lilac-soft); background: #fff;
  font-weight: 800; color: var(--teal); display: grid; place-items: center;
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
@media (max-width: 359px) { .cal-grid { gap: 3px; } }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-soft); padding-bottom: 2px; }
.cal-day {
  aspect-ratio: 1; min-width: 0; width: 100%; border-radius: 12px; border: 2px solid transparent; background: transparent;
  font-weight: 700; font-size: 15px; color: #c9c2b5; position: relative; padding: 0;
}
.cal-day.has { background: var(--cream); border-color: var(--lilac-soft); color: var(--ink); }
.cal-day.has::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--teal-bright);
}
.cal-day.has:hover { border-color: var(--lilac-fill); }
.cal-day.sel { background: var(--teal-bright); border-color: var(--teal-bright); color: #fff; }
.cal-day.sel::after { background: #fff; }
.cal-day:disabled { cursor: default; }
.cal-day.today { text-decoration: underline; text-underline-offset: 3px; }

.times-title { margin: 18px 0 8px; font-weight: 800; font-size: 16px; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.time {
  padding: 10px 0; border-radius: 14px; border: 2px solid var(--lilac-soft); background: #fff; font-weight: 800; font-size: 16px;
}
.time:hover { border-color: var(--lilac-fill); }
.time[aria-pressed="true"] { background: var(--teal-bright); border-color: var(--teal-bright); color: #fff; }
.tz-note { font-size: 13px; color: var(--ink-soft); margin-top: 10px; }

.skeleton { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.skeleton span { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(90deg, var(--paper), #fff, var(--paper)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Formulario ---------- */
.field { margin-bottom: 14px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 5px; }
.field .hint { font-weight: 500; color: var(--ink-soft); font-size: 13px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--lilac-soft); background: var(--cream);
  font-size: 16px; transition: border-color .15s;
}
.input:focus { border-color: var(--teal-bright); outline: none; background: #fff; }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 76px; }
.row { display: grid; gap: 10px; grid-template-columns: 1fr; }
.row.age { grid-template-columns: 120px; }
.err { color: var(--danger); font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--teal-bright); flex-shrink: 0; }
.radio-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chips label {
  display: inline-flex; padding: 8px 14px; border-radius: 30px; border: 2px solid var(--lilac-soft); background: var(--cream);
  font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.radio-chips input { position: absolute; opacity: 0; pointer-events: none; }
.radio-chips input:checked + span { color: #fff; }
.radio-chips label:has(input:checked) { background: var(--teal-bright); border-color: var(--teal-bright); color: #fff; }
.radio-chips label:has(input:focus-visible) { outline: 3px solid var(--teal-bright); outline-offset: 2px; }
.seg { display: inline-flex; background: var(--paper); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 8px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--teal); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 15px 20px; border-radius: 18px; border: 0; background: var(--teal-bright); color: #fff;
  font-weight: 800; font-size: 16.5px; text-decoration: none; transition: transform .1s, opacity .15s;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: #fff; color: var(--teal); border: 2.5px solid var(--teal-fill); }
.btn.whatsapp { background: #25A366; }
.btn.ghost { background: none; color: var(--danger); border: 2px solid #f3c9b8; }
.btn + .btn, .btn-row { margin-top: 10px; }
.btn-row .btn-row { margin-top: 0; }
.btn-row { display: grid; gap: 10px; }
@media (min-width: 560px) { .btn-row.two { grid-template-columns: 1fr 1fr; } }
.actions { margin-top: 20px; }
.spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Resumen ---------- */
.summary { background: var(--cream); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.summary .line { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.summary .line b { display: block; }
.summary .line span { color: var(--ink-soft); font-size: 14.5px; }
.notice { border-radius: 16px; padding: 12px 14px; font-size: 14.5px; margin-top: 14px; display: flex; gap: 10px; }
.notice > div, .notice > label { flex: 1; min-width: 0; }
.notice.lilac { background: var(--lilac-soft); }
.notice.orange { background: #FFF1DA; }
.notice.teal { background: #E4F5F7; }
.notice.danger { background: #FDEBE4; color: #8a2e0b; }
.policy { font-size: 14px; color: var(--ink-soft); }
.turnstile { margin: 16px 0 4px; min-height: 65px; }

.alert { background: #FDEBE4; color: #8a2e0b; border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; margin-top: 14px; }

/* ---------- Éxito ---------- */
.success-ico { width: 72px; height: 72px; margin: 4px auto 10px; display: block; }
.center { text-align: center; }
.linkbox {
  display: flex; gap: 8px; align-items: center; background: var(--cream); border: 2px dashed var(--lilac-fill);
  border-radius: 14px; padding: 8px 8px 8px 12px; margin-top: 8px;
}
.linkbox { min-width: 0; }
.linkbox code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--teal); }
.linkbox button { border: 0; background: var(--lilac-fill); color: #fff; font-weight: 800; padding: 8px 12px; border-radius: 10px; font-size: 13.5px; }

/* ---------- Secciones info ---------- */
.section-title { font-size: 24px; font-weight: 800; color: var(--teal); margin: 34px 0 10px; }
.section-title em { font-family: 'Fraunces', Georgia, serif; color: var(--lilac); font-weight: 600; }
.tipos { display: grid; gap: 10px; }
.tipo-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px dotted var(--lilac-soft); }
.after-chips { margin-top: 14px; }
.tipo-row:last-child { border-bottom: 0; }
.tipo-row .t { font-weight: 800; }
.tipo-row .d { font-size: 14px; color: var(--ink-soft); }
.tipo-row .p { text-align: right; font-size: 14px; font-weight: 700; white-space: nowrap; }
.faq details { border-bottom: 2px dotted var(--lilac-soft); padding: 12px 0; }
.faq summary { font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--lilac); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 8px 0 0; color: var(--ink-soft); }

footer { padding: 30px 0 40px; text-align: center; }
footer .handle { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 600; color: var(--lilac); font-size: 20px; text-decoration: none; }
footer small { display: block; color: var(--ink-soft); margin-top: 6px; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 30px; font-weight: 700; font-size: 14px; z-index: 50; box-shadow: var(--shadow);
}
.demo-banner {
  background: var(--lilac-soft); color: #7f3a92; text-align: center; font-size: 13px; font-weight: 700; padding: 6px 12px;
}
.fade-in { animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.tel-ok { margin: 6px 0 0; }
.tel-ok.ok { color: var(--teal); font-weight: 700; }

/* ---------- Horario fijo: lista de fechas ---------- */
.dates { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dates li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; background: var(--cream);
  border: 2px solid var(--lilac-soft); border-radius: 14px; padding: 6px 8px 6px 12px; min-height: 48px;
}
.dates li.off { opacity: .6; border-style: dashed; }
.dates .d-date { font-weight: 800; text-transform: capitalize; }
.dates .d-time { font-weight: 700; color: var(--teal); }
.d-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--lilac-soft); color: #7f3a92; }
.d-tag.soft { background: var(--paper); color: var(--ink-soft); }
.d-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini {
  border: 2px solid var(--teal-fill); background: #fff; color: var(--teal); font-weight: 800; font-size: 13.5px;
  padding: 6px 10px; border-radius: 12px; min-height: 36px;
}
.mini.danger { border-color: #f3c9b8; color: var(--danger); }
.mini:hover { background: var(--cream); }
.dates.manage li { flex-wrap: nowrap; }
.d-info { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; min-width: 0; }
.dates.manage .d-info { flex-direction: column; align-items: flex-start; }
.dates.manage .d-actions { flex-wrap: nowrap; }
.notice + .summary { margin-top: 12px; }

/* ---------- "Mantener este día y horario para las sesiones" ---------- */
.keep { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--lilac-soft); display: grid; gap: 10px; }
.keep .check b { display: inline; }
.keep .radio-chips label { background: #fff; }
.keep .tz-note { margin: 0; color: #6d3a7d; font-weight: 600; }
.keep .tz-note:empty { display: none; }

/* ---------- Calendario: días que se repiten (horario fijo) ---------- */
.cal-day { line-height: 1; padding-bottom: 3px; }
.cal-day.rep { background: var(--lilac-soft); border-color: var(--lilac-fill); color: #7f3a92; }
.cal-day.rep:disabled { opacity: 1; }
.cal-day.rep::before {
  content: ''; position: absolute; inset: 3px; border-radius: 9px; border: 1.5px dashed var(--lilac);
  pointer-events: none;
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-legend .sw.sel { background: var(--teal-bright); }
.cal-legend .sw.rep { background: var(--lilac-soft); border: 1.5px dashed var(--lilac); }

/* ---------- Pagos ---------- */
.pay { margin-top: 16px; background: #FFF6E6; border: 2px solid #FCE3B8; border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.pay-title { margin: 0; font-weight: 800; font-size: 17px; }
.pay-compact { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pay-amount { margin: 0; font-weight: 800; font-size: 20px; color: var(--teal); }
.pay-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 8px 8px 12px; min-width: 0; }
.pay-row span { color: var(--ink-soft); font-size: 13.5px; flex-shrink: 0; }
.pay-row b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pay-small { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.pay-small.warn { color: var(--danger); font-weight: 600; }
.pay-note { margin: 0; background: #E4F5F7; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.pay .radio-chips label { background: #fff; }
.pay .turnstile { margin: 0; min-height: 0; }
.pay-link { background: none; border: 0; padding: 4px 0; color: var(--teal); font-weight: 700; font-size: 14.5px; text-align: center; text-decoration: underline; }
.lock { display: flex; gap: 10px; align-items: flex-start; background: var(--paper); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; margin-top: 14px; }
.d-tag.pay-confirmado { background: #E3F4D0; color: #3c6b14; }
.d-tag.pay-pendiente { background: #FFF1DA; color: #8a5a10; }
.d-tag.pay-informado { background: #E4F5F7; color: #20545b; }
.d-tag.pay-efectivo { background: var(--paper); color: var(--ink-soft); }
.medio { display: grid; gap: 8px; margin-top: 14px; }
.medio .check { background: var(--cream); border: 2px solid var(--lilac-soft); border-radius: 14px; padding: 10px 12px; }
.medio .check:has(input:checked) { border-color: var(--teal-bright); background: #EFFAFB; }
.medio input[type=radio] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal-bright); flex-shrink: 0; }

/* ---------- Medio de pago (cambiar después de reservar) ---------- */
.medio-pago { margin-top: 12px; background: var(--cream); border: 2px solid var(--lilac-soft); border-radius: 16px; padding: 12px 14px; display: grid; gap: 10px; }
.medio-panel { display: grid; gap: 10px; }
.medio-panel .turnstile { margin: 0; min-height: 0; }
