/* ============================================================================
   INMOBILIARIE · ESTILOS 2 (BLUE/GOLD · LAYOUT ALTERNATIVO)
   version:   v1.0
   Refactor: prefijo ie- consolidado + custom properties unificadas
   Gemini - misma nomenclatura de clases con estilos1-deepseek
   ============================================================================ */

/* ============================================================
   00. TOKENS DE DISEÑO
   👉 PERSONALIZAR: tema azul/dorado de esta variante
   ============================================================ */
:root {
  /* Tokens semánticos (compartidos con estilos1) */
  --ie-paper: #f8fafc;
  --ie-surface: #ffffff;
  --ie-ink: #0f172a;
  --ie-ink-soft: #334155;
  --ie-muted: #64748b;
  --ie-line: #e2e8f0;
  --ie-accent: #17396b;
  --ie-accent-dark: #1d4ed8;
  --ie-accent-soft: #dbeafe;
  --ie-gold: #d4af37;
  --ie-gold-soft: #fef3c7;

  /* Tokens de tema (estilos2) */
  --ie-navy: #0f172a;
  --ie-blue-deep: #1e3a8a;
  --ie-green-wsp: #25d366;

  /* Radios */
  --ie-radius-15: 15px;
  --ie-radius-lg: 15px;
  --ie-radius-pill: 999px;

  /* Sombras */
  --ie-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ie-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --ie-shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.10);
  --ie-shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.16);

  /* Movimiento y layout */
  --ie-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ie-wrap: 1300px;
  --ie-gutter: 20px;
}

/* ============================================================
   01. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ie-ink);
  background-color: #ffffff;
  line-height: 1.55;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   02. WRAPPER Y UTILIDADES DE LAYOUT
   ============================================================ */
.ie-home-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.ie-section-full { width: 100%; padding: 70px 0; }
.ie-bg-alt { background-color: var(--ie-paper); }
.ie-bg-dark { background-color: var(--ie-navy); color: #ffffff; }

.ie-container {
  max-width: var(--ie-wrap);
  margin: 0 auto;
  padding: 0 var(--ie-gutter);
}

/* ============================================================
   03. TIPOGRAFÍA DE SECCIÓN
   ============================================================ */
.ie-section-header {
  text-align: center;
  margin-bottom: 45px;
}

.ie-badge-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--ie-accent);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ie-badge--gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--ie-gold);
}

.ie-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--ie-ink);
  margin: 0 0 10px 0;
}
.ie-bg-dark .ie-section-title { color: #ffffff; }

.ie-section-subtitle {
  font-size: 1.1rem;
  color: var(--ie-muted);
  margin: 0;
}

/* ============================================================
   04. SISTEMA DE COLUMNAS RESPONSIVAS (MOBILE-FIRST)
   ============================================================ */
.ie-grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.ie-grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
.ie-grid-4col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .ie-grid-2col { grid-template-columns: repeat(2, 1fr); }
  .ie-grid-3col { grid-template-columns: repeat(3, 1fr); }
  .ie-grid-4col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ie-grid-4col { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   05. TARJETAS INMOBILIARIAS
   ============================================================ */
.ie-card-property {
  background: var(--ie-surface);
  border-radius: var(--ie-radius-15);
  border: 1px solid var(--ie-line);
  overflow: hidden;
  box-shadow: var(--ie-shadow-md);
  transition: all 0.3s var(--ie-ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.ie-card-property:hover {
  transform: translateY(-8px);
  box-shadow: var(--ie-shadow-lg);
}

.ie-card-media {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  border-top-left-radius: var(--ie-radius-15);
  border-top-right-radius: var(--ie-radius-15);
}

.ie-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-top-left-radius: var(--ie-radius-15);
  border-top-right-radius: var(--ie-radius-15);
}
.ie-card-property:hover .ie-card-img { transform: scale(1.06); }

.ie-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  z-index: 2;
}
.ie-badge--premium { background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%); }
.ie-badge--select { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); }
.ie-badge--recent { background: #0f172a; }

.ie-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ie-card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ie-accent);
  margin-bottom: 8px;
}

.ie-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ie-ink);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.ie-card-location {
  font-size: 0.9rem;
  color: var(--ie-muted);
  margin-bottom: 15px;
}

