/* ============================================================
   Zentrium Agencia Inmobiliaria — Demo 2
   Estilo: editorial elegante · Cormorant Garamond + Lato
           base beige lino · latón mate #A8853E · grafito #23262A
   Guía: ESTILO_DEMO2.md
   ============================================================ */

:root {
  /* --- Tipografía --- */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Superficies (nunca #fff) --- */
  --bg: #f5f1ea;
  --bg-alt: #ede7dc;
  --surface: #faf8f4;
  --line: #ded5c6;
  --line-soft: #e7e0d4;

  /* --- Tinta --- */
  --ink: #1a1c1f;
  --ink-soft: #4a4640;
  --muted: #6e675c;

  /* --- Acento dorado --- */
  --gold: #a8853e;
  --gold-text: #7f6229;
  --gold-soft: #c9b48a;
  --gold-wash: rgba(168, 133, 62, .10);

  /* --- Oscuros --- */
  --graphite: #23262a;
  --graphite-2: #191b1e;

  /* --- Forma y movimiento --- */
  --radius: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 3px rgba(35, 38, 42, .04);
  --shadow-md: 0 8px 24px rgba(35, 38, 42, .07);
  --shadow-lg: 0 18px 44px rgba(35, 38, 42, .10);
  --nav-h: 100px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Margen lateral del contenido. El contenido ocupa todo el ancho de la
     ventana menos este margen, en lugar de estar limitado a 1200px. */
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: var(--font-body); font-weight: 400; color: var(--ink); background: var(--bg);
  line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; padding-inline: var(--gutter); }

/* Titulares siempre en la serif de display */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0; }

/* Filete corto editorial — recurso reutilizado en card, service, tcard, pagehead */
.rule { display: block; width: 32px; height: 1px; background: var(--gold); border: none; }

/* Los checkbox de "acepto la política de privacidad" viven dentro de formularios
   cuyos inputs llevan width:100%. Sin esto el checkbox se estira a todo el ancho,
   se dibuja centrado y empuja el texto a la línea siguiente (defecto heredado de
   la demo 1). El selector de atributo gana en especificidad a `.cform input`. */
.vform__check input[type="checkbox"],
.cform__check input[type="checkbox"],
.lform__check input[type="checkbox"] {
  width: auto; height: auto; padding: 0; border: none; background: none;
  vertical-align: -2px; margin-right: .45rem; accent-color: var(--gold); cursor: pointer;
}
.vform__check input[type="checkbox"] { accent-color: var(--gold-soft); }
.contact__form .vform__check input[type="checkbox"] { accent-color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .16em;
  padding: 1.05rem 2.4rem; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 1.05rem; }
.btn--gold { background: var(--graphite); color: var(--surface); border-color: var(--graphite); }
.btn--gold:hover { background: var(--gold-text); border-color: var(--gold-text); color: var(--surface); }
.btn--ghost { background: transparent; border-color: var(--gold); color: var(--gold-text); }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--surface); }
.btn--ghost-light { background: transparent; border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--ghost-light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--graphite); }
.btn--block { width: 100%; justify-content: center; }

/* Sobre superficies oscuras el primario no puede ser grafito: pasa a champán.
   #23262A sobre #C9B48A = 7.1:1 (AAA). */
.vender__panel .btn--gold,
.edificios .btn--gold,
.cta .btn--gold,
.lhero .btn--gold,
.footer .btn--gold {
  background: var(--gold-soft); border-color: var(--gold-soft); color: var(--graphite);
}
.vender__panel .btn--gold:hover,
.edificios .btn--gold:hover,
.cta .btn--gold:hover,
.lhero .btn--gold:hover,
.footer .btn--gold:hover {
  background: var(--surface); border-color: var(--surface); color: var(--graphite);
}
/* …salvo la tarjeta de formulario del hero de landing, que es superficie clara. */
.formcard .btn--gold { background: var(--graphite); border-color: var(--graphite); color: var(--surface); }
.formcard .btn--gold:hover { background: var(--gold-text); border-color: var(--gold-text); color: var(--surface); }

