/* Inmobiliaria y alojamiento del Sol · estilos compartidos */
@font-face { font-family: "Sofia Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/sofia-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/sofia-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/sofia-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/sofia-sans-condensed-latin-800-normal.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #EEF1EC;
  --ink: #181018;
  --orange: #E87C08;
  --teal: #1F5F66;
  --cream: #FFF1DC;
  --mint: #DCEBD5;
  --sand: #E4E2D2;
  --muted: #5A505E;
  --white: #ffffff;
  --line: rgba(24, 16, 24, .3);
  --danger: #A3261B;
  --display: "Sofia Sans Condensed", "Sofia Sans", system-ui, sans-serif;
  --gut: 16px;   /* margen lateral de la página */
  --sp: 16px;    /* margen interno de la ficha */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Sofia Sans", system-ui, sans-serif; font-size: 16px; line-height: 1.4; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hscroll { scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.page { max-width: 640px; margin: 0 auto; padding-bottom: 48px; }
.page.wide { max-width: none; }

/* idioma y encabezado */
.langbar { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 10px var(--gut) 0; }
.langbar button { min-width: 48px; min-height: 44px; padding: 0 10px; border-radius: 22px; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; font-size: 15px; }
.langbar button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--gut) 0; }
.topbar img { display: block; width: 96px; height: auto; }
.pillink { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 22px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; }

h1.hero { margin: 0; font-family: var(--display); font-weight: 800; font-size: 50px; line-height: .96; text-wrap: balance; }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-wrap: balance; }
.h3 { margin: 0; font-weight: 700; font-size: 18px; line-height: 1.25; }
.lead { margin: 12px 0 0; font-size: 18px; line-height: 1.4; max-width: 34ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.4; }
.pad { padding: 0 var(--gut); }

/* chips y botones */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gut) 6px; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; font-size: 16px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 17px; text-decoration: none; text-align: center; }
.btn.orange { background: var(--orange); color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.btn.small { min-height: 48px; font-size: 16px; width: auto; }
.btn:disabled { background: #E4E2DA; color: var(--muted); border-color: transparent; }
.filebtn { cursor: pointer; justify-content: flex-start; }
.filebtn:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.btn.danger { background: var(--white); color: var(--danger); border: 2px solid var(--danger); }
.linkbtn { min-height: 48px; border: 0; background: transparent; font-weight: 600; font-size: 16px; text-decoration: underline; padding: 0 4px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1 1 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* tarjetas */
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 16px; }
.card.cream { background: var(--cream); }
.card.mint { background: var(--mint); }
.note { padding: 10px 12px; border-radius: 12px; background: var(--cream); font-size: 15px; line-height: 1.4; }
.note.mint { background: var(--mint); }
.error { padding: 10px 12px; border-radius: 12px; background: #FBE3DF; border: 1.5px solid var(--danger); color: #6E1A12; font-size: 15px; line-height: 1.4; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 16px; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; font-size: 14px; }
.pill i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--orange); }
.pill.ok i { background: var(--teal); }
.pill.off i { background: #B9B3BB; }
.lines { display: flex; flex-direction: column; gap: 6px; }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.lines div span:last-child { font-weight: 700; flex: 0 0 auto; text-align: right; }
.lines .total { padding-top: 6px; border-top: 1.5px solid var(--line); }

/* formularios */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); font-weight: 400; font-size: 16px; }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field select { padding: 0 10px; }
.field .hint { font-weight: 400; font-size: 14px; line-height: 1.35; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stp { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; }
.stp:disabled { opacity: .4; }
.toggle { min-height: 48px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--ink); background: var(--white); font-weight: 700; font-size: 15px; text-align: left; }
.toggle[aria-checked="true"] { background: var(--ink); color: var(--white); }