.ie-card-specs {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--ie-line);
  font-size: 0.85rem;
  color: var(--ie-muted);
  margin-top: auto;
}

/* ============================================================
   06. BENTO GRID (CATEGORÍAS Y UBICACIONES)
   ============================================================ */
.ie-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.ie-bento-item {
  position: relative;
  border-radius: var(--ie-radius-15);
  height: 180px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--ie-shadow-md);
  transition: all 0.3s var(--ie-ease);
}
.ie-bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--ie-radius-15);
  transition: transform 0.5s ease;
}
.ie-bento-item:hover img { transform: scale(1.08); }

.ie-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.85) 100%);
  border-radius: var(--ie-radius-15);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}
.ie-bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.ie-bento-count {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ============================================================
   07. BANNER CTA (GLASSMORPHISM)
   ============================================================ */
.ie-banner-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: var(--ie-radius-15);
  padding: 50px 30px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.ie-btn--primary-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #ffffff;
  font-weight: 800;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s var(--ie-ease);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}
.ie-btn--primary-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
  color: #ffffff;
}

/* ============================================================
   08. PÁGINA DE BÚSQUEDA (LAYOUT ASIMÉTRICO 70/30)
   ============================================================ */
.ie-search-page {
  width: 100%;
  background-color: var(--ie-paper);
  padding: 40px 0 80px 0;
}

.ie-search-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
}
@media (min-width: 992px) {
  .ie-search-layout { grid-template-columns: 70% 30%; }
}

.ie-results-header {
  background: #fff;
  padding: 20px 25px;
  border-radius: var(--ie-radius-15);
  border: 1px solid var(--ie-line);
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: var(--ie-shadow-md);
}

/* ============================================================
   09. TARJETA HORIZONTAL (RESULTADOS)
   ============================================================ */
.ie-property-card-horizontal {
  background: var(--ie-surface);
  border-radius: var(--ie-radius-15);
  border: 1px solid var(--ie-line);
  overflow: hidden;
  margin-bottom: 25px;
  box-shadow: var(--ie-shadow-md);
  transition: all 0.3s var(--ie-ease);
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .ie-property-card-horizontal {
    flex-direction: row;
    height: 240px;
  }
  .ie-card-media {
    width: 40%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
  }
  .ie-card-content {
    width: 60%;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}
.ie-property-card-horizontal:hover {
  transform: translateY(-4px);
  box-shadow: var(--ie-shadow-lg);
}

.ie-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   10. SIDEBAR + ACORDEÓN DE CATEGORÍAS
   ============================================================ */
.ie-sidebar-box {
  background: #ffffff;
  border-radius: var(--ie-radius-15);
  border: 1px solid var(--ie-line);
  padding: 25px;
  box-shadow: var(--ie-shadow-md);
  position: sticky;
  top: 20px;
}

.ie-sidebar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ie-ink);
  line-height: 1.4;
  margin-bottom: 25px;
}

.ie-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ie-dropdown-item {
  border-bottom: 1px solid #f1f5f9;
}
.ie-dropdown-item details summary {
  list-style: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ie-accent);
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s var(--ie-ease);
}
.ie-dropdown-item details summary::-webkit-details-marker { display: none; }
.ie-dropdown-item details summary::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ie-accent);
  transition: transform 0.3s ease;
}
.ie-dropdown-item details[open] summary::after { transform: rotate(180deg); }
.ie-dropdown-item details[open] summary { color: var(--ie-accent-dark); }

.ie-dropdown-links {
  padding: 8px 0 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ie-dropdown-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s var(--ie-ease);
}
.ie-dropdown-links a:hover {
  color: var(--ie-accent);
  padding-left: 5px;
}

.ie-sidebar-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  border-radius: var(--ie-radius-15);
  padding: 20px;
  color: #ffffff;
  margin-top: 25px;
  text-align: center;
}


/* ============================================================
   11. HERO GLASS · ESTILOS2 (BLUE/GOLD PREMIUM)
   👉 PERSONALIZAR: URL de imagen, opacidad del overlay
   ============================================================ */
.ie-hero-glass {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 100px 0 120px 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,.68) 0%, rgba(15,23,42,.92) 100%),
    var(--ie-hero-image, url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80')) center/cover no-repeat;
}
.ie-hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 70% at 8% 0%, rgba(37,99,235,.30) 0%, transparent 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(212,175,55,.22) 0%, transparent 55%);
  pointer-events: none;
}
.ie-hero-glass > .ie-container { position: relative; z-index: 1; }