/* ============================================================ NAV */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-inline: var(--gutter); }
.nav.scrolled { background: rgba(250, 248, 244, .94); backdrop-filter: blur(14px); border-bottom-color: var(--line); height: 80px; }

/* ---------- Marca: logotipo Zentrium ----------
   El logo es vertical y a una sola tinta (negro + dorado), así que se sirven
   dos variantes: la oscura para fondos claros y la clara (negro → hueso) para
   el hero y el footer. Solo una está visible en cada contexto. */
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { display: block; width: auto; height: 62px; transition: height .35s var(--ease); }
.brand__logo--light { display: none; }

/* nav transparente sobre el hero → variante clara */
.nav:not(.scrolled):not(.nav--solid) .brand__logo--dark { display: none; }
.nav:not(.scrolled):not(.nav--solid) .brand__logo--light { display: block; }
.nav.scrolled .brand__logo { height: 50px; }

.nav__links { display: flex; align-items: center; gap: .3rem; }
.nav__links a {
  position: relative; color: rgba(250, 248, 244, .88); font-size: .88rem; font-weight: 400; letter-spacing: .06em;
  padding: .5rem .95rem; transition: color .25s;
}
.nav__links a::after {
  content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .15rem; height: 1px;
  background: var(--gold-soft); transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav.scrolled .nav__links a::after { background: var(--gold); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  border: 1px solid var(--gold-soft); color: var(--gold-soft); margin-left: .6rem;
  font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  padding: .7rem 1.4rem !important; border-radius: var(--radius);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--gold-soft); color: var(--graphite) !important; }
.nav.scrolled .nav__cta { border-color: var(--gold); color: var(--gold-text) !important; }
.nav.scrolled .nav__cta:hover { background: var(--gold); color: var(--surface) !important; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 26px; height: 1px; background: var(--surface); transition: all .3s var(--ease); }
.nav.scrolled .nav__toggle span { background: var(--ink); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================ HERO + PARALLAX */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -12% 0 0 0; height: 124%;
  background-image: url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?auto=format&fit=crop&w=1920&q=80');
  background-size: cover; background-position: center; will-change: transform; z-index: 0;
}
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(26,24,20,.86) 0%, rgba(26,24,20,.58) 46%, rgba(26,24,20,.24) 100%); }
.hero__content { position: relative; z-index: 2; color: var(--surface); padding-top: var(--nav-h); }
.hero__eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .3em; font-size: .78rem; font-weight: 700; color: var(--gold-soft); margin-bottom: 1.4rem; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.8rem, 6.5vw, 5.2rem); font-weight: 300; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1.4rem; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--gold-soft); }
.hero__subtitle { font-size: clamp(1.02rem, 2vw, 1.18rem); font-weight: 300; line-height: 1.7; max-width: 38ch; color: rgba(250,248,244,.88); margin-bottom: 2.6rem; }

/* Buscador */
.search { max-width: 900px; }
.search__ops { display: inline-flex; background: rgba(250,248,244,.14); backdrop-filter: blur(8px); border-radius: var(--radius); padding: 4px; margin-bottom: .8rem; }
.search__op {
  border: none; background: transparent; color: rgba(250,248,244,.9);
  font-family: var(--font-body); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .12em;
  padding: .6rem 1.5rem; border-radius: 2px; cursor: pointer; transition: all .25s;
}
.search__op.active { background: var(--surface); color: var(--graphite); }

.search__fields {
  display: flex; flex-wrap: wrap; align-items: end; gap: .25rem;
  background: rgba(250,248,244,.97); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-lg);
}
.search__field { flex: 1 1 150px; display: flex; flex-direction: column; padding: .35rem .9rem; position: relative; }
.search__field + .search__field::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line); }
.search__field label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: .3rem; }
.search__field select { border: none; background: transparent; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink); cursor: pointer; outline: none; padding: .1rem 0; }
.search__btn {
  flex: none; margin-left: .5rem; border: none; cursor: pointer; background: var(--graphite); color: var(--surface);
  font-family: var(--font-body); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  padding: 1.15rem 1.9rem; border-radius: var(--radius); display: inline-flex; align-items: center; gap: .5rem;
  transition: background .3s var(--ease);
}
.search__btn:hover { background: var(--gold-text); }

