/* ============================================================
   REBOLL ASESORES · Identidad visual
   Paleta tierra (mediterránea): piedra caliza, arcilla, olivo
   Display: Cormorant Garamond · Cuerpo: Figtree
============================================================ */

:root {
  --ink: #262019;          /* espresso — textos principales */
  --ink-soft: #5c5348;     /* topo — textos secundarios */
  --paper: #f6f2ea;        /* piedra caliza — fondo general */
  --sand: #eae2d3;         /* arena — superficies */
  --clay: #a9663c;         /* arcilla andaluza — acento */
  --clay-dark: #8a5230;
  --olive: #57604a;        /* olivo — secciones profundas */
  --olive-deep: #3c4434;
  --line: #d8cdb9;
  --white: #fffdf9;
  --error: #a63d2f;
  --radius: 14px;
  --shadow: 0 18px 45px -18px rgba(38, 32, 25, 0.35);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
section[id], .browser { scroll-margin-top: 110px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; }

h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

a { color: inherit; }

/* ---------- utilidades ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 0.9rem;
}
.eyebrow--light { color: #d8c8a8; }

.section-head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.4rem;
}
.section-sub { margin-top: 1rem; color: var(--ink-soft); font-size: 1.05rem; }
.section-head--light h2 { color: var(--white); }
.section-head--light .section-sub { color: #cfd2c3; }
.section-sub--cta { font-weight: 700; color: #e9dfc8 !important; letter-spacing: 0.02em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 600 0.95rem var(--font-body);
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.btn--solid { background: var(--clay); color: var(--white); }
.btn--solid:hover { background: var(--clay-dark); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--xl { padding: 1.05rem 2.4rem; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ============================================================
   NAVEGACIÓN
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.4rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  transition: padding 0.25s ease;
}
/* Compacta al hacer scroll: logo pequeño a la izquierda, menú a la derecha */
.nav--compact .nav__inner {
  flex-direction: row;
  justify-content: space-between;
  padding: 0.55rem 1.4rem;
  gap: 1rem;
}
/* El logotipo conserva su paleta original (#f0eded, tinta negra):
   sin filtros ni mezclas. Grande al abrir, compacto al hacer scroll. */
.nav__logo {
  height: 72px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: height 0.25s ease;
}
.nav--compact .nav__logo { height: 40px; }
.nav__menu { display: flex; align-items: center; gap: 1.6rem; }
.nav__menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}
.nav__menu a:hover { color: var(--clay); }
.nav__cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
}
.nav__cta:hover { background: var(--clay); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: 0.2s; }

/* ============================================================
   SECCIÓN 1 · HERO
============================================================ */
.hero {
  padding: clamp(4rem, 9vw, 7.5rem) 1.4rem clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(169, 102, 60, 0.10), transparent 60%),
    var(--paper);
}
.hero__inner { max-width: 900px; margin: 0 auto; text-align: center; }
.hero__title {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem);
  letter-spacing: -0.015em;
}
.hero__em { font-style: italic; color: var(--clay-dark); position: relative; white-space: nowrap; }
@media (max-width: 640px) { .hero__em { white-space: normal; } }

/* Trazo caligráfico bajo el titular — eco de la firma del logotipo */
.stroke {
  position: absolute;
  left: 4%;
  right: 2%;
  bottom: -0.28em;
  height: 0.32em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14 C 60 4, 150 18, 296 8' fill='none' stroke='%23a9663c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

.hero__lead { max-width: 720px; margin: 1.8rem auto 0; font-size: 1.1rem; color: var(--ink-soft); }
.hero__lead strong { color: var(--ink); font-weight: 600; }
.hero__lead--soft { margin-top: 1rem; font-size: 1.02rem; }
.hero__actions { margin-top: 2.2rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero__pillars {
  list-style: none;
  margin: 3.4rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
}
.hero__pillars li { background: var(--white); padding: 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pillar__k { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--clay-dark); }
.pillar__v { font-size: 0.86rem; color: var(--ink-soft); }


/* ============================================================
   SECCIÓN 2 · PROPIEDADES (carrusel marquee)
============================================================ */
.props { padding: clamp(3.5rem, 7vw, 6rem) 0; }

.props__filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.8rem 0 2.2rem;
  flex-wrap: wrap;
  padding: 0 1.4rem;
}
.chip {
  font: 600 0.88rem var(--font-body);
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.18s ease;
}
.chip:hover { border-color: var(--clay); color: var(--clay); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

.marquee { overflow: hidden; position: relative; padding: 0.4rem 0 1rem; }
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(30px, 7vw, 110px);
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--paper), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--paper), transparent); }

