/* ==========================================================================
   1. SECCIÓN HERO (NUEVA ARQUITECTURA PRO)
   ========================================================================== */
body {
  background: oklab(0.62 -0.12 0.07 / 0.02);
}

article.inmueble-card .card-info h3 {
  margin: 0px;
}

body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}






/* Removido el desplazamiento del header para el admin bar */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 4.5rem;
}

.site-branding {


  padding: 2px 12px;
  border-radius: 16px;


}


/* Removido el desplazamiento del header móvil para el admin bar */

@media (max-width: 768px) {





  select.front_municipio,
  select.front_distrito,
  form#hero-search-form {
    width: 70dvw !important;
    max-width: 70dvw !important;
  }


  body.home .site-header {
    display: block !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  }

  body.home .site-header__wrapper {
    min-height: 4.5rem;
    padding: 0 14px;
  }

  body.home .site-branding,
  body.home .header-actions {
    display: flex;
    align-items: center;
  }

}

.hero {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  z-index: 200;
  height: 100dvh;
  height: 100vh;
  min-height: 100dvh;
  min-height: 100vh;
  color: #fff;
  text-align: center;
  max-width: 100vw;
  margin: 0;
  overflow: visible !important;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.4) !important;
  border-radius: 0px;

  /* Permitir decoraciones flotantes */
}

/* Contenedor y Slides */
.hero-master-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Mantener visibilidad base */

  border-radius: 0px;
  overflow: hidden;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.8);
}

.hero-slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero-slide-item.is-active {
  opacity: 1;
  display: flex;
  z-index: 2;
}

.hero-media {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* SISTEMA INTELIGENTE ADAPTABLE (MEDIA ROUTING) */
.is-desktop-only {
  display: block;
}

.is-mobile-only {
  display: none;
}

.is-all-devices {
  display: block;
}

@media (max-width: 1024px) {
  .is-desktop-only {
    display: none !important;
    /* Neutralizar video en móvil para performance */
  }

  .is-mobile-only {
    display: block !important;
    /* Priorizar imagen optimizada en móvil */
  }
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Cinematic Vignette (Capas oscuras envolventes) */
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

/* Contenido y Reveal */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 0px;
  max-width: 900px;
  overflow: visible !important;
}

.hero-title {
  margin-bottom: 25px;
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: -2px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Disparador del Buscador (Glassmorphism) */
#hero-search-trigger {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.btn-all-front.is-trigger {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 20px 28px;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.btn-all-front.is-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Formulario Revelado (Screenshot Match) */
#hero-search-form {
  position: relative;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
  margin: 3rem auto 0;
  max-width: 800px;
  border: 0px solid rgba(255, 255, 255, 0.5);
  z-index: 10;
  overflow: hidden;
  /* Para que las pestañas sigan el redondeado */
  color: #000;
  text-align: left;
  width: 30rem;
}

.hero-search-inner {
  padding: 2.5rem 3rem;
}

/* Panel de Pestañas Superiores */
.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
  margin-bottom: 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-panel-item {
  padding: 22px 0;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

.tab-panel-item.active {
  background: #fff;
  color: #000;
}

.tab-panel-item:not(.active):hover {
  color: #000;
  background: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   2. BUSCADOR PREDICTIVO (LIVE SEARCH)
   ========================================================================== */
.form-front {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0px;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
  overflow: visible !important;
}

#live-search-input {
  display: block !important;
  visibility: visible !important;
  outline: none;
  border: 2px solid #eee;
  border-radius: 8px;
  background: #fff;
  padding: 12px 15px !important;
  width: 100%;
  color: #333;
  font-size: 16px;
}

#live-search-results {
  display: none;
  position: absolute !important;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 999999 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #ffffff !important;
  /* Por encima de todo */
  max-height: 400px;
  overflow-y: auto;
  /* Controlado por JS */
}

/* Contenedor principal del resultado */
.live-result-item {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: background 0.2s ease;
  -webkit-transition: background 0.2s ease;
  -moz-transition: background 0.2s ease;
  -ms-transition: background 0.2s ease;
  -o-transition: background 0.2s ease;
  border-bottom: 1px solid #f1f1f1;
  padding: 12px 15px;
  text-decoration: none;
}

.live-result-item:last-child {
  border-bottom: none;
  /* Quita la línea del último elemento */
}

/* Ajuste de la Imagen */
.live-result-item img {
  flex-shrink: 0;
  border-radius: 6px;
  /* Evita que la imagen se aplaste si el texto es largo */
  background-color: #f9f9f9;
  width: 55px;
  height: 55px;
  object-fit: cover;
  /* Fondo por si la imagen falla */
}

/* Contenedor de Texto (El que se ve desordenado) */
.live-result-item .info {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

/* Título de la propiedad */
.live-result-item .info .title {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  color: #2d3436;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.3;
  text-overflow: ellipsis;
  /* Cortar texto largo con puntos suspensivos (...) */
  white-space: nowrap;
}





/* --- UbiHome Hero Scramble Capsule System (MEGA CAPSULE) --- */
.phrase-target {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 1.8em;
  /* Aumentado para dar aire vertical total */
  vertical-align: middle;
  gap: 0.12em;
  overflow: visible;
  /* Crucial: el padre no debe recortar */
}

.scramble-capsule {
  position: relative;
  display: inline-flex;
  width: 1.3ch;
  /* Un poco más ancho */
  height: 1.6em;
  /* Mucho más alto para evitar recorte de techos */
  overflow: visible;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.scramble-capsule.masking {
  overflow: hidden;
}

.scramble-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  /* Reducido ligeramente para margen de seguridad interno */
  height: 90%;
  object-fit: contain;
  z-index: 3;
  opacity: 1;
  clip-path: circle(100% at 50% 50%);
}

.scramble-letter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.7);
}





