:root {
  --green: #0B5E43;
  --green-deep: #073F2D;
  --gold: #CBA34E;
  --cream: #F7F3EA;
  --cream-2: #EEE6D2;
  --line: #E2D8C2;
  --line-strong: #CDBF9F;
  --chip-line: #D6CAAE;
  --ink: #1E2A22;
  --muted: #5B6158;
  --body: #34402F;
  --white: #FFFFFF;
  --danger: #9B2C22;
  --danger-bg: #F6DEDA;
  --warn: #7A4210;
  --warn-bg: #FBE9D2;
  --ok: #1C5A3F;
  --ok-bg: #DCEDE3;
  --radius: 10px;
  --serif: 'Sora', 'Manrope', 'Helvetica Neue', sans-serif;
  --sans: 'Manrope', 'Helvetica Neue', Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* Marca */
.wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--cream); display: flex; align-items: center; }
.wordmark span { color: var(--gold); }
.wordmark img { display: block; max-height: 64px; width: auto; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.input, .select, .textarea {
  min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); font-size: 16px; width: 100%;
}
.textarea { padding: 12px 14px; resize: vertical; min-height: 88px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--body); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green); }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0; }
.h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -0.3px; }
.sub { color: var(--muted); font-size: 14px; }

/* Botones */
.btn { min-height: 48px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); color: var(--white); }
.btn-primary:disabled { background: var(--chip-line); color: var(--muted); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--chip-line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-danger { background: var(--white); color: var(--danger); border-color: #E3B8B1; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

.chip { min-height: 48px; border-radius: var(--radius); border: 1px solid var(--chip-line); background: var(--white); color: var(--ink); font-weight: 600; font-size: 15px; }
.chip:hover:not(:disabled) { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.chip:disabled { background: transparent; color: #8A8676; border-style: dashed; text-decoration: line-through; }

.note { padding: 14px 16px; border-radius: 12px; background: var(--cream-2); font-size: 13px; line-height: 1.55; color: var(--body); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.error { padding: 12px 14px; border-radius: var(--radius); background: var(--danger-bg); color: var(--danger); font-size: 14px; }
.ok { padding: 12px 14px; border-radius: var(--radius); background: var(--ok-bg); color: var(--ok); font-size: 14px; }
.demo { background: var(--warn-bg); color: var(--warn); font-size: 12px; text-align: center; padding: 6px 12px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-confirmed { background: var(--ok-bg); color: var(--ok); }
.b-hold { background: var(--warn-bg); color: var(--warn); }
.b-seated { background: var(--green-deep); color: var(--white); }
.b-finished { background: #E4E2DA; color: #4A4A40; }
.b-no_show { background: var(--danger-bg); color: var(--danger); }
.b-cancelled { background: #EDEBE5; color: #6B675B; text-decoration: line-through; }
.b-expired { background: #EDEBE5; color: #6B675B; }

.spinner { width: 22px; height: 22px; border: 3px solid var(--cream-2); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
