/* =========================================================
   ABIX — Estilos generales del sitio público
   ========================================================= */

:root {
  --terracota: #BF6648;
  --terracota-dark: #A2523A;
  --carbon: #373938;
  --blanco-calido: #FAF8F6;
  --arena: #F0E9E2;
  --gris-medio: #6B6B6B;
  --dorado: #D9A441;
  --verde-salvia: #7A8B6F;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Fraunces', serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(55, 57, 56, 0.08);
  --shadow-hover: 0 10px 30px rgba(55, 57, 56, 0.14);
  --container-width: 1180px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--carbon);
  background: var(--blanco-calido);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--carbon);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Íconos ---------------- */

.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

/* ---------------- Botones ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out), background 0.16s var(--ease-out), color 0.16s var(--ease-out);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--terracota); color: #fff; }
.btn--primary:hover { background: var(--terracota-dark); box-shadow: var(--shadow-hover); }

.btn--outline { background: transparent; border-color: var(--carbon); color: var(--carbon); }
.btn--outline:hover { background: var(--carbon); color: #fff; }

.btn--outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--carbon); }

.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1fb955; box-shadow: var(--shadow-hover); }

.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------------- Header ---------------- */

.site-header {
  background: var(--blanco-calido);
  border-bottom: 1px solid rgba(55,57,56,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand__logo { height: 46px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a { color: var(--carbon); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--terracota); }
.nav-whatsapp.btn { color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--carbon);
  border-radius: 2px;
}

/* ---------------- Hero: scroll para "construir" la imagen ---------------- */

.scroll-hero {
  position: relative;
  height: 280vh; /* distancia de scroll que dura la animación */
}

.scroll-hero__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--carbon);
  z-index: 1; /* por debajo del header (z-index 100) a propósito */
}

.scroll-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.scroll-hero__bg img,
.scroll-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Corrección leve de luz/color para que ambas fotos se vean parejas */
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}
.scroll-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(55,57,56,0.55), rgba(55,57,56,0.8));
}

.scroll-hero__media {
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.4);
  will-change: width, height, border-radius;
  /* Tamaño inicial de respaldo (coincide con el valor base del JS) hasta que corra el script */
  width: 480px;
  height: 300px;
  border-radius: 28px;
}
@media (max-width: 767px) {
  .scroll-hero__media { width: 220px; height: 200px; }
}
.scroll-hero__media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.scroll-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
  padding: 0 20px;
  overflow: hidden;
  will-change: opacity, transform, max-height, margin-bottom;
}
@media (max-width: 767px) {
  .scroll-hero__content { margin-bottom: 20px; }
}

.hero__highlight { color: var(--dorado); }

