/* Tokens y piezas comunes de la tarjeta y el panel.
   Colores tomados de los materiales de Santafe: azul marino, amarillo del techo y blanco. */
:root {
  --navy: #152850;
  --navy-2: #1E3768;
  --navy-soft: #E8ECF5;
  --sun: #FDD100;
  --sun-ink: #152850;
  --sun-soft: #FFF6C7;
  --bg: #F3F4F7;
  --surface: #FFFFFF;
  --fg: #1B2233;
  --muted: #5F6678;
  --line: #E1E4EB;
  --wa: #1FA855;
  --ok: #1A7F45;
  --warn: #B4430F;
  --danger: #B42318;
  --radius: 16px;
  --shadow: 0 18px 40px -24px rgba(21, 40, 80, .45);
  --font: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
[hidden] { display: none !important; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  background: var(--navy); color: #fff;
}
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tap:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 2px;
}
.btn.sun { background: var(--sun); color: var(--sun-ink); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Sello de estado de la propiedad */
.sello { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.sello.disponible { background: var(--sun); color: var(--sun-ink); }
.sello.apartada { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.sello.vendida { background: var(--danger); color: #fff; }

/* Ventana modal y confirmaciones */
.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 20, 40, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 640px) {
  .modal-back { align-items: center; }
  .modal { border-radius: 22px; }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-size: 20px; line-height: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow); max-width: calc(100% - 32px);
}
.toast.err { background: var(--danger); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
