/* ============================================================
   ALQUIMIA — Design System
   Typography: Fraunces (display) + Hanken Grotesk (body)
   Colors: Claroscuro Editorial — Plum, Lavanda, Oro, Cobre
   Spacing: 4pt scale
   ============================================================ */

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

:root {
  /* --- Color: Claroscuro Editorial --- */
  --plum: #2B1F3D;
  --plum-mid: #3d2e56;
  --plum-light: #4e3f68;
  --lavanda: #C5B3D9;
  --lavanda-soft: #e8e0f0;
  --lavanda-wash: #f3eff8;
  --oro: #D4A44A;
  --oro-soft: #f0e0b8;
  --oro-wash: #faf4e6;
  --cobre: #A56A3E;
  --perla: #F7F5F2;
  --tinta: #0F0A1A;

  /* Neutrals */
  --color-surface: #FDFCFB;
  --color-border: #e4dfe8;
  --color-border-light: #ece8f0;
  --color-text: var(--tinta);
  --color-text-secondary: #5c5068;
  --color-text-tertiary: #8a7e96;

  /* Semantic */
  --color-success: #3a9a5c;
  --color-wa-green: #25D366;
  --color-metro-red: #c0392b;
  --color-bus-blue: #2e6da4;

  /* --- Spacing: 4pt scale --- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* --- Type scale (1.333 — perfect fourth) --- */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.333rem;     /* ~21px */
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.369rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.157rem);
  --text-3xl: clamp(2.5rem, 1.8rem + 3.5vw, 4.209rem);

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* --- Easing (motion) --- */
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);   /* ease-out-quart */
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);

  /* --- Z-index scale --- */
  --z-sticky: 200;
  --z-modal-backdrop: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;
}

/* === BASE === */
html { scroll-behavior: smooth; }

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: var(--perla);
  color: var(--color-text);
  line-height: 1.6;
  font-size: var(--text-base);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 200ms var(--ease-out);
}

a:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 2px;
  border-radius: 2px;
}

select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: -1px;
}

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === SVG GRAIN FILTER (used by hero ::after) === */
/* Inline SVG noise filter — referenced as url(#grain) */

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(15, 10, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0 var(--space-2xl);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-logo img {
  height: 30px;
  max-height: 30px;
  width: auto;
}

.navbar-wordmark {
  font-family: 'Fraunces', serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--lavanda);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar-links a {
  color: rgba(197, 179, 217, 0.82);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.navbar-links a:hover {
  color: var(--lavanda);
}

.navbar-wa {
  background: var(--color-wa-green);
  color: #fff !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-pill);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
}

.navbar-wa:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--lavanda);
  font-size: 24px;
  cursor: pointer;
  padding: var(--space-sm);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--plum);
  padding: 80px var(--space-lg) var(--space-xl);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vid {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-vid.active {
  opacity: 0.45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    175deg,
    rgba(43, 31, 61, 0.50) 0%,
    rgba(43, 31, 61, 0.55) 100%
  );
}

/* Grain texture overlay via SVG filter */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 0 var(--space-lg);
  max-width: 860px;
  width: 100%;
  animation: hero-enter 900ms var(--ease-out) both;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--oro);
  margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--oro);
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #f8f6fa;
  line-height: 1.08;
  margin-bottom: var(--space-base);
  max-width: 18ch;
}

.hero-title em {
  font-style: italic;
  color: var(--oro);
}

.hero-subtitle {
  color: var(--lavanda);
  font-size: var(--text-lg);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  max-width: 42ch;
  line-height: 1.5;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: var(--space-base);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
}

.cta-primary {
  background: var(--oro);
  color: var(--tinta);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-pill);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 150ms var(--ease-out), box-shadow 200ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 164, 74, 0.35);
}

.cta-secondary {
  background: transparent;
  color: var(--lavanda);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-pill);
  border: 1px solid var(--lavanda);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.cta-secondary:hover {
  background: rgba(197, 179, 217, 0.12);
  color: #fff;
}

/* === SEARCH BAR === */
.search-bar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: end;
  flex-wrap: wrap;
  box-shadow:
    0 4px 16px rgba(15, 10, 26, 0.10),
    0 24px 48px rgba(15, 10, 26, 0.06);
  max-width: 920px;
  animation: search-enter 600ms 300ms var(--ease-out) both;
}

@keyframes search-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-field {
  flex: 1;
  min-width: 140px;
}

.search-field label {
  display: block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.search-field select,
.search-field input {
  width: 100%;
  padding: 10px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--perla);
  transition: border-color 200ms var(--ease-out);
}