.hero__eyebrow {
  display: inline-block;
  color: var(--dorado);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.scroll-hero__content h1 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.scroll-hero__content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.scroll-hero__hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.scroll-hero__hint span {
  color: rgba(255,255,255,0.8);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.scroll-hero__hint-icon {
  width: 20px;
  height: 20px;
  color: rgba(255,255,255,0.8);
  animation: chevronbounce 1.8s var(--ease-in-out) infinite;
}
@keyframes chevronbounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.scroll-hero__caption {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  opacity: 0;
  will-change: opacity;
}
.scroll-hero__caption span {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  background: rgba(55,57,56,0.35);
  padding: 10px 22px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hero { height: auto; }
  .scroll-hero__pin { position: relative; }
  .scroll-hero__hint-icon { animation: none; }
}

/* ---------------- Animación al hacer scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1.is-visible { transition-delay: 0.08s; }
.reveal--delay-2.is-visible { transition-delay: 0.16s; }
.reveal--delay-3.is-visible { transition-delay: 0.24s; }

/* Stagger de hijos dentro de una grilla que revela (valores, zonas) */
.values-grid .value-item,
.zonas-grid .zona-chip {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.reveal.is-visible .values-grid .value-item,
.zonas-grid.is-visible .zona-chip {
  opacity: 1;
  transform: translateY(0);
}
.values-grid .value-item:nth-child(1),
.zonas-grid .zona-chip:nth-child(1) { transition-delay: 0ms; }
.values-grid .value-item:nth-child(2),
.zonas-grid .zona-chip:nth-child(2) { transition-delay: 60ms; }
.values-grid .value-item:nth-child(3),
.zonas-grid .zona-chip:nth-child(3) { transition-delay: 120ms; }
.values-grid .value-item:nth-child(4),
.zonas-grid .zona-chip:nth-child(4) { transition-delay: 180ms; }
.zonas-grid .zona-chip:nth-child(5) { transition-delay: 240ms; }
.zonas-grid .zona-chip:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__blob, .hero__scroll-cue span,
  .values-grid .value-item, .zonas-grid .zona-chip, .stat-block {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ---------------- Secciones ---------------- */

.section { padding: 70px 0; }
.section--alt { background: var(--arena); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.section__eyebrow {
  color: var(--terracota);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 8px;
}

.featured-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dorado);
  color: var(--carbon);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
  transition: transform 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}
.featured-tag .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .featured-tag:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}
.featured-tag:active { transform: scale(0.97); }

.section__head h2 { margin-bottom: 6px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__head p { color: var(--gris-medio); margin: 0; }

/* ---------------- Título con subrayado animado (dibujado al entrar en pantalla) ---------------- */

.animated-underline { position: relative; display: inline-block; }
.animated-underline__svg {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 16px;
  overflow: visible;
}
.animated-underline__path {
  fill: none;
  stroke: var(--terracota);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  transition: stroke-dashoffset 1.2s var(--ease-out) 0.25s;
}
.reveal.is-visible .animated-underline__path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .animated-underline__path { transition: none; stroke-dashoffset: 0; }
}

/* ---------------- Galería bento de obras terminadas ---------------- */

.bento-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 14px;
}
.bento-item {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  border: none;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--arena);
}
.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bento-item:hover img { transform: scale(1.06); }
}
.bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento-item:nth-child(4) { grid-row: span 2; }
.bento-item:nth-child(6) { grid-column: span 2; }

@media (max-width: 720px) {
  .bento-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
  .bento-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .bento-item:nth-child(4), .bento-item:nth-child(6) { grid-column: span 1; grid-row: span 1; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(21,22,21,0.92);
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(90vw, 1000px);
  max-height: 82vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__close .icon, .lightbox__nav .icon { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

.quick-link-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 4px solid var(--dorado);
}
.quick-link-card:nth-child(2) { border-top-color: var(--verde-salvia); }
.quick-link-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.quick-link-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.quick-link-card p { color: var(--gris-medio); margin-bottom: 18px; }

/* ---------------- Grilla de propiedades ---------------- */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.property-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  display: flex;
  flex-direction: column;
}
@media (hover: hover) and (pointer: fine) {
  .property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
  .property-card:hover .property-card__media img { transform: scale(1.06); }
}
.property-card:active { transform: scale(0.98); }

.property-card__media {
  position: relative;
  aspect-ratio: 4 / 4.6;
  background: var(--arena) center/cover no-repeat;
  overflow: hidden;
}
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-out); }

/* ---------------- Coverflow: proyecto destacado ---------------- */

.coverflow {
  --cf-card: clamp(170px, 40vw, 280px);
  position: relative;
}

.coverflow__frame {
  cursor: grab;
  overflow: hidden;
  padding: 40px 0;
  outline: none;
  touch-action: pan-y;
  perspective: calc(var(--cf-card) * 3);
}
.coverflow__frame:active { cursor: grabbing; }
.coverflow__frame:focus-visible { box-shadow: inset 0 0 0 2px var(--terracota); }

.coverflow__track {
  position: relative;
  height: var(--cf-card);
  transform-style: preserve-3d;
  user-select: none;
}

.coverflow__card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cf-card);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--arena);
  box-shadow: 0 20px 45px rgba(55,57,56,0.35);
  will-change: transform;
}
.coverflow__card img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }

.coverflow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--carbon);
  box-shadow: var(--shadow);
  transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.16s var(--ease-out);
}
.coverflow__nav--prev { left: 4px; }
.coverflow__nav--next { right: 4px; }
@media (hover: hover) and (pointer: fine) {
  .coverflow__nav:hover { background: var(--terracota); color: #fff; }
}
.coverflow__nav:active { transform: translateY(-50%) scale(0.92); }
.coverflow__nav-icon { width: 20px; height: 20px; }
.coverflow__nav-icon--left { transform: rotate(90deg); }
.coverflow__nav-icon--right { transform: rotate(-90deg); }

.coverflow-caption {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
}
.coverflow-caption h3 { font-size: 1.3rem; margin-bottom: 22px; }

.coverflow-caption__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 28px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--arena);
}

