/* =============================================
   REDAMEN INMUEBLES — Luxury Design System
   Stitch MCP: assets/11957171559196107208
   ============================================= */

:root {
  /* ── Color Tokens — Stitch Luxury Palette ── */
  --accent: #C9A84C;
  /* Oro cálido premium */
  --accent-hover: #B8943C;
  --accent-deep: #A07830;
  /* Dorado profundo para texto */
  --accent-light: rgba(201, 168, 76, 0.12);
  --accent-glow: rgba(201, 168, 76, 0.28);
  --accent-border: rgba(201, 168, 76, 0.30);

  --navy: #1B2A4A;
  /* Azul marino profundo */
  --navy-mid: #243256;
  --navy-muted: #5A6A85;
  /* Texto muted sobre marfil */

  --bg-primary: #F5F0E8;
  /* Marfil cálido — fondo página */
  --bg-surface: #EDE8DF;
  /* Superficie más definida */
  --bg-card: #FFFFFF;
  --bg-navy-dark: #141E38;
  /* Para footer y secciones oscuras */

  --text-primary: #1B2A4A;
  /* Navy como color de texto principal */
  --text-muted: #5A6A85;
  --text-light: rgba(245, 240, 232, 0.90);
  /* Texto claro sobre navy */

  --teal: #2E5266;
  /* Acento terciario */
  --emerald: #059669;
  --ruby: #C0392B;

  --border-subtle: rgba(27, 42, 74, 0.10);
  --border-warm: rgba(27, 42, 74, 0.12);
  --border-gold: rgba(201, 168, 76, 0.28);
  --border-focus: rgba(201, 168, 76, 0.55);

  /* ── Spacing Scale ── */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* ── Border Radius ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* ── Elevation — Warm Diffuse Shadows ── */
  --shadow-subtle: 0 2px 12px rgba(27, 42, 74, 0.07), 0 1px 3px rgba(27, 42, 74, 0.05);
  --shadow-card: 0 4px 24px rgba(27, 42, 74, 0.09), 0 1px 4px rgba(27, 42, 74, 0.06);
  --shadow-hover: 0 16px 48px rgba(27, 42, 74, 0.13), 0 4px 12px rgba(201, 168, 76, 0.12);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.22);
  --shadow-nav: 0 1px 8px rgba(27, 42, 74, 0.08);

  /* ── Transitions ── */
  --transition-smooth: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Imágenes responsivas — evita colapso en pantallas pequeñas (Safari iOS) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   LAYOUT
   ============================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.section-padding {
  padding-block: var(--space-xl);
}

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

.sub-heading {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-deep);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  margin-bottom: 0.5rem;
}

h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 1.8rem + 2.5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

h2 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  letter-spacing: -0.025em;
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.section-desc {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-nav);
  padding-block: var(--space-sm);
  transition: background-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--navy);
  text-decoration: none;
  transition: opacity var(--transition-smooth);
}

.brand-logo-img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-logo span {
  color: var(--accent);
}

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

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-smooth);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

.nav-links a:not(.btn):hover {
  color: var(--navy);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition:
    background-color var(--transition-smooth),
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth),
    border-color var(--transition-smooth);
  letter-spacing: 0.01em;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary — Gold Gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-deep) 100%);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Secondary — Outlined navy */
.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-warm);
}

.btn-secondary:hover {
  background-color: var(--navy);
  color: var(--bg-primary);
  border-color: var(--navy);
}

/* Hero secondary — Glassmorphism */
.hero-section .btn-secondary {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}

.hero-section .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.btn-full {
  width: 100%;
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 540px;
  padding-block: var(--space-xl);
  background-image:
    linear-gradient(160deg,
      rgba(17, 26, 60, 0.80) 0%,
      rgba(11, 19, 43, 0.88) 100%),
    url('../assets/portada/portada.jpg');
  background-size: cover;
  background-position: center center, center calc(40% + var(--hero-bg-y, 0px));
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* evita scroll lateral por parallax */
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.hero-text {
  max-width: 720px;
}

.hero-section h1 {
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.30);
}

.hero-section .hero-text p {
  color: rgba(245, 240, 232, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

/* Hero badge */
.badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(201, 168, 76, 0.15);
  color: #e8d08a;
  border: 1px solid rgba(201, 168, 76, 0.40);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: var(--space-sm);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

/* ── Hero Entrance Cascading Animations ── */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate-1 {
  animation: heroEntrance 0.8s ease-out 0.1s both;
}

.hero-animate-2 {
  animation: heroEntrance 0.8s ease-out 0.3s both;
}

.hero-animate-3 {
  animation: heroEntrance 0.8s ease-out 0.5s both;
}

.hero-animate-4 {
  animation: heroEntrance 0.8s ease-out 0.7s both;
}

/* =============================================
   CHIP BAR — Filtros Reactivos
   ============================================= */

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition-smooth),
    border-color var(--transition-smooth),
    color var(--transition-smooth),
    box-shadow var(--transition-smooth),
    transform var(--transition-smooth);
  white-space: nowrap;
  user-select: none;
  box-shadow: var(--shadow-subtle);
}