.hero__scroll { margin-top: 2.8rem; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; color: rgba(250,248,244,.65); display: inline-flex; align-items: center; gap: .6rem; animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ============================================================ SECTIONS */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: 3.6rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__foot { text-align: center; margin-top: 3.4rem; }
.section__tag { display: inline-block; font-family: var(--font-body); text-transform: uppercase; letter-spacing: .24em; font-size: .74rem; font-weight: 700; color: var(--gold-text); margin-bottom: 1.1rem; }
.section__title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 400; letter-spacing: 0; line-height: 1.15; margin-bottom: 1.1rem; }
.section__lead { font-size: 1.1rem; color: var(--ink-soft); font-weight: 300; line-height: 1.75; }

/* ---------- Grid inmuebles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--graphite); color: var(--gold-soft); font-family: var(--font-body); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; padding: .4rem .8rem; border-radius: 2px; }
.card__badge--dark { background: var(--graphite-2); color: var(--surface); }
.card__op { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(250,248,244,.94); color: var(--graphite); font-family: var(--font-body); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .35rem .7rem; border-radius: 2px; backdrop-filter: blur(4px); }
.card__op--reservado { background: var(--gold); color: var(--graphite); }
.card__fav { position: absolute; bottom: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer; background: rgba(250,248,244,.9); color: var(--graphite); font-size: 1.05rem; display: grid; place-items: center; transition: color .25s, background .25s; backdrop-filter: blur(4px); }
.card__fav:hover { background: var(--surface); color: #b03a3a; }
.card__fav.active { color: #b03a3a; }
.card__body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__zone { font-family: var(--font-body); font-size: .74rem; color: var(--gold-text); font-weight: 700; text-transform: uppercase; letter-spacing: .18em; display: flex; align-items: center; gap: .4rem; margin-bottom: .55rem; }
.card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; letter-spacing: 0; line-height: 1.3; margin-bottom: .9rem; }
.card__title::after { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); margin-top: .9rem; }
.card__specs { display: flex; gap: 1.2rem; padding: .9rem 0; border-top: 1px solid var(--line-soft); margin-top: auto; color: var(--ink-soft); font-size: .9rem; }
.card__specs span { display: inline-flex; align-items: center; gap: .4rem; }
.card__specs i { color: var(--gold); font-size: 1.05rem; }
.card__price { display: flex; align-items: baseline; gap: .6rem; margin-top: .9rem; }
.card__price strong { font-family: var(--font-body); font-size: 1.4rem; font-weight: 700; letter-spacing: 0; }
.card__price del { color: var(--muted); font-size: .95rem; font-weight: 400; }
.card__price .mes { color: var(--muted); font-size: .9rem; font-weight: 400; }

/* ---------- Destacados de la home: 2 tarjetas horizontales por fila ----------
   Solo afecta a #gridInmuebles (la home). El catálogo (.results) y los
   inmuebles similares mantienen la tarjeta vertical. */
#gridInmuebles { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
#gridInmuebles .card { flex-direction: row; align-items: stretch; min-height: 272px; }
#gridInmuebles .card__media { flex: 0 0 44%; aspect-ratio: auto; }
/* En horizontal el texto es más corto que la imagen es alta: el bloque se
   centra en vez de anclar el precio al fondo, que dejaba un hueco muerto. */
#gridInmuebles .card__body { flex: 1; min-width: 0; padding: 1.7rem 1.8rem; justify-content: center; }
#gridInmuebles .card__specs { margin-top: 1.3rem; }