.stat-block {
  flex: 1 1 150px;
  padding: 24px 14px;
  border-right: 1px solid rgba(55,57,56,0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.stat-block:last-child { border-right: none; }
.coverflow-caption__stats.is-visible .stat-block { opacity: 1; transform: translateY(0); }
.stat-block:nth-child(1) { transition-delay: 0ms; }
.stat-block:nth-child(2) { transition-delay: 80ms; }
.stat-block:nth-child(3) { transition-delay: 160ms; }
.stat-block:nth-child(4) { transition-delay: 240ms; }

.stat-block__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--terracota);
  line-height: 1.1;
  margin-bottom: 6px;
  white-space: nowrap;
}
.stat-block__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gris-medio);
}

.coverflow-caption__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 560px) {
  .stat-block { flex: 1 1 45%; border-right: none; border-bottom: 1px solid rgba(55,57,56,0.08); }
  .stat-block:nth-child(2n) { border-right: none; }
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.badge--en_pozo { background: var(--dorado); color: var(--carbon); }
.badge--terminada { background: var(--verde-salvia); }
.badge--destacada {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--terracota);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.property-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.property-card__location {
  color: var(--gris-medio);
  font-size: 0.85rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-card__location .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--terracota); }
.property-card__title { font-size: 1.15rem; margin-bottom: 10px; }

.property-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gris-medio);
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.property-card__meta span { background: var(--arena); padding: 4px 10px; border-radius: 6px; }

.property-card__progress { margin-bottom: 14px; }
.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--arena);
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar__fill { height: 100%; background: var(--dorado); border-radius: 999px; }
.progress-label { font-size: 0.78rem; color: var(--gris-medio); display: flex; justify-content: space-between; }

.property-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--arena);
}
.property-card__price { font-family: var(--font-heading); font-weight: 700; color: var(--terracota); font-size: 1.05rem; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gris-medio);
  background: #fff;
  border-radius: var(--radius);
}

/* ---------------- Quiénes somos ---------------- */

.about__layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about__visual { position: relative; }
.about__visual-frame {
  background: linear-gradient(135deg, var(--carbon), #4a4d4c);
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.about__visual-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(191,102,72,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191,102,72,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about__logo { width: 60%; position: relative; z-index: 1; }
.about__visual-accent {
  position: absolute;
  width: 70%;
  height: 70%;
  bottom: -28px;
  right: -28px;
  border-radius: var(--radius);
  border: 3px solid var(--dorado);
  z-index: 0;
}

.about__copy h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.about__copy p { color: var(--gris-medio); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}
.value-item { display: flex; gap: 14px; align-items: flex-start; }
.value-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--arena);
  display: flex;
  align-items: center;
  justify-content: center;
}
.value-item__icon .icon { width: 20px; height: 20px; vertical-align: 0; color: var(--terracota); }
.value-item strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; margin-bottom: 4px; }
.value-item p { color: var(--gris-medio); font-size: 0.85rem; margin: 0; }

/* ---------------- Zonas ---------------- */

.zonas-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.zona-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(55,57,56,0.12);
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out), transform 0.16s var(--ease-out), border-color 0.16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .zona-chip:hover { background: var(--terracota); color: #fff; border-color: var(--terracota); transform: translateY(-2px); }
  .zona-chip:hover .zona-chip__icon .icon { color: #fff; }
}
.zona-chip:active { transform: scale(0.96); }
.zona-chip__icon { display: inline-flex; }
.zona-chip__icon .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--terracota); transition: color 0.16s var(--ease-out); }

/* ---------------- Filtros ---------------- */

.filters {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 36px;
}
.filters form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: end;
}
.filters label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gris-medio);
  margin-bottom: 6px;
  display: block;
}
.filters select,
.filters input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(55,57,56,0.15);
  background: var(--blanco-calido);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.filters select:focus,
.filters input:focus { outline: 2px solid var(--terracota); }

/* ---------------- Página de detalle ---------------- */

.property-hero {
  padding: 36px 0 10px;
}
.breadcrumb { font-size: 0.85rem; color: var(--gris-medio); margin-bottom: 18px; }
.breadcrumb a { color: var(--terracota); }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.gallery__main { aspect-ratio: 4/3; background: var(--arena); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; cursor: pointer; }