/* Precio destacado */
.live-result-item .info .price {
  display: block;
  color: #00b894;
  font-weight: 500;
  font-size: var(--text-sm);
}

/* Hover suave */
.live-result-item:hover {
  background-color: #f8fbfb;
}

.no-results {
  padding: 30px 20px;
  color: #636e72;
  text-align: center;
}

/* ==========================================================================
   3. SELECTORES Y BOTONES (CLEAN WHITE)
   ========================================================================== */
.row-home-drop b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  margin-bottom: 6px;
  letter-spacing: 0px;
}

.col-home-drop {
  margin-bottom: 16px;
}

.form-front select {
  font-family: var(--font-family);
  appearance: none;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-position: calc(100% - 20px) center;
  background-repeat: no-repeat;
  padding: 12px 10px;
  color: #444;
  width: 100% !important;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-front select:focus {
  border-color: #399d57;
  outline: none;
}

/* Fila de Acciones en la parte baja */
.row-home-btn-actions {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  margin-top: 10px;
}

.btn-all-front {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbb;
  border-radius: 16px;
  padding: 12px 10px;
  color: #000;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-all-front:hover {
  background: #f1f1f1;
  border-color: #888;
}

.btn-form-front {
  cursor: pointer;
  border: none;
  border-radius: 16px;
  background: #399d57;
  padding: 12px 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-form-front:hover {
  background: #2e8147;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(57, 157, 87, 0.3);
}

/* ==========================================================================
   4. GRID DE PROPIEDADES (4 COLUMNAS)
   ========================================================================== */
.prop-grid.grid-into-frontpage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem 2rem;
  margin: 40px auto;
  /* padding: 0 15px; */
  max-width: 1200px;
}

.inmueble-card {
  position: relative;
  transition:
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.2s ease;
  border: 1px solid #efefef;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.inmueble-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.inmueble-card:active {
  transform: scale(0.96);
}

.card-image-box {
  position: relative;

}

.card-image-box img {
  transition: 0.5s;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 999;
  border-radius: 4px;
  background: #00b894;
  padding: 5px 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
}

.card-price-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.card-info {
  flex-grow: 1;
  padding: 15px;
}

.card-title {
  display: -webkit-box;
  height: 2.8em;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 700;
  font-size: 1rem;
  -webkit-box-orient: vertical;
  margin-bottom: 10px;
}

/* ==========================================================================
   5. SECCIONES DE ABAJO Y RESPONSIVO
   ========================================================================== */
.section-areas {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  /* Menor que el Hero */
  padding: 60px 16px;
  padding-bottom: 0px;
  max-width: 1200px;
}

.catagory-slides.owl-carousel.owl-loaded.owl-drag {
  margin: 0px;
  width: 100% !important;
}

@media (max-width: 1100px) {
  .prop-grid.grid-into-frontpage {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  header.hero img,
  #hero-bg-slider,
  #hero-bg-fade,
  .hero-overlay {
    border-radius: var(--radius-lg);
  }

  .section-areas {
    padding: 60px 0px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .form-front {
    flex-direction: column;
  }

  .hero {
    padding: 60px 0;
    min-height: 70vh;
    /* Altura minima para que el motor de slider sea visible */
    height: auto;
    margin-left: 1rem;
    margin-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .card-location {
    display: flex;
  }

  .prop-grid.grid-into-frontpage {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0px;
  }

  .card-info .card-location span {
    display: block;
    font-size: var(--text-micro);
    line-height: 1.3;
  }

  .live-result-item .info .title,
  .live-result-item .info .price {
    font-size: var(--text-xs) !important;
  }

  a.live-result-item,
  span.info,
  span.title,
  span.price,
  #live-search-results span.title {
    font-size: var(--text-xs) !important;
  }
}

/* Accesibilidad SEO */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  clip-path: inset(50%);
  margin: -1px;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   6. GRID DE ZONAS (SAN SALVADOR, LA LIBERTAD, ETC.)
   ========================================================================== */
.areas-grid-tpl {
  position: relative;
  -webkit-transform: translate3d(0, 0, 0);
  overflow: hidden;
}

.area-card {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  background-color: transparent;
}

/* Capa oscura degradada para que el nombre de la ciudad se lea perfecto */

.area-card span {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- EFECTOS HOVER --- */

/* Oscurecemos un poco más el fondo al pasar el mouse */
.area-card:hover::before {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.2) 100%);
}

.container-who.panel-2 {
  padding: 100px 0;
}


/* --- RESPONSIVO PARA ZONAS --- */
@media (max-width: 480px) {
  .area-card {
    height: 180px;
    /* Un poco más bajas en móviles pequeños */
  }

  .area-card span {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   RESCATE: EFECTO MATERIAL DESIGN & TOUCH (APP STYLE)
   ========================================================================== */




/* 1. Base de la tarjeta: Preparamos para el efecto de onda */
.inmueble-card,
.area-card {
  position: relative;
  /* Necesario para que la onda no se salga */
  transition:
    transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 0.2s ease;

  -webkit-tap-highlight-color: transparent;
  /* Quita el cuadro azul de Android */
  cursor: pointer;
}

/* 2. Efecto de "Hundimiento" al tocar (Feedback táctil) */
.inmueble-card:active,
.area-card:active {
  transform: scale(0.96) !important;
  /* Se encoge un poquito */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 3. La Onda (Ripple Effect) - Requiere el JS que pusimos antes */
.ripple-effect {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  /* No bloquea el clic */
  animation: ripple-animation 0.6s linear;
  /* Color de la onda */
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

@keyframes ripple-animation {
  from {
    opacity: 0.5;
    width: 0px;
    height: 0px;
  }

  to {
    opacity: 0;
    width: 500px;
    /* Tamaño máximo de expansión */
    height: 500px;
  }
}

/* 4. Feedback en la imagen al presionar */
.inmueble-card:active .card-image-box img {
  filter: brightness(0.8);
  /* Se oscurece un poco al tocar */
}

.col-who.col-right p {
  font-size: clamp(1.1rem, 0.8vw, 7.2rem);
  letter-spacing: -.01em;
  text-wrap: balance;
  position: relative;
  font-weight: 500;
  line-height: 150%;
  text-align: left;
}

.col-who.col-right h2 {
  font-size: 1.8rem;
  position: relative;
  display: inline-block;
  letter-spacing: -.05em;
  font-weight: 500;
  margin-bottom: 0px;
  line-height: 1;
  color: #172c29;
  text-align: left;
  font-size: clamp(1.2rem, 2vw, 7.2rem);
  letter-spacing: -.03em;
}

/* 5. Optimización para que el hover no moleste en móviles */
@media (hover: none) {

  .inmueble-card:hover,
  .area-card:hover {
    transform: none;
    /* En móviles solo funciona el :active (toque) */
  }
}

div#splitview-modal {
  display: none;
}

section.propiedades-destacadas {
  padding: 60px 20px;
}

section h2 {
  margin-top: 0px;
  margin-bottom: 40px;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  text-align: center;
}

#clear-search {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  z-index: 5;
  cursor: pointer;
  padding: 5px;
  color: #999;
  font-size: 22px;
}

#clear-search:hover {
  color: #333;
}

/* El Spinner */
.loader-spinner {
  display: none;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  /* Oculto por defecto */
  z-index: 10;
  animation: spin 0.8s linear infinite;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #00b894;
  /* Color verde de tu marca */
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }

  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Ajuste para que la X y el Loader no se encimen */
#clear-search {
  z-index: 11;
}

@media (max-width: 768px) {

  .zones-header h2.zones-title {
    font-size: 3rem;
    text-align: left;
    line-height: 1;
  }


  section.propiedades-destacadas {
    padding: 0px 20px;
    padding-top: 100px;
  }

  /* 1. Evita que el navegador cambie el tamaño de letra por su cuenta */
  html {
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  /* 2. Forzamos el tamaño del título en los resultados */
  .live-result-item .info .title {
    /* Permite 2 líneas si es necesario */
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    font-size: 14px !important;
    /* Tamaño fijo para móvil */
    line-height: 1.2 !important;
    white-space: normal !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
  }

  /* 3. Forzamos el tamaño del precio */
  .live-result-item .info .price {
    margin-top: 2px;
    font-size: 13px !important;
    text-align: left;
  }

  /* 4. Ajuste de la imagen para que no robe espacio */
  .live-result-item img {
    width: 50px !important;
    height: 50px !important;
  }
}

.catagory-card {
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  background-color: transparent;
}

.catagory-card a {
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 1rem;
  overflow: hidden;
}

.catagory-card a::after {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.4;
  z-index: 5;
  border-radius: 1rem;
  background-color: #0c153b;
  width: 100%;
  height: 100%;
  content: "";
}

.catagory-card a img {
  position: relative;
  z-index: -5;
  -webkit-transition-duration: 500ms;
  transition-duration: 500ms;
  border-radius: 1rem;
  min-height: 15rem;
  object-fit: cover;
}

.catagory-card a h3 {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  -webkit-transition-duration: 500ms;
  transition-duration: 500ms;
  margin-bottom: 0;
  border-radius: 2rem;
  background-color: #fff;
  padding: 0.25rem 0.625rem;
  color: #3a393c;
  font-size: var(--text-sm);
}

.catagory-card a h3:hover,
.catagory-card a h3:focus {
  background-color: #020b10;
}

.catagory-card a:hover img,
.catagory-card a:focus img {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

.catagory-slides {
  margin-left: 2rem;
  width: calc(100% - 4rem) !important;
}

.title-link h3 {
  margin: 0px;
  padding: 0;
}

.card-info .card-location span {
  font-size: var(--text-micro);
  line-height: 1.3;
}

.card-info a {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: flex-start;
  width: 100%;
  line-height: 1.3;
}

@media only screen and (min-width: 1200px) {

  /* Ajuste para pantallas grandes */
  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {

  /* Ajuste para laptops y pantallas medianas */
  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {

  /* Ajuste para tablets */
  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (min-width: 576px) and (max-width: 767px) {
  /* Ajuste para tablets */

  .catagory-slides {
    margin-left: 0;
  }
}

@media only screen and (max-width: 575px) {

  /* Ajuste para móviles pequeños */
  .catagory-card a h3 {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    border-radius: 1rem;
    height: 4rem;
    font-size: var(--text-xs);
  }

  .catagory-slides.owl-carousel.owl-loaded.owl-drag {
    padding-right: 0rem;
    padding-left: 1rem;
  }
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a::after {
  background-color: #100dd1;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a h3 {
  background: #76b791;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a h3:hover,
.catagory-slides .owl-stage .owl-item:nth-child(3n + 1) .catagory-card a h3:focus {
  background-color: #020b10;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a::after {
  background: #76b791;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a h3 {
  background-color: #fff;
  color: #020b10;
}

.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a h3:hover,
.catagory-slides .owl-stage .owl-item:nth-child(3n + 0) .catagory-card a h3:focus {
  background-color: #020b10;
  color: #ffffff;
}

/* ==========================================================================
   7. SECCIÓN HOW IT WORKS
   ========================================================================== */
#how-it-works {
  background-color: #ffffff;
  padding: 100px 20px;
}

#how-it-works .container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-header__description {
  font-size: 1.1rem;
  color: #636e72;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.how-it-work__box {
  margin-top: 40px;
}

.how-work-post {
  text-align: center;
  padding: 40px 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background: #fff;
  height: 100%;
}

.how-work-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.how-work-post__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: rgba(0, 184, 148, 0.1);
  color: #00b894;
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.how-work-post:hover .how-work-post__icon {
  background-color: #00b894;
  color: #ffffff;
  transform: rotate(10deg);
}

.how-work-post__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 15px;
}

.how-work-post__description {
  font-size: 1rem;
  color: #636e72;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Ajustes de Grid para 3 columnas reales */
.how-it-work__box .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Anulamos anchos de Bootstrap para que el Grid mande */
#how-it-works [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0;
  margin: 0;
}

@media (max-width: 1200px) {
  .how-it-work__box .row {
    gap: 20px;
  }
}

@media (max-width: 991px) {
  .how-it-work__box .row {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header__title {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  #how-it-works {
    padding: 60px 20px;
  }

  .how-it-work__box .row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .how-work-post {
    padding: 30px 20px;
  }

  .how-work-post__icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }


}





.caja {
  width: 150px;
  height: 150px;
  background-color: #ba1f1fff;
  border: 2px solid black;
}

.header_text-wrap {
  position: relative;
  overflow: hidden;
}

.header_text-wrap h1 {
  margin-top: 0px;
  margin-bottom: 0px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.4em;
}

.is--alt-text {
  font-style: italic;
  font-weight: 400;
}


.header_text-wrap.text-sp {
  padding-bottom: 0.4rem;
  margin-top: 0rem;
}


#about {

  width: 100%;
  display: flex;

  justify-content: center;
  flex-direction: column;


}

h1.is--alt-text {
  font-size: 2rem;

  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}

.container-who {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: left;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.col-who {
  width: 50%;
  font-size: var(--text-xs);
  line-height: 1.5;
}

.col-left {
  text-align: left;
}

.col-right {
  text-align: left;
}

#about .col-who ul {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

#about .col-who ul li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

#about .col-who ul li::before {
  content: "";
  flex: 0 0 1.4rem;
  width: 10px;
  height: 20px;
  margin-top: 0.1rem;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 8px 18px rgba(34, 197, 94, 0.2);
}

#about .col-who ul li::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  left: 1.8rem;
  width: 0.45rem;
  height: 0.8rem;
  border-right: 2px solid #166534;
  border-bottom: 2px solid #166534;
  transform: translate(-50%, -50%) rotate(40deg);
}

#about .col-who ul li p {
  margin: 0 !important;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.img-who {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.row-who {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

#about a.btn {

  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  background: var(--color-primary);
  padding: 10px 1rem;
  color: #fff;
  font-size: var(--text-sm);
  text-decoration: none;
  max-width: 230px;
}

/* En front-page.php, dentro de <style> */
.panel-1 .img-who {
  position: relative;
  /* Elimina left: 100% */
  transform: translateX(80px);
  /* Empieza solo 80px a la derecha */
  opacity: 0;
  /* Empieza invisible para un efecto más limpio */
}

.panel-2 .img-who {
  position: relative;
  transform: translateX(-80px);
  /* En el panel 2, viene de la izquierda */
  opacity: 0;
}

#about {
  border-radius: var(--radius-lg);
  background: #fff;
  width: 100%;
  display: block;
  overflow: hidden;
}

.header_text-wrap h1 {
  font-size: 6rem;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 11px;
  opacity: 0.9;
  padding: 0px;
  margin: 0px;
  text-align: center;
}

/* --- UbiHome Hero Scramble Capsule System (PRECISION ADJUST) --- */
.phrase-target {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 1.6em;
  vertical-align: middle;
  gap: 0.02em;
  /* Más cerrado para compensar el ancho de cápsula */
  overflow: visible;
}

.scramble-capsule {
  position: relative;
  display: inline-flex;
  width: 1.3ch;
  /* Bonus de ancho para letras como la 'O' */
  height: 1.4em;
  overflow: visible;
  justify-content: center;
  align-items: center;
}


.scramble-capsule.masking {
  overflow: hidden;
}

.scramble-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  /* Aprovecha casi todo el espacio */
  height: 95%;
  object-fit: contain;
  z-index: 3;
}

.scramble-letter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.8);
}


/* Ajustes para móviles */
@media (max-width: 768px) {
  .phrase-target {
    min-height: 1.3em;
    gap: 0.01em;
    /* Gap estrecho para móviles */
  }

  .scramble-capsule {
    width: 1.3ch;
    /* Bonus de ancho también en móvil */
  }
}



/* RESPONSIVO PARA SECCIÓN ABOUT */
@media (max-width: 768px) {

  #typewriter-text {
    font-size: 13px;
  }

  /* home.css - línea 1643 aprox */
  .phrase-target {
    font-size: 1em;
    /* Esto escala la palabra animada un 25% más que el resto */
    min-height: 1.3em;
    gap: 0.01em;
  }


  .header_text-wrap h1 {
    font-size: 2.8rem;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 11px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }

  .form-h-front {
    min-height: calc(100vh - 70vh);
    margin-bottom: 10vh;
  }

  h1.is--alt-text {
    font-size: 1.5rem;
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
  }

  .description-front {
    opacity: 0.9;
    margin-bottom: 40px;
    font-size: 12px;
  }


  .header_text-wrap {
    margin-bottom: 10px;
  }

  .container-who {
    padding: 0 1.6rem !important;
  }

  .row-who {
    flex-direction: column !important;
    gap: 30px;
    padding: 0 !important;
  }

  .col-who {
    width: 100% !important;
    text-align: center !important;
  }

  .col-who h2 {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .col-who p {

    margin-bottom: 20px !important;
  }

  .col-who ul {
    width: 100%;
    text-align: left;
    display: grid;
    padding-left: 0;
    margin-top: 1.25rem;
    gap: 0.85rem;
  }

  .col-who .btn {
    margin: 0 auto !important;
  }

  #about .col-who ul li {
    padding: 0.9rem 0.95rem;
    gap: 0.8rem;
  }

  #about .col-who ul li::before {
    flex-basis: 1.9rem;
    width: 10px;
    height: 10px;
  }

  #about .col-who ul li::after {
    top: 1.38rem;
    left: 1.62rem;
    width: 0.4rem;
    height: 0.72rem;
  }

  #about .col-who ul li p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* En el segundo bloque, ponemos la imagen arriba en móvil */
  #about .container-who:nth-of-type(2) .row-who {
    flex-direction: column-reverse !important;
  }

  #about .container-who {
    margin-bottom: 60px !important;
  }
}



