/* Autolab — sistema visual compartido */
:root {
  --brand: #ff281b;
  --brand-600: #d81e12;
  --brand-50: #fff0ef;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e9e9e9;
  --line-2: #f2f2f2;
  --bg: #f6f6f6;
  --surface: #ffffff;
  --ok: #12a46b;
  --ok-50: #e7f7ef;
  --warn: #d98a00;
  --warn-50: #fff6e0;
  --bad: #e0384b;
  --bad-50: #fdecee;
  --info: #3b6cf5;
  --info-50: #ebf0ff;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.05), 0 6px 20px rgba(17, 17, 17, 0.06);
  --shadow-lg: 0 20px 60px rgba(17, 17, 17, 0.18);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: 13px; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- botones ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap;
  background: var(--surface); color: var(--ink); border-color: var(--line);
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { border-color: #d9d9d9; background: #fbfbfd; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tab:focus-visible, .choice:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 1px;
}
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.dark:hover { background: #2a2a2a; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-50); border-color: #f6c7cd; }
.btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after {
  content: ''; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn svg, .ico { width: 18px; height: 18px; flex: none; }

/* ---------- formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .spread > label, .label { font-size: 13px; font-weight: 650; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
.input, input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font: 500 15px var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #d9d9d9; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
input::placeholder, textarea::placeholder { color: #b2b2c4; }
input.invalid { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-50); }
.field .error { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.input-group { display: flex; align-items: stretch; }
.input-group > .addon {
  display: flex; align-items: center; padding: 0 12px; background: var(--line-2); border: 1px solid var(--line);
  font-weight: 650; color: var(--ink-2); font-size: 14px;
}
.input-group > .addon:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.input-group > .addon:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.input-group > input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* interruptor */
.switch { position: relative; display: inline-flex; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d9d9e4; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* tarjetas de opción (radio grande) */
.choices { display: grid; gap: 12px; }
.choice {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: .15s; text-align: left;
  font: inherit; color: inherit;
}
.choice:hover { border-color: #d0d0de; }
.choice.on { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.choice .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cfcfdd; flex: none; margin-top: 2px; display: grid; place-items: center; }
.choice.on .dot { border-color: var(--brand); }
.choice.on .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.choice b { display: block; font-size: 15px; }
.choice small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }

/* segmentado */
.seg { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 12px; border-radius: 9px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card.pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.card-body { padding: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warn { background: var(--warn-50); color: var(--warn); }
.badge.bad { background: var(--bad-50); color: var(--bad); }
.badge.info { background: var(--info-50); color: var(--info); }
.badge.brand { background: var(--brand-50); color: var(--brand-600); }
.badge[style*='height:auto'] { white-space: normal; line-height: 1.45; align-items: flex-start; }
.badge[style*='height:auto'] svg { margin-top: 2px; flex: none; }
.badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* métricas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat .k { font-size: 13px; color: var(--ink-2); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .v { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat .k .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.stat .k .ic svg { width: 16px; height: 16px; }

/* tablas */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: #fafafd; }
.t .r { text-align: right; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 13px; flex: none; color: #fff; }

/* estado vacío */
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .art { width: 72px; height: 72px; border-radius: 22px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.empty .art svg { width: 34px; height: 34px; }
.empty p { color: var(--ink-2); max-width: 380px; }

/* ---------- avisos (toast) ---------- */
#toasts { position: fixed; z-index: 1000; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; animation: toastIn .25s ease; max-width: 92vw;
}
.toast.ok .ti { color: #4ee0a3; }
.toast.bad { background: var(--bad); }
.toast button { background: none; border: 0; color: #ffb59f; font: 700 14px var(--font); cursor: pointer; padding: 0 0 0 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- modales ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(17, 17, 17, .45); backdrop-filter: blur(3px); z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface); border-radius: 22px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.2,.9,.3,1.2);
}
.modal.wide { max-width: 860px; }
.modal.xl { max-width: 1040px; }
/* quitar fondo del logo */
.lbg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lbg-col small { display: block; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.lbg-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.lbg-t { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; padding: 14%; border: 1px solid var(--line-2); overflow: hidden; }
.lbg-t img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lbg-cargando { background: linear-gradient(90deg, var(--line-2), #fff, var(--line-2)); background-size: 200% 100%; animation: lbgc 1s linear infinite; }
@keyframes lbgc { to { background-position: -200% 0; } }
.lbg-ajustes { display: grid; gap: 14px; margin-top: 18px; }
.lbg-ajustes input[type=range] { width: 100%; accent-color: var(--brand); }
.lbg-sug { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--warn-50, #fff7e6); font-size: 13.5px; }
@media (max-width: 640px) { .lbg { grid-template-columns: 1fr; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-head { padding: 22px 24px 0; display: flex; gap: 14px; align-items: flex-start; }
.modal-head .grow p { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }
.modal-foot .left { margin-right: auto; }

/* ---------- tarjeta de lealtad (vista del cliente) ---------- */
.lcard {
  --c: #ff281b; --t: #fff;
  position: relative; width: 100%; max-width: 360px; border-radius: 22px; overflow: hidden; color: var(--t);
  background: var(--c); box-shadow: 0 18px 40px color-mix(in srgb, var(--c) 35%, rgba(0,0,0,.15)), 0 2px 6px rgba(0,0,0,.08);
  font-family: var(--font); isolation: isolate;
}
.lcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.22), transparent 55%), linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
}
.lcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; min-height: 64px; }
.lcard-logo { height: 34px; max-width: 150px; object-fit: contain; object-position: left; }
.lcard-logo.ancho { height: 36px; max-width: 170px; }
.lcard-logo.cuadrado { height: 50px; width: auto; max-width: 74px; margin: -6px 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.lcard-logo.alto { height: 54px; width: auto; max-width: 60px; margin: -8px 0; filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.lcard-logo.con-fondo { border-radius: 14px; filter: none; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 4px 12px rgba(0,0,0,.2); }
.lcard-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.lcard-holder { text-align: right; }
.lcard-holder small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 700; }
.lcard-holder b { font-size: 15px; font-weight: 750; }
.lcard-banner { position: relative; height: 128px; background: rgba(0,0,0,.12) center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.lcard-banner.has-img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.stamps { position: relative; z-index: 1; display: grid; gap: 8px; padding: 12px 16px; justify-content: center; }
.stamp {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed color-mix(in srgb, var(--t) 60%, transparent); background: rgba(255,255,255,.12); color: var(--t);
}
.stamp svg { width: 18px; height: 18px; opacity: .45; }
.stamp.on { border: 2px solid var(--t); background: var(--t); color: var(--c); }
.lcard.anim .stamp.on { animation: stampIn .4s cubic-bezier(.2,.9,.3,1.4) both; }
.stamp.on svg { opacity: 1; }
.stamp.gift { border-style: solid; }
@keyframes stampIn { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.lcard-big { position: relative; z-index: 1; text-align: center; }
.lcard-big b { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.lcard-big small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .85; }
.lcard-bottom { display: flex; justify-content: space-between; padding: 14px 18px 18px; gap: 10px; }
.lcard-bottom small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; font-weight: 700; }
.lcard-bottom b { font-size: 18px; font-weight: 800; }
.lcard-bottom .r { text-align: right; }
.tierbar { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 6px; height: 74px; padding: 0 18px; width: 100%; }
.tierbar i { flex: 1; border-radius: 8px 8px 3px 3px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; }
.tierbar i.on { background: var(--t); color: var(--c); }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .6s cubic-bezier(.2,.9,.3,1); }

/* ---------- utilidades responsive ---------- */
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 22px; }
  .stat { padding: 14px 16px; }
  .stat .v { font-size: 24px; }
  .modal-body { padding: 18px; }
  .modal-head { padding: 18px 18px 0; }
  .modal-foot { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .modal-foot .btn { flex: 1 1 auto; }
  .modal-foot .left { flex-basis: 100%; order: 3; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; }
}

/* ---------- agenda (compartida) ---------- */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.bk-day { flex: none; width: 74px; padding: 10px 0; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: center; font: inherit; color: inherit; }
.bk-day small { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.bk-day b { display: block; font-size: 22px; font-weight: 800; margin: 2px 0; }
.bk-day span { font-size: 12px; color: var(--ink-2); font-weight: 600; text-transform: capitalize; }
.bk-day.on { border-color: var(--brand); background: var(--brand-50); }
.bk-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-height: 260px; overflow-y: auto; }
.bk-time { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 700 14.5px var(--font); cursor: pointer; color: var(--ink); }
.bk-time:hover { border-color: var(--brand); color: var(--brand-600); }
.bk-time.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bk-sum { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.bk-sum .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
@media (max-width: 640px) { .bk-times { grid-template-columns: repeat(3, 1fr); } }

/* Sello "By Autolab" en todas las tarjetas */
.lcard-by { position: absolute; right: 10px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 4px; border-radius: 999px; background: #fff; color: #6b6a85; font-family: 'Montserrat', system-ui, sans-serif; font-size: 11px; font-weight: 500; line-height: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.lcard-by svg { width: 16px; height: 16px; flex: none; }
.lcard-by b { color: #111111; font-weight: 800; }
.byfidiko { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 5px; border-radius: 999px; background: #fff; color: #6b6a85; font-family: 'Montserrat', system-ui, sans-serif; font-size: 13.5px; font-weight: 500; line-height: 1; text-decoration: none; box-shadow: 0 2px 10px rgba(17, 17, 17, .12); }
.byfidiko svg { width: 22px; height: 22px; flex: none; }
.byfidiko b { color: #111111; font-weight: 800; }
.byfidiko.lg { gap: 12px; padding: 9px 22px 9px 9px; font-size: 24px; }
.byfidiko.lg svg { width: 40px; height: 40px; }
@media print { .byfidiko { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.lcard-banner { height: 150px; padding-bottom: 24px; }

/* Selector de ubicación de la sucursal */
.geo-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.geo-pick .btn { height: 46px; justify-content: center; font-weight: 700; }
@media (max-width: 480px) { .geo-pick { grid-template-columns: 1fr; } }
.geo-st { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; padding: 8px 2px 0; }
.geo-st.ok { color: var(--ok); }
.geo-st.ok b { color: inherit; }
.geo-st a { font-weight: 700; }
.geo-st .ico { width: 16px; height: 16px; }
.geo-map { height: 270px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); z-index: 0; }
.geo-res { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.geo-res:empty { display: none; }
.geo-res button { display: flex; gap: 8px; align-items: flex-start; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--ink); }
.geo-res button:hover { border-color: var(--brand); }
.geo-res .ico { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--brand); }
.geo-adv { margin-top: 10px; font-size: 13px; }
.geo-adv summary { cursor: pointer; color: var(--ink-3); font-weight: 600; }
.geo-adv input { margin-top: 8px; }
.geo-pin { background: none; border: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3)); }

/* Cumpleaños sin año: día y mes */
.bday { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.field:has(input.invalid) .bday select { border-color: var(--bad); }

/* Autolab: el glifo «AL» es ancho; se deja salir de su caja para que llene el cuadro rojo */
svg:has(> image[href="/assets/marca-icono.png"]) { overflow: visible; }