.tour-interactivo__hint { color: var(--gris-medio); margin: 10px 0 40px; font-size: 0.9rem; }

.tour-viewer {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--arena);
  aspect-ratio: 16/9;
  box-shadow: var(--shadow);
}
.tour-viewer img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.2s var(--ease-out); }
.tour-viewer.is-changing img { opacity: 0; }

.tour-viewer__etiqueta {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(55,57,56,0.72);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
}

.tour-hotspot-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.94);
  color: var(--carbon);
  border: none;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.28);
  transition: transform 0.16s var(--ease-out), background 0.16s var(--ease-out);
}
.tour-hotspot-btn::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracota);
  box-shadow: 0 0 0 5px rgba(191,102,72,0.28);
  flex-shrink: 0;
}
.tour-hotspot-btn:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }

@media (max-width: 640px) {
  .tour-viewer { aspect-ratio: 4/3; }
}

.units-section { margin: 32px 0 40px; }
.units-section h2 { margin-bottom: 20px; }
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
  align-items: start;
}

/* Tarjeta con blob de gradiente animado detrás de un panel "glass" — misma idea que un
   gradient-blob-card de referencia, adaptada a colores de marca en CSS puro (sin React). */
.unit-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 7px;
  background: var(--blanco-calido);
  box-shadow: 14px 14px 34px rgba(55,57,56,0.14), -10px -10px 26px rgba(255,255,255,0.85);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.unit-card:hover { transform: translateY(-6px); box-shadow: 18px 18px 40px rgba(55,57,56,0.18), -10px -10px 26px rgba(255,255,255,0.85); }

.unit-card__blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.85;
  z-index: 0;
  background: linear-gradient(120deg, var(--terracota-dark), var(--terracota), var(--dorado), var(--verde-salvia));
  animation: unit-card-blob 10s ease-in-out infinite;
}
@keyframes unit-card-blob {
  0%, 100% { transform: translate(-16%, -16%) scale(1); }
  25% { transform: translate(12%, -10%) scale(1.12); }
  50% { transform: translate(10%, 12%) scale(0.94); }
  75% { transform: translate(-12%, 10%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .unit-card__blob { animation: none; }
}

.unit-card__glass {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 18px 16px 12px;
  display: flex;
  flex-direction: column;
}
.unit-card__nombre { font-size: 0.98rem; margin: 0 0 12px; }

.unit-card__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.unit-card__stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.55);
  border-radius: 10px;
  padding: 6px 10px;
}
.unit-card__stat-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(191,102,72,0.15);
}
.unit-card__stat-icon .icon { width: 15px; height: 15px; color: var(--terracota); }
.unit-card__stat-text { font-size: 0.82rem; color: var(--carbon); }
.unit-card__stat-text strong { font-family: var(--font-heading); }

.unit-card__mas {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out), opacity 0.25s ease, margin-top 0.35s var(--ease-out);
}
.unit-card.is-open .unit-card__mas { max-height: 500px; opacity: 1; margin-top: 14px; }
.unit-card__ambientes { font-weight: 600; font-size: 0.82rem; margin: 0 0 8px; }
.unit-card__detalle { color: var(--carbon); opacity: 0.75; font-size: 0.8rem; line-height: 1.5; margin: 0; }

.unit-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 0 2px;
  margin-top: 4px;
  cursor: pointer;
  color: var(--terracota);
}
.unit-card__toggle .icon { width: 20px; height: 20px; animation: unit-toggle-bounce 1.6s ease-in-out infinite; transition: transform 0.25s var(--ease-out); }
.unit-card.is-open .unit-card__toggle .icon { transform: rotate(180deg); animation: none; }
@keyframes unit-toggle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .unit-card__toggle .icon { animation: none; }
}

.property-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: start;
}