@media (max-width: 1080px) { #gridInmuebles { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  /* en pantallas estrechas la imagen no da de sí en horizontal: vuelve a apilarse */
  #gridInmuebles .card { flex-direction: column; min-height: 0; }
  #gridInmuebles .card__media { flex: none; aspect-ratio: 4/3; }
  #gridInmuebles .card__body { padding: 1.5rem 1.6rem 1.7rem; justify-content: flex-start; }
  #gridInmuebles .card__specs { margin-top: auto; }
}

/* ---------- Servicios (3 vías) ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.4rem 2.2rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); display: flex; flex-direction: column; }
.service:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.service--featured { border-color: var(--gold); }
.service__icon { width: 52px; height: 52px; border-radius: 2px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold-text); font-size: 1.6rem; margin-bottom: 1.4rem; }
.service h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0; margin-bottom: .7rem; }
.service h3::after { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); margin-top: .9rem; }
.service p { color: var(--ink-soft); font-weight: 300; margin-bottom: 1.7rem; flex: 1; }
.service__cta { font-family: var(--font-body); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold-text); display: inline-flex; align-items: center; gap: .5rem; transition: gap .25s; }
.service:hover .service__cta { gap: .85rem; }

/* ---------- Vender (split parallax) ---------- */
.vender { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.vender__media { position: relative; overflow: hidden; }
.vender__img { position: absolute; inset: -12% 0; height: 124%; background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80'); background-size: cover; background-position: center; will-change: transform; }
.vender__panel { background: var(--graphite); color: var(--surface); display: flex; align-items: center; padding: clamp(2.5rem, 6vw, 5rem); }
.vender__inner { max-width: 480px; }
.vender__title { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 400; letter-spacing: 0; line-height: 1.12; margin-bottom: 1.2rem; }
.vender__lead { color: rgba(250,248,244,.75); font-weight: 300; margin-bottom: 1.7rem; }
.vender__lead strong { color: var(--gold-soft); font-weight: 700; }
.vender__list { list-style: none; display: grid; gap: .75rem; margin-bottom: 2.1rem; }
.vender__list li { display: flex; align-items: center; gap: .75rem; color: rgba(250,248,244,.88); font-size: .96rem; font-weight: 300; }
.vender__list i { color: var(--gold-soft); font-size: 1.2rem; }
.vform { display: grid; gap: .7rem; }
.vform__row { display: flex; gap: .7rem; }
.vform input[type="text"], .vform input[type="tel"] {
  flex: 1; width: 100%; background: rgba(250,248,244,.06); border: 1px solid rgba(201,180,138,.24);
  color: var(--surface); font-family: var(--font-body); font-size: .95rem; padding: .9rem 1rem; border-radius: 2px;
  transition: border-color .25s, background .25s; outline: none;
}
.vform input::placeholder { color: rgba(250,248,244,.45); }
.vform input:focus { border-color: var(--gold-soft); background: rgba(250,248,244,.10); }
.vform__check { display: block; font-size: .8rem; line-height: 1.5; color: rgba(250,248,244,.6); margin: .3rem 0 .6rem; }
.vform__check a { color: var(--gold-soft); text-decoration: underline; }

/* ---------- Aval ---------- */
.aval { padding: clamp(3.5rem, 7vw, 6rem) 0; text-align: center; }
.aval__frase { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 300; line-height: 1.3; }
.aval__frase em { font-style: italic; color: var(--gold-text); }
.aval__frase::after { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); margin: 1.4rem auto 0; }

/* ---------- Edificios (B2B) ---------- */
.edificios { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; color: var(--surface); background-image: linear-gradient(rgba(26,24,20,.80), rgba(26,24,20,.80)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80'); background-size: cover; background-position: center; background-attachment: fixed; }
.edificios__inner { max-width: 620px; }
.edificios h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 400; letter-spacing: 0; margin-bottom: 1.1rem; }
.edificios p { color: rgba(250,248,244,.82); font-weight: 300; font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Zonas ---------- */
.zonas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.3rem; }
.zona { position: relative; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; display: flex; align-items: end; cursor: pointer; }
.zona img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.zona::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,24,20,.88), rgba(26,24,20,.05) 60%); }
.zona:hover img { transform: scale(1.04); }
.zona__info { position: relative; z-index: 2; color: var(--surface); padding: 1.5rem; }
.zona__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; }
.zona__count { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(250,248,244,.75); display: flex; align-items: center; gap: .4rem; margin-top: .45rem; }
.zona__count i { color: var(--gold-soft); }