.tab-panel {
  display: flex;
  gap: 15px;
  margin-bottom: 0px;
}

.tab-panel-item {
  cursor: pointer;
  padding: 10px 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px 8px 0px 0px;
  color: #fff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-panel-item:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.tab-panel-item.active {
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
  font-weight: 500;
  width: 10rem;
}

.tab-panel-content {
  display: none;
  animation: fadeIn 0.4s ease;
  width: 100%;
}

.tab-panel-content.active {
  display: block;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: 0px 0px 16px 16px;
  margin-top: -1px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


.card-image-box img.img-frontpage-random {
  height: 180px;
  object-fit: cover;
}

/* Spotlight hardening: keep visible even if JS modifies neighboring sections */
.home-spotlight.section {
  position: relative;
  z-index: 3;
  opacity: 1;
}

.home-spotlight .section-inner {
  position: relative;
  z-index: 2;
}

.home-spotlight-media {
  position: relative;
  overflow: hidden;
}

.home-spotlight-media img {
  display: block;
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.home-spotlight-overlay-center,
.home-spotlight-overlay-info {
  z-index: 4;
}

.home-spotlight-overlay-center h2 {
  opacity: 1;
  visibility: visible;
}

:root {
  --brand-primary: #042B26;
  --brand-secondary: #C6FF00;
  --brand-tertiary: #0F4C44;
  --brand-neutral: #F9FBFB;
  --ui-bg: #042B26;
  --ui-surface: rgba(255, 255, 255, 0.08);
  --ui-border: rgba(255, 255, 255, 0.2);
  --ui-text: #f4fff7;
  --ui-text-dark: #0f221f;
  --ui-accent: #C6FF00;
  --brand-on-primary: #EAF6F4;
  --brand-ink: #17322e;
  --brand-muted: #6f8581;
  --brand-line: #d6e2df;
  --ui-radius: 18px;
  --ui-gap: clamp(12px, 1.6vw, 22px);
  --ui-h1: clamp(2.2rem, 8vw, 6rem);
  --ui-h2: clamp(1.8rem, 5vw, 4.4rem);
}

.aw-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(198, 255, 0, 0.95);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, background-color .18s ease, opacity .18s ease;
}

.aw-cursor.is-hover {
  width: 46px;
  height: 46px;
  background: rgba(198, 255, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}

@media (max-width: 980px),
(pointer: coarse) {
  .aw-cursor {
    display: none;
  }
}

.home-intent-hub,
.home-spotlight,
.home-steps,
.home-proof,
.propiedades-destacadas,
.section-zones-chained,
#about {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.home-arrow-wrap-content {
  display: flex;
}

.home-intent-hub {
  background: radial-gradient(circle at 0% 0%, #ffffff 0%, var(--brand-neutral) 48%, var(--brand-neutral) 100%);
  padding: 0;
  position: relative;
  overflow: hidden;

  max-width: 100%;
}

.home-intent-hub::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  top: -160px;
  border-radius: 999px;
  background: rgba(211, 233, 195, 0.12);
  filter: blur(18px);
  pointer-events: none;
}

.home-intent-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 0 40px 0;
  position: relative;
  z-index: 1;
}