.chip:hover {
  border-color: var(--accent-border);
  color: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--accent-light), var(--shadow-subtle);
}

.chip--active,
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: transparent;
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.chip-badge {
  padding: 0.05rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(27, 42, 74, 0.15);
  color: inherit;
}

.chip:not(.chip--active) .chip-badge {
  background: var(--bg-surface);
  color: var(--text-muted);
}

.chip-sep {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

.chip-result-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

/* =============================================
   PROPERTY CARDS GRID
   ============================================= */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* =============================================
   PROPERTY CARD — Luxury Edition
   ============================================= */

.property-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition:
    opacity 0.22s ease,
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s ease,
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
}

/* Filter animation states */
.property-card.is-filtered-out {
  opacity: 0;
  transform: scale(0.93);
  pointer-events: none;
}

.property-card.is-hidden {
  display: none;
}

/* ── Card Image Wrapper — Blueprint grid ── */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  background-color: var(--bg-surface);
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-header-img,
.card-image-wrapper>img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

/* Tarjeta con foto real */
.card-img--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-img--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(27, 42, 74, 0.32) 100%);
  pointer-events: none;
}

.card-photo-count {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(27, 42, 74, 0.70);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  z-index: 2;
}

/* ── Blueprint (sin foto) ── */
.card-blueprint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  pointer-events: none;
  user-select: none;
}

.card-monogram {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
  opacity: 0.28;
}

.card-blueprint-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  padding-inline: 0.5rem;
  text-transform: uppercase;
  opacity: 0.70;
}

.placeholder-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 0.5rem;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  background: linear-gradient(135deg, #ede8df 0%, #e5dfd6 100%);
}

/* Variantes de color por tipo de inmueble */
.card-img--depa {
  background-color: #e8e2d9;
}

.card-img--depa .card-monogram {
  color: var(--navy);
}

.card-img--casa {
  background-color: #e0e9e3;
}

.card-img--casa .card-monogram {
  color: #16a34a;
  font-size: 2.6rem;
}

.card-img--oficina {
  background-color: #e5e0ef;
}

.card-img--oficina .card-monogram {
  color: #7c3aed;
  font-size: 2.9rem;
}

.card-img--esquina {
  background-color: #ede8d8;
}

.card-img--esquina .card-monogram {
  color: var(--accent-deep);
  font-size: 1.6rem;
  letter-spacing: -1px;
}

/* ── Tag Status Badges — Pill style rediseñado ── */
.tag-status {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.22rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.12);
  z-index: 2;
}

/* Exclusivo — Gold pill */
.property-card[data-status="Exclusivo"] .tag-status {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.95) 0%, rgba(184, 148, 60, 0.95) 100%);
  color: var(--navy);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
}

/* Disponible — Emerald pill */
.tag-status--disponible,
.property-card[data-status="Disponible"] .tag-status {
  background: rgba(5, 150, 105, 0.92) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Moderno — Teal pill */
.tag-status--moderno,
.property-card[data-status="Moderno"] .tag-status {
  background: rgba(46, 82, 102, 0.92) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* Negociable — Green pill */
.property-card[data-status="Negociable"] .tag-status {
  background: rgba(5, 150, 105, 0.10);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.28);
}

/* Oportunidad — Amber pill */
.property-card[data-status="Oportunidad"] .tag-status {
  background: rgba(180, 83, 9, 0.09);
  color: #92400e;
  border-color: rgba(180, 83, 9, 0.22);
}

/* Inversión — Purple pill */
.property-card[data-status="Inversión"] .tag-status {
  background: rgba(124, 58, 237, 0.09);
  color: #5b21b6;
  border-color: rgba(124, 58, 237, 0.22);
}

/* ── WhatsApp botón rápido en tarjeta ── */
.btn-card-wa {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem;
  background: rgba(22, 163, 74, 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 9999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition:
    background var(--transition-smooth),
    transform var(--transition-smooth),
    box-shadow var(--transition-smooth);
  z-index: 6;
}

.btn-card-wa:hover {
  background: rgba(22, 163, 74, 1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.40);
}

.btn-card-wa:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* ── Card Body ── */
.card-body {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Mini-tabs (estructura) */
.card-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 0.75rem;
}

.card-tab {
  flex: 1;
  padding: 0.28rem 0.4rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-smooth), color var(--transition-smooth);
}

.card-tab--active,
.card-tab[aria-selected="true"] {
  background: var(--bg-card);
  color: var(--accent-deep);
  box-shadow: 0 1px 4px rgba(27, 42, 74, 0.10);
}

/* Panels */
.card-panel {
  display: none;
  flex-direction: column;
  flex: 1;
}

.card-panel--active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: cardPanelIn 0.18s ease;
}

@keyframes cardPanelIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Precio */
.price {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.price--consultar {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 700;
}

.price-note {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: middle;
  font-family: 'Inter', sans-serif;
}

/* Card h3 */
.card-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.22rem;
  color: var(--navy);
  line-height: 1.35;
}

/* Localización */
.location {
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  line-height: 1.4;
}