/* plano */
.map-shell { margin: 0 var(--gut); border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; background: var(--white); }
.map { position: relative; width: 100%; aspect-ratio: 358 / 340; background: #FBFAF5; }
.map svg.base { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pin { position: absolute; width: 48px; height: 48px; margin: -24px 0 0 -24px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.pin span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); }
.pin[aria-pressed="true"] { z-index: 2; }
.pin[aria-pressed="true"] span { width: 44px; height: 44px; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--ink); }
.sheet { padding: 18px var(--sp); border-top: 2px solid var(--ink); }
.kind { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.kind i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.photos { display: flex; gap: 10px; overflow-x: auto; margin: 14px calc(-1 * var(--sp)) 0; padding: 2px var(--sp) 6px; }
.photos figure { margin: 0; flex: 0 0 240px; height: 160px; border-radius: 16px; border: 1.5px solid var(--ink); overflow: hidden; background: repeating-linear-gradient(135deg, var(--sand) 0 10px, var(--paper) 10px 20px); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* calendario */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cal-head strong { font-size: 17px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.cal .wd { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 2px 0; }
.cal button { aspect-ratio: 1 / 1; min-height: 40px; min-width: 0; padding: 0; border-radius: 12px; border: 1.5px solid var(--ink); background: var(--white); font-weight: 700; font-size: 16px; }
.cal button:disabled { border-color: transparent; background: transparent; color: #B9B3BB; }
.cal button.busy:disabled { text-decoration: line-through; color: #8E8590; background: #E9E7E1; }
.cal button.in { background: #FFD9A8; }
.cal button.end { background: var(--orange); }
.cal span.blank { aspect-ratio: 1 / 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--ink); }

/* secciones del sitio */
.dark { margin: 40px var(--gut) 0; background: var(--ink); color: var(--white); border-radius: 28px; padding: 28px 20px; }
.trust { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 20px; }
.trust > span { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; }
footer.foot { margin: 40px var(--gut) 0; padding-top: 18px; border-top: 1.5px solid var(--line); font-size: 14px; line-height: 1.4; }
.code-big { font-family: var(--display); font-weight: 800; font-size: 54px; letter-spacing: .18em; line-height: 1; }

/* pasos de la reserva */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.steps li.done .dot { background: var(--teal); color: var(--white); }
.steps li.now .dot { background: var(--orange); }
.steps b { display: block; font-size: 16px; }
.steps small { display: block; font-size: 14px; color: var(--muted); }

/* panel */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--gut) 8px; }
.res { border: 2px solid var(--ink); border-radius: 18px; background: var(--white); }
.res > button.head { width: 100%; text-align: left; border: 0; background: transparent; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-radius: 18px; }
.res .body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.kv { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 4px 12px; font-size: 15px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
table.rates { width: 100%; border-collapse: collapse; font-size: 15px; }
table.rates th, table.rates td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rates input { width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--white); font-weight: 600; z-index: 50; }
.minimap { position: relative; width: 100%; max-width: 358px; aspect-ratio: 358 / 340; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; cursor: crosshair; background: #FBFAF5; }
.minimap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.minimap .mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid var(--ink); background: var(--orange); pointer-events: none; }
details.box { border: 2px solid var(--ink); border-radius: 18px; background: var(--white); }
details.box > summary { min-height: 52px; padding: 14px 16px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.box > summary::-webkit-details-marker { display: none; }
details.box > summary::after { content: "+"; font-size: 22px; font-weight: 700; }
details.box[open] > summary::after { content: "–"; }
details.box > .in { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }

/* sitio fuera de servicio */
.offline { min-height: 72vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 40px 16px; }
.offline img { width: 120px; height: auto; }
.offline .h2 { max-width: 16ch; }

/* cláusula del horario de llaves */
.note.legend { font-size: 14px; line-height: 1.45; }

/* firma en pantalla */
canvas.firma { width: 100%; height: auto; aspect-ratio: 3 / 1; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); touch-action: none; cursor: crosshair; }

/* panel: piezas nuevas */
.banner { margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.row.wrap { flex-wrap: wrap; }
.row.wrap > * { flex: 0 1 auto; }
.who { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-row select { min-height: 44px; padding: 0 8px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.photo-grid figure { margin: 0; border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--sand); }
.photo-grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.photo-grid figcaption { display: grid; grid-template-columns: 40px 40px minmax(0, 1fr); gap: 6px; padding: 6px; }
.photo-grid .chip { min-height: 40px; padding: 0 6px; font-size: 14px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: center; }
.danger-zone { border-color: var(--danger); }
.hist { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.hist.off { opacity: .62; }
.hist .chip { align-self: flex-start; min-height: 40px; font-size: 14px; }
.wm-preview { width: 100%; max-width: 480px; height: auto; border-radius: 12px; border: 1.5px solid var(--ink); }
input[type="range"] { accent-color: var(--orange); min-height: 44px; width: 100%; }

/* limpieza: misiones */
.bar { height: 12px; border-radius: 8px; background: var(--white); overflow: hidden; border: 1.5px solid var(--ink); }
.bar span { display: block; height: 100%; background: var(--teal); transition: width .35s ease; }
.mission-hero { background: var(--cream); display: flex; flex-direction: column; gap: 6px; }
.mission-hero.done { background: var(--mint); }
.hero-count { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; }
.res.mission.done { background: var(--mint); }
.res.mission .bar { margin-top: 6px; }
.card.leave { display: flex; flex-direction: column; gap: 4px; background: #F6F4EE; border-style: dashed; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li label { display: flex; gap: 12px; align-items: center; min-height: 58px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); font-size: 17px; line-height: 1.3; cursor: pointer; }
.checklist li.on label { background: var(--mint); }
.checklist li.on span { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.checklist input { width: 26px; height: 26px; flex: 0 0 auto; accent-color: var(--teal); }

/* galería de la portada */
.slides { margin: 22px 0 0; }
.slides-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 var(--gut) 10px; }
.slide-controls { display: flex; gap: 8px; }
.slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.slide { flex: 0 0 100%; margin: 0; padding: 0 var(--gut); scroll-snap-align: start; scroll-snap-stop: always; }
.slide-img { aspect-ratio: 4 / 3; border: 2px solid var(--ink); border-bottom: 0; border-radius: 24px 24px 0 0; overflow: hidden; background: repeating-linear-gradient(135deg, var(--sand) 0 10px, var(--paper) 10px 20px); }
.slide-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 0 0 24px 24px; }
.slide-name { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; text-wrap: balance; margin-top: 4px; }
.slide-sub { color: var(--muted); font-size: 16px; }
.slide-price { font-weight: 700; font-size: 20px; }
.slide figcaption .btn { margin-top: 8px; }
.slide-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; padding: 8px var(--gut) 0; }
.slide-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.slide-dots span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white); }
.slide-dots button[aria-current="true"] span { background: var(--ink); width: 22px; border-radius: 6px; }
footer.foot .privacy { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* panel: resumen y contador de visitas */
.dtitle { font-size: 32px; margin: 4px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; text-align: left; font: inherit; color: inherit; }
.tile.act:hover { background: var(--cream); }
.tile-l { font-size: 14px; font-weight: 600; color: var(--muted); }
.tile-v { font-weight: 700; font-size: 34px; line-height: 1.1; }
.tile.hero .tile-v { font-size: 48px; }
.tile-x { font-size: 14px; color: var(--muted); }
.delta { font-size: 14px; font-weight: 600; color: var(--muted); }
.delta.good { color: #1F6B45; }
.delta.bad { color: var(--danger); }
.dash { display: flex; flex-direction: column; gap: 12px; transition: opacity .2s; }
.dash.busy { opacity: .5; }
.dcard { padding: 16px; }
.dcard > div { margin-top: 12px; }
.dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .dgrid { grid-template-columns: 1fr; } }
.ins { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.chart { position: relative; outline-offset: 4px; overflow: hidden; }
.chart svg { display: block; max-width: 100%; }
.chart.radar svg { margin: 0 auto; }
.chart .ax { font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .rl { font-size: 13px; font-weight: 700; fill: var(--ink); }
.chart .rv { font-size: 12px; fill: var(--muted); }
.tip { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: var(--white); font-size: 13px; line-height: 1.3; max-width: 240px; box-shadow: 0 4px 14px rgba(24,16,24,.18); }
.tip strong { font-size: 15px; }
.tip[hidden] { display: none; }
.linelegend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; margin-bottom: 4px; }
.linelegend span { display: inline-flex; align-items: center; gap: 6px; }
.linelegend i { width: 16px; height: 3px; border-radius: 2px; }
.blist { display: flex; flex-direction: column; gap: 10px; }
.brow { display: grid; grid-template-columns: minmax(0, 11em) 1fr auto; align-items: center; gap: 10px; font-size: 15px; }
.bname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btrack { height: 12px; border-radius: 0 4px 4px 0; background: #F1EEF1; overflow: hidden; }
.bfill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; }
.bval { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
@media (max-width: 480px) { .brow { grid-template-columns: 1fr auto; } .btrack { grid-column: 1 / -1; grid-row: 2; } }
.segbar { display: flex; gap: 2px; height: 28px; }
.segbar span { display: flex; align-items: center; padding: 0 8px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 13px; min-width: 2px; white-space: nowrap; overflow: hidden; }
.seglegend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; }
.seglegend span { display: inline-flex; align-items: center; gap: 6px; }
.seglegend i { width: 12px; height: 12px; border-radius: 3px; }
details.tbl { margin-top: 10px; }
details.tbl summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 32px; display: flex; align-items: center; }
.tbl-wrap { overflow-x: auto; margin-top: 6px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 6px 8px; border-bottom: 1px solid #E6E2E6; text-align: left; font-weight: 400; }
.tbl thead th { font-weight: 700; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.linkrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #E6E2E6; }
.linkrow .btn { flex: 0 0 auto; }
.chart .halo { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.tile-v { white-space: nowrap; }
@media (max-width: 480px) { .tile-v { font-size: 28px; } .tile.hero .tile-v { font-size: 40px; } }

/* panel: galería de la portada */
.slide-item-top { display: flex; gap: 12px; align-items: center; padding: 12px 16px; }
.slide-thumb { flex: 0 0 96px; height: 72px; border-radius: 12px; border: 1.5px solid var(--ink); overflow: hidden; background: repeating-linear-gradient(135deg, var(--sand) 0 10px, var(--paper) 10px 20px); }
.slide-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-pick button { width: 84px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; overflow: hidden; background: var(--sand); outline-offset: 2px; }
.photo-pick button[aria-checked="true"] { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.photo-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* panel: marca, estudio y herramientas */
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/nunito-latin-400-normal.woff2) format("woff2"); }
.toolframe { display: block; width: 100%; height: calc(100vh - 150px); min-height: 640px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); }
.kv-l { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.swatch { display: flex; gap: 10px; align-items: flex-start; }
.swatch .sw { flex: 0 0 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--ink); }
.f-poppins { font-family: "Poppins", sans-serif; font-weight: 700; }
.f-nunito { font-family: "Nunito", sans-serif; }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.logo-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 10px; border: 1.5px solid var(--ink); border-radius: 14px; background: var(--white); }
.logo-card .logo-img { height: 72px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #F7F5F2; }
.logo-card.on-dark .logo-img { background: #1A171B; }
.logo-card img { max-height: 60px; max-width: 100%; }
ul.tight { margin: 0; padding-left: 20px; }
.colorrow { padding: 10px 0; border-top: 1px solid #E6E2E6; display: flex; flex-direction: column; gap: 8px; }
.colorrow input[type="color"] { width: 56px; height: 48px; padding: 2px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--white); }
.note-new { padding: 12px; border-radius: 14px; background: var(--paper); }
.bnote { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid #E6E2E6; }
.bnote.pinned { background: linear-gradient(90deg, var(--cream), transparent); margin: 0 -16px; padding: 12px 16px; }
.bnote-top { display: flex; align-items: center; gap: 8px; }
.pill.tag-regla i { background: var(--orange); }
.pill.tag-decision i { background: var(--teal); }
.pill.tag-idea i { background: #F5C842; }
.pill.tag-nota i { background: #B9B3BB; }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/poppins-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/nunito-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/nunito-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url(../herramientas/fuentes/nunito-latin-800-normal.woff2) format("woff2"); }
.piece-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.piece { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; text-align: left; background: var(--white); border: 2px solid var(--ink); border-radius: 18px; font: inherit; color: inherit; min-height: 120px; }
.piece:hover { background: var(--cream); }
.piece strong { font-size: 19px; }
.studio { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 820px) { .studio { grid-template-columns: minmax(0, 1fr); } }
.studio-view { position: sticky; top: 12px; }
.studio-canvas { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; border-radius: 10px; box-shadow: 0 8px 30px rgba(24,16,24,.18); background: #fff; }
.photo-pick button { position: relative; }
.pick-n { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--orange); color: var(--ink); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.firma-prev { overflow-x: auto; }

/* Verificación en dos pasos */
input.otp { font-size: 28px; font-weight: 800; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; padding-left: .35em; }

/* ======================================================================
   Adaptación a cada pantalla
   - Celular vertical: es la vista aprobada (estas reglas base la reproducen igual que antes).
   - Celular acostado, tablet y computadora: las reglas de más abajo, según el ancho disponible.
   ====================================================================== */

/* piezas del sitio (antes con el estilo escrito en el código) */
.hero-sec { padding: 20px var(--gut) 0; }
.filters { padding: 18px var(--gut) 14px; }
.h2.lg { font-size: 36px; }
.h2.md { font-size: 30px; }
.dark-text { margin: 12px 0 0; font-size: 17px; line-height: 1.45; color: rgba(255, 255, 255, .92); }
.dark-cta { margin-top: 20px; }
.sec { margin: 40px var(--gut) 0; }
.sec-title { margin-bottom: 16px; }
.trust-t { font-weight: 700; font-size: 18px; }
.trust-d { margin-top: 2px; }
.addr { font-style: normal; font-size: 18px; line-height: 1.4; }
.contact-btns { margin-top: 14px; gap: 10px; }
.ig-title { margin-top: 6px; font-weight: 700; }
.btn.ig { flex-direction: column; gap: 0; min-height: 64px; }
.ig-l { font-size: 14px; font-weight: 600; }
.unit-chips { margin: 8px calc(-1 * var(--sp)) 0; padding-left: var(--sp); padding-right: var(--sp); }
.f-col { min-width: 0; }
.page.top-row > * { min-width: 0; }
/* la ficha mide su propio ancho: según cuánto lugar tenga, acomoda las fechas y los datos en una o dos columnas */
.sheet { scroll-margin-top: 12px; container: ficha / inline-size; }

/* el campo del archivo (oculto a la vista) no debe ensanchar la pantalla */
.field input.sr-only, label.btn input.sr-only { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; }
.filebtn { position: relative; }

/* ---------- celular acostado, tablet y computadora ---------- */
@media (min-width: 640px) {
  :root { --gut: 24px; --sp: 22px; }
  .page { max-width: 1240px; }
  .page.wide { max-width: 1400px; }
  .page.narrow { max-width: 920px; }

  /* encabezado: logo y “Mi reserva” a la izquierda, idiomas a la derecha, todo en una fila */
  .page.top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .page.top-row > .topbar { grid-column: 1; grid-row: 1; padding-right: 12px; }
  .page.top-row > .langbar { grid-column: 2; grid-row: 1; padding: 8px var(--gut) 0 0; }
  .page.top-row > main, .page.top-row > footer { grid-column: 1 / -1; }

  /* título y galería de la portada, lado a lado */
  .intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 clamp(20px, 3.4vw, 48px); align-items: center; }
  .intro.solo { grid-template-columns: minmax(0, 1fr); }
  .intro .hero-sec { padding: 28px 0 28px var(--gut); }
  .intro h1.hero { font-size: clamp(34px, 4.9vw, 70px); }
  .intro .lead { font-size: clamp(18px, 1.5vw, 21px); }
  .intro .slides { margin: 0; }
  .intro .slides-head, .intro .slide, .intro .slide-dots { padding-left: 0; }
  .slide-img { aspect-ratio: auto; width: 100%; height: min(56vh, 460px, calc((100vw - 2 * var(--gut)) * 0.36)); }
  .h2.lg { font-size: 40px; }

  /* mapa y ficha lado a lado: el mapa acompaña mientras se lee la ficha */
  .map-shell { display: grid; grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .map-shell > .map { position: sticky; top: 12px; border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; }
  .map-shell > .sheet { border: 2px solid var(--ink); border-radius: 28px; background: var(--white); padding: 22px var(--sp); }

  /* Mi reserva: el formulario del código no se estira */
  .gate { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }

  /* panel */
  .page.wide main.solo { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
  .stack.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
  .edit { width: 100%; max-width: 860px; margin-left: auto; margin-right: auto; }
  /* los botones principales de cada sección no hace falta que ocupen todo el ancho */
  .page.wide main > div > .btn { width: fit-content; min-width: 280px; padding: 0 28px; }
}

/* en los celulares acostados el logo se achica para dejar lugar al contenido */
@media (orientation: landscape) and (max-height: 520px) {
  .topbar img { width: 72px; height: auto; }
  .page.top-row > .topbar { padding-top: 4px; }
  .intro .hero-sec { padding-top: 12px; padding-bottom: 12px; }
  .sec, .dark, footer.foot { margin-top: 28px; }
  .map-shell > .map { top: 8px; }
}

@media (min-width: 740px) {
  /* Mi reserva: las tarjetas se reparten en dos columnas (el orden de lectura es el mismo) */
  .res-col { display: block; column-count: 2; column-gap: 16px; }
  .res-col > * { break-inside: avoid; margin: 0 0 16px; }
}

@media (min-width: 760px) {
  .dark { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: center; padding: 34px 36px; }
  .dark > .h2, .dark > .dark-text { grid-column: 1; }
  .dark > .dark-text { max-width: 62ch; }
  .dark > .dark-cta { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; width: auto; min-width: 260px; padding: 0 32px; }
  .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .contact-btns { margin-top: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ig-title { grid-column: 1 / -1; margin-top: 8px; }
}

@media (min-width: 760px) {
  /* una tarjeta o caja abierta ocupa dos columnas, para que el contenido respire y no quede un hueco al lado */
  .stack.cols > details.box[open] { grid-column: span 2; }
  .stack.cols > details.box[open] > .in { max-width: 760px; }
}
@media (min-width: 760px) {
  .stack.cols > .res:has(> .head[aria-expanded="true"]) { grid-column: span 2; }
}

@media (min-width: 860px) {
  .trust-grid { flex-direction: row; align-items: stretch; gap: 14px; }
  .trust-grid > .trust { flex: 1 1 0; min-width: 0; }
}

@media (min-width: 900px) {
  /* en pantallas anchas las secciones del panel se ven todas, sin deslizar */
  .tabs-nav.chips { flex-wrap: wrap; overflow: visible; }
}

@media (min-width: 1100px) {
  :root { --gut: 32px; --sp: 26px; }
  .map-shell { grid-template-columns: minmax(340px, 4fr) minmax(0, 8fr); gap: 20px; }
  .h2.lg { font-size: 46px; }
  .h2.md { font-size: 34px; }
}

@media (min-width: 1500px) {
  .res-col { column-count: 3; }
}

@media (min-width: 1600px) {
  .page { max-width: 1400px; }
  .page.wide { max-width: 1560px; }
}

/* fotos de la ficha y reserva en dos columnas, según el ancho de la ficha */
@container ficha (min-width: 440px) {
  .cal button { aspect-ratio: 5 / 4; }
}
@container ficha (min-width: 520px) {
  .f-actions { flex-direction: row; }
  .f-actions > .btn { flex: 1 1 0; }
}
@container ficha (min-width: 560px) {
  .photos figure { flex-basis: 300px; height: 200px; }
}
@container ficha (min-width: 680px) {
  .f-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-items: start; }
  .f-cols .unit-chips { margin-left: 0; margin-right: 0; padding-left: 2px; padding-right: 2px; }
}

/* con mouse, la tira de fotos muestra su barra para poder deslizarla */
@media (hover: hover) and (pointer: fine) {
  .photos.hscroll { scrollbar-width: thin; scrollbar-color: var(--ink) transparent; }
}

/* panel: resumen en dos columnas cuando hay lugar (la clase la pone el código según el ancho real) */
.dash.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.dash.two > .span2 { grid-column: 1 / -1; }
.dash.two > .dgrid { display: contents; }
.dash.two > .dgrid.stk, .dash.two > .side { display: flex; flex-direction: column; gap: 12px; }
.dash.two > .stk > .card:last-child, .dash.two > .side > .card:last-child { flex: 1 1 auto; }

/* mapa real (OpenStreetMap) */
.map.real { z-index: 0; font: inherit; }
.map.real .leaflet-control-attribution, .pickmap .leaflet-control-attribution, .resmap .leaflet-control-attribution { font-size: 10px; }
.dpin { background: none; border: 0; }
.dpin-b { position: absolute; left: 2px; top: 0; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #181018; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.dpin-b b { transform: rotate(45deg); font-weight: 800; font-size: 14px; line-height: 1; letter-spacing: -.5px; }
.dpin-b b.s { font-size: 11px; }
.dpin.on .dpin-b { transform: rotate(-45deg) scale(1.18); box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0,0,0,.4); }
.pickmap { width: 100%; height: 340px; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; z-index: 0; }
.resmap { width: 100%; height: 240px; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; margin-top: 10px; z-index: 0; }

/* ficha: fechas y consulta desplegables */
.avail-open { width: 100%; margin-top: 18px; gap: 10px; }
.avail-close { display: block; margin: 14px 0 0 auto; font-size: 14px; }

/* galería: herramientas y vista de a una */
.slides-tools { display: flex; align-items: center; gap: 8px; }
.deck-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
body.deck-on { overflow: hidden; }
.deck { position: fixed; inset: 0; z-index: 2000; background: radial-gradient(120% 80% at 50% 0%, #2a2228 0%, #120d11 70%); color: #fff; display: flex; flex-direction: column; align-items: center; padding: max(12px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom)); animation: deckIn .25s ease-out; }
@keyframes deckIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.deck-top { width: 100%; max-width: 440px; display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.deck-count { font-weight: 700; font-size: 14px; opacity: .8; }
.deck-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.deck-stage { position: relative; flex: 1; width: 100%; max-width: 440px; margin: 8px 0 14px; min-height: 0; }
.deck-card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: #2b2429; box-shadow: 0 18px 40px rgba(0,0,0,.45); touch-action: none; user-select: none; transition: transform .3s ease-out; --like: 0; --nope: 0; }
.deck-card:not(.top) { transform: scale(.94) translateY(14px); filter: brightness(.7); }
.deck-card.top { cursor: grab; }
.deck-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.deck-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.85) 100%); pointer-events: none; }
.deck-bars { position: absolute; top: 10px; left: 12px; right: 12px; z-index: 2; display: flex; gap: 4px; }
.deck-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.4); }
.deck-bars i.on { background: #fff; }
.deck-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.deck-info .kind { color: #fff; }
.deck-info strong { font-family: 'Sofia Sans Condensed', sans-serif; font-weight: 800; font-size: 30px; line-height: 1.05; }
.deck-desc { font-size: 15px; opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.deck-price { font-weight: 800; font-size: 20px; color: #FFB25C; }
.deck-stamp { position: absolute; top: 34px; z-index: 3; padding: 6px 14px; border: 4px solid; border-radius: 12px; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; pointer-events: none; }
.deck-stamp.like { left: 20px; color: #4CD18A; transform: rotate(-14deg); opacity: var(--like); }
.deck-stamp.nope { right: 20px; color: #FF6B6B; transform: rotate(14deg); opacity: var(--nope); }
.deck-acts { display: flex; align-items: center; justify-content: center; gap: 22px; }
.deck-act { width: 68px; height: 68px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .12s; }
.deck-act:active { transform: scale(.9); }
.deck-act.no { color: #E5484D; }
.deck-act.yes { color: #fff; background: var(--orange, #E87C08); }
.deck-act.small { width: 50px; height: 50px; color: #181018; }
.deck-act:disabled { opacity: .35; }
.deck-hint { margin: 10px 0 0; font-size: 12px; opacity: .65; text-align: center; max-width: 360px; }
.deck-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: 18px; }
@media (min-height: 700px) { .deck-act { width: 74px; height: 74px; } }
@media (prefers-reduced-motion: reduce) { .deck, .deck-card { animation: none; transition: none; } }
.deck-btn { white-space: nowrap; flex-shrink: 0; }
.slides-head h2 { min-width: 0; }
@media (max-width: 460px) { .slides-tools .stp:not(:first-child) { display: none; } }

/* equipo */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.team-tile { border: 2px solid var(--ink); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.team-tile ul { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
.team-n { font-size: 24px; font-weight: 800; }
.team-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1.5px solid #D2CCC4; border-radius: 12px; }
.team-line small { color: #6b6b70; }
.team-line.done > span:first-child { text-decoration: line-through; opacity: .55; }
.team-line.warn { border-color: var(--orange); background: #FFF3E3; }
.buy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.buy-cell { display: inline-flex; align-items: center; gap: 4px; }
.buy-q { width: 56px; min-height: 40px; text-align: center; padding: 4px; }
.keep-pill { position: fixed; right: 14px; bottom: 14px; z-index: 900; padding: 12px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--orange); color: var(--ink); font: inherit; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: pointer; }
/* ficha de la propiedad: comodidades con ícono */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.feat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border: 2px solid #D2CCC4; border-radius: 14px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; }
.feat i { font-style: normal; font-size: 26px; line-height: 1; }
.feat[aria-pressed="true"] { border-color: var(--ink); background: #FFF3E3; }
.feat-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.feat-list span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #F3F1EC; font-size: 14px; }

/* v3.7 · jornada con reloj */
.clock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.clock { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 14px; border: 1.5px solid var(--ink); border-radius: 14px; background: #1A171B; color: #fff; }
.clock-l { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #F2B36B; }
.clock-d { display: flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.clock-inp { background: transparent; border: 0; color: #fff; font: 800 30px/1.1 "Sofia Sans", ui-monospace, monospace; padding: 0; width: 5.2ch; color-scheme: dark; min-height: 0; }
.clock-inp.edited { color: #EE7F0E; }
.clock-sec { font: 700 18px "Sofia Sans", monospace; color: #bbb; }
@media (max-width: 460px) { .clock-row { grid-template-columns: 1fr; } }
.shift-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; padding: 6px 0; border-bottom: 1px solid var(--line, #D2CCC4); }
.shift-act { display: flex; gap: 10px; }
.shift-edit { display: grid; gap: 8px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.danger-t { color: #B42318; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-soft { display: inline-block; padding: 4px 10px; border: 1px solid var(--line, #D2CCC4); border-radius: 999px; font-size: 13px; background: #F7F5F2; }
.note.warn { background: #FCE7C8; border: 1.5px solid var(--orange); }
/* v3.7 · dibujo del lote */
.lote-map { height: 420px; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
@media (max-width: 600px) { .lote-map { height: 360px; } }
.lote-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.lote-pt span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #EE7F0E; color: #1A171B; font: 800 13px/1 "Sofia Sans", Arial, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.lote-len span { display: inline-block; padding: 2px 8px; border-radius: 999px; background: rgba(26,23,27,.85); color: #fff; font: 700 12px/18px "Sofia Sans", Arial, sans-serif; white-space: nowrap; }
.lote-table { display: grid; gap: 6px; }
.lote-row { display: grid; grid-template-columns: minmax(70px, auto) minmax(0, 1fr) 110px 24px; gap: 8px; align-items: center; }
.lote-row .inp, .lote-row input { min-height: 40px; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 10px; font: inherit; width: 100%; }
.lote-row.total { border-top: 1.5px solid var(--line); padding-top: 6px; font-weight: 700; }
.lote-prev svg { width: 100%; max-width: 420px; height: auto; display: block; }
/* v3.7 · avisos y eventos */
.notice-bar { display: flex; align-items: stretch; background: #1A171B; color: #fff; border-bottom: 3px solid #EE7F0E; overflow: hidden; cursor: pointer; margin: 0; position: relative; z-index: 5; }
.notice-lab { flex: 0 0 auto; display: flex; align-items: center; padding: 8px 14px; background: #EE7F0E; color: #1A171B; font: 800 14px/1 "Sofia Sans Condensed", "Sofia Sans", sans-serif; text-transform: uppercase; letter-spacing: .06em; animation: notice-glow 1.6s ease-in-out infinite alternate; }
.notice-win { flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; }
.notice-track { display: inline-flex; gap: 48px; white-space: nowrap; padding: 10px 0 10px 24px; font-size: 17px; animation: notice-run 26s linear infinite; }
.notice-item b { color: #FFD39E; }
.notice-bar.paused .notice-track, .notice-bar:hover .notice-track { animation-play-state: paused; }
@keyframes notice-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes notice-glow { from { box-shadow: inset 0 0 0 rgba(255,255,255,0); } to { box-shadow: inset 0 0 18px rgba(255,255,255,.55); } }
@media (prefers-reduced-motion: reduce) { .notice-track { animation: none; white-space: normal; flex-wrap: wrap; gap: 6px 24px; } .notice-lab { animation: none; } }
.notice-bar.demo { margin: 0; border-radius: 12px; }
.events { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.event { background: #fff; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.event img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #F7F5F2; }
.event-ph { aspect-ratio: 4 / 5; display: grid; place-items: center; font-size: 64px; background: #F7F5F2; color: #EE7F0E; }
.event-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.event-b p { margin: 0; font-size: 15px; color: var(--muted); }
.event-when { align-self: flex-start; background: #EE7F0E; color: #1A171B; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.post-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.post-row > :only-child { grid-column: 1 / -1; }
.post-row img { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); }
.cta-amt { display: inline-flex; gap: 8px; align-items: center; }
/* v3.7 · documentos y folleto */
.auth-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.auth-doc { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 15px; line-height: 1.55; max-height: 60vh; overflow: auto; }
.auth-doc h3 { margin: 0 0 10px; font: 800 18px/1.2 var(--display); letter-spacing: .03em; }
.auth-doc ol { padding-left: 22px; display: grid; gap: 6px; }
.auth-doc li::marker { color: #EE7F0E; font-weight: 800; }
.auth-date { font-weight: 700; }
.doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.fol-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; padding: 4px 2px; }
.lote-sheet { margin-top: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; background: #fff; }
.lote-sheet svg { width: 100%; height: auto; display: block; max-width: 420px; margin: 0 auto; }
.leaflet-control-layers-toggle { background-image: none !important; width: auto !important; height: auto !important; padding: 6px 10px; display: block; text-decoration: none; }
.leaflet-control-layers-toggle::after { content: "Satélite / Calles"; font: 700 12px "Sofia Sans", Arial, sans-serif; color: #1A171B; }
/* v3.8 */
.code-row { display: flex; gap: 8px; align-items: center; }
.code-row input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.share-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; background: #F7F5F2; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.photo-grid select.pdf-role { width: calc(100% - 12px); margin: 0 6px 6px; min-height: 36px; font-size: 13px; padding: 2px 6px; }
.photo-grid select.pdf-role.on { background: #FCE7C8; border-color: #EE7F0E; font-weight: 700; }
.prop-code { display: inline-block; font: 800 13px/1 var(--display); letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; background: #1A171B; color: #fff; }
.lote-shell { display: grid; gap: 8px; }
.lote-shell.full { position: fixed; inset: 0; z-index: 2000; background: #1A171B; padding: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); grid-template-rows: minmax(0, 1fr) auto; }
.lote-shell.full .lote-map { height: auto; min-height: 0; border-color: #EE7F0E; }
.lote-shell.full .lote-bar .btn.ghost { background: #fff; }
body.lote-on { overflow: hidden; }
.lote-pt span { width: 22px; height: 22px; font-size: 12px; }
.lote-pt span { margin: 2px; }
/* v3.8 · el mapa va arriba a todo el ancho y la ficha debajo, sin huecos */
@media (min-width: 700px) {
  .map-shell { display: flex; flex-direction: column; align-items: stretch; gap: 16px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .map-shell > .map { position: relative; top: auto; aspect-ratio: auto; height: clamp(320px, 46vh, 520px); border: 2px solid var(--ink); border-radius: 28px; overflow: hidden; }
  .map-shell > .map:not(.real) { aspect-ratio: 358 / 340; height: auto; max-height: 520px; }
  .map-shell > .sheet { border: 2px solid var(--ink); border-radius: 28px; background: var(--white); padding: 22px var(--sp); }
}
/* vista de a una: selección */
.deck-done { margin-left: auto; margin-right: 10px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #EE7F0E; color: #1A171B; font-weight: 800; }
.deck-sel-t { font-size: 20px; }
.deck-sel { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; width: 100%; max-height: 38vh; overflow: auto; }
.deck-sel-i { display: grid; gap: 4px; padding: 0; border: 1.5px solid var(--ink); border-radius: 12px; overflow: hidden; background: #fff; text-align: left; font: 700 13px/1.2 inherit; }
.deck-sel-i img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.deck-sel-i span { padding: 4px 8px 8px; }
.deck-end-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.deck-end-btns .btn { width: auto; min-width: 200px; padding: 0 20px; }
.wa-btn { background: #1F8F4E; color: #fff; border-color: #1F8F4E; }
.deck-ask img { width: min(70%, 260px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 2px solid var(--ink); }
.deck-end { overflow: auto; padding: 16px 12px; }
.deck-sel-i span { color: #1A171B; }

/* ---------- v3.9 ---------- */
.cal button.tbd:disabled { color: #8a5a12; background: repeating-linear-gradient(135deg, #FCEBD3 0 5px, #FFF7EC 5px 10px); text-decoration: none; }
.legend i.tbd-i { background: repeating-linear-gradient(135deg, #FCEBD3 0 4px, #FFF7EC 4px 8px); border-color: #E87C08; }
.tr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: -4px; }
.tr-row > div:empty { display: none; }
.group-box[hidden], .field[hidden] { display: none !important; }
.group-unit { border: 1.5px solid var(--line, #ddd); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.group-unit.on { border-color: var(--ink); background: #FFF9F1; }
.staff-card { border: 1.5px solid var(--line, #ddd); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--white, #fff); }
.staff-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.staff-ic { width: 38px; height: 38px; border-radius: 50%; background: #FFF1E0; display: grid; place-items: center; font-size: 20px; }
.notice-txt { width: 100%; font: inherit; font-size: 15px; border: 1.5px solid var(--line, #ddd); border-radius: 12px; padding: 10px 12px; resize: vertical; background: #FFFBF6; }
.staff-btns, .staff-save { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
ol.steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
/* tira de propiedades del filtro */
.strip-sec { margin: 4px 0 12px; }
.strip-count { font-weight: 700; font-size: 14px; color: var(--muted); padding: 0 var(--gut) 6px; }
.prop-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gut) 8px; scroll-snap-type: x proximity; }
.pcard { flex: 0 0 236px; display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); cursor: pointer; scroll-snap-align: start; font: inherit; color: inherit; }
.pcard.on { background: #FFF1E0; border-color: #E87C08; box-shadow: 0 0 0 3px rgba(232,124,8,.18); }
.pcard-img { flex: 0 0 72px; height: 64px; border-radius: 12px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--sand) 0 10px, var(--paper) 10px 20px); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pcard-t strong { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.05; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-k { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--muted); }
.pcard-k i { width: 9px; height: 9px; border-radius: 50%; background: #1F5F66; }
.pcard-k i.k-venta { background: #E87C08; } .pcard-k i.k-mes { background: #181018; }
.pcard-p { font-size: 13px; font-weight: 700; }
/* reservas de grupo y pagos */
.group-card { border-color: #E87C08; }
.gcode { font-weight: 800; letter-spacing: .08em; background: #1A171B; color: #fff; border-radius: 99px; padding: 3px 10px; font-size: 13px; }
.ok-t { color: #1F7A4D; font-weight: 700; }
.gpay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; }
.gpay-sum > div:not(.bar) { display: flex; flex-direction: column; gap: 2px; background: #FBF8F3; border-radius: 12px; padding: 8px 10px; }
.gpay-sum span { font-size: 12px; color: var(--muted); }
.gpay-sum strong { font-size: 17px; }
.gpay-sum .bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #EEE7DD; overflow: hidden; }
.gpay-sum .bar span { display: block; height: 100%; background: #1F7A4D; border-radius: 99px; }
.pay-box { border: 2px solid #E87C08; }
.fx-in { display: flex; align-items: center; gap: 8px; } .fx-in span { font-weight: 800; }
.pay-calc { font-size: 15px; } .pay-calc:empty { display: none; }
.btn.armed { background: #C8101E; border-color: #C8101E; color: #fff; }
.group-card .post-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.group-card .post-row > div { flex: 1; min-width: 0; }
.group-card .post-row > button { flex: none; width: auto; }