.home-intent-head p {
  color: var(--brand-ink);
  font-size: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: -.02rem;
  line-height: 2.4rem;
  margin: 1rem auto 5rem;
  max-width: 41.8rem;
  font-weight: 500;
  text-align: center;
}

.home-intent-head h2 {
  color: var(--brand-ink);
  margin: 10px 0 0;
  font-size: var(--ui-h1);
  line-height: 1.08;


  letter-spacing: -.05em;
}

.home-intent-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;

}

.home-intent-grid.is-sequential {
  display: block;
  position: relative;
  min-height: 620px;
  padding-top: 8px;
}

.home-intent-grid.is-sequential .home-intent-card {
  position: absolute;
  top: 0;
  left: 0;
  width: min(95vw, 1180px);
  max-width: 1180px;
  margin: 0;
  min-height: 560px;
  border-radius: 34px;
  padding: 34px;
}

.home-intent-grid.is-sequential .home-intent-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -34px;
  width: 72px;
  height: 100%;
  border-radius: 34px;
  background: rgba(192, 220, 244, 0.58);
  pointer-events: none;
}

.home-intent-card {
  border-radius: 20px;
  padding: 18px;
  text-decoration: none;
  color: var(--brand-on-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.home-intent-card:hover {
  transform: translateY(-5px);
  border-color: rgba(183, 230, 196, 0.7);
  box-shadow: 0 18px 36px rgba(6, 18, 17, 0.45);
}

.home-intent-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand-on-primary) 78%, var(--brand-secondary) 22%);
  margin-bottom: 8px;
  font-weight: 700;
}