/* ---------- Testimonios ---------- */
.testi { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--bg-alt); }
.testi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.tcard { background: var(--surface); border-radius: var(--radius); padding: 2.4rem 2.2rem; border: 1px solid var(--line); }
.tcard__stars { color: var(--gold); font-size: .95rem; margin-bottom: 1.2rem; letter-spacing: .1em; }
.tcard__text { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; font-weight: 400; color: var(--ink); line-height: 1.6; margin-bottom: 1.6rem; }
.tcard__author { font-family: var(--font-body); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.tcard__zone { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* ---------- CTA compradores ---------- */
.cta { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; text-align: center; color: var(--surface); background: linear-gradient(120deg, #191b1e, #2a2e33); }
.cta__inner h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: 0; margin-bottom: 1rem; }
.cta__inner p { color: rgba(250,248,244,.72); font-size: 1.1rem; font-weight: 300; margin-bottom: 2.2rem; max-width: 54ch; margin-inline: auto; }
.cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact { padding: clamp(5rem, 10vw, 9rem) 0; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact__list { list-style: none; display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact__list li { display: flex; align-items: center; gap: .8rem; color: var(--ink-soft); }
.contact__list i { color: var(--gold); font-size: 1.2rem; }
.contact__list a:hover { color: var(--gold-text); }
.contact__form { display: grid; gap: .8rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem; }
.contact__form input, .contact__form textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font-family: var(--font-body); font-size: .95rem; padding: .85rem .95rem; outline: none; transition: border-color .2s; resize: vertical; }
.contact__form input:focus, .contact__form textarea:focus { border-color: var(--gold); }
.contact__form .vform__check { color: var(--muted); }
.contact__form .vform__check a { color: var(--gold-text); }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-2); color: rgba(250,248,244,.62); padding-top: 4.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3.2rem; }
.brand--light { margin-bottom: 1.4rem; }
.brand--light .brand__logo--dark { display: none; }
.brand--light .brand__logo--light { display: block; height: 116px; }
.footer__brand p { font-size: .95rem; font-weight: 300; max-width: 34ch; margin-bottom: 1.5rem; }
.footer__social { display: flex; gap: .6rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 2px; border: 1px solid rgba(201,180,138,.22); display: grid; place-items: center; color: var(--gold-soft); font-size: 1.05rem; transition: background .25s, color .25s, border-color .25s; }
.footer__social a:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--graphite); }
.footer__col h4 { font-family: var(--font-body); color: var(--gold-soft); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .18em; margin-bottom: 1.2rem; }
.footer__col a { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 300; padding: .32rem 0; transition: color .25s; }
.footer__col a:hover { color: var(--gold-soft); }
.footer__col i { color: var(--gold-soft); }
.footer__bottom { border-top: 1px solid rgba(250,248,244,.09); padding: 1.5rem 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; }
.footer__legal a:hover { color: var(--gold-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card, .zona, .tcard, .service { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.card.in, .zona.in, .tcard.in, .service.in { opacity: 1; transform: none; }
/* el hover no debe pelearse con la transición de entrada */
.card.in { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.service.in { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; }
  .vender { grid-template-columns: 1fr; }
  .vender__media { min-height: 320px; }
  .contact__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .edificios { background-attachment: scroll; }
}
@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; background: rgba(250,248,244,.98); backdrop-filter: blur(14px); padding: 1rem; border-bottom: 1px solid var(--line); gap: .1rem; transform: translateY(calc(-100% - var(--nav-h))); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; pointer-events: none; }
  /* Cerrado se sube su altura más la de la cabecera (con un porcentaje solo, el
     borde inferior asomaba por arriba) y se oculta al acabar la animación. */
  .nav__links.open { transform: translateY(0); visibility: visible; transition: transform .4s var(--ease), visibility 0s; pointer-events: auto; }
  .nav__links a { color: var(--ink-soft); padding: .95rem 1rem; }
  .nav__links a::after { display: none; }
  .nav__cta { border-color: var(--gold); color: var(--gold-text) !important; text-align: center; justify-content: center; margin: .5rem 0 0; }
  .search__fields { flex-direction: column; align-items: stretch; }
  .search__field + .search__field::before { display: none; }
  .search__field { border-top: 1px solid var(--line); }
  .search__field:first-child { border-top: none; }
  .search__btn { margin: .6rem 0 0; justify-content: center; }
  .hero__scroll { display: none; }
  .footer__bottom-inner { flex-direction: column; gap: .6rem; text-align: center; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .vform__row { flex-direction: column; }
  .btn { padding: 1rem 1.8rem; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .card, .zona, .tcard, .service { opacity: 1; transform: none; }
}

/* ── Avisos de formulario ─────────────────────────────────────────
   Los formularios responden con redirect, asi que el resultado lo pinta
   el servidor y estos estilos se usan en todas las paginas. */
.aviso {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin: 0 0 1.1rem;
  font-size: .92rem;
  line-height: 1.5;
}
.aviso i { flex: 0 0 auto; margin-top: .12rem; font-size: 1.05rem; }
.aviso ul { margin: .45rem 0 0; padding-left: 1.1rem; }
.aviso li { margin: .15rem 0; }

.aviso--ok {
  background: #eaf3ec;
  border-color: #b9d6c1;
  color: #2f5c3c;
}
.aviso--error {
  background: #fbeceb;
  border-color: #e3bfbc;
  color: #8a3a33;
}

/* ═══════════════════════════════════════════════════════════════════
   Aviso de cookies y sustituto de los mapas
   ═══════════════════════════════════════════════════════════════════
   El aviso vive en styles.css y no en pages.css porque sale en todas las
   páginas. Las acciones son el mismo componente repetido, con el mismo
   tamaño y el mismo peso: ninguna es la opción por defecto. */

.cookie-aviso {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2000;
  padding: var(--gutter);
  padding-top: 0;
  pointer-events: none;
  animation: cookieEntra .32s var(--ease) both;
}
.cookie-aviso[hidden] { display: none; }
.cookie-aviso:focus { outline: none; }

.cookie-aviso__caja {
  pointer-events: auto;
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.2rem 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.5rem;
}

.cookie-aviso__texto { flex: 1 1 22rem; min-width: 0; }
.cookie-aviso__texto p { font-size: .88rem; font-weight: 300; color: var(--ink-soft); margin: 0 0 .5rem; }
.cookie-aviso__texto p:last-child { margin-bottom: 0; }
.cookie-aviso__texto strong { font-weight: 700; color: var(--ink); }

.cookie-aviso__tit {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  line-height: 1.2;
  margin-bottom: .55rem !important;
}
.cookie-aviso__nota { font-size: .8rem !important; color: var(--muted) !important; }
.cookie-aviso__nota a { color: var(--gold-text); text-decoration: underline; text-underline-offset: .16em; }

/* La caja no puede pasar de la pantalla con el panel de configuración abierto:
   en un móvil apaisado dejaría los botones fuera de alcance. */
.cookie-aviso__caja {
  max-height: calc(100vh - var(--gutter));
  max-height: calc(100dvh - var(--gutter));
  overflow-y: auto;
}

/* ── Panel "Configurar" ─────────────────────────────────────────── */
.cookie-aviso__config {
  flex: 1 1 100%;
  min-width: 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  padding: 1rem 0 0;
  margin: 0;
}
.cookie-aviso__config[hidden] { display: none; }

.cookie-aviso__leyenda {
  float: left;               /* sin esto la leyenda se monta sobre el borde */
  width: 100%;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: .7rem;
}

.cookie-fin { clear: both; padding: .65rem 0; border-bottom: 1px solid var(--line-soft); }
.cookie-fin:last-child { border-bottom: 0; padding-bottom: 0; }

.cookie-fin__cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
div.cookie-fin__cab { cursor: default; }
.cookie-fin__nombre { font-size: .9rem; font-weight: 700; color: var(--ink); }
.cookie-fin__fija { font-size: .76rem; color: var(--muted); }
.cookie-fin__txt { font-size: .8rem; font-weight: 300; color: var(--ink-soft); margin: .25rem 0 0; max-width: 60ch; }

/* Interruptor: una casilla nativa con otro aspecto, para que el teclado, los
   lectores de pantalla y el `label` sigan funcionando sin JS propio. El borde
   apagado va en --muted y no en --line: con --line no llega al contraste
   mínimo y no se distingue si está puesto o no. */
.cookie-interruptor {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 2.6rem;
  height: 1.45rem;
  border: 1px solid var(--muted);
  border-radius: 999px;
  background: var(--bg-alt);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cookie-interruptor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: .17rem;
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 50%;
  background: var(--muted);
  transform: translateY(-50%);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.cookie-interruptor:checked { background: var(--graphite); border-color: var(--graphite); }
.cookie-interruptor:checked::before { background: var(--surface); transform: translate(1.12rem, -50%); }
.cookie-interruptor:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Las acciones, idénticas. Si algún día alguien destaca una, que sea una
   decisión consciente y no un descuido: la guía de la AEPD exige que rechazar
   no sea más difícil que aceptar. */
.cookie-aviso__acciones { display: flex; flex-wrap: wrap; gap: .6rem; flex: 0 0 auto; margin-left: auto; }
.cookie-btn[hidden] { display: none; }

.cookie-btn {
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  padding: .8rem 1.4rem;
  min-width: 8.5rem;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cookie-btn:hover { background: var(--graphite); color: var(--surface); }
.cookie-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@keyframes cookieEntra { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 620px) {
  .cookie-aviso__caja { padding: 1.1rem 1.1rem; }
  /* Rechazar y aceptar en la misma fila, a la par; configurar debajo, a todo
     el ancho. Se hace con la rejilla y no con `order` para que el orden
     visual siga siendo el del teclado. */
  .cookie-aviso__acciones { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  /* Con el espaciado de escritorio "Rechazar todo" se parte en dos líneas y
     "Aceptar todo" no, y dejan de verse iguales. */
  .cookie-btn { min-width: 0; padding: .8rem .5rem; letter-spacing: .08em; }
  .cookie-btn--ancho { grid-column: 1 / -1; }
}

/* ── Sustituto del mapa sin consentimiento ─────────────────────────
   Ocupa el hueco del mapa y explica por qué no está. No es un error: es la
   consecuencia de una decisión que la persona ha tomado, y se puede cambiar
   desde aquí mismo. */
.mapa-bloqueado {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-align: center;
  padding: 1.6rem 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
/* El contenedor del mapa puede no tener posicionamiento propio. */
#fichaMap, #contactMap, #map { position: relative; }

.mapa-bloqueado__tit {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.mapa-bloqueado__txt {
  font-size: .86rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0;
}
.mapa-bloqueado__dir {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin: .3rem 0 .2rem;
}
.mapa-bloqueado__btn {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--surface);
  background: var(--graphite);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  padding: .7rem 1.3rem;
  margin-top: .35rem;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.mapa-bloqueado__btn:hover { background: var(--gold); border-color: var(--gold); }
.mapa-bloqueado__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mapa-bloqueado__pie { font-size: .72rem; color: var(--muted); max-width: 36ch; margin: .25rem 0 0; }

@media (max-width: 560px) {
  .mapa-bloqueado { padding: 1.1rem .9rem; gap: .35rem; }
  .mapa-bloqueado__pie { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-aviso { animation: none; }
  .cookie-btn, .mapa-bloqueado__btn,
  .cookie-interruptor, .cookie-interruptor::before { transition: none; }
}
