/**
 * INMOBILIARIE® - Core Styles (Static)
 * version: 1.2 azul
 * Performance: Cached by browser
 */

/* Grid System */
.ie-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

.ie-grid-cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

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

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

@media (min-width: 1280px) {
  .ie-grid-cards { grid-template-columns: repeat(4, 1fr); }
}

/* Cards de Inmuebles */
.ie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(6, 14, 28, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid #1E3050;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(4, 107, 210, 0.4);
}

/* Badges de Destacados */
.ie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  border-radius: 8px;
}

.ie-badge--premium {
  background: #045CB4;
  color: #0A1628;
}

.ie-badge--select {
  background: #0056b3;
}

.ie-badge--active {
  background: #27ae60;
}

/* Imagen de Tarjeta */
.ie-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Contenido de Tarjeta */
.ie-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ie-card__price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-gold, #046BD2);
  margin-bottom: 6px;
}

.ie-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ie-card__location {
  font-size: 0.8rem;
  color: #7A8FA8;
  margin-bottom: 12px;
}

/* Botones */
.ie-btn-touch, .ie-btn-buscar {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--accent-gold, #046BD2);
  color: #0A1628;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.ie-btn-touch:hover, .ie-btn-buscar:hover {
  background: var(--accent-gold-hover, #3B82F6);
  transform: translateY(-1px);
}

/* Formulario de Búsqueda Glass */
.ie-buscar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: end;
}

.ie-select-glass {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
}

.ie-select-glass option {
  background: #0A1628;
  color: #FFFFFF;
}

/* ==================================================================
   CATEGORÍAS FLOTANTES (Hero Section)
   ================================================================== */
.ie-categorias-flotantes-container {
    position: absolute;
    top: 100px; /* Ajustar según altura del header */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10;
    pointer-events: none; /* Permitir clicks en el fondo */
}

.ie-categorias-flotantes-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    pointer-events: auto; /* Reactivar clicks en los paneles */
}

.ie-categoria-flotante-panel {
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(4, 107, 210, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: 400px; /* Controlar altura para no tapar menú */
    overflow-y: auto;
}

.ie-categoria-flotante-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ie-categoria-flotante-header i {
    font-size: 1.2rem;
    color: #046BD2;
}

.ie-categoria-flotante-header h3 {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.ie-categoria-flotante-content {
    overflow-y: auto;
    max-height: 320px;
}

.ie-categoria-flotante-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ie-flotante-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: #B8C4D6;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.ie-flotante-item:hover {
    background: rgba(4, 107, 210, 0.2);
    color: #046BD2;
    transform: translateX(4px);
}

.ie-flotante-item i {
    font-size: 1rem;
    color: #046BD2;
}

.ie-estados-flotante-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ie-flotante-estado {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #B8C4D6;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.ie-flotante-estado:hover {
    background: rgba(4, 107, 210, 0.2);
    color: #046BD2;
}

.ie-ver-mas-estados {
    width: 100%;
    padding: 8px;
    background: rgba(4, 107, 210, 0.2);
    border: 1px solid rgba(4, 107, 210, 0.4);
    border-radius: 6px;
    color: #046BD2;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ie-ver-mas-estados:hover {
    background: rgba(4, 107, 210, 0.3);
}

/* RESPONSIVE MODO FLOTANTE */
@media (max-width: 968px) {
    .ie-categorias-flotantes-wrapper {
        grid-template-columns: 1fr;
    }
    
    .ie-categoria-flotante-panel {
        max-height: 300px;
    }
}

@media (max-width: 640px) {
    .ie-categorias-flotantes-container {
        top: 80px;
        width: 95%;
    }
    
    .ie-categoria-flotante-grid {
        grid-template-columns: 1fr;
    }
}

/* Layout 70/30 para Kadence */
.ie-layout-70-30 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 2rem;
}

@media (max-width: 968px) {
  .ie-layout-70-30 {
    grid-template-columns: 1fr;
  }
  .ie-layout-70-30 aside {
    order: 2; /* Sidebar va debajo en móvil */
  }
}

@media (max-width: 640px) {
  .ie-layout-70-30 {
    gap: 1rem;
  }
}

/* ============================================
   PORTADA PREMIUM — ESTILOS ESPECÍFICOS
   ============================================ */

/* --- HERO --- */
.ie-hero-portada {
  position: relative;
  min-height: 85vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 16px 40px;
  overflow: hidden;
}

.ie-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.85) 0%, rgba(6, 14, 28, 0.75) 100%);
  backdrop-filter: blur(4px);
}

.ie-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  width: 100%;
}