.home-intent-card h3 {
  font-size: 1.1rem;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #ffffff;
}

.home-intent-icon {
  width: auto;
  height: 150px;
  max-width: 100%;
  object-fit: contain;
  margin: 4px 0 14px;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
  transform-origin: center center;
}

.home-intent-card p {
  margin: 0;
  color: color-mix(in srgb, var(--brand-on-primary) 85%, #000 15%);
  line-height: 1.45;
  font-size: 0.96rem;
  flex: 1;
}

.home-intent-cta {
  margin-top: 12px;
  font-weight: 700;
  color: var(--brand-secondary);
}

.intent-publish {
  border-color: rgba(109, 226, 148, 0.48);
  background: linear-gradient(160deg, rgb(57 157 87), rgb(46 64 62));
}

.intent-invest {
  background: linear-gradient(160deg, rgb(57 157 87), rgb(46 64 62));
}

.intent-home {
  background: linear-gradient(160deg, rgb(57 157 87), rgb(46 64 62));
}

.home-trust-bar {
  background: var(--brand-primary);
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: auto;
  position: relative;
  z-index: 20;
}

.home-trust-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-trust-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(183, 230, 196, 0.18);
  border-radius: 16px;
  padding: 16px;
  color: var(--brand-on-primary);
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-trust-item strong {
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.home-trust-label {
  margin: 0 0 4px;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--brand-on-primary) 74%, var(--brand-secondary) 26%);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.home-spotlight,
.home-steps,
.home-proof {
  padding: 56px 0;
}

.home-spotlight {
  background: var(--brand-neutral);
  padding: 0px;
  padding-bottom: 4rem;
  padding-top: 2rem;
  min-height: auto !important;
  display: block !important;
  align-content: normal !important;
}

.home-spotlight.section {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.home-spotlight-wrap,
.home-steps-wrap,
.home-proof-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.home-spotlight-wrap {
  max-width: 1280px;
  padding: 0;
}

.home-spotlight-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 42px rgba(8, 25, 16, 0.16);
  min-height: 520px;
  background: var(--brand-primary);
  height: 75vh;
}

.home-spotlight-media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  min-height: 0;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.home-spotlight-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.58) 100%);
  pointer-events: none;
}

