/* Colours, fonts and corner sizes come from the admin "Branding" tab (inline :root variables).
   The values below are only fallbacks. */
:root {
  --bg: #fbf5f2; --ink: #3a2329; --muted: #8a6f75; --line: #efdfda;
  --blush: #f7e3df; --blush-2: #f2d1cb; --rose: #d98c95;
  --berry: #9c3d54; --berry-dark: #7c2b41; --on-berry: #fff;
  --gold: #c9a27c; --gold-dark: #a8825e; --glow1: #f6dcd6; --glow2: #fbe9e2;
  --wa: #1a9e4f;
  --r-card: 28px; --radius: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(40, 20, 25, .04), 0 18px 50px -18px rgba(60, 25, 35, .22);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); font-size: 16px; line-height: 1.55; min-height: 100vh;
  background:
    radial-gradient(900px 500px at 100% -10%, var(--glow1) 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 20%, var(--glow2) 0%, transparent 60%),
    var(--bg);
}
a { color: var(--berry); }
button { font: inherit; }
:focus-visible { outline: 2.5px solid var(--berry); outline-offset: 2px; }
abbr[title] { text-decoration: none; color: var(--berry); }
.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1080px; margin: 0 auto; padding: 20px 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 26px; height: 34px; flex: none; }
.brand-logo { max-height: 46px; max-width: 200px; display: block; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.top-wa, .lang-menu summary {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--ink);
}
.top-wa { color: var(--wa); }
.top-wa svg, .lang-menu svg { width: 18px; height: 18px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow); z-index: 20; min-width: 150px; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--blush); }