.search-field select:focus,
.search-field input:focus {
  outline: 2px solid var(--oro);
  outline-offset: -1px;
  border-color: transparent;
}

.search-btn {
  background: var(--plum);
  color: var(--lavanda-soft);
  border: none;
  padding: 11px var(--space-xl);
  border-radius: var(--radius-sm);
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 200ms var(--ease-out), transform 150ms var(--ease-out);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--plum-mid);
  transform: translateY(-1px);
}

.search-btn:active {
  transform: translateY(0);
}

/* === SECTIONS === */
.section {
  padding: var(--space-4xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cobre);
  margin-bottom: var(--space-md);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--cobre);
}

.section-header h2 {
  font-family: 'Fraunces', serif;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--plum);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  max-width: 50ch;
}

/* === PROPERTY CARDS === */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.property-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
  cursor: pointer;
  animation: card-enter 500ms var(--ease-out) both;
}

.property-card:nth-child(1) { animation-delay: 0ms; }
.property-card:nth-child(2) { animation-delay: 100ms; }
.property-card:nth-child(3) { animation-delay: 200ms; }
.property-card:nth-child(4) { animation-delay: 300ms; }
.property-card:nth-child(5) { animation-delay: 400ms; }
.property-card:nth-child(6) { animation-delay: 500ms; }

@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(43, 31, 61, 0.10);
}

.card-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.property-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--oro);
  color: var(--tinta);
  font-size: 10px;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-op {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--plum);
  color: var(--lavanda-soft);
  font-size: 10px;
  font-weight: 500;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.card-body {
  padding: var(--space-lg);
}

.card-price {
  font-family: 'Fraunces', serif;
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--plum);
  margin-bottom: var(--space-xs);
}

.card-address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-base);
  line-height: 1.4;
}

.card-stats {
  display: flex;
  gap: var(--space-base);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border-light);
}

.card-stat {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.card-stat span {
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* === FICHA (Property Detail) === */
.ficha-wrapper {
  max-width: 800px;
  margin: 96px auto var(--space-2xl);
  padding: 0 var(--space-lg);
}

.ficha-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.ficha-header {
  background: var(--plum);
}

.ficha-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-base);
}

.ficha-header .logo-img {
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  padding: var(--space-xs) var(--space-sm);
}

.ficha-hero-wrap {
  position: relative;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  cursor: pointer;
}

.ficha-hero-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.ficha-hero-wrap:hover img {
  transform: scale(1.02);
}

/* --- Price bar (below hero) --- */
.ficha-price-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: var(--plum);
  gap: var(--space-base);
}

.ficha-price-main {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem);
  font-weight: 400;
  color: var(--oro);
  line-height: 1;
}

.ficha-price-detail {
  font-size: var(--text-sm);
  color: var(--lavanda);
  margin-top: var(--space-xs);
}

.ficha-op-badge {
  background: var(--oro);
  color: var(--tinta);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-sm) var(--space-base);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ficha-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--oro);
  color: var(--tinta);
  font-size: 10px;
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-top: 3px;
}

.thumb-grid img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 200ms var(--ease-out);
}

.thumb-grid img:hover { opacity: 1; }

/* --- Ficha body --- */
.ficha-body {
  padding: var(--space-xl) var(--space-xl);
}

.ficha-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.75rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.ficha-address {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.ficha-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.ficha-stat-box {
  background: var(--lavanda-wash);
  border-radius: var(--radius-sm);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.ficha-stat-val {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--plum);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ficha-stat-lbl {
  font-size: 10px;
  color: var(--color-text-tertiary);
  margin-top: var(--space-xs);
  letter-spacing: 0.02em;
}

/* Highlight — NO border-left stripe (banned by impeccable) */
.ficha-highlight {
  background: var(--oro-wash);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.ficha-highlight-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobre);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.ficha-highlight-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.ficha-section-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobre);
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
  margin-top: var(--space-sm);
}

.ficha-desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
  max-width: 65ch;
}

.ficha-room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.ficha-room-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ficha-room-item img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  transition: transform 300ms var(--ease-out);
}

.ficha-room-item:hover img { transform: scale(1.06); }

.ficha-room-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 10, 26, 0.60);
  color: var(--lavanda-soft);
  font-size: 10px;
  padding: var(--space-xs) var(--space-sm);
  text-align: center;
  font-weight: 500;
}

.ficha-chars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.ficha-char-item {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ficha-char-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oro);
  flex-shrink: 0;
}

