@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;1,9..144,300&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --yellow: #F2B705;
  --yellow-soft: #FFF4CC;
  --yellow-deep: #8A6600;
  --ink: #2B2B2B;
  --ink-2: #555555;
  --line: #E4E4E2;
  --ground: #FAFAF8;
  --white: #FFFFFF;
  --dark: #1E1E1E;
  --ok: #1F7A4D;
  --warn: #9A5B00;
  --bad: #B3261E;
  --radius: 6px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--ground); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
a:hover { color: var(--yellow-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.topbar { background: var(--dark); color: var(--white); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 22px; color: var(--yellow); text-decoration: none; }
.brand:hover { color: var(--yellow); }
.topbar a.back { color: #D6D6D6; font-size: 14px; text-decoration: none; }
.topbar a.back:hover { color: var(--white); }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow-deep); margin: 0 0 10px; }
.lead { color: var(--ink-2); margin: 10px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--yellow); color: var(--dark); font-weight: 700; cursor: pointer; text-decoration: none; }
.btn:hover { background: #E0A800; color: var(--dark); }
.btn:disabled { background: var(--line); color: #767676; cursor: not-allowed; }
.btn.ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.danger { background: var(--bad); color: var(--white); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }

/* Contador de hóspedes */
.counter { display: flex; align-items: center; gap: 12px; }
.counter label { font-weight: 600; min-width: 80px; }
.counter button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink); }
.counter button:hover:not(:disabled) { border-color: var(--ink); }
.counter button:disabled { opacity: .35; cursor: not-allowed; }
.counter output { min-width: 22px; text-align: center; font-weight: 700; font-size: 18px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--ink); }

/* Summary */
.summary { padding: 22px; }
.summary h2 { font-size: 22px; margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-row span:first-child { color: var(--ink-2); }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; font-weight: 700; }
.sum-total b { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.summary .btn { width: 100%; margin-top: 18px; }
.muted { color: var(--ink-2); font-size: 14px; }

/* Form */
form.guest { padding: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { min-height: 48px; padding: 10px 14px; border: 1.5px solid #C9C9C6; border-radius: var(--radius); background: var(--white); }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--yellow-soft); }
.field .err { color: var(--bad); font-size: 13px; min-height: 0; }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.pay { border: 0; padding: 0; margin: 0; gap: 10px; }
.pay legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #C9C9C6; border-radius: var(--radius); cursor: pointer; min-height: 56px; }
.pay-opt:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.pay-opt small { display: block; color: var(--ink-2); font-size: 13px; }
.policy { background: var(--ground); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; color: var(--ink-2); white-space: pre-line; }

.alert { padding: 14px 16px; border-radius: var(--radius); font-size: 15px; margin: 0 0 16px; }
.alert.error { background: #FDECEA; color: var(--bad); }
.alert.info { background: var(--yellow-soft); color: var(--ink); }
.alert.ok { background: #E6F4EC; color: var(--ok); }

.status-box { max-width: 640px; margin: 48px auto; padding: 36px clamp(20px, 5vw, 40px); text-align: center; }
.status-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; }
.status-icon.ok { background: var(--yellow); color: var(--dark); }
.status-icon.wait { background: var(--yellow-soft); color: var(--yellow-deep); }
.status-icon.bad { background: #FDECEA; color: var(--bad); }
.status-box h1 { font-size: clamp(30px, 5vw, 42px); }
.status-box .details { text-align: left; margin: 24px 0; }

.spinner { width: 22px; height: 22px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
  .side { position: static; }
  .steps .label { display: none; }
}
.field .check input, .check input[type="checkbox"] { min-height: 0; padding: 0; border: 0; box-shadow: none; }