.home-spotlight-overlay-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: min(92%, 840px);
  will-change: transform;
}

.home-spotlight-overlay-center h2 {
  margin: 0;
  color: #fff;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 3;
  font-size: var(--ui-h2);
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-spotlight-overlay-info {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  width: min(460px, calc(100% - 32px));
  background: rgba(10, 22, 19, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  will-change: transform;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}

.home-spotlight-overlay-info h3 {
  margin: 4px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: #ffffff;
  line-height: 1.2;
}

.home-spotlight-location {
  margin: 0;
  color: var(--brand-on-primary);
  font-size: 0.9rem;
}

.home-spotlight-price {
  margin: 0;
  color: color-mix(in srgb, var(--brand-on-primary) 72%, var(--brand-secondary) 28%);
  font-size: 1.05rem;
  font-weight: 700;
}

.home-spotlight-copy {
  margin: 0;
  color: var(--brand-on-primary);
  line-height: 1.4;
  font-size: 0.84rem;
}

.home-spotlight-btn {
  border-radius: 14px;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}

.home-spotlight-btn:hover {
  transform: translateY(-2px);
}

.home-spotlight-btn.is-primary {
  background: var(--brand-tertiary);
  color: #fff;
}

.home-steps {
  background: linear-gradient(180deg, var(--brand-primary) 0%, var(--brand-tertiary) 100%);
}

.home-steps-head p {
  margin: 0;
  color: color-mix(in srgb, var(--brand-on-primary) 65%, var(--brand-secondary) 35%);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-steps-head h2 {
  margin: 10px 0 0;
  color: var(--brand-on-primary);
}

.home-steps-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.home-steps-marquee-track {
  display: inline-block;
  min-width: max-content;
  will-change: transform;
}

.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.home-step-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(208, 243, 223, 0.24);
  border-radius: 18px;
  padding: 18px;
  color: var(--brand-on-primary);
  backdrop-filter: blur(4px);
  transform: translateY(0) scale(1);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .35s ease;
}

.home-step-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 10%, rgba(124, 232, 167, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}

.home-step-card:hover {
  transform: translateY(-8px) scale(1.012);
  border-color: rgba(178, 238, 199, 0.58);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

.home-step-card:hover::before {
  opacity: 1;
}

.home-step-card.is-active {
  border-color: rgba(182, 244, 204, 0.62);
  box-shadow: 0 18px 36px rgba(6, 18, 14, 0.35);
}

.home-step-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(164, 229, 188, 0.2);
  color: color-mix(in srgb, var(--brand-on-primary) 70%, var(--brand-secondary) 30%);
  font-weight: 700;
  font-size: 0.9rem;
}

.home-step-card h3 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 1.04rem;
  line-height: 1.3;
}

.home-step-card p {
  margin: 0;
  line-height: 1.45;
  color: color-mix(in srgb, var(--brand-on-primary) 80%, #000 20%);
}

.home-steps-cta {
  margin-top: 16px;
}

.home-publish-btn {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: var(--brand-tertiary);
}

.home-proof {
  background: var(--brand-neutral);
}

.home-proof-head p {
  margin: 0;
  color: var(--brand-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.home-proof-head h2 {
  margin: 10px 0 0;
  color: var(--brand-primary);
  max-width: 760px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.home-proof-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-proof-card {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(16, 40, 37, 0.06);
}

.home-proof-card p {
  margin: 0;
  color: var(--brand-ink);
  line-height: 1.5;
}

.home-proof-card strong {
  display: block;
  margin-top: 12px;
  color: var(--brand-tertiary);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .home-spotlight-media {
    min-height: 460px;
  }

  .home-spotlight-media img {
    top: -9%;
    height: 118%;
  }

  .home-spotlight-overlay-info {
    right: 16px;
    bottom: 16px;
  }

  .home-steps-grid,
  .home-proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-intent-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-intent-grid.is-sequential {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-intent-grid.is-sequential .home-intent-card {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
  }

  .home-trust-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {

  html,
  body {
    overflow-x: hidden;
  }

  .home-intent-hub {
    padding: 38px 0;
    overflow: unset;
    height: auto;
  }

  .home-intent-wrap {
    padding: 0 14px;
  }

  .home-intent-grid {
    grid-template-columns: 1fr;
  }

  .home-intent-grid.is-sequential {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-intent-grid.is-sequential .home-intent-card {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
  }

  .home-intent-card {
    min-height: 0;
  }

  .home-intent-icon {
    height: 128px;
  }

  .home-spotlight,
  .home-steps,
  .home-proof {
    padding: 38px 0;
  }

  .home-spotlight-wrap,
  .home-steps-wrap,
  .home-proof-wrap {
    padding: 0 14px;
  }

  .home-steps-grid,
  .home-proof-grid {
    grid-template-columns: 1fr;
  }

  .home-spotlight-media {
    min-height: 420px;
  }

  .home-spotlight-media img {
    top: -8%;
    height: 116%;
  }

  .home-spotlight-overlay-center h2 {
    font-size: clamp(1.6rem, 8vw, 2.4rem);
  }

  .home-spotlight-overlay-info {
    width: calc(100% - 20px);
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .home-trust-wrap {
    grid-template-columns: 1fr;
    padding: 0 14px;
  }
}

.hero-container-init {
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
  height: 100svh;
  height: 100dvh;
  height: 100vh;
  margin-top: 0;
}

.container-hero-centerpiece {
  z-index: 1;
  width: 100%;
  max-width: 100%;
  position: relative;
  display: none;
  box-sizing: border-box;
}

.container-hero-centerpiece.is-over-hero {
  z-index: 30;
}

/* Optimizaciones de Rendimiento CSS */
.hero,
.hero-overlay,
#hero-bg-static,
#about,
.img-who,
.header_text-wrap h1,
.inmueble-card img,
#msg-sep-shape,
.scramble-capsule,
.home-message-separator {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

.home-arrow-wrap-content img {
  background: #C6FF00;
  border-radius: 50%;
  max-width: 50px;
  height: 50px;
  padding: 0.5rem;
  margin-left: 2rem;
}

.section-inner {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center
}

.home-trust-bar .section-inner {
  height: auto;
  overflow: visible;
  display: block;
  width: 100%;
}