.marquee__track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 60s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; overflow-x: auto; width: auto; }
  html { scroll-behavior: auto; }
}

.prop-card {
  width: clamp(250px, 28vw, 330px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  flex-shrink: 0;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-card:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

.prop-card__media { display: block; position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prop-card:hover .prop-card__media img { transform: scale(1.06); }
.prop-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--clay);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(38, 32, 25, 0.55);
}
.prop-card__tag--inv { background: var(--olive); }

/* Zona y precio sobre la foto: legibles sin necesidad de pinchar */
.prop-card__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  padding: 3.4rem 1.2rem 1.2rem;
  background: linear-gradient(to top, rgba(24, 19, 14, 0.94) 0%, rgba(24, 19, 14, 0.78) 38%, rgba(24, 19, 14, 0.3) 72%, transparent 100%);
  pointer-events: none;
}
.prop-card__zone {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
  text-align: left;
  width: 100%;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.prop-card__zone svg { width: 15px; height: 15px; stroke: #e8b98d; flex-shrink: 0; margin-top: 0.14rem; }
/* Una línea; dos como máximo si la dirección es larga */
.prop-card__zone > span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prop-card__body { display: block; padding: 1.1rem 1.2rem 1.25rem; }
.prop-card__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.prop-card__title { display: block; font-weight: 600; font-size: 0.98rem; }
.prop-card__meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.prop-card__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.prop-card__meta svg { width: 16px; height: 16px; stroke: var(--clay); }

.props__hint { text-align: center; margin-top: 1rem; font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Botón de cambio de vista ---------- */
.chip--view { display: inline-flex; align-items: center; gap: 0.45rem; }
.chip--view svg { width: 15px; height: 15px; }
.chip--view.is-active { background: var(--clay); border-color: var(--clay); color: var(--white); }

/* ---------- Buscador y cuadrícula ---------- */
.browser {
  max-width: 1180px;
  margin: 3rem auto 0;
  padding: 0 1.4rem;
}
.browser[hidden] { display: none; }

.search {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.2rem;
  box-shadow: 0 10px 30px -22px rgba(38, 32, 25, 0.5);
}
.search__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.9rem 1.1rem;
}
.search label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.search select,
.search input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font: 500 0.92rem var(--font-body);
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  appearance: none;
  background-image: none;
}
.search select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23a9663c' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 11px;
  padding-right: 2rem;
  cursor: pointer;
}
.search select:focus, .search input:focus { outline: none; border-color: var(--clay); }

.search__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.search__count { font-size: 0.88rem; font-weight: 600; color: var(--clay-dark); }
.btn--sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

.props__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 330px));
  justify-content: center;
  gap: 1.4rem;
  margin-top: 2rem;
}
.props__grid .prop-card { width: 100%; }

.props__empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 3rem 1rem;
}
.props__empty a { color: var(--clay-dark); font-weight: 600; }

/* ============================================================
   SECCIÓN 3 · ADMINISTRACIÓN + WIZARD
============================================================ */
.admin {
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 253, 249, 0.06), transparent 55%),
    linear-gradient(170deg, var(--olive-deep), var(--olive));
  color: var(--white);
  padding: clamp(3.5rem, 7vw, 6rem) 1.4rem clamp(4rem, 8vw, 6.5rem);
}
.admin .section-head strong { color: var(--white); }