.ie-hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 16px 0;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ie-hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #B8C4D6;
  margin: 0 0 40px 0;
  font-weight: 400;
}

.ie-hero-buscador {
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(4, 107, 210, 0.3);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* --- SECCIONES GENERALES --- */
.ie-seccion-categorias,
.ie-seccion-cta,
.ie-seccion-listados,
.ie-seccion-anuncio,
.ie-seccion-tipos,
.ie-seccion-contenido,
.ie-seccion-ubicaciones,
.ie-seccion-sitemap {
  padding: 60px 0;
}

.ie-section-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 32px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(4, 107, 210, 0.3);
}

/* --- GRID 2 COLUMNAS (Categorías) --- */
.ie-grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 968px) {
  .ie-grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- CTA BOX --- */
.ie-cta-box {
  text-align: center;
  padding: 48px 24px;
  border-top: 3px solid #046BD2;
}

.ie-cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #FFFFFF;
  margin: 0 0 16px 0;
}

.ie-cta-content p {
  font-size: 1.1rem;
  color: #B8C4D6;
  margin: 0 0 32px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ie-btn-cta {
  display: inline-block;
  padding: 16px 40px;
  font-size: 1.1rem;
  background: #046BD2;
  color: #0A1628;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.ie-btn-cta:hover {
  background: #3B82F6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 107, 210, 0.4);
}

/* --- LISTADOS --- */
.ie-seccion-listados {
  background: rgba(6, 14, 28, 0.5);
}

.ie-ver-mas {
  text-align: center;
  margin-top: 40px;
}

/* --- TABS TIPOS --- */
.ie-tabs-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .ie-tabs-container {
    grid-template-columns: 1fr 1fr;
  }
}

.ie-tab-item {
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 48, 80, 0.65);
  border-radius: 16px;
  padding: 24px;
}

.ie-tab-item h3 {
  color: #046BD2;
  font-size: 1.25rem;
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(4, 107, 210, 0.2);
}

/* --- ARTÍCULO SEO --- */
.ie-articulo-seo {
  padding: 40px 24px;
}

.ie-articulo-seo h2 {
  color: #FFFFFF;
  font-size: 1.75rem;
  margin: 0 0 24px 0;
}

.ie-articulo-seo h3 {
  color: #046BD2;
  font-size: 1.35rem;
  margin: 32px 0 16px 0;
}

.ie-articulo-seo h4 {
  color: #045CB4;
  font-size: 1.1rem;
  margin: 24px 0 12px 0;
}

.ie-articulo-seo p,
.ie-articulo-seo li {
  color: #B8C4D6;
  line-height: 1.7;
  font-size: 1rem;
}

.ie-articulo-seo a {
  color: #046BD2;
  text-decoration: none;
  border-bottom: 1px solid rgba(4, 107, 210, 0.3);
}

.ie-articulo-seo a:hover {
  color: #3B82F6;
}

.ie-articulo-seo ul {
  padding-left: 24px;
  margin: 16px 0;
}

.ie-articulo-seo li {
  margin-bottom: 12px;
}

/* --- UBICACIONES POPULARES --- */
.ie-grid-ubicaciones {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

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

@media (min-width: 968px) {
  .ie-grid-ubicaciones {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ie-ubicacion-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(30, 48, 80, 0.65);
  border-radius: 12px;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  text-align: center;
}

.ie-ubicacion-card:hover {
  background: rgba(4, 107, 210, 0.15);
  border-color: #046BD2;
  color: #046BD2;
  transform: translateY(-3px);
}

/* --- SITEMAP --- */
.ie-sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .ie-sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 968px) {
  .ie-sitemap-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ie-sitemap-col h4 {
  color: #046BD2;
  font-size: 1.1rem;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(4, 107, 210, 0.2);
}

.ie-sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ie-sitemap-col li {
  margin-bottom: 10px;
}

.ie-sitemap-col a {
  color: #B8C4D6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.ie-sitemap-col a:hover {
  color: #046BD2;
}

/* --- ANUNCIOS --- */
.ie-seccion-anuncio {
  padding: 24px 0;
}

/* --- MOBILE OPTIMIZATIONS --- */
@media (max-width: 640px) {
  .ie-hero-portada {
    min-height: 70vh;
    background-attachment: scroll;
    padding: 60px 12px 32px;
  }
  
  .ie-hero-buscador {
    padding: 16px;
  }
  
  .ie-seccion-categorias,
  .ie-seccion-cta,
  .ie-seccion-listados,
  .ie-seccion-tipos,
  .ie-seccion-contenido,
  .ie-seccion-ubicaciones,
  .ie-seccion-sitemap {
    padding: 40px 0;
  }
  
  .ie-container {
    padding: 0 12px;
  }
  
  .ie-cta-box {
    padding: 32px 16px;
  }
  
  .ie-articulo-seo {
    padding: 24px 16px;
  }
}


/* ==========================================================================
   INMOBILIARIE® - FIXES DE LOGICA, ICONOS Y ENLACES (SIN)
   ========================================================================== */

/* --- 1. CONTROL RIGUROSO DE ICONOS SVG E IMÁGENES DENTRO DEL MENU Y BUSCADOR --- */
/* Controla cualquier SVG de FontAwesome / Directorist para que no crezca descomunalmente */
body .inm-wrapper svg,
body .inm-wrapper .inm-nav-icon,
body .inm-wrapper .inm-chevron,
body .ie-hero-section svg,
body .directorist-search-form svg,
body form svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  min-width: 20px;
  min-height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  fill: #046BD2;
  color: #046BD2;
}

/* Íconos dentro del botón de búsqueda del Hero */
body .ie-hero-section .ie-btn-buscar-hero svg,
body .ie-hero-section .ie-btn-filtros svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  min-width: 18px;
  min-height: 18px;
  fill: none;
  stroke: currentColor;
}

