:root {
  --mint: #9fd9d6;
  --mint-soft: #e3f4f3;
  --teal: #517774;
  --ink: #111;
  --muted: #666;
  --line: #e4e4e1;
  --bg: #f7f7f5;
  --card: #fff;
  --red: #d63637;
  --amber: #fff4dc;
  --radius: 18px;
  --script: 'Caveat', cursive;
  --sans: 'Outfit', system-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); background: var(--bg); font-size: 16px; line-height: 1.45; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top img { height: 40px; }
.top .contact { font-size: 13px; color: var(--muted); text-align: right; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.hero { background: var(--mint); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.hero h1 { font-family: var(--script); font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 0 0 10px; font-weight: 700; }
.hero p { margin: 0; font-size: 17px; max-width: 46ch; }
.hero .photo { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero .photo { display: none; } .top .contact { display: none; } }

/* Stepper */
.steps { display: flex; gap: 6px; margin: 24px 0 18px; overflow-x: auto; scrollbar-width: none; }
.steps button { flex: 1 0 auto; border: 0; background: transparent; padding: 8px 4px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: 14px; text-align: left; white-space: nowrap; }
.steps button b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--ink); font-size: 12px; margin-right: 6px; }
.steps button.done { border-color: var(--teal); color: var(--ink); }
.steps button.done b { background: var(--teal); color: #fff; }
.steps button.current { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.steps button.current b { background: var(--ink); color: #fff; }
.steps button:disabled { cursor: default; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 120px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.panel h2 { font-family: var(--script); font-size: 36px; line-height: 1; margin: 0 0 4px; font-weight: 700; }
.panel .sub { color: var(--muted); margin: 0 0 20px; }
.section { margin-top: 26px; }
.section > h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; color: var(--teal); }

/* Categorías y tarjetas */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
.card { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--mint); }
.card.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--mint); }
.card .img { aspect-ratio: 4/3; background: var(--mint-soft); display: grid; place-items: center; font-size: 44px; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; }
.card .name { font-weight: 600; }
.card .desc { font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.card .price { font-size: 13px; }
.card .price b { font-size: 15px; }
.cat-blurb { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* Formularios */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
label.f { display: block; font-size: 14px; font-weight: 500; }
label.f span.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.f input, .f select, .f textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--mint-soft); }
.f textarea { min-height: 80px; resize: vertical; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; font-size: 14px; }
.slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.warn { background: var(--amber); border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 10px; }
.err { background: #fdecec; color: #8a1f1f; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 14px; }

.toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.toggle button { border: 0; background: transparent; padding: 8px 18px; font-size: 14px; }
.toggle button.on { background: var(--ink); color: #fff; }

.optrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.optrow:last-child { border-bottom: 0; }
.optrow .info { flex: 1; }
.optrow .info small { display: block; color: var(--muted); }
.optrow input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--ink); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { border: 0; background: none; width: 34px; height: 34px; font-size: 18px; }
.qty input { width: 44px; border: 0; text-align: center; padding: 0; }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.model { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; text-align: left; }
.model.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--mint); }
.model img { border-radius: 8px; margin-bottom: 8px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* Resumen */
.summary { position: sticky; top: 84px; }
.summary h3 { font-family: var(--script); font-size: 30px; margin: 0 0 8px; }
.summary .exp { font-weight: 600; }
.summary .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.lines { font-size: 14px; }
.lines .l { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.lines .l small { display: block; color: var(--muted); font-size: 12px; }
.lines .l span:last-child { white-space: nowrap; }
.lines .sep { border-top: 1px solid var(--line); margin: 8px 0; }
.lines .total { font-weight: 700; font-size: 18px; }
.pay-split { background: var(--mint-soft); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 14px; }
.pay-split .l { display: flex; justify-content: space-between; padding: 2px 0; }
.empty { color: var(--muted); font-size: 14px; }

/* Barra inferior / botones */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.btn { border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: 15px; background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.mint { background: var(--mint); color: var(--ink); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.mobilebar { display: none; }
@media (max-width: 900px) {
  .summary { position: static; }
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; align-items: center; justify-content: space-between; z-index: 30; }
  .mobilebar small { display: block; color: var(--muted); font-size: 12px; }
  .mobilebar b { font-size: 18px; }
}

/* Términos uno por uno */
.terms { display: grid; gap: 12px; }
.term { border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; transition: opacity .2s; }
.term.locked { opacity: .45; }
.term.ok { border-color: var(--teal); background: #f6fbfb; }
.term h4 { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.term h4 .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-size: 12px; }
.term.ok h4 .n { background: var(--teal); color: #fff; }
.term .text { font-size: 14px; color: #333; max-height: 160px; overflow: auto; padding-right: 6px; }
.term label { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-weight: 500; font-size: 14px; cursor: pointer; }
.term input { width: 22px; height: 22px; accent-color: var(--teal); flex: none; }

.review { font-size: 14px; }
.review .r { display: flex; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.review .r span:first-child { width: 40%; color: var(--muted); flex: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line); }
.badge.reservada { background: var(--mint); }
.badge.pagada { background: #c8ecd5; }
.badge.pendiente_pago { background: var(--amber); }
.badge.cancelada { background: #f6d2d2; }

footer { text-align: center; font-size: 13px; color: var(--muted); padding: 30px 16px 120px; }

/* Modo Próximamente */
body.coming-soon main, body.coming-soon .mobilebar { display: none; }
body.coming-soon .hero .wrap { min-height: 62vh; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cs-actions .btn { text-decoration: none; }
.preview-bar { background: var(--ink); color: #fff; text-align: center; font-size: 13px; padding: 8px 16px; }