/* Specs row */
.specs {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-block: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  justify-content: center;
  padding-inline: 0.25rem;
  white-space: nowrap;
  font-size: 0.79rem;
}

.spec-icon {
  font-size: 0.78rem;
  opacity: 0.65;
  line-height: 1;
}

.spec-sep {
  width: 1px;
  height: 20px;
  background-color: var(--border-subtle);
  flex-shrink: 0;
  align-self: center;
}

/* Features / Características */
.card-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  margin-top: 0.25rem;
}

.card-features-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.75;
  line-height: 1;
}

/* Finish chips */
.card-finish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.finish-chip {
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.1px;
  white-space: nowrap;
  transition: background var(--transition-smooth), color var(--transition-smooth), border-color var(--transition-smooth);
}

.property-card:hover .finish-chip {
  background: var(--accent-light);
  color: var(--accent-deep);
  border-color: var(--accent-border);
}

/* CTA Footer de tarjeta */
.card-cta-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-link {
  color: var(--accent-deep);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color var(--transition-smooth), gap var(--transition-smooth);
}

.btn-link:hover {
  color: var(--accent);
  gap: 0.45rem;
}

.btn-quickview {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.btn-quickview:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* =============================================
   FINANCIAL PANEL
   ============================================= */

.fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  flex: 1;
}

.fin-metric {
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.fin-metric--note {
  grid-column: 1 / -1;
}

.fin-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fin-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.2;
}

.fin-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.73rem;
  font-weight: 700;
}

.fin-badge--inmediata {
  background: rgba(5, 150, 105, 0.10);
  color: #059669;
}

.fin-badge--yield {
  background: rgba(201, 168, 76, 0.12);
  color: var(--accent-deep);
}

.fin-note {
  font-size: 0.69rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =============================================
   FORM ELEMENTS
   ============================================= */

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

select,
input {
  background-color: var(--bg-card);
  border: 1px solid var(--border-warm);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

select:focus,
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Search widget */
.search-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: 0 8px 32px rgba(27, 42, 74, 0.12), 0 2px 8px rgba(27, 42, 74, 0.08);
}

.tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-smooth);
  font-family: inherit;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--navy);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .filter-grid {
    grid-template-columns: 1fr 1fr auto;
    align-items: flex-end;
  }
}

/* =============================================
   ZONE HUB — Comparador de Zonas
   ============================================= */

.zone-hub-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.zone-hub {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--space-lg);
  box-shadow: var(--shadow-card);
}

/* Switch tabs del hub */
.zone-hub-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: thin;
  background-color: var(--bg-surface);
}

.zone-hub-tab {
  flex: 1;
  min-width: max-content;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 1rem 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-smooth), background var(--transition-smooth), border-color var(--transition-smooth);
}

.zone-hub-tab:hover {
  color: var(--navy);
  background: rgba(201, 168, 76, 0.06);
}

.zone-hub-tab--active,
.zone-hub-tab[aria-selected="true"] {
  color: var(--navy);
  border-bottom-color: var(--accent);
  background: rgba(201, 168, 76, 0.08);
  font-weight: 700;
}

.zhub-icon {
  font-size: 1rem;
  line-height: 1;
}

/* Body y paneles */
.zone-hub-body {
  padding: var(--space-lg);
  background: var(--bg-card);
}

.zone-hub-panel {
  display: none;
}

.zone-hub-panel--active {
  display: block;
  animation: cardPanelIn 0.25s ease;
}

.zhpanel-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.zhpanel-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.zhpanel-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.zhstat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color var(--transition-smooth);
}

.zhstat:hover {
  border-color: var(--accent-border);
}

.zhstat-l {
  font-size: 0.67rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
}

.zhstat-v {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

/* Botón de zona */
.btn-zone-filter {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border: none;
  color: var(--navy);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-smooth);
  margin-top: auto;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-zone-filter:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-zone-filter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Barras de progreso */
.zhpanel-col--metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.zh-bar-group {
  margin-bottom: var(--space-md);
}

.zh-bar-group:last-child {
  margin-bottom: 0;
}

.zh-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.zh-bar-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.zh-bar-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-primary);
}

.zh-bar-value--green {
  color: var(--emerald);
}

.zh-track {
  height: 9px;
  background: var(--bg-surface);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.zh-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.zh-fill--plusvalia {
  background: linear-gradient(90deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.zh-fill--price {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 0 8px var(--accent-glow);
}

.zh-fill--rating {
  background: linear-gradient(90deg, #a78bfa 0%, #8b5cf6 100%);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.35);
}

/* Legacy zone cards */
.zones-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(201, 168, 76, 0.04) 50%, var(--bg-primary) 100%);
}

.zones-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.zone-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.zone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(201, 168, 76, 0.04), transparent 65%);
  pointer-events: none;
}

.zone-card--featured {
  border-color: var(--accent-border);
  background: linear-gradient(145deg, #fdf8ee 0%, #f8f0dc 100%);
}

.zone-card--featured::before {
  background: radial-gradient(circle at top left, rgba(201, 168, 76, 0.08), transparent 65%);
}

.zone-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-hover);
}