.ficha-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.ficha-pill {
  background: var(--lavanda-wash);
  color: var(--plum);
  font-size: var(--text-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-pill);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.ficha-pill-gold {
  background: var(--oro-wash);
  color: var(--cobre);
}

.ficha-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.ficha-table tr:nth-child(even) { background: var(--perla); }

.ficha-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.ficha-table td:first-child {
  color: var(--color-text-tertiary);
  width: 44%;
}

.ficha-table td:last-child {
  color: var(--color-text);
  font-weight: 500;
}

.ficha-servicios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.ficha-serv-item {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.ficha-serv-icon {
  font-size: 16px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.ficha-metro-list {
  margin-bottom: var(--space-lg);
}

.ficha-metro-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.ficha-metro-badge {
  background: var(--color-metro-red);
  color: #faf0ee;
  font-size: 9px;
  padding: 3px var(--space-sm);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ficha-bus-badge {
  background: var(--color-bus-blue);
  color: #eef3f8;
  font-size: 9px;
  padding: 3px var(--space-sm);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ficha-dist {
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

/* === FICHA FOOTER === */
.ficha-footer {
  background: var(--plum);
  padding: var(--space-xl);
  text-align: center;
}

.ficha-agent-name {
  font-family: 'Fraunces', serif;
  font-size: var(--text-lg);
  font-weight: 400;
  color: #f8f6fa;
  margin-bottom: var(--space-xs);
}

.ficha-agent-contact {
  font-size: var(--text-xs);
  color: var(--lavanda);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.ficha-cta-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.btn-wa {
  background: var(--color-wa-green);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  transition: transform 150ms var(--ease-out), opacity 150ms var(--ease-out);
}

.btn-wa:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn-call {
  background: var(--plum-light);
  color: var(--lavanda-soft);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  border: 1px solid var(--lavanda);
  transition: background 200ms var(--ease-out);
}

.btn-call:hover {
  background: var(--plum-mid);
}

.ficha-footer-brand {
  font-size: 10px;
  color: rgba(197, 179, 217, 0.45);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* === SITE FOOTER === */
.site-footer {
  background: var(--tinta);
  color: var(--lavanda);
  padding: var(--space-3xl) var(--space-lg) var(--space-lg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: var(--space-base);
  opacity: 0.8;
}

.footer-location h4,
.footer-services h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--oro);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer-location p {
  font-size: var(--text-sm);
  color: rgba(197, 179, 217, 0.5);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.footer-brand h3 {
  font-family: 'Fraunces', serif;
  font-size: var(--text-lg);
  font-weight: 500;
  color: #f8f6fa;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--lavanda);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.footer-services h4 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cobre);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer-services ul {
  list-style: none;
  padding: 0;
}

.footer-services li {
  margin-bottom: var(--space-sm);
}

.footer-services a {
  font-size: var(--text-sm);
  color: var(--lavanda);
  transition: color 200ms var(--ease-out);
}

.footer-services a:hover {
  color: var(--oro);
}

.footer-copy {
  max-width: 1200px;
  margin: var(--space-xl) auto 0;
  padding-top: var(--space-base);
  border-top: 1px solid rgba(197, 179, 217, 0.15);
  font-size: var(--text-xs);
  color: rgba(197, 179, 217, 0.45);
  text-align: center;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 26, 0.94);
  z-index: var(--z-modal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--lavanda);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(248, 246, 250, 0.10);
  border: none;
  color: var(--lavanda-soft);
  font-size: 28px;
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 200ms var(--ease-out);
}

.lb-btn:hover { background: rgba(248, 246, 250, 0.20); }
.lb-btn:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

.lb-prev { left: var(--space-md); }
.lb-next { right: var(--space-md); }

.lb-close {
  position: absolute;
  top: var(--space-base);
  right: var(--space-lg);
  background: none;
  border: none;
  color: var(--lavanda);
  font-size: 28px;
  cursor: pointer;
  padding: var(--space-sm);
}

.lb-close:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* === NO RESULTS === */
.no-results {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
}

.no-results a {
  color: var(--oro);
  font-weight: 500;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .menu-toggle { display: block; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(15, 10, 26, 0.98);
    backdrop-filter: blur(14px);
    padding: var(--space-lg);
    gap: var(--space-base);
  }

  /* Hero: auto height, content fits naturally */
  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 96px var(--space-base) var(--space-xl);
  }
  .hero-content {
    text-align: left;
    padding: 0 var(--space-sm);
  }
  .hero-title {
    max-width: 100%;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: var(--space-sm);
  }
  .hero-subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-lg);
  }
  .hero-ctas {
    margin-bottom: var(--space-lg);
  }

  /* Search bar: 2-column grid on mobile */
  .search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    padding: var(--space-base);
  }
  .search-field { min-width: 0; }
  .search-btn {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-md);
  }

  .properties-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }

  .ficha-wrapper { margin-top: 80px; padding: 0 var(--space-md); }
  .ficha-body { padding: var(--space-lg) var(--space-base); }
  .ficha-stats { grid-template-columns: repeat(3, 1fr); }
  .ficha-room-grid { grid-template-columns: repeat(2, 1fr); }
  .ficha-chars { grid-template-columns: 1fr; }
  .ficha-servicios { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(3, 1fr); }
  .ficha-price-bar { flex-wrap: wrap; padding: var(--space-base) var(--space-lg); }
}

@media (pointer: coarse) {
  .search-field select,
  .search-field input {
    padding: var(--space-md) var(--space-md);
    font-size: var(--text-base);
  }
  .search-btn { padding: var(--space-md) var(--space-lg); }
  .navbar-wa { padding: var(--space-md) var(--space-lg); }
}

/* ============================================================
   LA VITRINA — Property Detail Page
   ============================================================ */

/* Scroll reveal */
.vt-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.25, 1, 0.5, 1), transform 600ms cubic-bezier(0.25, 1, 0.5, 1);
}
.vt-reveal.vt-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .vt-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- 1. HERO FULL-BLEED --- */
.vt-hero {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  max-height: 700px;
  overflow: hidden;
  margin-top: 64px;
}