.property-info h1 { font-size: 2rem; margin-bottom: 8px; }
.property-info__location { color: var(--gris-medio); margin-bottom: 20px; font-size: 1rem; display: flex; align-items: center; gap: 6px; }
.property-info__location .icon { width: 16px; height: 16px; vertical-align: -2px; color: var(--terracota); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.spec-item {
  background: var(--arena);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.spec-item strong { display: block; font-family: var(--font-heading); font-size: 1.15rem; color: var(--carbon); }
.spec-item span { font-size: 0.78rem; color: var(--gris-medio); }

.property-description { margin-top: 26px; white-space: pre-line; color: var(--carbon); }

.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.sidebar-card__price { font-family: var(--font-heading); font-size: 1.6rem; color: var(--terracota); font-weight: 700; margin-bottom: 4px; }
.sidebar-card__status { margin-bottom: 18px; }

.sidebar-card .btn { margin-bottom: 12px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(55,57,56,0.18);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--blanco-calido);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: 2px solid var(--terracota); }

/* ---------------- Fotos de avance de obra (ficha de propiedad) ---------------- */

.avance-strip { margin: 24px 0; }
.avance-strip__title { font-size: 1.05rem; margin-bottom: 12px; }
.avance-strip__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.avance-strip__item {
  position: relative;
  flex: 0 0 auto;
  width: 150px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--arena);
}
.avance-strip__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .avance-strip__item:hover img { transform: scale(1.06); }
}
.avance-strip__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(21,22,21,0.75), transparent);
  color: #fff;
  font-size: 0.68rem;
  line-height: 1.3;
  padding: 16px 8px 6px;
  text-align: left;
}

/* ---------------- Plano ---------------- */

.plano-card { margin: 24px 0; }
.plano-card__title { font-size: 1.05rem; margin-bottom: 12px; }
.plano-card__preview {
  position: relative;
  display: block;
  width: 100%;
  max-width: 280px;
  border: none;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
  background: var(--arena);
}
.plano-card__preview img { width: 100%; display: block; }
.plano-card__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(21,22,21,0);
  color: #fff;
  opacity: 0;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.plano-card__zoom .icon { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .plano-card__preview:hover .plano-card__zoom { background: rgba(21,22,21,0.45); opacity: 1; }
}
.plano-card__pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--arena);
  color: var(--carbon);
  font-weight: 600;
  transition: background 0.16s var(--ease-out), color 0.16s var(--ease-out);
}
.plano-card__pdf-icon { color: var(--terracota); display: flex; transition: color 0.16s var(--ease-out); }
.plano-card__pdf-icon .icon { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .plano-card__pdf:hover { background: var(--terracota); color: #fff; }
  .plano-card__pdf:hover .plano-card__pdf-icon { color: #fff; }
}

.location-map { margin-top: 34px; }
.location-map h3 { font-size: 1.1rem; margin-bottom: 6px; }
.location-map__address { color: var(--gris-medio); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.location-map__address .icon { width: 16px; height: 16px; vertical-align: -2px; color: var(--terracota); }
.location-map__frame {
  position: relative;
  width: 100%;
  padding-bottom: 45%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.location-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------------- Contacto ---------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-details {
  background: var(--carbon);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}
.contact-details h3 { color: #fff; }
.contact-details p { color: rgba(255,255,255,0.75); }
.contact-details .btn--whatsapp { margin-top: 10px; }
.contact-detail-row { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.contact-detail-row strong { display: block; font-family: var(--font-heading); }

.alert {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.92rem;
}
.alert--success { background: #E7F0E3; color: #4C5C43; border: 1px solid var(--verde-salvia); }
.alert--error { background: #FBEAE5; color: #8C3A22; border: 1px solid var(--terracota); }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--carbon); color: rgba(255,255,255,0.8); margin-top: 60px; }
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 20px 40px;
}
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.site-footer__brand p { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 260px; }
.brand__logo--footer { height: 40px; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.site-footer__col a:hover { color: var(--dorado); }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }
.site-footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }
.site-footer__bottom a { color: rgba(255,255,255,0.5); }
.site-footer__bottom a:hover { color: var(--dorado); }

/* ---------------- Whatsapp flotante ---------------- */

.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------------- Responsive ---------------- */

@media (max-width: 960px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-links { grid-template-columns: 1fr; margin-top: 30px; }
  .property-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .filters form { grid-template-columns: repeat(2, 1fr); }
  .about__layout { grid-template-columns: 1fr; gap: 40px; }
  .about__visual-frame { aspect-ratio: 16/9; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco-calido);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid rgba(55,57,56,0.1);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .quick-links { grid-template-columns: 1fr; }
  .property-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .filters form { grid-template-columns: 1fr; }
  .section { padding: 50px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .location-map__frame { padding-bottom: 75%; }
}