.wizard {
  max-width: 940px;
  margin: 2.8rem auto 0;
  background: var(--white);
  color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.wizard__steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 3vw, 2.2rem);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.wizard__steps li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  opacity: 0.55;
}
.wizard__steps li span {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}
.wizard__steps li.is-active { color: var(--clay-dark); opacity: 1; }
.wizard__steps li.is-done { color: var(--olive); opacity: 1; }
.wizard__steps li.is-done span { background: var(--olive); border-color: var(--olive); color: var(--white); }

.wizard__panel { display: none; }
.wizard__panel.is-active { display: block; animation: fade-up 0.35s ease; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.wizard__panel > p { color: var(--ink-soft); margin: 0.5rem 0 1.6rem; }

.wizard__rent { max-width: 380px; margin: 0 auto 1rem; }
.rent-input { position: relative; }
.rent-input input {
  width: 100%;
  font: 700 2rem var(--font-display);
  padding: 0.9rem 5.4rem 0.9rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.rent-input input:focus { outline: none; border-color: var(--clay); }
.rent-input__unit {
  position: absolute;
  right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-weight: 600;
}

.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.8rem; gap: 1rem; }

/* comparativa de planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.plan {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
  position: relative;
  background: var(--white);
}
.plan--hot { border-color: var(--clay); }
.plan__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  background: var(--clay);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; }
.plan__tag { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.plan__pct { font-size: 0.85rem; font-weight: 700; color: var(--clay-dark); margin-bottom: 0.8rem; }
.plan__desc { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.9rem; }
.plan__count {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.9rem;
  text-align: center;
}
.plan__count strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--clay-dark); }
.plan--hot .plan__count strong { color: var(--olive); }
.plan__list { list-style: none; font-size: 0.83rem; display: grid; gap: 0.42rem; }
.plan__list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.plan__list .ok { color: var(--olive); font-weight: 700; }
.plan__list .no { color: #b8afa2; font-weight: 700; }
.plan__list li.excl { color: #a49a8b; }

/* selección de plan con precio */
.plan--select { cursor: pointer; text-align: center; transition: 0.2s ease; font: inherit; }
.plan--select:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--select:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.plan--select.is-chosen { border-color: var(--olive); background: #f4f6ef; box-shadow: 0 0 0 2px var(--olive); }
.plan__price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--ink); margin: 0.5rem 0 0.1rem; }
.plan__price small { font-size: 0.95rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); }
.plan__vat { font-size: 0.78rem; color: var(--ink-soft); }
.plan__check { margin-top: 0.9rem; font-size: 0.85rem; font-weight: 700; color: var(--olive); visibility: hidden; }
.plan--select.is-chosen .plan__check { visibility: visible; }

/* formulario */
.form label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 1rem; position: relative; }
.form input, .form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font: 400 0.95rem var(--font-body);
  color: var(--ink);
  resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--clay); }
.form .opt { color: var(--ink-soft); font-weight: 400; }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.2rem; }
.form__grid--tight { grid-template-columns: repeat(2, 1fr); }
.form__legal { font-size: 0.78rem; color: var(--ink-soft); margin-top: 1rem; text-align: center; }
.charcount { position: absolute; right: 0.3rem; bottom: -1.15rem; font-size: 0.74rem; color: var(--ink-soft); font-weight: 400; }

.hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }

.field-error { color: var(--error); font-size: 0.85rem; font-weight: 600; margin-top: 0.6rem; }

.wizard__done, .form__done { text-align: center; padding: 1.5rem 0; }
.done-mark {
  width: 58px; height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--olive);
  color: var(--white);
  font-size: 1.7rem;
  display: grid;
  place-items: center;
}
.wizard__done p, .form__done p { color: var(--ink-soft); max-width: 480px; margin: 0.6rem auto 1.4rem; }