.zone-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.zone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.zone-icon {
  font-size: 2rem;
  line-height: 1;
}

.zone-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.zone-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
}

.zone-tag--growth {
  background-color: rgba(52, 211, 153, 0.12);
  color: #059669;
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.zone-tag--hot {
  background-color: var(--accent-light);
  color: var(--accent-deep);
  border: 1px solid var(--accent-border);
}

.zone-tag--new {
  background-color: rgba(46, 82, 102, 0.10);
  color: var(--teal);
  border: 1px solid rgba(46, 82, 102, 0.22);
}

.zone-name {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--navy);
}

.zone-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.zone-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.zone-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.zone-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.zone-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* =============================================
   SOBRE NOSOTROS
   ============================================= */

.about-section {
  background-color: var(--bg-primary);
}

.about-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.about-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 580px;
  margin-inline: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.about-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Accent top bar */
.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, #E8C872 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.about-card:hover::before {
  opacity: 1;
}

/* Featured card — Navy gradient */
.about-card--featured {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-color: rgba(201, 168, 76, 0.20);
  color: var(--text-light);
}

.about-card--featured::before {
  background: linear-gradient(90deg, var(--accent) 0%, #E8C872 100%);
  opacity: 1;
}

.about-card--featured .about-card-title {
  color: #ffffff;
}

.about-card--featured .about-card-text {
  color: rgba(245, 240, 232, 0.80);
}

.about-card--featured:hover {
  box-shadow: 0 12px 40px rgba(27, 42, 74, 0.30), 0 4px 12px var(--accent-glow);
}

.about-card--featured::before {
  opacity: 1;
}

.about-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.about-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  margin: 0;
}

.about-card-text {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.about-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.about-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 500;
}

.about-card-bullets li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.38rem;
}

.about-quote {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  font-weight: 800;
  font-style: italic;
  color: var(--accent);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin: 0.25rem 0;
  line-height: 1.4;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

.about-card--featured .about-quote {
  color: #E8C872;
  border-left-color: #E8C872;
}

.about-division {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-smooth);
}

.about-division:hover {
  border-color: var(--accent-border);
}

.about-division p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.about-division-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  background-color: var(--accent-light);
  color: var(--accent-deep);
  border: 1px solid var(--accent-border);
  width: fit-content;
  transition: background-color var(--transition-smooth);
}

.about-division-badge--green {
  background-color: rgba(5, 150, 105, 0.09);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.22);
}

/* =============================================
   CONTACTO
   ============================================= */

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 860px) {
  .contact-container {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.contact-text .sub-heading {
  color: var(--accent-deep);
}

.lead-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-card);
}

.feedback-msg {
  font-size: 0.85rem;
  color: var(--emerald);
  min-height: 1.2rem;
}

/* =============================================
   FOOTER — Navy Premium
   ============================================= */

.footer {
  background-color: var(--bg-navy-dark);
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  padding-block: var(--space-lg);
  font-size: 0.84rem;
  color: rgba(245, 240, 232, 0.55);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer .legal-text {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.38);
}

/* =============================================
   MODAL QUICK VIEW
   ============================================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(11, 19, 43, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop:not([hidden]) {
  opacity: 1;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(27, 42, 74, 0.22), 0 4px 16px rgba(201, 168, 76, 0.08);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .modal-panel {
    grid-template-columns: 280px 1fr;
    max-height: 85vh;
    overflow-y: visible;
  }
}

.modal-backdrop:not([hidden]) .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(27, 42, 74, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  z-index: 10;
}

.modal-close:hover {
  background-color: rgba(27, 42, 74, 0.14);
  color: var(--navy);
}

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

.modal-gallery {
  position: relative;
  min-height: 260px;
  background-color: var(--bg-navy-dark);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .modal-gallery {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    min-height: auto;
  }
}

/* ── Carrusel ── */
.modal-carousel {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.carousel-track-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 220px;
  max-height: 340px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-smooth);
  z-index: 5;
}

.carousel-arrow:hover {
  background: rgba(201, 168, 76, 0.30);
  border-color: rgba(201, 168, 76, 0.50);
}

.carousel-arrow--prev {
  left: 10px;
}

.carousel-arrow--next {
  right: 10px;
}

.carousel-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(27, 42, 74, 0.70);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  z-index: 5;
}

/* ── Miniaturas ── */
.carousel-thumbs {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  overflow-x: auto;
  background: rgba(27, 42, 74, 0.88);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  flex-shrink: 0;
}

.carousel-thumb {
  flex: 0 0 48px;
  width: 48px;
  height: 38px;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: none;
  opacity: 0.50;
  transition: opacity 0.2s, border-color 0.2s;
}

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

.carousel-thumb--active {
  border-color: var(--accent);
  opacity: 1;
}

.carousel-thumb:hover {
  opacity: 0.85;
}

.modal-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy-mid) 0%, var(--bg-navy-dark) 100%);
  color: rgba(245, 240, 232, 0.40);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  padding: var(--space-sm);
}

.modal-gallery-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
}

