/* ===== Marca: cambiar solo estas variables cuando se elija el logo ===== */
:root {
  --brand: #1D2B53;        /* azul marino */
  --brand-dark: #121b38;
  --accent: #E8573C;       /* coral */
  --accent-dark: #b8412a;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #0b1f27;
  --muted: #4f6772;
  --line: #cfdadf;
  --ok: #17803d;
  --danger: #b42318;
  --radius: 14px;
  --soft: #F6C9BF;       /* tinte suave */
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.4; padding-bottom: 40px; }
.hidden { display: none !important; }
header.top { background: var(--brand); color: #fff; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 1000; }
.logo { display: flex; align-items: center; gap: 8px; font-family: Sora, system-ui, sans-serif; font-size: 26px; font-weight: 700; color: #fff; text-decoration: none; }
.logo img { height: 38px; width: 38px; }
.tagline { font-size: 12px; font-weight: 400; opacity: .85; display: block; line-height: 1; margin-top: 2px; }

.lang { display: flex; gap: 4px; }
.lang button { min-height: 36px; min-width: 40px; border: 2px solid rgba(255,255,255,.5); background: transparent; color: #fff; border-radius: 8px; font-weight: 700; font-size: 14px; }
.lang button.on { background: var(--accent); border-color: var(--accent); color: #000; }
main { max-width: 640px; margin: 0 auto; padding: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
h2 { margin: 0 0 10px; font-size: 21px; } h3 { margin: 0 0 8px; font-size: 18px; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea { width: 100%; min-height: 50px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; font-size: 17px; background: #fff; color: var(--text); font-family: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); border-color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 54px; padding: 10px 18px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; text-decoration: none; width: 100%; margin-top: 8px; font-family: inherit; }
.btn:active { background: var(--brand-dark); }
.btn.accent { background: var(--accent); color: #000; }
.btn.ghost { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn.danger { background: var(--danger); }
.btn.small { min-height: 42px; font-size: 15px; width: auto; padding: 6px 12px; margin-top: 0; }
.btn:disabled { opacity: .5; }
.place { position: relative; }
.geo { display: block; margin: 6px 0 2px; padding: 8px 0; min-height: 44px; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.sug { position: absolute; left: 0; right: 0; top: 54px; z-index: 1100; background: #fff; border: 2px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); max-height: 300px; overflow-y: auto; }
.sug button { display: block; width: 100%; min-height: 52px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.sug button:hover, .sug button:focus { background: var(--bg); }
.sug span { display: block; font-size: 14px; color: var(--muted); }
.sug p { margin: 0; padding: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips button { min-height: 44px; padding: 6px 12px; border: 2px solid var(--brand); border-radius: 22px; background: #fff; color: var(--brand); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.mpin { width: 28px; height: 28px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.45); }
details.fixed { margin-top: 12px; } details.fixed summary { cursor: pointer; color: var(--brand); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.row { display: flex; gap: 8px; align-items: center; } .row > * { flex: 1; }
.row.nofl > * { flex: none; }
.muted { color: var(--muted); font-size: 15px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs button { flex: 1; min-height: 48px; border: 2px solid var(--brand); background: #fff; color: var(--brand); border-radius: 12px; font-weight: 700; font-size: 16px; padding: 4px 8px; }
.tabs button.on { background: var(--brand); color: #fff; }
#map { height: 32vh; min-height: 220px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 10px; z-index: 1; }
.price-box { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.price-box .val { flex: 1; text-align: center; font-size: 34px; font-weight: 800; color: var(--brand); }
.price-box button { width: 64px; height: 64px; font-size: 34px; border-radius: 50%; border: 0; background: var(--accent); color: #000; font-weight: 800; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 14px; font-weight: 700; background: var(--soft); color: var(--brand); }
.badge.ok { background: #d8f2e1; color: var(--ok); } .badge.warn { background: #ffe9c7; color: #7a4a00; } .badge.bad { background: #fde1de; color: var(--danger); }
.sim { background: var(--accent); color: #000; font-weight: 800; text-align: center; padding: 6px; border-radius: 8px; font-size: 14px; margin: 6px 0; }
.offer { border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.offer .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.offer .p { font-size: 26px; font-weight: 800; color: var(--brand); }
.steps { display: flex; gap: 4px; margin: 8px 0; }
.steps div { flex: 1; text-align: center; font-size: 12px; padding: 6px 2px; border-radius: 8px; background: #e6edf0; color: var(--muted); font-weight: 600; }
.steps div.on { background: var(--brand); color: #fff; }
.chat { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 10px; }
.chat .msgs { height: 220px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 14px; background: #e6edf0; align-self: flex-start; word-wrap: break-word; }
.bub.me { align-self: flex-end; background: var(--brand); color: #fff; }
.bub small { display: block; opacity: .85; font-size: 13px; margin-top: 4px; border-top: 1px dashed currentColor; padding-top: 3px; }
.qr-row { display: flex; gap: 6px; overflow-x: auto; padding: 6px 8px; }
.qr-row button { white-space: nowrap; min-height: 40px; border: 2px solid var(--brand); background: #fff; color: var(--brand); border-radius: 99px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.chat form { display: flex; gap: 6px; padding: 8px; } .chat form input { flex: 1; } .chat form button { width: 80px; margin: 0; }
.stars { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.stars button { font-size: 38px; background: none; border: 0; color: #c3ced3; min-width: 48px; min-height: 48px; } .stars button.on { color: var(--accent); }
.qrbox { display: flex; justify-content: center; padding: 12px; background: #fff; border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th, td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; vertical-align: top; }
.scroll-x { overflow-x: auto; }
.switch { display: flex; align-items: center; justify-content: space-between; min-height: 64px; font-size: 20px; font-weight: 700; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 5000; max-width: 90%; font-weight: 600; }
.spinner { width: 28px; height: 28px; border: 4px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: sp 1s linear infinite; margin: 8px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.fat { background: var(--brand); color: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.fat span { display: block; font-size: 15px; opacity: .85; } .fat b { font-size: 32px; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.tile { background: var(--bg); border-radius: 12px; padding: 10px 6px; text-align: center; min-width: 0; }
.tile b { display: block; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; } .tile span { font-size: 14px; color: var(--muted); }
.tile.ok b { color: var(--ok); } .tile.bad b { color: var(--danger); }
.stat { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 18px; } .stat b { font-size: 20px; }
.seg { display: flex; gap: 6px; margin: 10px 0 4px; }
.seg button { flex: 1; min-height: 48px; border: 2px solid var(--brand); background: #fff; color: var(--brand); border-radius: 12px; font-weight: 700; font-size: 17px; font-family: inherit; }
.seg button.on { background: var(--brand); color: #fff; }
.when-badge { display: inline-block; background: var(--brand); color: #fff; padding: 3px 10px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.res-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .res-btns .btn { flex: 1; min-width: 90px; }
.offer .p { white-space: nowrap; }
.btn.big { min-height: 68px; font-size: 21px; }
.al-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .al-head h3 { margin: 0; }
.al-st { padding: 4px 12px; border-radius: 99px; background: var(--soft); color: var(--brand); font-weight: 700; font-size: 15px; }
.al-st.on { background: var(--brand); color: #fff; }
.al-wake { justify-content: space-between; margin: 12px 0 0; font-weight: 600; } .al-wake input { width: 60px; height: 34px; min-height: 0; }
input[type="datetime-local"] { appearance: none; -webkit-appearance: none; display: block; text-align: left; }
#resList .offer, #resCard .offer { border-color: var(--soft); }
.when-badge { background: var(--accent); color: #000; }
.wide main { max-width: 1000px; }
.thumbs a { display: inline-block; margin: 2px 6px 2px 0; font-size: 14px; }
.steps-reg { text-align: center; margin-bottom: 8px; font-weight: 700; color: var(--brand); }


header.top .right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