/* ============================================================
   SECCIÓN 4 · CONTACTO
============================================================ */
.contact { padding: clamp(4rem, 8vw, 7rem) 1.4rem; text-align: center; }
.contact__inner { max-width: 820px; margin: 0 auto; }
.contact__lead { color: var(--ink-soft); font-size: 1.08rem; margin: 1.1rem auto 2rem; max-width: 640px; }

.contact__channels {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.channel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.channel:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.channel__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--clay-dark); display: grid; place-items: center; margin-bottom: 0.4rem; }
.channel__icon svg { width: 21px; height: 21px; }
.channel__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--ink-soft); }
.channel__value { font-weight: 600; font-size: 0.95rem; word-break: break-word; }

/* ============================================================
   SECCIÓN 5 · FOOTER
============================================================ */
.footer { background: var(--ink); color: #cfc7ba; padding: 3.5rem 1.4rem 1.6rem; }
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr;
  gap: 2.5rem;
}
.footer__logo {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 1.1rem;
}
.footer__brand p { font-size: 0.85rem; max-width: 340px; }
.footer__col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.9rem; }
.footer__col a { display: block; text-decoration: none; font-size: 0.92rem; margin-bottom: 0.45rem; transition: color 0.15s; }
.footer__col a:hover { color: var(--white); }
.footer__col p { font-size: 0.85rem; margin-top: 0.6rem; }
.footer__copy { text-align: center; font-size: 0.78rem; margin-top: 2.8rem; opacity: 0.6; }

/* ============================================================
   MODALES
============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(28, 23, 17, 0.62); backdrop-filter: blur(3px); }
.modal__card {
  position: relative;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
  animation: fade-up 0.3s ease;
}
.modal__card--wide { max-width: 860px; padding: 0 0 2rem; }
.modal__close {
  position: absolute;
  top: 0.8rem; right: 0.9rem;
  z-index: 5;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(38, 32, 25, 0.75);
  color: var(--white);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.modal__close:hover { background: var(--clay); }
.modal__sub { color: var(--ink-soft); font-size: 0.92rem; margin: 0.3rem 0 1.4rem; }

/* ficha de propiedad */
.pdetail__gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 6px; border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0; overflow: hidden; }
.pdetail__gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity 0.2s; }
.pdetail__gallery img:hover { opacity: 0.88; }
.pdetail__main { grid-row: span 2; aspect-ratio: 4/3; }
.pdetail__thumb { aspect-ratio: 4/2.94; }
.pdetail__body { padding: 1.6rem 2rem 0; }
.pdetail__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.pdetail__price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--clay-dark); }
.pdetail__addr { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.2rem; }
.pdetail__desc { margin: 1.2rem 0 1.4rem; color: var(--ink-soft); }
.pdetail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}
.pdetail__grid div { background: var(--paper); border-radius: 10px; padding: 0.7rem 0.9rem; }
.pdetail__grid dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 700; }
.pdetail__grid dd { font-weight: 600; font-size: 0.95rem; }
.pdetail__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .contact__channels { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .pdetail__gallery { grid-template-columns: 1fr; }
  .pdetail__main { grid-row: auto; }
  .pdetail__thumb { aspect-ratio: 16/7; }
}

@media (max-width: 720px) {
  .nav__toggle { display: flex; position: absolute; top: 1.3rem; right: 1rem; }
  .nav--compact .nav__toggle { position: static; }
  .nav__logo { height: 54px; }
  .nav--compact .nav__logo { height: 36px; }
  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.4rem 1.4rem;
    gap: 1rem;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__cta { text-align: center; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .wizard__nav { flex-direction: column-reverse; }
  .wizard__nav .btn { width: 100%; }
  .hero__pillars { grid-template-columns: 1fr; max-width: 420px; }
  .search { padding: 1.1rem 1.1rem 1rem; }
  .search__grid { grid-template-columns: 1fr 1fr; gap: 0.7rem 0.8rem; }
  .search__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .props__grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
  .modal__card { padding: 1.8rem 1.3rem; }
  .modal__card--wide { padding: 0 0 1.5rem; }
  .pdetail__body { padding: 1.3rem 1.3rem 0; }
}