.ie-hero-glass-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px 0;
  letter-spacing: -.03em;
}
.ie-hero-glass-sub {
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.08rem;
}

/* Search box GLASS */
.ie-search-box-glass {
  position: relative;
  background: linear-gradient(135deg,
    rgba(255,255,255,.20) 0%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(255,255,255,.28);
  padding: 25px;
  border-radius: 18px;
  max-width: 950px;
  margin: 0 auto;
  box-shadow:
    0 24px 60px -24px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  overflow: hidden;
}
.ie-search-box-glass::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent);
  pointer-events: none;
}
.ie-search-box-glass form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: center;
  text-align: left;
}
.ie-search-box-glass label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: rgba(255,255,255,.85);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.ie-search-box-glass select,
.ie-search-box-glass input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.94);
  font-weight: 600;
  color: var(--ie-ink);
  outline: none;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.ie-search-box-glass select:focus,
.ie-search-box-glass input[type="text"]:focus {
  background: #fff;
  border-color: var(--ie-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.3);
}
.ie-search-box-glass .ie-search-btn-glass {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ie-gold), #b8860b);
  color: #2B1F06;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s var(--ie-ease), box-shadow .25s var(--ie-ease);
  box-shadow: 0 10px 20px -8px rgba(212,175,55,.7);
}
.ie-search-box-glass .ie-search-btn-glass:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 28px -10px rgba(212,175,55,.9);
}
@media (max-width: 640px) {
  .ie-hero-glass { padding: 70px 0 90px 0; }
  .ie-search-box-glass { padding: 18px; }
}


/* ============================================================================
   COMPAT · clases que vienen de ie-core1.css
   Asegura que HTML escrito para ie-core1 renderice también con ie-core2.
   ⚠️ NO modifiques este bloque desde otros sitios. Solo agregar aquí.
   ============================================================================ */

/* HEADER completo (core1) */
.ie-site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250,247,242,.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--ie-line);
}
.ie-site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.ie-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.ie-brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ie-accent), var(--ie-accent-dark));
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(23,57,107,.6);
}
.ie-nav { display: none; gap: 2px; }
.ie-nav a {
  padding: 9px 14px;
  border-radius: var(--ie-radius-pill);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ie-ink-soft);
  transition: background .2s, color .2s;
}
.ie-nav a:hover { background: #fff; color: var(--ie-ink); }
.ie-header-actions { display: flex; align-items: center; gap: 10px; }
.ie-header-actions .ie-btn--ghost { display: none; }
.ie-menu-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--ie-line);
  background: #fff;
  cursor: pointer;
}
.ie-mobile-nav {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--ie-surface);
  border-bottom: 1px solid var(--ie-line);
  padding: 10px 20px 18px;
  box-shadow: var(--ie-shadow-md);
}
.ie-nav-toggle:checked ~ .ie-mobile-nav { display: grid; gap: 2px; }
.ie-mobile-nav a {
  padding: 13px 10px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .95rem;
}
.ie-mobile-nav a:hover { background: var(--ie-paper); }
@media (min-width: 640px) { .ie-header-actions .ie-btn--ghost { display: inline-flex; } }
@media (min-width: 900px) {
  .ie-nav { display: flex; }
  .ie-menu-btn { display: none; }
  .ie-mobile-nav { display: none !important; }
}