.modal-status-tag {
  background-color: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(27, 42, 74, 0.12);
}

.modal-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow-y: auto;
  max-height: 85vh;
}

@media (min-width: 640px) {
  .modal-content {
    max-height: 85vh;
  }
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-right: 2rem;
}

.modal-code {
  font-size: 0.72rem;
  color: var(--accent-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.modal-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--navy);
}

.modal-location {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.modal-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.modal-price-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-price-label {
  font-size: 0.70rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
}

.modal-price-value {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.modal-price-m2 {
  font-size: 1rem;
  color: var(--emerald);
}

.modal-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-spec-pill {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.modal-finishes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-finishes-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  font-weight: 700;
}

.modal-finishes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-finishes-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--navy);
}

.modal-finishes-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  flex-shrink: 0;
}

.btn-modal-wa {
  gap: 0.5rem;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #fff;
  font-weight: 700;
  margin-top: auto;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.30);
}

.btn-modal-wa:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(22, 163, 74, 0.40);
}

.btn-modal-wa:focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 2px;
}

/* =============================================
   HAMBURGER BUTTON — estructura base
   (visible solo en mobile, oculto en desktop)
   ============================================= */

.nav-hamburger {
  display: none;
  /* oculto por defecto en desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border-warm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-hamburger:hover {
  background: var(--accent-light);
  border-color: var(--accent-border);
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.20s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Estado "X" cuando el menú está abierto */
.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================
   RESPONSIVE — Mobile First (<= 767px)
   ============================================= */

@media (max-width: 767px) {

  /* ── 0. PREVENCIÓN DE SCROLL HORIZONTAL ── */
  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding-inline: 16px;
  }

  /* ── 1. NAVBAR MÓVIL ── */
  .nav-content {
    position: relative;
    flex-wrap: wrap;
    /* permite que el nav drawer caiga debajo */
    align-items: center;
    gap: 0;
  }

  .brand-logo {
    font-size: 1.1rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Mostrar hamburguesa en móvil */
  .nav-hamburger {
    display: flex;
    order: 2;
  }

  /* Menú cerrado por defecto en móvil */
  .nav-links {
    display: none;
    /* oculto hasta que JS añada .is-open */
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 3;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 12px 0 16px;
    gap: 2px;
    animation: navSlideDown 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    /* Sombra sutil para separar del contenido */
    box-shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  @keyframes navSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Links del menú desplegable */
  .nav-links .nav-link-item {
    display: block;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 6px;
    margin-inline: 8px;
    transition: background var(--transition-smooth), color var(--transition-smooth);
    text-decoration: none;
  }

  .nav-links .nav-link-item:hover,
  .nav-links .nav-link-item:focus-visible {
    background: var(--accent-light);
    color: var(--accent-deep);
  }

  /* Override del ::after underline en móvil */
  .nav-links a:not(.btn)::after {
    display: none;
  }

  /* Botón Contactar en drawer */
  .nav-links .btn-secondary {
    margin: 8px 16px 0;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    min-height: 44px;
  }

  /* ── 2. HERO SECTION ── */
  .hero-section {
    min-height: auto;
    padding-block: 36px 40px;
    padding-inline: 0;
    background-attachment: scroll;
  }

  .hero-container {
    gap: 0;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-section h1 {
    font-size: clamp(1.75rem, 6vw, 2.1rem);
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin-bottom: 0.75rem;
  }

  .hero-section .hero-text p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.75rem;
  }

  /* CTAs apilados en columna, 100% de ancho */
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
    margin-top: 1.25rem;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* ── 3. SECCIONES GENERALES ── */
  .section-padding {
    padding-block: 2.5rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  }

  /* ── 4. COMPARADOR DE ZONAS ── */
  .zone-hub-section {
    overflow: hidden;
  }

  .zone-hub {
    margin-top: 1.25rem;
    border-radius: var(--radius-md);
  }

  /* Scroll horizontal suave en tabs */
  .zone-hub-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    padding: 0 4px;
    gap: 0;
  }

  .zone-hub-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .zone-hub-tab {
    scroll-snap-align: start;
    flex-shrink: 0;
    min-width: max-content;
    padding: 0.85rem 14px;
    font-size: 0.82rem;
  }

  /* Contenido del panel de zona */
  .zone-hub-body {
    padding: 16px;
  }

  .zhpanel-name {
    font-size: 1.2rem;
  }

  .zhpanel-desc {
    font-size: 0.86rem;
    margin-bottom: 1rem;
  }

  /* Stats en 2 columnas en móvil */
  .zhpanel-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .zhstat {
    padding: 0.55rem 0.65rem;
  }

  .zhstat-l {
    font-size: 0.64rem;
  }

  .zhstat-v {
    font-size: 0.84rem;
  }

  .btn-zone-filter {
    width: 100%;
    min-height: 44px;
    font-size: 0.9rem;
  }

  /* ── 5. CATÁLOGO — 1 COLUMNA ── */
  .cards-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
    gap: 20px;
    max-width: 100%;
  }

  /* Tarjeta a ancho completo */
  .property-card {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  /* Imagen de cabecera */
  .card-image-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 14px 14px 0 0;
    background-size: 22px 22px;
  }

  .card-header-img,
  .card-image-wrapper>img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
  }

  /* Body de tarjeta */
  .card-body {
    padding: 14px;
  }

  .price {
    font-size: 1.15rem;
  }

  .card-body h3 {
    font-size: 0.97rem;
    line-height: 1.3;
  }

  .location {
    font-size: 0.8rem;
  }

  /* Specs con flex-wrap para no desbordar */
  .specs {
    flex-wrap: wrap;
    gap: 0.25rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding-block: 0.45rem;
  }

  .spec-item {
    flex: 0 0 auto;
    font-size: 0.76rem;
    padding-inline: 0.4rem;
  }

  .spec-sep {
    display: none;
    /* se ocultan separadores en flex-wrap */
  }

  /* Finish chips con wrap */
  .card-finish-chips {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .finish-chip {
    font-size: 0.67rem;
    padding: 0.18rem 0.5rem;
    white-space: nowrap;
    max-width: 100%;
  }

  /* CTA footer */
  .card-cta-footer {
    padding-top: 0.6rem;
  }

  /* Chip bar */
  .chip-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
  }

  .chip-bar::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex-shrink: 0;
    font-size: 0.79rem;
    padding: 0.38rem 0.85rem;
  }

  /* ── 6. SECCIÓN SOBRE NOSOTROS ── */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-card {
    width: 100%;
    padding: 1.25rem;
  }

  .about-card-title {
    font-size: 1.05rem;
  }

  .about-card-text {
    font-size: 0.88rem;
  }

  .about-division {
    padding: 0.75rem;
  }

  /* ── 7. FORMULARIO DE CONTACTO ── */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .lead-card {
    padding: 1.25rem;
    gap: 0.85rem;
  }

  .field-group {
    width: 100%;
  }

  select,
  input {
    width: 100%;
    min-height: 44px;
    /* altura mínima táctil */
    font-size: 1rem;
    /* evita zoom en iOS */
  }

  .btn-full {
    min-height: 48px;
    font-size: 0.95rem;
  }

  /* ── 8. MODAL en móvil ── */
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
  }

  .modal-gallery {
    min-height: 220px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .modal-content {
    padding: 14px;
    max-height: none;
  }

  .modal-pricing {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .modal-price-value {
    font-size: 1.05rem;
  }

  .modal-title {
    font-size: 1.1rem;
    padding-right: 2rem;
  }

  /* ── 9. FOOTER ── */
  .footer-content {
    text-align: center;
    gap: 0.4rem;
  }

  /* ── 10. ZONA CARDS legacy ── */
  .zones-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

}

/* ── Sub-breakpoint: 430px (iPhone 14, Galaxy S23) ── */
@media (max-width: 430px) {

  .brand-logo {
    font-size: 1rem;
  }

  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-ctas .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .zhpanel-stats {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 12px;
  }

  .about-card {
    padding: 1rem;
  }

  .lead-card {
    padding: 1rem;
  }

}

/* ── Desktop override — asegurar que hamburguesa desaparezca >= 768px ── */
@media (min-width: 768px) {
  .nav-hamburger {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
    /* siempre visible en desktop */
    flex-direction: row;
    align-items: center;
    width: auto;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    animation: none;
  }

  .nav-links .nav-link-item {
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: none;
  }

  .nav-links .nav-link-item::after {
    display: block;
    /* restaurar underline en desktop */
  }

  .nav-links .btn-secondary {
    margin: 0;
  }

  /* Restaurar grid 2 cols en desktop */
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1120px;
  }

  /* About 3 cols en desktop */
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact 2 cols en desktop */
  .contact-container {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

/* =============================================
   HERO — @keyframes + Animación en cascada
   ============================================= */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge: primer elemento de la cascada (delay 0s) */
.hero-section .badge {
  animation: heroFadeUp 0.80s ease-out both;
  animation-delay: 0s;
}

/* =============================================
   LOGO — Tamaño reducido en móvil
   ============================================= */

@media (max-width: 767px) {
  .brand-logo-img {
    max-height: 34px;
  }

  /* Parallax desactivado en móvil:
     background-attachment:fixed provoca bugs
     en iOS Safari y Android WebView          */
  .hero-section {
    background-attachment: scroll;
  }
}

/* =============================================
   ACCESIBILIDAD — prefers-reduced-motion
   Desactiva animaciones si el SO lo solicita
   ============================================= */

@media (prefers-reduced-motion: reduce) {

  .hero-section .badge,
  .hero-section h1,
  .hero-section .hero-text p,
  .hero-ctas {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-section {
    background-attachment: scroll;
  }
}

/* =============================================
   SECCIÓN: PROYECTOS & PREVENTAS (VIVIENDA Y-41)
   ============================================= */

#proyectos {
  scroll-margin-top: 80px;
}

.proyectos-section {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

/* Tarjeta Principal Y-41 Horizontal */
.y41-featured-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  margin-top: 1.5rem;
}

@media (max-width: 960px) {
  .y41-featured-card {
    grid-template-columns: 1fr;
  }
}

.y41-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.y41-card-media-wrapper {
  position: relative;
  min-height: 380px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
}

.y41-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.y41-featured-card:hover .y41-cover-img {
  transform: scale(1.04);
}

.y41-badge-preventa {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 5;
  background: var(--accent);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.y41-badge-preventa::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--navy);
  animation: pulseDot 1.8s infinite ease-in-out;
}

.y41-photo-count-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 5;
  background: rgba(27, 42, 74, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.y41-card-info {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.y41-arch-firm {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.y41-card-title {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.y41-card-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.y41-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding: 1.2rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.y41-spec-item {
  display: flex;
  flex-direction: column;
}

.y41-spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.y41-spec-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.y41-finishes-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.y41-finish-chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(201, 168, 76, 0.14);
  border: 1px solid rgba(201, 168, 76, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
}

.y41-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.y41-card-actions .btn {
  flex: 1;
  min-width: 190px;
  justify-content: center;
  font-size: 0.9rem;
}

/* =============================================
   SEGUNDA TARJETA PREVENTA — Casa con Piscina
   ============================================= */

/* Badge variante teal/verde para diferenciarlo del Y-41 */
.y41-badge-preventa--teal {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ECFDF5 !important;
}

.y41-badge-preventa--teal::before {
  background-color: #ECFDF5 !important;
}

/* Espacio entre las dos tarjetas */
.preventa-card-2 {
  margin-top: 2rem;
}

/* ── Media placeholder (sin imagen real) ── */
.preventa2-media {
  background: linear-gradient(160deg, #0f1726 0%, #1a2744 50%, #0f1f3d 100%) !important;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.preventa2-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

/* Cuadrícula de fondo sutil */
.preventa2-ph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.preventa2-ph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.preventa2-ph-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.12);
  border: 1.5px solid rgba(201, 168, 76, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.preventa2-ph-label {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(245, 240, 232, 0.90);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preventa2-ph-sub {
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.50);
  font-weight: 500;
}

.preventa2-ph-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(27, 42, 74, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  letter-spacing: 0.02em;
}

/* ── Precio prominente ── */
.preventa2-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 4px 0 8px;
  flex-wrap: wrap;
}

.preventa2-price {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.preventa2-price-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Callout Gancho Comercial (Financiamiento) ── */
.preventa2-callout {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(4, 120, 87, 0.04) 100%);
  border: 1.5px solid rgba(5, 150, 105, 0.30);
  border-left: 4px solid #059669;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.preventa2-callout::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.06);
  pointer-events: none;
}

.preventa2-callout-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #059669;
}

.preventa2-callout-header svg {
  stroke: #059669;
  flex-shrink: 0;
}

.preventa2-callout-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.preventa2-callout-text strong {
  color: var(--navy);
  font-weight: 700;
}

.preventa2-callout-text em {
  font-style: normal;
  color: #059669;
  font-weight: 600;
}

/* Banner Construimos en tu Lote */
.lote-banner {
  background: linear-gradient(135deg, #141E38 0%, #1B2A4A 60%, #243256 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  margin-top: 2.5rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-hover);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lote-banner-text h3 {
  color: #FFFFFF;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.lote-banner-text p {
  color: rgba(245, 240, 232, 0.85);
  font-size: 0.92rem;
  max-width: 640px;
  line-height: 1.6;
}

/* =============================================
   MODAL VISOR TÉCNICO Y-41 (ESTRICTAMENTE OCULTO)
   ============================================= */

.y41-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none; /* Estrictamente oculto en la vista directa de la página */
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.y41-modal-backdrop.active {
  display: flex !important; /* Se activa únicamente al hacer clic en 'Ver Planos y Renders HD' */
  opacity: 1 !important;
  visibility: visible !important;
}

.y41-modal-container {
  background: #FFFFFF;
  width: 100%;
  max-width: 1020px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96);
  transition: transform 0.25s ease;
  border: 1px solid var(--accent-border);
}

.y41-modal-backdrop.active .y41-modal-container {
  transform: scale(1);
}

.y41-modal-header {
  background: var(--navy);
  color: #FFFFFF;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--accent);
}

.y41-modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
}

.y41-modal-header p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.y41-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFFFFF;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.y41-modal-close:hover {
  background: var(--ruby);
}

.y41-modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Tabs del Visor Y-41 */
.y41-tabs-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.y41-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.y41-tab-btn {
  background: transparent;
  border: none;
  padding: 0.7rem 1.25rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.y41-tab-btn:hover {
  color: var(--navy);
  background: var(--bg-primary);
}

.y41-tab-btn.active {
  color: var(--navy);
  background: var(--accent-light);
  border-bottom: 3px solid var(--accent-deep);
}

.y41-tab-pane {
  display: none;
  margin-top: 1.25rem;
}

.y41-tab-pane.active {
  display: block;
}

/* Distribución UI por Nivel (NO BLUEPRINT IMAGES) */
.y41-nivel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  background: var(--bg-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.y41-nivel-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.y41-nivel-badge {
  background: var(--accent);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.y41-environments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.y41-env-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.y41-env-card:hover {
  border-color: var(--accent-border);
  box-shadow: var(--shadow-card);
}

.y41-env-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.65rem;
}

.y41-env-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.y41-env-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
}

.y41-env-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Galería de Renders en Modal */
.y41-renders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.y41-render-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--navy);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-subtle);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.y41-render-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.y41-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.y41-render-item:hover .y41-render-img {
  transform: scale(1.06);
}

.y41-render-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  color: #FFFFFF;
}

.y41-render-caption {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.y41-render-zoom-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(201, 168, 76, 0.85);
  color: var(--navy);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
}

.y41-render-item:hover .y41-render-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Fullscreen para Renders (Estrictamente oculto) */
.y41-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: none; /* Oculto por defecto */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.y41-lightbox-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.y41-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1110;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.y41-lightbox-close:hover {
  background: var(--ruby);
}

.y41-lightbox-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.y41-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.y41-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 1105;
}

.y41-lightbox-nav:hover {
  background: var(--accent);
  color: var(--navy);
}

.y41-lightbox-prev {
  left: 20px;
}

.y41-lightbox-next {
  right: 20px;
}

.y41-lightbox-footer {
  margin-top: 1.25rem;
  text-align: center;
  color: #FFFFFF;
}

.y41-lightbox-caption {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.y41-lightbox-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   SECCIÓN TERRENOS — Layout & Visor Interactivo
   ============================================= */

.terrenos-section {
  background-color: var(--bg-surface);
}

/* Tarjeta contenedor principal — layout horizontal en desktop */
.terreno-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .terreno-card {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}

/* ── COLUMNA MEDIA (visor de imágenes) ── */
.terreno-media-col {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #0f1726;
  min-height: 360px;
}

@media (min-width: 900px) {
  .terreno-media-col {
    min-height: 480px;
  }
}

/* Tabs selector de imagen */
.terreno-img-tabs {
  display: flex;
  gap: 0;
  background-color: rgba(20, 30, 56, 0.85);
  border-bottom: 1px solid rgba(201, 168, 76, 0.20);
  backdrop-filter: blur(8px);
  z-index: 2;
  flex-shrink: 0;
}

.terreno-img-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: rgba(245, 240, 232, 0.6);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.terreno-img-tab:hover {
  color: var(--accent);
  background-color: rgba(201, 168, 76, 0.06);
}

.terreno-img-tab--active {
  color: var(--accent) !important;
  border-bottom-color: var(--accent) !important;
}

/* Paneles de imagen */
.terreno-img-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.terreno-img-panel[hidden] {
  display: none;
}

.terreno-img-panel--active {
  display: flex;
}

.terreno-img-frame {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 300px;
}

@media (min-width: 900px) {
  .terreno-img-frame {
    min-height: 420px;
  }
}

.terreno-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.terreno-img-frame:hover .terreno-img {
  transform: scale(1.03);
}

/* Etiqueta flotante en la imagen */
.terreno-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.7rem 1rem;
  background: linear-gradient(to top, rgba(10, 16, 36, 0.88) 0%, transparent 100%);
  color: rgba(245, 240, 232, 0.90);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

/* Badge de categoría flotante sobre imagen */
.terreno-badge-over {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  font-size: 0.68rem !important;
  padding: 0.3rem 0.75rem !important;
}

/* ── COLUMNA DE DATOS ── */
.terreno-data-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 1.75rem;
}

@media (min-width: 900px) {
  .terreno-data-col {
    padding: 2.25rem 2rem;
    overflow-y: auto;
  }
}

/* KPI row — Precio y Área */
.terreno-kpi-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.terreno-kpi {
  flex: 1;
  min-width: 140px;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.terreno-kpi--price {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  box-shadow: 0 4px 16px rgba(27, 42, 74, 0.18);
}

.terreno-kpi--area {
  background-color: var(--accent-light);
  border: 1px solid var(--accent-border);
}

.terreno-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terreno-kpi--price .terreno-kpi-label {
  color: rgba(201, 168, 76, 0.80);
}

.terreno-kpi--area .terreno-kpi-label {
  color: var(--accent-deep);
}

.terreno-kpi-val {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}

.terreno-kpi--price .terreno-kpi-val {
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem);
  color: #ffffff;
}

.terreno-kpi--area .terreno-kpi-val {
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.45rem);
  color: var(--accent-deep);
}

/* Título del terreno */
.terreno-title {
  font-size: clamp(1.15rem, 0.95rem + 0.65vw, 1.45rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Ubicación */
.terreno-location {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.terreno-location svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--accent);
}

/* Specs técnicos en grid 2 columnas */
.terreno-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .terreno-specs-grid {
    grid-template-columns: 1fr;
  }
}

.terreno-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.terreno-spec-item:hover {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.terreno-spec-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.terreno-spec-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.terreno-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
}

.terreno-spec-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Chips de características */
.terreno-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Botón WhatsApp CTA */
.btn-terreno-wa {
  margin-top: auto;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
}