:root {
  /* Colores de la marca Guaynabowls: verde, amarillo, blanco y naranja de acento */
  --brand: #466546;
  --brand-deep: #2e4a30;
  --yellow: #f4dc78;
  --yellow-soft: #fbf1c7;
  --orange: #e07a1f;
  --accent: #a84a0a;
  --cream: #fffdf6;
  --cream-2: #f7efcf;
  --paper: #ffffff;
  --ink: #1f2a1f;
  --muted: #586456;
  --line: #e6dcb4;
  --ok: #2f6b3f;
  --warn: #8a5a00;
  --err: #b3261e;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31, 42, 31, .06), 0 6px 20px rgba(31, 42, 31, .06);
  --serif: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; line-height: 1.15; margin: 0 0 .4em; color: var(--brand-deep); }
h1 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 620px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Avisos */
.preview-bar {
  background: var(--brand-deep); color: #fff; font-size: .92rem; padding: 10px 16px; text-align: center;
}
.preview-bar a { color: #fff; }
.notice { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); }
.notice.warn { background: #fff6e3; border-color: #ecd39a; color: #5a3d00; }
.notice.err { background: #fdecee; border-color: #efb7bd; color: #74141c; }
.notice.ok { background: #eaf4ec; border-color: #b8d8bf; color: #1f4a2a; }
.notice strong { display: block; margin-bottom: 2px; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* Encabezado */
.site-header { background: var(--paper); border-bottom: 4px solid var(--yellow); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 12px; }
.logo img { height: 64px; width: auto; }
.logo { text-decoration: none; }
.logo-placeholder {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--brand); text-decoration: none;
}
.header-link { font-weight: 600; text-decoration: none; font-size: 1rem; }

/* Portada */
.hero { background: var(--brand); color: var(--cream); }
.hero-grid { display: grid; gap: 0; }
.hero-photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--brand-deep); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-copy { padding: 32px 20px 40px; }
.hero h1 { color: #fff; }
.hero .subtitle { font-size: 1.2rem; color: var(--yellow-soft); margin-bottom: 22px; }
.highlight {
  background: var(--yellow); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 24px;
  font-size: 1.1rem; font-weight: 600; color: var(--brand-deep);
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: stretch; }
  .hero-photo { aspect-ratio: auto; min-height: 560px; }
  .hero-copy { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; }
}

/* Botones */
.btn {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 1.1rem/1 var(--sans); padding: 18px 26px; min-height: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .choice:focus-within, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-light { background: #b8560b; color: #fff; }
.btn-light:hover { background: #9c4708; }
.btn-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-ghost { background: transparent; color: var(--brand); padding-left: 8px; padding-right: 8px; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 1rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Secciones */
section.block { padding: 48px 0; }
.section-title { margin-bottom: 18px; }
.packages { display: grid; gap: 14px; }
@media (min-width: 760px) { .packages { grid-template-columns: repeat(3, 1fr); } }
.pkg-card {
  background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--yellow); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
button.pkg-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease; }
button.pkg-card:hover:not([disabled]) { box-shadow: 0 6px 24px rgba(31, 42, 31, .14); border-color: var(--brand); }
button.pkg-card:active:not([disabled]) { transform: translateY(1px); }
button.pkg-card[disabled] { cursor: default; opacity: .75; }
.pkg-card .serves { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--brand-deep); margin: 0; }
.pkg-card .price { display: block; }
.pkg-card .pkg-cta { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); }
.pkg-card .price { font-size: 1.6rem; font-weight: 700; margin: 4px 0 0; }
.pkg-card .tag { display: inline-block; margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--err); }
.includes {
  margin-top: 18px; background: var(--yellow-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.includes ul { margin: 6px 0 12px; padding-left: 20px; }
.includes li { margin: 2px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.hero .eyebrow { color: var(--yellow); }

/* Preguntas */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 16px; color: var(--ink); white-space: pre-line; }
.faq .pending { color: var(--warn); font-style: italic; }

footer.site-footer { background: var(--brand-deep); color: var(--yellow-soft); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .95rem; }
footer.site-footer a { color: #fff; }

/* Flujo de orden */
.flow { min-height: 100vh; background: var(--cream); }
.flow-top {
  position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line);
}
.flow-top .narrow { display: flex; align-items: center; gap: 10px; min-height: 60px; }
.flow-top .step-label { font-weight: 600; flex: 1; font-size: 1rem; }
.progress { height: 6px; background: var(--cream-2); }
.progress > div { height: 100%; background: var(--brand); width: 20%; transition: width .25s ease; }
.steps-dots { display: flex; gap: 6px; justify-content: center; padding: 14px 0 0; margin: 0; list-style: none; }
.steps-dots li { font-size: .8rem; color: var(--muted); }
.flow-body { padding: 22px 0 140px; }
.flow-body h2 { margin-bottom: 6px; }
.flow-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--paper);
  border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
}
.flow-actions .narrow { display: flex; gap: 10px; align-items: center; }
.flow-actions .total-mini { flex: 1; font-size: .95rem; line-height: 1.2; }
.flow-actions .total-mini b { display: block; font-size: 1.2rem; }

.qty-row {
  display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.qty-row.active { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.qty-row .info { flex: 1; }
.qty-row .name { font-weight: 700; font-size: 1.1rem; }
.qty-row .price { color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; color: var(--brand);
  font-size: 1.5rem; font-weight: 600; cursor: pointer; line-height: 1;
}
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 34px; text-align: center; font-weight: 700; font-size: 1.25rem; }

.choice {
  display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 12px; cursor: pointer;
}
.choice input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.choice.selected { border-color: var(--brand); }
.choice .title { font-weight: 700; font-size: 1.12rem; display: block; }
.choice .desc { color: var(--muted); font-size: .98rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 18px; padding: 14px; border-radius: 12px; border: 1.5px solid #cfc39a; background: #fff; color: var(--ink);
  min-height: 54px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.field .error-msg { color: var(--err); font-size: .95rem; font-weight: 600; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--err); background: #fff8f8; }
.two-col { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .two-col { grid-template-columns: 1fr 1fr; } }

.dates { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 0 8px; scroll-snap-type: x mandatory; max-width: 100%; }
.date-chip { position: relative;
  flex: none; scroll-snap-align: start; min-width: 92px; padding: 12px 10px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--paper); text-align: center; cursor: pointer; font: inherit; color: var(--ink);
}
.date-chip .dow { display: block; font-size: .85rem; color: var(--muted); text-transform: capitalize; }
.date-chip .day { display: block; font-size: 1.35rem; font-weight: 700; }
.date-chip .mon { display: block; font-size: .85rem; text-transform: capitalize; }
.date-chip.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.date-chip.selected .dow, .date-chip.selected .mon { color: var(--yellow-soft); }
.date-chip.none { opacity: .55; }
.times { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.time-btn {
  min-height: 60px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); font: inherit; font-weight: 600;
  cursor: pointer; color: var(--ink); padding: 8px;
}
.time-btn small { display: block; font-weight: 500; font-size: .82rem; color: var(--muted); }
.time-btn.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.time-btn.selected small { color: var(--yellow-soft); }
.time-btn[disabled] { background: #f1ebe0; color: #9a8d85; cursor: not-allowed; text-decoration: line-through; }
.time-btn[disabled] small { text-decoration: none; }

.summary { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.summary h3 { margin-bottom: 10px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 6px 0; vertical-align: top; }
.lines td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.lines tr.total td { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; font-weight: 700; }
.lines tr.sub td { color: var(--muted); }
.edit-link { float: right; font-size: .95rem; font-weight: 600; background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 4px; }

.big-number {
  font-family: var(--serif); font-size: 2.2rem; color: var(--brand-deep); letter-spacing: .02em; margin: 0;
}
.copy-row { display: flex; gap: 10px; align-items: center; background: var(--yellow-soft); border: 1.5px solid var(--yellow); border-radius: 12px; padding: 10px 12px; }
.copy-row code { flex: 1; font-size: 1.05rem; font-family: var(--sans); font-weight: 700; overflow-wrap: anywhere; }
.pay-steps { list-style: none; margin: 0; padding: 0; }
.pay-steps li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pay-steps li:last-child { border-bottom: 0; }
.pay-steps .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.pay-steps li > div { flex: 1; min-width: 0; }
.pay-steps b { display: block; }
.pay-steps .small { display: block; margin-top: 2px; }
.pay-amounts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-top: 8px; }
.pay-amounts span { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: 12px; padding: 8px 12px; }
.pay-amounts small { display: block; color: var(--muted); font-size: .85rem; }
.pay-amounts b { font-size: 1.3rem; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700; background: var(--cream-2); color: var(--ink); }
.pill.ok { background: #dcefe0; color: #1f4a2a; }
.pill.warn { background: #fbe9c4; color: #5a3d00; }
.pill.err { background: #f8d7da; color: #74141c; }
.status-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .status-grid { grid-template-columns: 1fr 1fr; } }
.status-box { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.status-box .label { font-size: .85rem; color: var(--muted); display: block; }
.file-drop { display: block; border: 2px dashed #cfc39a; border-radius: 14px; padding: 22px; text-align: center; background: #fff; cursor: pointer; }
.file-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Panel */
.admin body, body.admin { background: #fbf8ec; font-size: 16px; }
.admin-top { background: var(--brand-deep); color: #fff; }
.admin-top .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.admin-top .title { font-family: var(--serif); font-size: 1.2rem; flex: 1; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
.tab { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; color: var(--ink); }
.tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.order-item { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.order-item .row1 { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.order-item .row2 { color: var(--muted); font-size: .95rem; margin: 4px 0 8px; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.filters .full { grid-column: 1 / -1; }
.filters input, .filters select, .card input, .card select, .card textarea {
  width: 100%; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1.5px solid #cfc39a; background: #fff; min-height: 46px;
}
.card textarea { min-height: 90px; }
.card label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: .95rem; }
.checkline { display: flex; gap: 10px; align-items: center; font-weight: 600; margin: 10px 0; }
.checkline input { width: 22px; height: 22px; min-height: 0; accent-color: var(--brand); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.table-scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.grid th, table.grid td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.modal-back { position: fixed; inset: 0; background: rgba(43,27,29,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--cream); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .modal-back { align-items: center; } .modal { border-radius: 18px; } }
.receipt-thumb { max-height: 360px; border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 99; font-size: .95rem; max-width: 90vw; text-align: center; }