/* BOTONES base (core1) — CRÍTICOS: los demos usan .ie-btn en todos lados */
.ie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--ie-radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ie-ease), background .25s var(--ie-ease),
              box-shadow .25s var(--ie-ease), border-color .25s var(--ie-ease),
              color .25s var(--ie-ease);
}
.ie-btn:active { transform: scale(.975); }
.ie-btn--accent {
  background: var(--ie-accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(23,57,107,.55);
}
.ie-btn--accent:hover {
  background: var(--ie-accent-dark);
  box-shadow: 0 14px 28px -12px rgba(23,57,107,.65);
}
.ie-btn--ghost {
  background: transparent;
  color: var(--ie-ink);
  border-color: var(--ie-line);
}
.ie-btn--ghost:hover { background: #fff; border-color: var(--ie-line); }
.ie-btn--light {
  background: #fff;
  color: var(--ie-ink);
  box-shadow: var(--ie-shadow-sm);
}
.ie-btn--light:hover { transform: translateY(-2px); box-shadow: var(--ie-shadow-md); }
.ie-btn--lg { padding: 15px 26px; font-size: .98rem; }

.ie-link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--ie-radius-pill);
  border: 1px solid var(--ie-line);
  background: var(--ie-surface);
  font-weight: 700;
  font-size: .88rem;
  transition: background .25s var(--ie-ease), color .25s var(--ie-ease), border-color .25s var(--ie-ease);
}
.ie-link-more:hover { background: var(--ie-ink); color: #fff; border-color: var(--ie-ink); }
.ie-link-more svg { transition: transform .25s var(--ie-ease); }
.ie-link-more:hover svg { transform: translateX(3px); }

/* HERO dark (no-glass) de core1 */
.ie-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(11,18,32,.62) 0%, rgba(14,26,43,.90) 100%),
    var(--ie-hero-image, url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1920&q=80')) center/cover no-repeat,
    linear-gradient(180deg, var(--ie-navy) 0%, #0E1A2B 100%);
  padding-block: clamp(38px, 7vw, 76px) clamp(48px, 7vw, 84px);
}
.ie-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(95% 75% at 12% -5%, rgba(37,99,235,.28) 0%, rgba(37,99,235,0) 62%),
    radial-gradient(85% 70% at 100% 0%, rgba(28,46,78,.45) 0%, rgba(28,46,78,0) 58%);
  pointer-events: none;
  z-index: 0;
}
.ie-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200,161,90,.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.ie-hero > .ie-container { position: relative; z-index: 1; }
.ie-hero-copy { max-width: 820px; position: relative; z-index: 1; }
.ie-hero h1 { margin-bottom: 18px; }
.ie-grad {
  background: linear-gradient(100deg, #E8CE9B, var(--ie-gold) 55%, #E8CE9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ie-hero-lead {
  font-size: clamp(.98rem, 2.2vw, 1.12rem);
  color: rgba(255,255,255,.72);
  max-width: 56ch;
}

.ie-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--ie-radius-pill);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(255,255,255,.92);
  margin-bottom: 20px;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.ie-pill b {
  background: var(--ie-gold);
  color: #2B1F06;
  padding: 3px 9px;
  border-radius: var(--ie-radius-pill);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* SEARCH BOX dark */
.ie-search-box {
  position: relative;
  z-index: 2;
  margin-top: clamp(26px, 4vw, 38px);
  background: linear-gradient(135deg,
    rgba(255,255,255,.16) 0%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.05) 100%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--ie-radius-lg);
  padding: clamp(12px, 2vw, 16px);
  box-shadow:
    0 24px 60px -24px rgba(0,0,0,.65),
    0 1px 0 0 rgba(255,255,255,.28) inset,
    0 -1px 0 0 rgba(255,255,255,.04) inset;
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  display: grid;
  gap: 12px;
  color: var(--ie-ink);
  overflow: hidden;
}
.ie-search-box::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.75) 50%, transparent 100%);
  pointer-events: none;
}
.ie-search-fields { display: grid; gap: 8px; }
.ie-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 15px;
  border-radius: var(--ie-radius-15);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.4);
  transition: background .2s var(--ie-ease), border-color .2s var(--ie-ease), box-shadow .2s var(--ie-ease);
}
.ie-field:focus-within {
  background: #fff;
  border-color: var(--ie-accent);
  box-shadow: 0 0 0 4px var(--ie-accent-soft);
}
.ie-field-label {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ie-muted);
}
.ie-field select,
.ie-field input {
  border: 0;
  background: transparent;
  outline: none;
  font-weight: 700;
  font-size: .95rem;
  padding: 0;
  width: 100%;
}
.ie-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 22px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 15px;
}
.ie-field input::placeholder { color: #9AA3B2; font-weight: 600; }
.ie-search-btn { align-self: stretch; }
.ie-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  margin-top: clamp(26px, 4vw, 40px);
  position: relative;
  z-index: 1;
}
.ie-stats b {
  display: block;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.ie-stats span {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
@media (min-width: 760px) {
  .ie-search-box { grid-template-columns: 1fr auto; align-items: center; }
  .ie-search-fields { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ie-stats { grid-template-columns: repeat(4, 1fr); }
}

/* PLACEHOLDERS (.ph) — core1 los usa en todas las tarjetas */
.ph {
  position: relative;
  background-color: #DDE3DE;
  background-image: linear-gradient(140deg, #E6EBE7 0%, #C9D6CF 55%, #B4C7BE 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101828' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'><path d='M3 10.5 12 3l9 7.5'/><path d='M5.5 9.5V21h13V9.5'/><path d='M10 21v-6h4v6'/></svg>") center/56px no-repeat;
  opacity: .15;
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 25% 15%, rgba(255,255,255,.55), transparent 62%),
    radial-gradient(55% 55% at 85% 95%, rgba(16,24,40,.10), transparent 60%);
}
.ph--1 { background-image: linear-gradient(140deg,#E4EDE8,#BCD1C8 60%,#A6BEB5); }
.ph--2 { background-image: linear-gradient(140deg,#EFE7DB,#D2C1A9 60%,#BFA98C); }
.ph--3 { background-image: linear-gradient(140deg,#E4E9F1,#C0CADB 60%,#A9B6CC); }
.ph--4 { background-image: linear-gradient(140deg,#F1E7E1,#D8BFB1 60%,#C3A695); }
.ph--5 { background-image: linear-gradient(140deg,#E6EFEC,#BED2CB 60%,#A5C0B7); }
.ph--6 { background-image: linear-gradient(140deg,#F0EADF,#D4C6B0 60%,#BDAE94); }
.ph--7 { background-image: linear-gradient(140deg,#E3E9E5,#C2CFC7 60%,#ADC0B6); }
.ph--8 { background-image: linear-gradient(140deg,#EDE6E9,#D0BEC6 60%,#B9A3AD); }

/* CARD · variantes y detalles (core1) */
.ie-card-property--lg .ie-card-media { aspect-ratio: 16/10; }
.ie-card-property--lg .ie-card-body { padding: 20px; gap: 12px; }
.ie-card-property--lg .ie-card-price { font-size: 1.45rem; }
.ie-card-price small {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ie-muted);
}
.ie-card-property--lg .ie-card-title { font-size: 1.08rem; }
.ie-fav-btn {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255,255,255,.92);
  color: var(--ie-ink-soft);
  backdrop-filter: blur(8px);
  transition: transform .25s var(--ie-ease), background .25s, color .25s;
}
.ie-fav-btn:hover { background: #fff; color: #E0455E; transform: scale(1.1); }
.ie-card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--ie-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.ie-card-foot span { font-size: .77rem; font-weight: 600; color: var(--ie-muted); }
.ie-card-arrow {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ie-accent-soft);
  color: var(--ie-accent);
  transition: background .3s var(--ie-ease), color .3s var(--ie-ease), transform .3s var(--ie-ease);
}
.ie-card-property:hover .ie-card-arrow {
  background: var(--ie-accent);
  color: #fff;
  transform: translateX(3px);
}

/* SPLIT 50/50 + visual */
.ie-split { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
@media (min-width: 900px) {
  .ie-split { grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
}
.ie-visual {
  position: relative;
  border-radius: var(--ie-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #C9D6CF;
}
.ie-visual .ph { position: absolute; inset: 0; }
.ie-visual-float {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: rgba(255,255,255,.96);
  border-radius: var(--ie-radius-15);
  padding: 14px 16px;
  box-shadow: var(--ie-shadow-md);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ie-visual-float .ie-ico {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ie-gold-soft);
  color: #8A6B2E;
}
.ie-visual-float b { display: block; font-size: .95rem; letter-spacing: -.02em; }
.ie-visual-float span { font-size: .76rem; color: var(--ie-muted); font-weight: 600; }
@media (min-width: 560px) {
  .ie-visual-float { left: 18px; bottom: 18px; right: auto; max-width: 290px; }
}
.ie-feats { display: grid; gap: 16px; margin: 26px 0 30px; }
.ie-feats li { display: flex; gap: 13px; align-items: flex-start; }
.ie-feats .ie-ico {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ie-accent-soft);
  color: var(--ie-accent);
}
.ie-feats b { display: block; font-size: .93rem; letter-spacing: -.01em; }
.ie-feats p { font-size: .85rem; color: var(--ie-muted); margin-top: 2px; }

/* CATEGORÍAS (core1) */
.ie-cats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .ie-cats { grid-template-columns: repeat(3, 1fr); } }
.ie-cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--ie-radius-15);
  background: var(--ie-surface);
  border: 1px solid var(--ie-line);
  transition: transform .35s var(--ie-ease), box-shadow .35s var(--ie-ease), border-color .35s var(--ie-ease);
}
.ie-cat:hover {
  transform: translateY(-5px);
  box-shadow: var(--ie-shadow-md);
  border-color: transparent;
}
.ie-cat-ico {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--ie-accent-soft);
  color: var(--ie-accent);
  transition: background .3s var(--ie-ease), color .3s var(--ie-ease), transform .3s var(--ie-ease);
}
.ie-cat:hover .ie-cat-ico {
  background: var(--ie-accent);
  color: #fff;
  transform: rotate(-6deg);
}
.ie-cat h3 { font-size: .94rem; }
.ie-cat span { font-size: .78rem; font-weight: 600; color: var(--ie-muted); }

/* ESTADOS (core1) */
.ie-estados { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .ie-estados { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ie-estados { grid-template-columns: repeat(3, 1fr); } }
.ie-estado {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16/10;
  padding: 16px;
  border-radius: var(--ie-radius-15);
  overflow: hidden;
  color: #fff;
}
.ie-estado .ph { position: absolute; inset: 0; z-index: -2; transition: transform .8s var(--ie-ease); }
.ie-estado::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,18,32,0) 25%, rgba(11,18,32,.80) 100%);
}
.ie-estado:hover .ph { transform: scale(1.07); }
.ie-estado b { font-size: 1.02rem; letter-spacing: -.02em; }
.ie-estado span {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  margin-top: 2px;
}
.ie-estado-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: var(--ie-radius-pill);
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* STEPS + CTA actions */
.ie-steps { display: grid; gap: 14px; position: relative; z-index: 1; }
.ie-steps li { display: flex; gap: 13px; align-items: center; }
.ie-step-num {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 800;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: #E8CE9B;
}
.ie-steps b { display: block; font-size: .92rem; letter-spacing: -.01em; }
.ie-steps span { font-size: .8rem; color: rgba(255,255,255,.62); font-weight: 600; }
.ie-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}
.ie-cta-actions small {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}

/* FOOTER (core1) */
.ie-site-footer {
  background: var(--ie-navy, #0B1220);
  color: rgba(255,255,255,.72);
  padding-block: clamp(40px, 6vw, 64px) 28px;
}
.ie-foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) {
  .ie-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
}
.ie-site-footer .ie-brand { color: #fff; margin-bottom: 14px; }
.ie-site-footer p { font-size: .86rem; max-width: 34ch; line-height: 1.6; }
.ie-foot-col h3 {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.ie-foot-col a { display: block; font-size: .88rem; padding: 6px 0; transition: color .2s; }
.ie-foot-col a:hover { color: #fff; }
.ie-foot-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

/* REVEAL progresivo */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ie-ease), transform .65s var(--ie-ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================================
   HARMONIZACIÓN CROSS-COMPAT (core1 ↔ core2)
   ⚠️ Solo agregar reglas aquí, nunca romper las nativas de arriba.
   ============================================================================ */

/* Reset de listas que core2 no trae y core1 sí (evita bullets en cards) */
ul { list-style: none; padding: 0; }

/* Fondos: alinea semántica con core1 (paper vs surface) */
.ie-bg-paper { background-color: var(--ie-paper); }
.ie-bg-alt   { background-color: var(--ie-surface); }

/* Badge scoping — evita que badge de tarjeta y badge-tag se pisen */
.ie-badge.ie-badge--gold {
  background: linear-gradient(135deg, #EBD5A4, var(--ie-gold));
  color: #2B1F06;
}
.ie-badge-tag.ie-badge--gold {
  background: rgba(212,175,55,.15);
  color: var(--ie-gold);
}
.ie-badge--teal {
  background: linear-gradient(135deg, #16A085, var(--ie-accent-dark));
  color: #fff;
}

/* Hero glass: centrado consistente con el "HERO CENTRADO" requerido */
.ie-hero-glass-title,
.ie-hero-glass-sub { text-align: center; }

/* Card location: alinea icono + texto como en core1 */
.ie-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
}