.vt-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vt-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,10,26,0.8) 0%, rgba(15,10,26,0.15) 50%, transparent 100%);
}

.vt-hero-content {
  position: absolute;
  bottom: 48px;
  left: max(48px, 6vw);
  right: 40%;
  z-index: 2;
}

.vt-hero-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--oro);
  margin-bottom: 12px;
  display: block;
}

.vt-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem);
  font-weight: 400;
  color: var(--perla);
  line-height: 1.1;
  margin-bottom: 8px;
}

.vt-hero-address {
  font-size: 0.9375rem;
  color: var(--lavanda);
  opacity: 0.7;
}

.vt-hero-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--oro);
  color: var(--tinta);
  font-size: 10px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}

/* --- 2. PRICE RIBBON --- */
.vt-ribbon {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
}

.vt-ribbon-inner {
  max-width: 680px;
  margin: 0 auto;
}

.vt-price {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.2rem, 1.8rem + 2.5vw, 3.8rem);
  font-weight: 400;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 6px;
}

.vt-price-sub {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.vt-stats-line {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.vt-stat-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--oro);
  opacity: 0.4;
  vertical-align: middle;
}

/* --- 3. EDITORIAL ZONE --- */
.vt-editorial {
  padding: 0 var(--space-lg) var(--space-3xl);
}

.vt-editorial-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}

.vt-content {
  min-width: 0;
}

.vt-pullquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 400;
  color: var(--plum);
  line-height: 1.5;
  margin-bottom: var(--space-xl);
  max-width: 55ch;
  padding: 0;
  border: 0;
}

.vt-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  max-width: 65ch;
}

.vt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vt-tag {
  background: var(--lavanda-wash);
  color: var(--plum);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 500;
}

.vt-tag-gold {
  background: var(--oro-wash);
  color: var(--cobre);
}

/* Agent sidebar (sticky) */
.vt-agent-sidebar {
  position: sticky;
  top: 80px;
}

.vt-agent-card {
  background: var(--plum);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.vt-agent-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--oro);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.vt-agent-name {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--perla);
  margin-bottom: var(--space-sm);
}

.vt-agent-info {
  font-size: 0.8125rem;
  color: var(--lavanda);
  opacity: 0.6;
  margin-bottom: 2px;
}

.vt-agent-wa {
  display: block;
  background: #25D366;
  color: #fff;
  padding: 13px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  margin-top: var(--space-lg);
  transition: transform 150ms cubic-bezier(0.25,1,0.5,1);
}
.vt-agent-wa:hover { transform: translateY(-1px); }

.vt-agent-call {
  display: block;
  background: var(--plum-mid);
  color: var(--lavanda);
  padding: 12px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  margin-top: var(--space-sm);
  border: 1px solid var(--plum-light);
  transition: background 200ms;
}
.vt-agent-call:hover { background: var(--plum-light); }