/* ---------- Hero ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; padding: 28px 0 36px; }
.hero-none .hero { grid-template-columns: 1fr; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; font-weight: 700; color: var(--berry); opacity: .8; margin: 0 0 10px; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; margin: 0 0 16px; }
.hero h1 em { color: var(--berry); }
.lede { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 40ch; }
.hero-art { position: relative; height: 210px; }
.swatch {
  position: absolute; width: 74px; height: 108px; border-radius: 40px 40px 26px 26px;
  box-shadow: inset -8px -10px 0 rgba(0,0,0,.06), inset 8px 10px 0 rgba(255,255,255,.28), 0 14px 30px -12px rgba(60,20,30,.4);
}
.swatch::after { content: ""; position: absolute; top: 16px; left: 16px; width: 12px; height: 26px; border-radius: 10px; background: rgba(255,255,255,.45); }
.swatch.s1 { left: 4%;  top: 60px; transform: rotate(-12deg); }
.swatch.s2 { left: 24%; top: 18px; transform: rotate(-4deg); }
.swatch.s3 { left: 44%; top: 70px; transform: rotate(6deg); }
.swatch.s4 { left: 63%; top: 10px; transform: rotate(10deg); }
.swatch.s5 { left: 80%; top: 76px; transform: rotate(16deg); }
.hero-photo img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow); display: block; }

/* ---------- Card ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); overflow: clip; }
.steps { display: flex; list-style: none; margin: 0; padding: 18px 24px; gap: 8px; border-bottom: 1px solid var(--line); background: linear-gradient(var(--bg), #fff); }
.steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; flex: 1; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-size: .78rem; background: #fff; flex: none; }
.steps li.active { color: var(--ink); }
.steps li.active span { background: var(--berry); border-color: var(--berry); color: var(--on-berry); }
.steps li.done span { background: var(--blush); border-color: var(--blush-2); color: var(--berry); }
.pane { padding: 28px 24px 8px; }
.pane h2 { font-family: var(--serif); font-weight: 600; font-size: 2rem; margin: 0 0 6px; line-height: 1.1; }
.hint { color: var(--muted); margin: 0 0 20px; }
.hint.small { font-size: .88rem; }

/* ---------- Services ---------- */
.svc-group { margin-bottom: 18px; }
.svc-cat { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; margin: 6px 0 10px; color: var(--berry-dark); }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service {
  position: relative; text-align: left; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; color: var(--ink);
  padding: 16px 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff;
  transition: border-color .15s, background .15s, transform .15s;
}
.service:hover { border-color: var(--blush-2); transform: translateY(-1px); }
.service[aria-pressed="true"] { border-color: var(--berry); background: var(--blush); }
.service .tick { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; border: 1.5px solid var(--blush-2); display: grid; place-items: center; color: transparent; font-size: 14px; transition: all .15s; background: #fff; }
.service .tick.round { border-radius: 50%; }
.service[aria-pressed="true"] .tick { background: var(--berry); border-color: var(--berry); color: var(--on-berry); }
.service .s-name { font-weight: 700; display: block; }
.service .s-desc { color: var(--muted); font-size: .88rem; display: block; margin: 2px 0 8px; }
.service .s-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; }
.chip { padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--berry-dark); font-weight: 600; }
.service[aria-pressed="true"] .chip { background: #fff; }
.chip.light { background: var(--bg); color: var(--muted); }

/* ---------- Date & time ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-sm); background: #fdf6ec; border: 1px solid #f2e2c8; color: #6d5434; font-size: .92rem; margin-bottom: 20px; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: #a8825e; }
.notice a { color: var(--wa); font-weight: 700; }
.picker { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-bottom: 24px; }
.calendar { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-self: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.day { aspect-ratio: 1; border-radius: var(--r-sm); border: 0; background: transparent; color: #bdb3b5; cursor: default; display: grid; place-items: center; font-weight: 600; font-size: .92rem; position: relative; padding: 0; }
.day.open { color: var(--ink); background: var(--blush); cursor: pointer; }
.day.open::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--berry); }
.day.open:hover { background: var(--blush-2); }
.day.full { color: #a59a9c; background: repeating-linear-gradient(135deg, #f2eeee 0 6px, #e9e4e5 6px 12px); text-decoration: line-through; }
.day.selected { background: var(--berry); color: var(--on-berry); }
.day.selected::after { background: var(--on-berry); }
.day.today { outline: 1.5px dashed var(--rose); outline-offset: -3px; }
.cal-loading { opacity: .45; pointer-events: none; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .78rem; color: var(--muted); }
.legend span, .slot-legend { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg.open { background: var(--blush); }
.lg.full { background: repeating-linear-gradient(135deg, #f2eeee 0 3px, #ddd6d7 3px 6px); }
.lg.closed { border: 1px solid var(--line); }
.lg.taken { background: #efebec; border: 1px dashed #cfc6c8; }
.cal-msg { font-size: .88rem; color: var(--muted); margin: 10px 0 0; }
.times-title { font-weight: 700; margin: 4px 0 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot-grid.inner { margin-top: 10px; }
.slot { padding: 10px 0; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.slot:hover:not([disabled]) { border-color: var(--rose); }
.slot.selected { background: var(--berry); border-color: var(--berry); color: var(--on-berry); }
.slot.taken { background: #f3f0f1; color: #b2a8aa; border-style: dashed; cursor: not-allowed; text-decoration: line-through; font-weight: 600; }
.slot-legend { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.empty { color: var(--muted); font-size: .92rem; grid-column: 1 / -1; margin: 0; }

/* ---------- Details ---------- */
.details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding-bottom: 24px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
label small, legend small { font-weight: 500; color: var(--muted); }
input, textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 22%, transparent); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #c4314b; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check-line input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--berry); }
.radio-group { border: 0; padding: 0; margin: 0 0 14px; }
.radio-group legend { font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.radio-group .check-line { margin-bottom: 8px; }
.policy { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 16px; font-size: .9rem; }
.policy p { margin: 6px 0 10px; color: var(--muted); }
.policy .check-line { margin: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-error { background: #fdecee; color: #a02840; border-radius: var(--r-sm); padding: 10px 14px; font-size: .92rem; margin: 0 0 14px; }
.summary { background: linear-gradient(160deg, #fff, var(--blush)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; }
.summary h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 12px; font-weight: 600; }
.summary ul { list-style: none; padding: 0; margin: 0 0 14px; }
.summary li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--blush-2); font-size: .94rem; }
.summary .when { font-weight: 700; color: var(--berry-dark); margin-bottom: 14px; }
.summary .total { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }

/* ---------- Buttons & footer bar ---------- */
.btn { border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s, opacity .15s; min-height: 44px; }
.btn.primary { background: var(--berry); color: var(--on-berry); }
.btn.primary:hover { background: var(--berry-dark); }
.btn.primary:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.soft { background: var(--blush); color: var(--berry-dark); }
.btn.wide { width: 100%; }
.footer-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); z-index: 5; }
.totals { flex: 1; font-size: .95rem; }
.totals b { color: var(--berry-dark); }
.warn-text { color: #a02840; font-weight: 600; }
.muted { color: var(--muted); }

/* ---------- Done ---------- */
.pane-done { text-align: center; padding: 44px 24px 36px; }
.pane-done h2:focus { outline: none; }
.done-badge { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; color: var(--on-berry); background: radial-gradient(circle at 30% 30%, var(--rose), var(--berry)); box-shadow: 0 12px 30px -10px var(--berry); }
.done-when { font-family: var(--serif); font-size: 1.7rem; color: var(--berry-dark); margin: 6px 0; }
.done-msg { margin: 8px auto 0; max-width: 46ch; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0 16px; }

/* ---------- Footer ---------- */
.site-footer { max-width: 1080px; margin: 0 auto; padding: 8px 16px 40px; display: flex; gap: 32px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.f-col { display: flex; flex-direction: column; gap: 3px; }
.f-col strong { color: var(--ink); }
.f-name { font-family: var(--serif); font-size: 1.2rem; }
.site-footer a { color: var(--muted); }
.f-note { flex-basis: 100%; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 8px; }
  .hero-art { height: 100px; transform: scale(.6); transform-origin: left top; margin-bottom: 4px; }
  .picker, .details, .services { grid-template-columns: 1fr; }
  .summary { order: -1; }
}
@media (max-width: 520px) {
  .topbar { padding: 14px 16px; }
  .brand span { font-size: 1.35rem; }
  .steps { padding: 14px 16px; }
  .steps li { font-size: 0; gap: 0; justify-content: center; }
  .steps li span { font-size: .78rem; }
  .pane { padding: 22px 16px 4px; }
  .pane h2 { font-size: 1.7rem; }
  .footer-bar { padding: 12px 16px; gap: 10px; }
  .footer-bar .btn { padding: 10px 16px; }
  .top-wa span { display: none; }
  .totals { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* Capitalise only the first letter of localized dates ("martes, 20 de octubre" → "Martes, 20 de octubre") */
.cal-head strong { display: inline-block; }
.cal-head strong::first-letter, .times-title::first-letter, .summary .when::first-letter, .done-when::first-letter { text-transform: uppercase; }
