:root {
  --brand: #1e5d53; --brand-hover: #174b43; --brand-deep: #123d38; --brand-soft: #e8f1ee; --brand-line: #c6ddd6;
  --teal: #3f8a78; --bg: #f4f5f3; --ink: #18211f; --ink-soft: #3d4744; --muted: #67726e; --line: #e5e9e6; --line-strong: #d3dbd7;
  --ok: #18643a; --ok-soft: #e2f3e8; --warn: #7f5209; --warn-soft: #fdf1d6; --danger: #9c2b25; --danger-soft: #fbe5e3;
  --gold: #b8923f; --r-btn: 11px; --r-card: 14px; --r-panel: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(18,61,56,.08);
  --display: Georgia, "Times New Roman", serif;
  --ui: Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ui); background: var(--bg); color: var(--ink); line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid #86c5b6; outline-offset: 2px; }

/* barra demo */
.demobar { background: #2a2a2a; color: #fff; font-size: 13px; padding: 7px 12px; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; text-align: center; }
.demobar b { background: var(--gold); color: #1b1405; border-radius: 99px; padding: 1px 9px; letter-spacing: .08em; font-size: 11px; }
.demobar button { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 99px; padding: 2px 12px; cursor: pointer; font-size: 12px; }
.lang { display: inline-flex; gap: 4px; }
.lang button.on { background: #fff; color: #222; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; border-radius: var(--r-btn); border: 1px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; background: #fff; border-color: var(--line-strong); transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1b1405; }
.btn-lg { min-height: 56px; font-size: 1.1rem; }
.btn[disabled] { opacity: .6; cursor: default; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.field { width: 100%; min-height: 56px; padding: 0 14px; font-size: 1.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: #fff; }
.label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.pill { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.pill.ok { background: var(--brand); color: #fff; }
.pill.warn { background: #fde9bd; color: #6d4506; }
.pill.soft { background: var(--brand-soft); color: var(--brand); }
.pill.plain { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }

/* intro */
.hero { background: linear-gradient(160deg, var(--brand-deep), var(--brand) 60%, #2c7468); color: #fff; padding: 44px 0 56px; }
.hero .kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; font-weight: 700; }
.hero h1 { font-family: var(--display); font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.1; margin: 10px 0 14px; }
.hero p.lead { max-width: 640px; font-size: 1.1rem; opacity: .92; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .btn:not(.btn-gold) { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.benefit { padding: 22px; }
.benefit .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 4px; }
.benefit p { color: var(--ink-soft); font-size: .95rem; }
.section { padding: 40px 0 8px; }
.section h2 { font-family: var(--display); font-size: 1.8rem; margin-bottom: 18px; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { padding: 18px 18px 18px 64px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; }
.creds { background: var(--warn-soft); border: 1px dashed #d8b45c; border-radius: var(--r-card); padding: 16px 18px; }
.creds code, .code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 36px 16px 48px; }

/* login */
.login-page { min-height: 100dvh; background: linear-gradient(160deg, var(--brand-deep), var(--brand)); display: flex; flex-direction: column; }
.login-center { flex: 1; display: grid; place-items: center; padding: 28px 16px; }
.login-box { width: 100%; max-width: 420px; background: #fff; border-radius: var(--r-panel); padding: 26px 26px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.login-box .brandline { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.login-box .brandline small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.login-box .brandline h1 { font-size: 1.6rem; }
.login-box .field { margin-bottom: 14px; }
.err { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin-bottom: 12px; }

/* app */
.chrome { background: linear-gradient(var(--brand-deep), var(--brand)); color: #fff; position: sticky; top: 0; z-index: 30; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.chrome .in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; max-width: 1400px; margin: 0 auto; }
.chrome .name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.chrome .sub { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.chrome .out { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 10px; min-height: 40px; padding: 0 14px; cursor: pointer; font-weight: 600; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 18px 0; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 2rem; font-family: var(--display); line-height: 1.1; color: var(--brand); }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.cols { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .cols { grid-template-columns: 1fr 1fr; } }
.panel { border-radius: 16px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.panel.g1 { border: 2px solid var(--brand); } .panel.g2 { border: 2px solid var(--teal); }
.panel > .head { width: 100%; min-height: 64px; border: 0; color: #fff; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.g1 > .head { background: var(--brand); } .g2 > .head { background: var(--teal); }
.panel .body { padding: 20px; }
.panel.arrivals { border: 2px solid var(--gold); } .panel.arrivals > .head { background: var(--gold); color: #1b1405; cursor: default; }
.form { display: grid; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: inline-flex; min-height: 46px; align-items: center; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-strong); font-weight: 600; background: #fff; }
.chips input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid #86c5b6; }
.two { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.note { background: #f1f4f2; border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: var(--ink-soft); margin-bottom: 14px; }
.note ul { margin: 6px 0 0; padding-left: 18px; }
.day { margin: 18px 0 8px; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #2d6d5d; }
.day:first-of-type { margin-top: 0; }
.stay { background: #e6efec; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12); border-radius: 16px; padding: 10px 12px; margin-bottom: 12px; }
.stay > .row { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; min-height: 44px; padding: 0; }
.stay .who { font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stay .meta { font-size: .88rem; color: var(--ink-soft); }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acts .btn { min-height: 44px; border-radius: 99px; color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); font-size: .92rem; padding: 0 16px; }
.sub-box { background: #fff; border-radius: 12px; padding: 12px; margin-top: 10px; font-size: .9rem; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 6px 0 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 600; }
.docimg { display: block; margin-top: 8px; border-radius: 10px; border: 1px solid var(--line); max-width: 300px; width: 100%; }
.result { text-align: center; padding: 26px 20px; display: grid; gap: 14px; justify-items: center; }
.result canvas, .result img { border: 1px solid var(--line); border-radius: 14px; padding: 8px; background: #fff; }
.msg { text-align: left; background: #e9f7ee; border-radius: 14px 14px 14px 4px; padding: 12px 14px; max-width: 480px; white-space: pre-wrap; font-size: .93rem; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
.wa { background: #25a244; border-color: #25a244; }

/* modale / guida ospite */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal .sheet { background: #fff; border-radius: 20px; width: 100%; max-width: 440px; max-height: 94dvh; overflow-y: auto; }
.sheet .top { background: var(--brand); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: start; gap: 10px; border-radius: 20px 20px 0 0; }
.sheet .top h3 { font-family: var(--display); font-size: 1.35rem; }
.sheet .inner { padding: 18px 20px 22px; display: grid; gap: 12px; }
.sheet .x { background: rgba(255,255,255,.18); border: 0; color: #fff; border-radius: 50%; width: 38px; height: 38px; font-size: 20px; cursor: pointer; flex: none; }
.lock { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 12px 14px; background: #fafafa; }
.codeval { font-size: 1.6rem; letter-spacing: .25em; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; color: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #222; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 200; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.35); font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal span.w { font-size: 12px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal button { aspect-ratio: 1; min-height: 44px; border-radius: 50%; border: 0; background: none; font-weight: 600; font-size: 1rem; cursor: pointer; }
.cal button:hover { background: var(--brand-soft); } .cal button.sel { background: var(--brand); color: #fff; } .cal button[disabled] { color: #bbb; cursor: default; }
.calhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.calhead button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand-soft); font-size: 22px; font-weight: 700; cursor: pointer; }

/* tab Reception / Guida */
.chrome .tabs { padding-top: 0; gap: 6px; justify-content: flex-start; }
.chrome .tabs button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 12px 12px 0 0; min-height: 44px; padding: 0 18px; font-weight: 700; cursor: pointer; }
.chrome .tabs button.on { background: var(--bg); color: var(--brand); }
body.guestpage { background: #e9edf2; }

/* editor */
.edwrap { display: grid; gap: 20px; padding-top: 18px; }
@media (min-width: 1000px) { .edwrap { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .edprev { position: sticky; top: 130px; } }
.eduphead { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.langpick { display: flex; align-items: center; gap: 8px; }
.lang2 { display: inline-flex; gap: 4px; } .lang2 button { border: 1px solid var(--line-strong); background: #fff; border-radius: 99px; min-width: 48px; min-height: 40px; font-weight: 700; cursor: pointer; } .lang2 button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.sectabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: thin; }
.sectabs button { flex: none; border: 1px solid var(--line-strong); background: #fff; border-radius: 99px; min-height: 44px; padding: 0 16px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sectabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.edbody { padding: 18px; display: grid; gap: 14px; }
.edtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .edtop h3 { font-family: var(--display); font-size: 1.3rem; }
.saved { font-size: .8rem; color: var(--ok); font-weight: 700; background: var(--ok-soft); border-radius: 99px; padding: 3px 10px; }
.edf { display: grid; } .edf .field { min-height: 48px; font-size: 1rem; } textarea.field { padding: 10px 14px; resize: vertical; font-size: 1rem; line-height: 1.45; }
.edrow { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: #fafbfa; }
.toggles { display: grid; gap: 8px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; } .switch span { width: 46px; height: 26px; background: #c9d1ce; border-radius: 99px; position: relative; flex: none; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--brand); } .switch input:checked + span::after { transform: translateX(20px); } .switch input:focus-visible + span { outline: 3px solid #86c5b6; }
.chips.mini span { min-height: 38px; padding: 0 14px; font-size: .88rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

/* telefono */
.phone { width: 100%; max-width: 380px; margin: 10px auto 0; aspect-ratio: 9 / 18.5; background: #111; border-radius: 38px; padding: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 28px; background: #fff; display: block; }
.phone.big { max-width: 400px; height: min(86dvh, 820px); aspect-ratio: auto; }
.phonewrap { display: grid; gap: 8px; justify-items: center; width: 100%; }
.phoneclose { background: #fff; border: 0; border-radius: 99px; min-height: 44px; padding: 0 20px; font-weight: 800; cursor: pointer; }
@media (max-width: 520px) { .phone.big { max-width: none; width: 100%; border-radius: 22px; padding: 6px; } .phone.big iframe { border-radius: 16px; } }
.edmain, .edprev, .edbody { min-width: 0; }
.edwrap { max-width: 100%; }
.sectabs { max-width: 100%; }
.ic { display: inline-block; vertical-align: -0.2em; flex: none; }
.benefit .ic { color: var(--brand); }
.qgrp { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 6px; margin-bottom: 14px; background: #fff; }
.qgrp h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--display); font-size: 1.1rem; color: var(--brand); }
.chips.am { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.sectabs button:first-child { border-color: var(--brand); }