/* --- 4. PHOTO STRIP --- */
.vt-photos-section {
  padding: var(--space-2xl) 0;
  overflow: hidden;
}

.vt-photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(48px, 6vw);
  margin-bottom: var(--space-lg);
}

.vt-section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cobre);
}

.vt-photos-count {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

.vt-photo-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(48px, 6vw);
  scrollbar-width: thin;
  scrollbar-color: var(--lavanda-soft) transparent;
}

.vt-photo-strip::-webkit-scrollbar { height: 6px; }
.vt-photo-strip::-webkit-scrollbar-track { background: transparent; }
.vt-photo-strip::-webkit-scrollbar-thumb { background: var(--lavanda-soft); border-radius: 3px; }

.vt-photo-item {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.vt-photo-item img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.25,1,0.5,1);
}

.vt-photo-item:hover img { transform: scale(1.04); }

.vt-photo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(15,10,26,0.7) 0%, transparent 100%);
  color: var(--perla);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* --- 5. DETAILS (collapsible) --- */
.vt-details {
  padding: var(--space-2xl) var(--space-lg);
}

.vt-details-inner {
  max-width: 720px;
  margin: 0 auto;
}

.vt-detail-group {
  border-bottom: 1px solid var(--color-border-light);
}

.vt-detail-summary {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--plum);
  padding: var(--space-lg) 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vt-detail-summary::after {
  content: '+';
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--cobre);
  font-weight: 300;
  transition: transform 300ms cubic-bezier(0.25,1,0.5,1);
}

.vt-detail-group[open] > .vt-detail-summary::after {
  transform: rotate(45deg);
}

.vt-detail-summary::-webkit-details-marker { display: none; }

.vt-detail-body {
  padding: 0 0 var(--space-xl);
}

.vt-chars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.vt-char-item {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vt-char-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--oro);
  flex-shrink: 0;
}

.vt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.vt-table tr:nth-child(even) { background: var(--perla); }

.vt-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
}

.vt-table td:first-child { color: var(--color-text-tertiary); width: 44%; }
.vt-table td:last-child { color: var(--color-text); font-weight: 500; }

.vt-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.vt-serv-item {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vt-serv-icon {
  font-size: 1rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

/* --- 6. TRANSPORT BAND --- */
.vt-transport {
  background: var(--plum);
  padding: var(--space-2xl) var(--space-lg);
}

.vt-transport-inner {
  max-width: 720px;
  margin: 0 auto;
}

.vt-transport-list {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vt-transport-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(197,179,217,0.1);
  font-size: 0.875rem;
  color: var(--lavanda);
}

.vt-transport-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vt-metro { background: #9e2a2a; color: #fff; }
.vt-bus { background: #2a5a9e; color: #fff; }

.vt-transport-name { flex: 1; }

.vt-transport-dist {
  font-size: 0.75rem;
  color: rgba(197,179,217,0.5);
  font-variant-numeric: tabular-nums;
}

/* --- 7. FINAL CTA --- */
.vt-final-cta {
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  background: var(--tinta);
}

.vt-final-inner {
  max-width: 480px;
  margin: 0 auto;
}

.vt-final-agent {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  font-weight: 400;
  color: var(--perla);
  margin: var(--space-md) 0 var(--space-xl);
}

.vt-final-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.vt-final-brand {
  font-family: 'Fraunces', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(197,179,217,0.25);
  text-transform: uppercase;
}

/* --- VITRINA RESPONSIVE --- */
@media (max-width: 768px) {
  .vt-hero { height: 50vh; min-height: 320px; margin-top: 56px; }
  .vt-hero-content { left: 24px; right: 24px; bottom: 32px; }
  .vt-hero-title { font-size: clamp(1.3rem, 4vw, 1.8rem); }

  .vt-ribbon { padding: var(--space-2xl) var(--space-lg); }
  .vt-price { font-size: clamp(1.8rem, 5vw, 2.5rem); }

  .vt-editorial-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .vt-agent-sidebar {
    position: static;
    order: -1;
  }

  .vt-agent-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    text-align: left;
    padding: var(--space-lg);
  }
  .vt-agent-eyebrow { grid-column: 1 / -1; }
  .vt-agent-name { grid-column: 1 / -1; }
  .vt-agent-info { grid-column: 1 / -1; }

  .vt-photo-item { width: 220px; }
  .vt-photo-item img { height: 280px; }

  .vt-chars, .vt-services { grid-template-columns: 1fr; }

  .vt-final-btns { flex-direction: column; }
}
