/* =========================================================
   Booking wizard (reservar.html + contact.html)
   Markup rendered by js/booking.js
   ========================================================= */

/* ---------- Page ---------- */
.bk-page { padding: 140px 0 110px; background: radial-gradient(ellipse 55% 40% at 50% 0%, rgba(203,54,15,.14), transparent 70%), var(--bg); }
.bk-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.bk-intro { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.bk-crumb { font-size: 11px; text-transform: uppercase; letter-spacing: .25em; color: var(--muted); margin-bottom: 22px; }
.bk-crumb span { color: var(--accent); }
.bk-intro h1 { font-size: clamp(40px, 5.2vw, 76px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.bk-intro h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); }
.bk-intro p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.bk-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }

/* ---------- Side summary ---------- */
.bk-aside { position: sticky; top: 100px; display: grid; gap: 12px; }
.bk-sum, .bk-help { padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.bk-sum-t { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); margin-bottom: 14px; }
.bk-sum-list { list-style: none; display: grid; gap: 10px; }
.bk-sum-list li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); animation: bkFade .4s both; }
.bk-sum-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bk-sum-list li span { font-size: 11px; color: var(--dim); }
.bk-sum-list li b { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.bk-sum-list .empty { font-size: 14px; color: var(--dim); }
.bk-sum-price { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-sum-price[hidden] { display: none; }
.bk-sum-price span { font-size: 12px; color: var(--muted); }
.bk-sum-price b { font-family: var(--serif); font-weight: 400; font-size: 36px; color: var(--accent); line-height: 1; }
.bk-help { display: grid; gap: 8px; }
.bk-help a { font-size: 14px; color: var(--muted); transition: color .3s; }
.bk-help a:hover { color: var(--accent); }

/* ---------- Wizard card ---------- */
.bk-card { position: relative; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.bk-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bk-back { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: none; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .3s, opacity .3s; }
.bk-back svg { width: 13px; height: 13px; transform: rotate(180deg); }
.bk-back:hover { background: rgba(255,255,255,.08); }
.bk-back:disabled { opacity: .25; cursor: default; }
.bk-progress { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.bk-progress i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bk-pct { flex: none; width: 38px; text-align: right; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.bk-body { padding: 38px 40px 40px; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-noscript { padding: 30px; color: var(--muted); }
.bk-noscript a { color: #fff; border-bottom: 1px solid var(--accent); }

/* Step transition */
.bk-step { animation: bkIn .5s cubic-bezier(.2,.7,.2,1) both; }
.bk-step[data-dir="-1"] { animation-name: bkInBack; }
.bk-step[data-dir="0"] { animation-name: bkFade; }
@keyframes bkIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes bkInBack { from { opacity: 0; transform: translateX(-28px); } }
@keyframes bkFade { from { opacity: 0; transform: translateY(8px); } }

.bk-step h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.bk-sub { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.bk-q { margin: 26px 0 12px; font-size: 14px; font-weight: 500; }
.bk-q i, .bk-field i { color: var(--accent); font-style: normal; }

/* Fields */
.bk-field { display: grid; gap: 8px; margin-top: 22px; }
.bk-field[hidden] { display: none; }
.bk-field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.bk-field input, .bk-field textarea { width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #fff; font: 400 16px var(--sans); transition: border-color .3s, background .3s, box-shadow .3s; color-scheme: dark; }
.bk-field textarea { resize: vertical; min-height: 96px; }
.bk-field input::placeholder, .bk-field textarea::placeholder { color: var(--dim); }
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(203,54,15,.15); }
.bk-field.bad input, .bk-field.bad textarea { border-color: #e5484d; }
.bk-err { display: block; min-height: 0; font-size: 12px; font-style: normal; color: #ff7a7f; }
.bk-choice-err { margin-top: 10px; }

/* Options */
.bk-opts { display: grid; gap: 10px; margin-top: 26px; }
.bk-q + .bk-opts { margin-top: 0; }
.bk-opts.img { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bk-opts.pkg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.bk-opts.pill { display: flex; flex-wrap: wrap; }
.bk-opt { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: #fff; text-align: left; font: inherit; cursor: pointer; transition: border-color .3s, background .3s, transform .35s cubic-bezier(.2,.7,.2,1); }
.bk-opt:hover { border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.bk-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-opt.on { border-color: var(--accent); background: rgba(203,54,15,.12); }
.bk-opt .ck { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); transition: background .3s, border-color .3s; }
.bk-opt.on .ck { background: var(--accent); border-color: var(--accent); }
.bk-opt.on .ck::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.bk-opt.img { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 16px; border-radius: 18px; overflow: hidden; }
.bk-opt.img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); transition: filter .6s, transform 1s cubic-bezier(.2,.7,.2,1); }
.bk-opt.img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85)); }
.bk-opt.img:hover img, .bk-opt.img.on img { filter: brightness(.7); transform: scale(1.05); }
.bk-opt.img .t, .bk-opt.img .d { position: relative; z-index: 2; }
.bk-opt.img .ck { z-index: 2; }
.bk-opt.img .t { font-size: 17px; font-weight: 600; }
.bk-opt.img .d { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 4px; }

.bk-opt.pkg { display: grid; gap: 6px; padding: 20px 20px 22px; border-radius: 18px; }
.bk-opt.pkg .t { font-size: 15px; font-weight: 600; padding-right: 30px; }
.bk-opt.pkg .t small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); margin-top: 2px; }
.bk-opt.pkg .pr { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.bk-opt.pkg .d { font-size: 13px; line-height: 1.5; color: var(--muted); }

.bk-opt.pill { display: inline-flex; align-items: center; gap: 12px; padding: 13px 48px 13px 20px; border-radius: 100px; font-size: 15px; }
.bk-opt.pill .ck { top: 50%; right: 12px; transform: translateY(-50%); }

/* Actions */
.bk-actions { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.bk-actions small { font-size: 12px; color: var(--dim); }
.bk-next { display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 24px; border-radius: 100px; border: 0; background: #fff; color: #111; font: 600 15px var(--sans); cursor: pointer; transition: background .3s, color .3s, opacity .3s; }
.bk-next span { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .35s; }
.bk-next span svg { width: 14px; height: 14px; }
.bk-next:hover { background: var(--accent); color: #fff; }
.bk-next:hover span { background: #111; transform: translateX(3px); }
.bk-next:disabled { opacity: .6; cursor: wait; }
.bk-next.loading span svg { animation: bkSpin 1s linear infinite; }
@keyframes bkSpin { to { transform: rotate(360deg); } }
.bk-status { margin-top: 16px; font-size: 14px; color: #ff9a9e; line-height: 1.6; }
.bk-status:empty { display: none; }
.bk-status a { color: #fff; border-bottom: 1px solid var(--accent); }

/* Review */
.bk-review { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.bk-review div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bk-review dt { font-size: 13px; color: var(--dim); }
.bk-review dd { font-size: 14px; overflow-wrap: anywhere; }
.bk-note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* Done */
.bk-done { text-align: center; padding: 20px 0 10px; }
.bk-done .bk-sub { margin-left: auto; margin-right: auto; }
.bk-check { display: inline-block; width: 74px; height: 74px; margin-bottom: 22px; }
.bk-check svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bk-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: bkDraw .7s .1s forwards; }
.bk-check path { stroke-dasharray: 36; stroke-dashoffset: 36; animation: bkDraw .4s .7s forwards; }
@keyframes bkDraw { to { stroke-dashoffset: 0; } }
.bk-next-steps { list-style: none; display: grid; gap: 10px; max-width: 460px; margin: 28px auto 0; text-align: left; }
.bk-next-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); font-size: 14px; }
.bk-next-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-weight: 400; font-style: italic; }
.bk-done .bk-actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .bk-layout { grid-template-columns: 1fr; }
  .bk-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .bk-page { padding: 110px 0 70px; }
  .bk-wrap { padding: 0 12px; }
  .bk-intro { margin-bottom: 30px; padding: 0 4px; }
  .bk-body { padding: 26px 18px 28px; }
  .bk-opts.img { grid-template-columns: 1fr 1fr; }
  .bk-opt.img { min-height: 150px; padding: 12px; }
  .bk-opt.img .d { display: none; }
  .bk-opts.pkg { grid-template-columns: 1fr; }
  .bk-opt.pill { width: 100%; }
  .bk-review div { grid-template-columns: 1fr; gap: 2px; }
  .bk-aside { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-step, .bk-sum-list li { animation: none; }
}