/* Fix para íconos dentro de los select de Directorist */
body form select option[data-icon] {
  background-size: 16px 16px;
}

/* --- 2. REMOCIÓN TOTAL DE SUBRAYADOS EN LINKS DE LA PORTADA Y PANELES --- */
body.home a,
body .inm-wrapper a,
body .inm-wrapper .inm-parent-link,
body .inm-wrapper .inm-sub-link,
body .ie-hero-section a,
body .ie-seo-card-box a,
body .ie-container a {
  text-decoration: none;
}

body.home a:hover,
body .inm-wrapper a:hover,
body .inm-wrapper .inm-parent-link:hover,
body .inm-wrapper .inm-sub-link:hover,
body .ie-hero-section a:hover,
body .ie-seo-card-box a:hover,
body .ie-container a:hover {
  text-decoration: none;
}

/* --- 3. REGLAS DE POSICIONAMIENTO STICKY --- */
/* Se utiliza la especificidad compuesta body div.inm-wrapper.is-sticky-mode */
body div.inm-wrapper.is-sticky-mode {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 1100px;
}

@media (max-width: 768px) {
  body div.inm-wrapper.is-sticky-mode {
    top: 52px;
    width: 96%;
  }
}

/* --- 4. ESTILOS GLASSMORPHISM Y TARJETA DEL HERO --- */
body .ie-hero-section {
  position: relative;
  min-height: 82vh;
  background: url('https://mexico.test.inmobiliarie.com/wp-content/uploads/2026/10/inmobiliarie-mexico.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 40px;
  box-sizing: border-box;
}

body .ie-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.45) 0%, rgba(6, 14, 28, 0.70) 100%);
  z-index: 1;
}

body .ie-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

body .ie-hero-title {
  color: #FFFFFF;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  margin: 0 0 10px 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.5px;
}

body .ie-hero-subtitle {
  color: #F1F5F9;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 30px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

body .ie-hero-glass-card {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  margin: 0 auto;
}

body .ie-form-grid-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  align-items: center;
}

body .ie-input-hero,
body .ie-select-hero {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1E293B;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}

body .ie-select-hero option {
  background: #FFFFFF;
  color: #1E293B;
}

body .ie-btn-filtros {
  height: 48px;
  background: #FFFFFF;
  color: #15803D;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 20px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

body .ie-btn-filtros:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
}

body .ie-btn-buscar-hero {
  height: 48px;
  background: #00A63A;
  color: #FFFFFF;
  font-weight: 800;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 0 24px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

body .ie-btn-buscar-hero:hover {
  background: #008A30;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 166, 58, 0.4);
}

/* --- 5. ESTRUCTURA DE CONTENEDORES Y TARJETAS SEO --- */
body .ie-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

body .ie-section-padding {
  padding: 48px 0;
}

body .ie-sec-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 24px;
  border-bottom: 2px solid #046BD2;
  padding-bottom: 8px;
}

body .ie-seo-card-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

body .ie-seo-card-box h3,
body .ie-seo-card-box h4,
body .ie-seo-card-box h5 {
  color: #045CB4;
  margin-top: 0;
}

body .ie-seo-card-box p,
body .ie-seo-card-box li {
  color: #334155;
  line-height: 1.6;
}

body .ie-seo-card-box a {
  color: #046BD2;
  font-weight: 600;
}