/* GrupoCasas — Proporción: 65-75% blanco, 20-25% azul, 5-10% rojo (solo CTAs) */
:root {
  --rojo: #E7282F;
  --azul: #204A97;
  --blanco: #FFFFFF;
  --fondo-oscuro: #152a4d;
  --acento-principal: #204A97;
  --acento-cta: #E7282F;
  --gris-claro: #f5f5f5;
  --gris-texto: #1d3557;
  --gris-suave: #204A97;
  --borde: rgba(29, 53, 87, 0.12);
  --radio: 0.75rem;
  --radio-lg: 1.25rem;
  --radio-xl: 1.75rem;
  --radio-full: 9999px;
  --sombra: 0 4px 20px rgba(29, 53, 87, 0.08);
  --sombra-hover: 0 8px 30px rgba(29, 53, 87, 0.12);
  --transicion: 0.25s ease;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--gris-texto);
  background: #ffffff;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 100%;
  padding-top: calc(var(--safe-top) + 5.5rem); /* espacio para el header fijo */
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  padding-bottom: var(--safe-bottom);
  -webkit-tap-highlight-color: rgba(32, 74, 151, 0.15);
}

/* Mesh gradient sutil (página blanca) */
.bg-glare {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 600px 600px at 15% 20%, rgba(32, 74, 151, 0.03) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 85% 30%, rgba(32, 74, 151, 0.02) 0%, transparent 70%),
    radial-gradient(ellipse 450px 450px at 50% 70%, rgba(29, 53, 87, 0.02) 0%, transparent 70%);
  animation: meshDrift 25s ease-in-out infinite;
}

@keyframes meshDrift {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 50% 50%, 0% 100%, 100% 100%;
  }
  25% {
    background-position: 20% 10%, 80% 20%, 40% 60%, 15% 75%, 85% 90%;
  }
  50% {
    background-position: 10% 25%, 90% 10%, 60% 40%, 5% 85%, 95% 70%;
  }
  75% {
    background-position: 25% 5%, 75% 30%, 45% 55%, 20% 90%, 80% 80%;
  }
}

.bg-glare::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(32, 74, 151, 0.02) 60deg,
    transparent 120deg,
    rgba(29, 53, 87, 0.015) 200deg,
    transparent 260deg,
    rgba(32, 74, 151, 0.02) 320deg,
    transparent 360deg
  );
  animation: lightSweep 30s linear infinite;
  pointer-events: none;
}

@keyframes lightSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Patrón geométrico sutil — oculto para portada limpia sin dibujos */
.bg-pattern {
  display: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 max(1.5rem, var(--safe-right)) 0 max(1.5rem, var(--safe-left));
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Header — Zona importante en azul (logo + Inicio / Propiedades / etc.) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
}

.header-glass {
  background: linear-gradient(135deg, #204A97 0%, #24324f 50%, #1a2d4a 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: 0 2px 16px rgba(32, 74, 151, 0.25);
  padding-top: var(--safe-top);
}

/* Mismo ancho que el carrusel de anuncios (max 1400px) para alinear logo y nav con el banner */
.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem max(1.5rem, var(--safe-right)) 0.75rem max(1.5rem, var(--safe-left));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  overflow: visible;
  min-height: 5.5rem;
  box-sizing: border-box;
}

/* Logo a la izquierda, centrado verticalmente en la barra */
.header-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  margin-left: 0;
}

/* Logo y tagline lado a lado en el header */
.header .logo-link {
  display: flex;
  align-items: center;
}

.header .logo-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.header .logo-separator {
  width: 2px;
  height: 1.4em;
  min-height: 20px;
  margin: 0;
  flex-shrink: 0;
  border-radius: 2px;
}

.header .logo-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* Logo más grande sin aumentar la altura del header (escala visual) */
.header .logo-link {
  transform: scale(1.18);
  transform-origin: left center;
}

.header .logo-img-wrap--custom {
  height: 48px;
  min-width: 80px;
  margin-right: 0;
  margin-top: 0;
  transform: translateY(0.55rem) scale(1.35); /* imagen más abajo y más grande; no cambia header ni texto */
  transform-origin: left center;
}

.header .logo-headline {
  gap: 0.2rem;
  flex-wrap: wrap;
}

/* Texto bajo la línea blanca del título: Gestión inmobiliaria • Confianza • Resultados — alineado con "GrupoCasas", misma tipografía, un poco más pequeño */
.header .header-logo-tagline {
  flex-basis: 100%;
  width: 100%;
  margin-top: 0.25rem;
  padding-left: calc(80px + 0.2rem); /* alineado con el título (mismo inicio que "GrupoCasas") */
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  line-height: 1.3;
}

.header .header-logo-tagline .logo-tagline-dot {
  margin: 0 0.35rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.header .logo-title {
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  margin-left: -0.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  position: relative;
  flex-wrap: wrap;
}

/* Solo para taglines que no sean el del header (Gestión inmobiliaria • Confianza • Resultados) */
.header .logo-tagline:not(.header-logo-tagline) {
  font-size: 0.82rem;
}

.header .logo-separator {
  height: 1.5em;
  min-height: 22px;
}

/* Botones (nav + Iniciar sesión) a la derecha */
.header-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
  border-top: none;
}

.header-bottom .nav {
  margin-right: 0;
}

/* En pantallas no tan anchas, márgenes laterales */
@media (max-width: 1200px) {
  .header-bottom {
    margin-right: 2rem;
  }
}

@media (max-width: 992px) {
  .header-bottom {
    margin-right: 1rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.25rem 0;
  background: transparent;
  border-radius: 0;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: filter 0.35s ease;
  text-decoration: none;
}

.logo-link::before {
  display: none;
}

.logo-link:hover .logo-img-wrap .logo-img {
  filter: brightness(1.08) drop-shadow(0 0 8px rgba(255, 255, 255, 0.35));
  transform: scale(1.01);
}

/* Contenedor del logo — sin marco */
.logo-img-wrap {
  position: relative;
  display: block;
  width: 230px;
  height: 115px;
  overflow: visible;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
  transition: all 0.35s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2)) drop-shadow(0 1px 4px rgba(255, 255, 255, 0.15));
}

.logo-img-wrap.logo-house-g {
  width: 52px;
  height: 52px;
  min-width: 52px;
}

.logo-img-wrap--custom {
  width: auto;
  height: 90px;
  min-width: 110px;
  max-width: 320px;
  margin-right: -0.15rem;
  margin-top: -0.7rem;
}

.logo-img-wrap--custom .logo-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  transition: all 0.35s ease;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Si la imagen incluye logo completo (icono + texto), añade class="logo-solo-img" al enlace para ocultar el texto */
.logo-link.logo-solo-img .logo-title,
.logo-link.logo-solo-img .logo-separator,
.logo-link.logo-solo-img .logo-tagline {
  display: none;
}

.logo-svg-house {
  display: block;
  width: 100%;
  height: 100%;
  color: #FF8000;
}

.logo-link:hover .logo-svg-house {
  color: #ff9933;
}

.logo-img-wrap .logo-img {
  transition: filter 0.35s ease;
}

/* Header: logo en rectángulo crema, colores naturales */
.header-glass .logo-img-wrap .logo-img {
  mix-blend-mode: normal;
}

.logo-img {
  display: block;
  height: 115px;
  width: auto;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

/* Logo SVG incrustado (mismo tamaño que .logo-img) */
.logo-svg {
  display: block;
  height: 72px;
  width: auto;
  min-width: 200px;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(120, 90, 40, 0.12);
  transition: box-shadow 0.25s ease;
  flex-shrink: 0;
}


/* Logo + título arriba de la línea naranja; tagline abajo */
.logo-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-left: 0;
}

.logo-headline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.logo-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 0;
  margin-left: -0.1rem;
}

.logo-title-grupo {
  color: #fff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.06em;
}

.logo-title-casas {
  color: #ffffff;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 800;
  letter-spacing: 0.1em;
  position: relative;
}

.header .logo-title::after {
  content: '';
  flex-basis: 100%;
  width: 100%;
  height: 2px;
  margin-top: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
  border-radius: 2px;
  box-shadow: none;
}

.logo-separator {
  display: block;
  width: 100%;
  height: 3px;
  margin: 0.35rem 0 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.logo-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.logo-tagline-gestion {
  color: #fff;
  text-shadow: 
    0 0 3px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.3),
    0 2px 3px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}
.logo-tagline-confianza {
  color: #fff;
  text-shadow: 
    0 0 3px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.3),
    0 2px 3px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}
.logo-tagline-resultados {
  color: #fff;
  text-shadow: 
    0 0 3px rgba(255, 255, 255, 0.6),
    0 0 6px rgba(255, 255, 255, 0.3),
    0 2px 3px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #2c2018 0%, #5a4020 50%, #2c2018 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  color: inherit;
}

.nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.nav a:hover::before {
  left: 100%;
}

.nav a:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav a:active {
  transform: translateY(-1px) scale(0.98);
}

.nav a::after {
  display: none;
}

/* Botones de navegación: directamente sobre el header azul, sin caja blanca */
.nav a[href*="#inicio"],
.nav a[href*="#nosotros"],
.nav a[href*="#propiedades"],
.nav a[href*="#contacto"] {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: none;
}
.nav a[href*="#inicio"]:hover,
.nav a[href*="#nosotros"]:hover,
.nav a[href*="#propiedades"]:hover,
.nav a[href*="#contacto"]:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}
.nav a .nav-icon {
  color: rgba(255, 255, 255, 0.95);
}
.nav a:hover .nav-icon {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  padding-left: 1.25rem;
  flex-shrink: 0;
}

/* Botón burbuja móvil — solo visible en móvil, fijo en esquina inferior izquierda */
.mobile-menu-bubble {
  display: none;
  position: fixed;
  left: max(1rem, var(--safe-left));
  bottom: max(1rem, var(--safe-bottom));
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #204A97 0%, #24324f 100%);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(32, 74, 151, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s ease,
              bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: rgba(32, 74, 151, 0.3);
  touch-action: manipulation;
}

.mobile-menu-bubble.is-scrolling {
  bottom: max(0.25rem, calc(var(--safe-bottom) - 0.75rem));
  transform: translateY(0);
}

.mobile-menu-bubble:active {
  transform: scale(0.95);
}

.mobile-menu-bubble.is-active {
  transform: scale(0.95);
  box-shadow: 0 4px 16px rgba(32, 74, 151, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.mobile-menu-bubble-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2.5px;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.mobile-menu-bubble.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-bubble.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-bubble.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menú móvil — panel flotante que se despliega desde abajo-izquierda */
.mobile-nav {
  display: none;
  position: fixed;
  left: max(1rem, var(--safe-left));
  bottom: calc(max(1rem, var(--safe-bottom)) + 80px);
  min-width: 280px;
  max-width: calc(100vw - 2rem - max(1rem, var(--safe-left)) - max(1rem, var(--safe-right)));
  flex-direction: column;
  gap: 0;
  background: linear-gradient(135deg, #24324f 0%, #1a2538 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transform-origin: bottom left;
  pointer-events: none;
  z-index: 9997;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  max-height: 500px;
  padding: 1rem 0;
}

.mobile-nav-link {
  display: block;
  padding: 0.85rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}

.mobile-nav-link:first-child {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.mobile-nav-link:last-child {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.mobile-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.5rem 1.5rem;
}

.mobile-nav-auth {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.85rem 1.5rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
  touch-action: manipulation;
}

.mobile-nav-auth:hover,
.mobile-nav-auth:active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.icon-link {
  color: #1d3557;
  padding: 0.45rem;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.icon-link:hover {
  color: #204A97;
  background: rgba(32, 74, 151, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(120, 90, 40, 0.08);
}

.icon {
  display: block;
}

.header-actions .auth-link,
.header-actions .btn-auth {
  font: inherit;
  cursor: pointer;
}
.header-actions button.auth-link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.header-actions button.auth-link::before {
  display: none;
}
.header-actions button.auth-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: none;
}
.header-actions button.auth-link:active {
  transform: translateY(-1px);
}
.header-actions a.auth-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  background: transparent;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.header-actions a.auth-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: none;
}
.auth-link {
  font-size: 0.88rem;
  color: #1d3557;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.auth-link:hover {
  color: #204A97;
  background: rgba(32, 74, 151, 0.1);
  transform: translateY(-1px);
}

.btn-auth {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  border-radius: 999px;
  background: rgba(32, 74, 151, 0.12);
  border: 1px solid rgba(32, 74, 151, 0.35);
  color: #1d3557;
  box-shadow: none;
}

.btn-auth:hover {
  background: rgba(32, 74, 151, 0.2);
  box-shadow: 0 4px 14px rgba(32, 74, 151, 0.15);
  border-color: rgba(32, 74, 151, 0.5);
  transform: translateY(-1px);
}

/* Botones (gradiente logo: azul → morado) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radio);
  transition: transform var(--transicion), box-shadow var(--transicion), background var(--transicion);
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.02em;
}

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

.btn-gold,
.btn-primary {
  background: var(--acento-cta);
  color: var(--blanco);
  box-shadow: var(--sombra);
}

.btn-gold:hover,
.btn-primary:hover {
  background: #c92229;
  box-shadow: var(--sombra-hover);
}

.btn-header {
  border-radius: var(--radio);
}

.btn-outline-dark {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}

.btn-outline-dark:hover {
  background: rgba(32, 74, 151, 0.08);
  color: var(--azul);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radio-lg);
}

.btn-hero {
  padding: 1.35rem 3rem;
  font-size: 1.35rem;
  border-radius: var(--radio-full);
  position: relative;
  overflow: hidden;
}

/* ========== Hero v2 — Rediseño corporativo (prompt) ========== */
/* Layout: 2 columnas desktop (texto | imagen), mobile apilado. Fondo gradiente + textura + overlay. */

.hero-v2 {
  position: relative;
  z-index: 1;
  overflow-x: hidden;
  overflow-y: visible;
  isolation: isolate;
  margin-bottom: -10rem;
  padding: 2.5rem max(1.5rem, var(--safe-right)) 14rem max(1.5rem, var(--safe-left));
  background: #fff;
}

/* --- Fondo quitado: la sección usa el fondo de la página --- */
.hero-v2-bg {
  display: none;
}

/* --- Contenedor una columna (sin imagen derecha) --- */
.hero-v2-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  display: block;
  min-height: min(78vh, 760px);
  padding: 2.5rem 0 0;
}

/* --- Columna izquierda: panel unificado, sombra suave y bordes refinados --- */
.hero-v2-left {
  max-width: 1200px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.25rem;
  box-shadow: 0 4px 24px rgba(29, 53, 87, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(32, 74, 151, 0.06);
  overflow: hidden;
}

.hero-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #2d3748;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero-v2-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5a6a8a;
  flex-shrink: 0;
}

/* Título principal: permite wrap por defecto para que no se corte; una línea solo en pantallas anchas */
.hero-v2-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.3;
  color: #1d3557;
  margin: 0 0 0.5rem 0;
  padding-right: 0.5rem;
  text-align: left;
  letter-spacing: 0.01em;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-v2-title-line1,
.hero-v2-title-line3 {
  color: #1d3557;
  font-weight: 700;
}

.hero-v2-title-highlight {
  color: var(--azul);
  font-weight: 800;
}

.hero-v2-title-line3 {
  display: inline;
}

/* Última línea: "para ti." + barra decorativa; permite wrap para que no se corte el texto */
.hero-v2-title-last-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  gap: 0.35rem;
  min-width: 0;
}

/* Texto del título: wrap si no cabe para que "para ti." no se corte */
.hero-v2-title-last-text {
  flex: 1 1 auto;
  min-width: 0;
}

/* En pantallas anchas, título en una sola línea (hay espacio y no se corta) */
@media (min-width: 1100px) {
  .hero-v2-title {
    white-space: nowrap;
  }
  .hero-v2-title-last-text {
    white-space: nowrap;
  }
}

/* Barra naranja decorativa; en pantallas estrechas va a nueva línea */
.hero-v2-title-line {
  flex: 1 1 120px;
  min-width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8b86d 0%, #d4a04a 25%, rgba(212, 160, 74, 0.5) 50%, rgba(212, 160, 74, 0.15) 80%, transparent 100%);
}

/* Estadísticas: separadas del bloque de la imagen por una línea azul, centradas en la franja */
.hero-v2-stats-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 -1.75rem 0;
  min-height: 3.5rem;
  padding: 1.75rem 1.75rem 0.85rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: #1d3557;
  line-height: 1.3;
  letter-spacing: 0.02em;
  background: transparent;
  border-top: 2px solid var(--azul);
  box-sizing: border-box;
  flex-wrap: wrap;
}

/* Escritorio: diseño llamativo con números grandes y etiquetas */
@media (min-width: 769px) {
  .hero-v2-stats-line {
    gap: 0;
    padding: 2rem 2.5rem 2rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,250,252,0.98) 100%);
    border-top: 3px solid var(--azul);
    box-shadow: 0 -4px 24px rgba(32, 74, 151, 0.06);
    min-height: 5.5rem;
  }
  .hero-v2-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0 1.5rem;
    min-width: 0;
  }
  .hero-v2-stats-text--full,
  .hero-v2-stats-bullet {
    display: none;
  }
  .hero-v2-stat-num--desktop {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--azul) 0%, #2a5cb5 50%, #1a3d7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
  }
  @supports not (background-clip: text) {
    .hero-v2-stat-num--desktop { color: var(--azul); -webkit-text-fill-color: var(--azul); background: none; }
  }
  .hero-v2-stat-label--desktop {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gris-texto);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
  }
  .hero-v2-stat-divider--desktop {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(32, 74, 151, 0.2), transparent);
    flex-shrink: 0;
  }
}

.hero-v2-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-v2-stats-text {
  white-space: nowrap;
}

.hero-v2-stats-bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  min-height: 12px;
  border-radius: 50%;
  background: var(--azul);
  flex-shrink: 0;
}

/* --- Bloque: tarjetas + foto; imagen con transición suave hacia las estadísticas --- */
.hero-v2-cards-block {
  --hero-cards-inset: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0 -1.75rem 0;
  width: calc(100% + 3.5rem);
  max-width: none;
  padding: var(--hero-cards-inset) var(--hero-cards-inset) 1.25rem;
  border-radius: 0;
  overflow: hidden;
  min-height: 320px;
  background: #fff;
  border: none;
  border-top: 3px solid var(--azul);
  box-shadow: 0 4px 20px rgba(29, 53, 87, 0.04);
}

/* Fila: tarjetas + área de la foto */
.hero-v2-cards-row {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  min-height: 280px;
  flex-shrink: 0;
}

/* Imagen de fondo: cubre todo el bloque hasta el borde inferior */
.hero-v2-cards-block-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-color: #e8d4b8;
  background-image: url("./img/hero-entrega-llaves.jpg");
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  border-radius: 0;
}

/* Parte izquierda: tarjetas en lista vertical (Consulta gratuita → Proceso transparente → Catálogo actualizado) */
.hero-v2-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

/* Parte derecha: espaciador; la imagen del bloque se ve aquí */
.hero-v2-cards-photo {
  position: relative;
  z-index: 2;
  width: min(44%, 480px);
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 0;
}

/* Overlay: degradado para legibilidad del texto y botones */
.hero-v2-cards-block-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: 0;
  background: linear-gradient(to right,
    #ffffff 0%,
    #ffffff 26%,
    rgba(255, 255, 255, 0.98) 32%,
    rgba(255, 255, 255, 0.92) 40%,
    rgba(255, 255, 255, 0.78) 50%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0.22) 70%,
    transparent 78%);
  pointer-events: none;
}

.hero-v2-card {
  background: transparent;
  padding: 1.75rem 1.85rem;
  border: none;
  pointer-events: none;
  cursor: default;
}

.hero-v2-card:hover {
  background: transparent;
}

/* Icono y título en la misma fila (icono a la izquierda del título); tamaño acorde al espacio útil */
.hero-v2-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.55rem;
}

/* Círculos con checkmark (estilo imagen 1): verde, naranja y azul */
.hero-v2-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
}

.hero-v2-card:nth-child(1) .hero-v2-card-icon {
  background: #22c55e;
}

.hero-v2-card:nth-child(2) .hero-v2-card-icon {
  background: #3b82f6;
}

.hero-v2-card:nth-child(3) .hero-v2-card-icon {
  background: #f59e0b;
}

.hero-v2-card-icon svg {
  width: 26px;
  height: 26px;
}

.hero-v2-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d3557;
  margin: 0;
}

.hero-v2-card-desc {
  font-size: 1.1rem;
  color: #5a6578;
  line-height: 1.45;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.hero-v2-card-bullet {
  width: 6px;
  height: 6px;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: #e67d22;
  margin-top: 0.5em;
  flex-shrink: 0;
}

/* --- Botones sobre la imagen --- */
.hero-v2-btns {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  margin-left: 2rem;
  padding: 0;
}

.hero-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.85rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-v2-btn:hover {
  transform: scale(1.02);
}

/* Pulso y brillo del botón "Consulta gratis" */
@keyframes hero-btn-green-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55), 0 0 20px 4px rgba(37, 211, 102, 0.35);
  }
}

.hero-v2-btn--green {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  animation: hero-btn-green-pulse 2.2s ease-in-out infinite;
}

.hero-v2-btn--green:hover {
  animation: none;
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 0 16px rgba(37, 211, 102, 0.3);
}

.hero-v2-btn--orange {
  background: linear-gradient(180deg, #FF9C40 0%, #FF8000 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 128, 0, 0.35);
}

.hero-v2-btn--orange:hover {
  box-shadow: 0 6px 20px rgba(255, 128, 0, 0.45);
}

.hero-v2-btn--blue {
  background: linear-gradient(180deg, #3A67C4 0%, #2A4F9E 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42, 79, 158, 0.35);
}

.hero-v2-btn--blue:hover {
  box-shadow: 0 6px 20px rgba(42, 79, 158, 0.45);
}

/* Botón "Ver propiedades": fondo blanco, borde y texto azul */
.hero-v2-btn--outline {
  background: #ffffff;
  color: var(--azul, #204A97);
  border: 2px solid var(--azul, #204A97);
  box-shadow: 0 2px 10px rgba(32, 74, 151, 0.12);
}

.hero-v2-btn--outline:hover {
  background: rgba(32, 74, 151, 0.06);
  box-shadow: 0 4px 16px rgba(32, 74, 151, 0.2);
}

/* --- Columna derecha: imagen con bordes redondeados, sombra, overlay --- */
.hero-v2-right {
  position: relative;
}

.hero-v2-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

/* Imagen como background para que no se superponga texto alt cuando falle la carga */
.hero-v2-img {
  width: 100%;
  min-height: 320px;
  background-color: #d4a04a;
  background-image: url("./img/hero-entrega-llaves.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-v2-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

/* --- Estadísticas: fuera del recuadro (transparente) o dentro del recuadro (mismo fondo) --- */
.hero-v2-strip {
  position: relative;
  z-index: 10;
  margin-top: 0;
  padding: 1rem 0 1rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Estadísticas dentro del recuadro: mismo fondo crema, borde superior sutil, esquinas inferiores redondeadas */
.hero-v2-strip--inside-block {
  background: #ffffff;
  padding: 1.75rem var(--hero-cards-inset) 2rem;
  border-radius: 0 0 12px 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
}

.hero-v2-strip-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5.5rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.hero-v2-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 1.5rem;
}

.hero-v2-stat-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-v2-stat-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.hero-v2-stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  color: var(--azul, #204A97);
  line-height: 1.2;
}

.hero-v2-stat-label {
  font-size: 0.95rem;
  color: var(--azul, #204A97);
  font-weight: 500;
  white-space: nowrap;
}

.hero-v2-strip-divider {
  width: 1px;
  height: 48px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* --- Animaciones: fade-in + slide-up (escalonadas) --- */
.hero-v2-anim {
  opacity: 0;
  animation: heroV2FadeUp 0.6s ease forwards;
}

.hero-v2-anim--badge { animation-delay: 0.1s; }
.hero-v2-anim--title { animation-delay: 0.25s; }
.hero-v2-anim--card { animation-delay: calc(0.4s + (var(--i, 0) * 0.1s)); }
.hero-v2-anim--btns { animation-delay: 0.75s; }
.hero-v2-anim--img { animation-delay: 0.35s; }

@keyframes heroV2FadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: hero una columna */
@media (max-width: 900px) {
  .hero-v2-inner {
    min-height: auto;
    padding: 1.5rem 0 0;
  }

  .hero-v2-left {
    max-width: 100%;
  }

  .hero-v2-cards-block {
    flex-direction: column;
  }

  .hero-v2-cards-row {
    flex-direction: column;
    min-height: auto;
  }

  .hero-v2-cards {
    grid-template-columns: 1fr;
    border-radius: 0;
    border-right: none;
  }

  .hero-v2-cards-photo {
    width: 100%;
    min-height: 220px;
    border-radius: 0;
    border-left: none;
  }

  .hero-v2-card {
    border: none;
  }

  .hero-v2-strip-inner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem 1rem;
  }

  .hero-v2-strip-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
  }

  .hero-v2-stat {
    padding: 0.25rem 0;
  }
}

@media (max-width: 600px) {
  .hero-v2-btns {
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-v2-btn {
    width: 100%;
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
  }
}

/* Móvil: mismo panel unificado con padding reducido, sin solapamientos, recuadro completo visible */
@media (max-width: 768px) {
  .hero-v2 {
    margin-bottom: -5rem;
    padding: 1.25rem max(0.75rem, var(--safe-right)) 6rem max(0.75rem, var(--safe-left));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .hero-v2-left {
    padding-left: max(0.75rem, var(--safe-left));
    padding-right: max(0.75rem, var(--safe-right));
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
    overflow: visible;
  }

  .hero-v2-title {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: break-word;
    letter-spacing: 0.025em;
    text-shadow: 0 1px 3px rgba(29, 53, 87, 0.06);
    padding-left: 0.6rem;
    border-left: 3px solid var(--azul);
    margin-left: 0;
  }

  .hero-v2-title-highlight {
    color: var(--azul);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(32, 74, 151, 0.2), 0 0 20px rgba(32, 74, 151, 0.08);
  }

  .hero-v2-title-line3 {
    color: #1d3557;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(29, 53, 87, 0.04);
  }

  .hero-v2-title-last-line {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .hero-v2-title-line {
    min-width: 60px;
  }

  .hero-v2-cards-block {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding-left: max(0.75rem, var(--safe-left));
    padding-right: max(0.75rem, var(--safe-right));
    box-sizing: border-box;
    overflow: visible;
    border-top: none;
    margin-top: 1rem;
    box-shadow: 0 1px 0 0 rgba(29, 53, 87, 0.06), 0 4px 20px rgba(29, 53, 87, 0.04);
  }

  .hero-v2-cards-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(32, 74, 151, 0.12) 25%,
      rgba(32, 74, 151, 0.2) 50%,
      rgba(32, 74, 151, 0.12) 75%,
      transparent 100%);
    z-index: 5;
  }

  /* Móvil: fondo blanco en vez de imagen */
  .hero-v2-cards-block-bg {
    background-image: none;
    background-color: #ffffff;
  }

  .hero-v2-cards-block-overlay {
    background: transparent;
  }

  .hero-v2-cards-photo {
    min-height: 20px;
  }

  .hero-v2-card {
    padding: 1.1rem 1rem;
  }

  .hero-v2-card-title {
    font-size: 1.1rem;
  }

  .hero-v2-card-desc {
    font-size: 0.95rem;
  }

  .hero-v2-btns {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.3rem;
    padding-left: max(0.75rem, var(--safe-left));
    padding-right: max(0.75rem, var(--safe-right));
    width: 100%;
    box-sizing: border-box;
  }

  .hero-v2-btn {
    min-width: 0;
  }

  .hero-v2-stats-line {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 1rem max(0.75rem, var(--safe-left)) 1.25rem max(0.75rem, var(--safe-right));
    min-height: auto;
    border-top: 1px solid rgba(29, 53, 87, 0.08);
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.6) 0%, rgba(255, 255, 255, 0.9) 100%);
  }

  .hero-v2-stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(29, 53, 87, 0.06);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .hero-v2-stat-item:last-child {
    border-bottom: none;
  }

  .hero-v2-stats-bullet {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    background: linear-gradient(135deg, var(--azul) 0%, #2a5cb5 100%);
    box-shadow: 0 1px 3px rgba(32, 74, 151, 0.2);
  }

  .hero-v2-stats-text {
    white-space: normal;
    flex: 1;
    color: var(--azul);
    line-height: 1.4;
    background: linear-gradient(135deg, var(--fondo-oscuro) 0%, var(--gris-texto) 40%, var(--azul) 70%, #2a5cb5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 0 0 transparent;
  }

  @supports not (background-clip: text) {
    .hero-v2-stats-text {
      color: var(--azul);
      background: none;
      -webkit-text-fill-color: var(--azul);
    }
  }

  /* Móvil: ocultar elementos de escritorio */
  .hero-v2-stat-num--desktop,
  .hero-v2-stat-label--desktop,
  .hero-v2-stat-divider--desktop {
    display: none !important;
  }
}

/* Secciones comunes — tipografía alineada al logo (Outfit) */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gris-texto);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-family: 'Outfit', sans-serif;
  color: var(--gris-suave);
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-size: 1rem;
  font-weight: 500;
}

/* ====== Ondas separadoras (HTML + SVG inline: forma visible y moderna) ====== */
.wave-sep {
  position: relative;
  z-index: 10;
  height: clamp(72px, 9vw, 110px);
  margin: 0;
  pointer-events: none;
  line-height: 0;
}

.wave-sep .wave-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Transición tipo hoja: curva suave única + sombra sutil bajo la curva */
.wave-sep--leaf .wave-svg {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.04));
}

/* Ondas: tonalidades de naranja para transiciones suaves entre secciones */
.wave-sep--vision .wave-stop-glow { stop-color: #ffffff; }
.wave-sep--vision .wave-stop-sub  { stop-color: #f8f9fa; }
.wave-sep--vision .wave-stop-mid  { stop-color: #f0f2f5; }
.wave-sep--vision .wave-stop-base { stop-color: #ffffff; }

.wave-sep--propiedades .wave-stop-glow { stop-color: #ffffff; }
.wave-sep--propiedades .wave-stop-sub  { stop-color: #f8f9fa; }
.wave-sep--propiedades .wave-stop-mid  { stop-color: #f0f2f5; }
.wave-sep--propiedades .wave-stop-base { stop-color: #ffffff; }

.wave-sep--nosotros .wave-stop-glow { stop-color: #ffffff; }
.wave-sep--nosotros .wave-stop-sub  { stop-color: #f8f9fa; }
.wave-sep--nosotros .wave-stop-mid  { stop-color: #f0f2f5; }
.wave-sep--nosotros .wave-stop-base { stop-color: #ffffff; }

.wave-sep--contacto .wave-stop-glow { stop-color: #ffffff; }
.wave-sep--contacto .wave-stop-sub  { stop-color: #f8f9fa; }
.wave-sep--contacto .wave-stop-mid  { stop-color: #f0f2f5; }
.wave-sep--contacto .wave-stop-base { stop-color: #ffffff; }

.wave-sep--footer .wave-stop-glow { stop-color: #CC6600; }
.wave-sep--footer .wave-stop-sub  { stop-color: #994D00; }
.wave-sep--footer .wave-stop-mid  { stop-color: #7A3D00; }
.wave-sep--footer .wave-stop-base { stop-color: #663300; }

/* Vision y servicios — fondo blanco/gris muy suave */
.vision-servicios {
  padding: 5rem 0 18rem;
  margin-top: 0;
  margin-bottom: -10rem;
  background: #ffffff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.vision-servicios::after {
  display: none;
  pointer-events: none;
  z-index: 1;
}

.vision-servicios .container {
  position: relative;
  z-index: 2;
}

/* Orbes decorativos — ocultos para fondo blanco (igual que Catálogo) */
.vs-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none;
}

.vs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: vsOrbFloat 18s ease-in-out infinite, vsOrbPulse 8s ease-in-out infinite;
}

.vs-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.20) 0%, transparent 70%);
  top: -10%;
  right: -8%;
}

.vs-orb--2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(204, 102, 0, 0.15) 0%, transparent 70%);
  bottom: -8%;
  left: -5%;
  animation-delay: -6s;
}

.vs-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.12) 0%, transparent 70%);
  top: 45%;
  left: 60%;
  animation-delay: -12s;
}

@keyframes vsOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -35px) scale(1.08); }
  50% { transform: translate(-40px, 28px) scale(0.92); }
  75% { transform: translate(30px, 40px) scale(1.05); }
}

@keyframes vsOrbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Líneas decorativas */
.vs-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.vs-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 74, 151, 0.15), transparent);
}

.vs-line--1 {
  width: 250px;
  top: 15%;
  left: 3%;
  transform: rotate(-12deg);
}

.vs-line--2 {
  width: 200px;
  bottom: 20%;
  right: 5%;
  transform: rotate(8deg);
}

/* Grid background sutil — oculto para quitar letras/figuras del fondo */
.vs-grid-bg {
  display: none;
}

/* Badge */
.vs-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: rgba(32, 74, 151, 0.08);
  border: 1px solid rgba(32, 74, 151, 0.2);
  color: var(--azul);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(32, 74, 151, 0.1);
}

/* Header */
.vision-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.vision-header .section-title {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  color: #1d3557;
  margin-bottom: 0.75rem;
}

@keyframes vsTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.vision-header .section-subtitle {
  margin: 0 auto;
  font-size: 1.05rem;
  max-width: 560px;
  color: #1d3557;
  opacity: 0.8;
}

/* Vision Card */
.vision-card {
  max-width: 820px;
  margin: 4rem auto 3rem;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(32, 74, 151, 0.1);
  padding: 2.25rem 2.5rem;
  border: 1px solid rgba(32, 74, 151, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--azul);
  background-size: 200% 100%;
  animation: visionShimmer 4s linear infinite;
}

@keyframes visionShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.vision-title {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--azul);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.vision-text {
  color: #1d3557;
  font-size: 1rem;
  line-height: 1.75;
}

/* Services Grid — 3 columnas en desktop (3 arriba, 3 abajo) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Service Card — fondo blanco, borde azul */
.service-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 2.25rem 1.75rem 2rem;
  box-shadow: 0 8px 32px rgba(32, 74, 151, 0.08);
  border: 2px solid var(--azul);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(circle at 50% 0%, rgba(32, 74, 151, 0.12), transparent 70%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(32, 74, 151, 0.2), 0 0 0 1px rgba(32, 74, 151, 0.15) inset;
  border-color: rgba(32, 74, 151, 0.3);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover .service-avatar {
  transform: scale(1.1) rotate(3deg);
  box-shadow: 0 14px 28px rgba(32, 74, 151, 0.3);
}

.service-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto;
  background: rgba(32, 74, 151, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 10px 24px rgba(32, 74, 151, 0.15);
  border: 1px solid rgba(32, 74, 151, 0.15);
}

.service-avatar svg {
  width: 36px;
  height: 36px;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d3557;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-text {
  font-size: 0.9rem;
  color: #1d3557;
  line-height: 1.65;
  font-style: italic;
}

.service-list {
  list-style: none;
  font-size: 0.85rem;
  color: #1d3557;
  display: grid;
  gap: 0.45rem;
  text-align: left;
}

.service-list li {
  position: relative;
  padding-left: 1.3rem;
}

.service-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--azul);
  font-weight: 700;
}

/* Botón servicio — rojo (solo CTAs) */
.service-btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  background: #F48B2B;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 4px 16px rgba(244, 139, 43, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-btn:hover {
  background: #e67d1f;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 139, 43, 0.45);
}

/* Modal Auth (Iniciar sesión / Crear cuenta) */
.modal-auth {
  position: fixed;
  inset: 0;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-auth.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-auth-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.modal-auth-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #152a4d 0%, #0f2040 100%);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(32, 74, 151, 0.2);
}
.modal-auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.2s ease;
}
.modal-auth-close:hover {
  background: rgba(255, 255, 255, 0.15);
}
.modal-auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.modal-auth-tab {
  flex: 1;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-auth-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.modal-auth-tab.is-active {
  background: rgba(244, 139, 43, 0.25);
  color: #fff;
  border: 1px solid rgba(244, 139, 43, 0.5);
}
.modal-auth-form {
  display: none;
}
.modal-auth-form.is-active {
  display: block;
}
.modal-auth-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.25rem 0;
}
.modal-auth-field {
  margin-bottom: 1rem;
}
.modal-auth-field label {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
}
.modal-auth-field input {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1rem;
}
.modal-auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.modal-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.btn-auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #F48B2B, #E7282F);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(244, 139, 43, 0.3);
}
.header-auth-logged {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.header-user-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Modal Solicitar servicio */
.modal-solicitar {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-solicitar.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-solicitar-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.modal-solicitar-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(32, 74, 151, 0.1);
  border: 1px solid rgba(32, 74, 151, 0.15);
}
.modal-solicitar-container.modal-servicio-detail {
  max-width: 640px;
  padding: 0 2rem 2rem;
  background: #ffffff;
}
.modal-solicitar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 74, 151, 0.08);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 12px;
  color: #1d3557;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  z-index: 10;
}
.modal-solicitar-close:hover {
  background: rgba(32, 74, 151, 0.12);
  border-color: rgba(32, 74, 151, 0.35);
}
.modal-solicitar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1d3557;
  margin: 0 0 1.5rem 0;
  padding-right: 2.5rem;
}
.modal-solicitar-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.modal-solicitar-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-solicitar-pregunta {
  font-weight: 600;
  color: #1d3557;
  font-size: 1rem;
  margin: 0;
}
.modal-solicitar-ayuda {
  font-size: 0.9rem;
  color: rgba(29, 53, 87, 0.7);
  margin: 0 0 0.25rem 0;
  font-style: italic;
}
.modal-solicitar-aviso {
  font-style: normal;
  color: #1d3557;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(244, 139, 43, 0.12);
  border-radius: 8px;
  border-left: 3px solid #F48B2B;
}
.modal-solicitar-sino {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.modal-solicitar-radio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.modal-solicitar-btn-sino {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 2px solid rgba(32, 74, 151, 0.3);
  color: #1d3557;
  background: rgba(255, 255, 255, 0.8);
}
.modal-solicitar-btn-sino:hover {
  border-color: rgba(32, 74, 151, 0.5);
  background: rgba(32, 74, 151, 0.08);
  color: #1d3557;
}
.modal-solicitar-radio:checked + .modal-solicitar-btn-sino--si {
  border-color: #F48B2B;
  background: rgba(244, 139, 43, 0.2);
  color: #1d3557;
}
.modal-solicitar-radio:checked + .modal-solicitar-btn-sino--no {
  border-color: var(--rojo);
  background: rgba(239, 68, 68, 0.12);
  color: #1d3557;
}
.modal-solicitar-uploads {
  gap: 0.75rem;
}
.modal-solicitar-file-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.modal-solicitar-file-label {
  font-size: 0.9rem;
  color: #1d3557;
}
.modal-solicitar-file {
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(32, 74, 151, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #1d3557;
  font-size: 0.85rem;
}
.modal-solicitar-file::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #F48B2B, #E7282F);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}
.modal-solicitar-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(32, 74, 151, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: #1d3557;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
  min-height: 100px;
}
.modal-solicitar-textarea::placeholder {
  color: rgba(29, 53, 87, 0.5);
}
.modal-solicitar-contador {
  display: block;
  font-size: 0.8rem;
  color: rgba(29, 53, 87, 0.6);
  margin-top: 0.35rem;
}
.modal-solicitar-contador.at-limit {
  color: #F48B2B;
}

.modal-solicitar-actions {
  margin-top: 0.5rem;
}
.modal-solicitar-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Modal detalle de servicio (msd) — texto e iconos en azul; solo el botón CTA en naranja */
.msd-banner {
  background: linear-gradient(135deg, rgba(32, 74, 151, 0.12) 0%, rgba(32, 74, 151, 0.06) 50%, rgba(32, 74, 151, 0.08) 100%);
  border-radius: 16px 16px 0 0;
  padding: 2.25rem 1.5rem;
  margin: 0 -2rem 2rem -2rem;
  border-bottom: 1px solid rgba(32, 74, 151, 0.2);
  position: relative;
  overflow: hidden;
}
.msd-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #204A97, #204A97, #2a5bb5, #204A97);
  background-size: 200% 100%;
  animation: msdShimmer 4s linear infinite;
}
@keyframes msdShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.msd-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 0.6rem;
  padding: 0.3rem 0.75rem;
  background: linear-gradient(135deg, #204A97, #2a5bb5);
  border-radius: 999px;
}
.msd-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #1d3557;
  margin: 0 0 0.4rem 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.msd-tagline {
  font-size: 0.9rem;
  color: rgba(29, 53, 87, 0.75);
  text-align: center;
  margin: 0;
}
.modal-servicio-detail .modal-solicitar-close {
  top: 1rem;
  right: 1rem;
}
.msd-section {
  margin-bottom: 2rem;
}
.msd-desc-wrap {
  margin-bottom: 2rem;
}
.msd-desc-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid #204A97;
}
.msd-desc {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #1d3557;
  margin: 0;
}
.msd-desc + .msd-desc {
  margin-top: 0.85rem;
}
.msd-desc--highlight {
  color: #1d3557;
  font-weight: 600;
}
.msd-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #204A97;
  margin: 0 0 1rem 0;
}
.msd-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(32, 74, 151, 0.15);
  border-radius: 10px;
  color: #204A97;
}

/* Qué incluye — grid de tarjetas */
.msd-incluye-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 0.65rem;
}
.msd-incluye-card {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #1d3557;
  line-height: 1.4;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.msd-incluye-card:hover {
  background: #fff;
  border-color: rgba(32, 74, 151, 0.35);
  transform: translateY(-1px);
}
.msd-incluye-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 74, 151, 0.12);
  border-radius: 8px;
  color: #204A97;
}
.msd-incluye-icon svg {
  width: 16px;
  height: 16px;
}

/* Beneficios — chips destacados */
.msd-beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}
.msd-beneficio-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: #1d3557;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.msd-beneficio-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(32, 74, 151, 0.2);
}
.msd-chip-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #204A97;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Proceso — timeline visual */
.msd-proceso-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.msd-proceso-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, #204A97, rgba(32, 74, 151, 0.4));
  border-radius: 2px;
}
.msd-proceso-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0;
  position: relative;
  padding-left: 0.5rem;
}
.msd-proceso-num {
  position: absolute;
  left: -2rem;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #204A97, #2a5bb5);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(32, 74, 151, 0.35);
}
.msd-proceso-text {
  font-size: 0.95rem;
  color: #1d3557;
  line-height: 1.4;
}

/* Proceso como opciones (sin numeración) */
.msd-proceso-opciones {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
  padding-left: 0 !important;
}
.msd-proceso-opciones::before {
  display: none !important;
}
.msd-proceso-opcion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 10px;
  font-size: 0.92rem;
  color: #1d3557;
  line-height: 1.4;
}
.msd-proceso-opcion .msd-chip-check {
  flex-shrink: 0;
}

/* CTA — énfasis en contactar; solo el botón "Contáctanos ahora" sigue en naranja */
.msd-cta {
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(32, 74, 151, 0.08) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(32, 74, 151, 0.05) 100%);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.msd-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #204A97, transparent);
  opacity: 0.9;
}
.msd-cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #1d3557;
  margin: 0 0 1rem 0;
  line-height: 1.4;
}
.msd-cta-text {
  font-size: 1rem;
  color: #1d3557;
  margin: 0 0 0.9rem 0;
  line-height: 1.65;
}
.msd-cta-highlight {
  color: #204A97;
  font-weight: 700;
  font-size: 1.08em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(32, 74, 151, 0.6);
}
.msd-cta-urge {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(29, 53, 87, 0.8);
  margin: 0 0 1.35rem 0;
  line-height: 1.5;
}
/* Botón "Contáctanos ahora" — verde WhatsApp, llamativo y más grande */
.msd-btn-solicitar {
  width: 100%;
  padding: 1.15rem 1.75rem;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #34e877 0%, #25D366 50%, #20bd5a 100%) !important;
  color: #fff !important;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  letter-spacing: 0.02em;
}
.msd-btn-solicitar:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18);
}
.msd-btn-solicitar:active {
  transform: translateY(0);
}
.msd-btn-solicitar svg {
  flex-shrink: 0;
  width: 1.2em;
  height: 1.2em;
}

@media (max-width: 640px) {
  .modal-solicitar-container.modal-servicio-detail {
    max-width: 100%;
    padding: 0 1.25rem 1.5rem;
  }
  .msd-banner {
    margin: 0 -1.25rem 1.5rem -1.25rem;
    padding: 1.75rem 1rem;
  }
  .msd-incluye-grid {
    grid-template-columns: 1fr;
  }
  .msd-beneficios-grid {
    grid-template-columns: 1fr;
  }
}

/* Catálogo de todos los servicios (misma estructura de rectángulos) */
.catalogo-servicios-wrap {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(32, 74, 151, 0.15);
}

.catalogo-servicios-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.catalogo-servicios-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid--catalogo {
  margin-top: 0;
}

/* Transición verde→morado */

/* ====== PROPIEDADES / CATÁLOGO — fondo blanco ====== */
.propiedades {
  padding: 16rem 0 18rem;
  margin-bottom: -10rem;
  background: #ffffff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.propiedades::after {
  display: none;
}

/* Orbes decorativos — ocultos para fondo blanco sin tinte naranja */
.pp-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none;
}

.pp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  animation: ppOrbFloat 18s ease-in-out infinite, ppOrbPulse 9s ease-in-out infinite;
}

.pp-orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.20) 0%, transparent 70%);
  top: -10%;
  left: -8%;
}

.pp-orb--2 {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(204, 102, 0, 0.16) 0%, transparent 70%);
  bottom: -5%;
  right: -5%;
  animation-delay: -6s;
}

.pp-orb--3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 40%;
  animation-delay: -12s;
}

@keyframes ppOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-45px, 35px) scale(1.08); }
  50% { transform: translate(55px, -30px) scale(0.92); }
  75% { transform: translate(-35px, -40px) scale(1.05); }
}

@keyframes ppOrbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Líneas decorativas moradas */
.pp-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pp-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 74, 151, 0.12), transparent);
}

.pp-line--1 {
  width: 220px;
  top: 12%;
  right: 5%;
  transform: rotate(10deg);
}

.pp-line--2 {
  width: 180px;
  bottom: 15%;
  left: 8%;
  transform: rotate(-8deg);
}

/* Grid background sutil — oculto */
.pp-grid-bg {
  display: none;
}

.propiedades .container {
  position: relative;
  z-index: 2;
}

.propiedades .section-subtitle {
  margin-left: 0;
  margin-bottom: 1.75rem;
}

/* Catalogo header — sobre fondo morado */
.catalogo-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-top: 0.75rem;
  position: relative;
}

.catalogo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.75rem;
  border-radius: 999px;
  background: rgba(32, 74, 151, 0.08);
  color: var(--azul);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(32, 74, 151, 0.2);
}

.catalogo-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 5.8vw, 3.6rem);
  font-weight: 700;
  color: #204A97;
  letter-spacing: 0.06em;
  position: relative;
}

@keyframes ppTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.catalogo-header::after {
  content: '';
  width: min(140px, 40vw);
  height: 3px;
  border-radius: 999px;
  background: var(--azul);
  background-size: 200% 100%;
  animation: ppLineGlow 3s ease infinite;
  box-shadow: 0 4px 16px rgba(32, 74, 151, 0.15);
}

@keyframes ppLineGlow {
  0%, 100% { background-position: 0% 50%; opacity: 0.7; }
  50% { background-position: 100% 50%; opacity: 1; }
}

.catalogo-title::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 80vw);
  height: 90px;
  background: radial-gradient(circle at 50% 50%, rgba(32, 74, 151, 0.08) 0%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
  opacity: 0.85;
}

.catalogo-title::before {
  content: '';
  position: absolute;
  inset: -6px;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: catalogoShine 6s ease-in-out infinite;
  z-index: -1;
}

@keyframes catalogoShine {
  0%, 65% { transform: translateX(-120%); opacity: 0; }
  75% { opacity: 0.8; }
  100% { transform: translateX(120%); opacity: 0; }
}

.filtros-card {
  position: relative;
  z-index: 3;
  margin: -0.5rem auto 3rem;
  max-width: 1100px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(32, 74, 151, 0.1);
  padding: 1.75rem 2rem;
  border: 2px solid #204A97;
  overflow: visible;
}

.filtros-card::before {
  display: none;
}

@keyframes filtrosShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.filtros-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32, 74, 151, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.filtros-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.filtro-field {
  position: relative;
  flex: 1 1 150px;
}

.filtro-field--operacion {
  flex: 0 0 140px;
}

.filtro-field--tipo {
  flex: 0 0 210px;
}

.filtro-field--comuna-text {
  flex: 1 1 280px;
}

.filtro-field--switch {
  flex: 0 0 auto;
}

.filtro-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--azul);
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.filtro-icon svg {
  width: 100%;
  height: 100%;
}

.filtro-select {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 2.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d3557;
  background: #f8fafd;
  border-radius: 16px;
  border: 1.5px solid rgba(32, 74, 151, 0.2);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #204A97 50%), linear-gradient(135deg, #204A97 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 2px), calc(100% - 0.8rem) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.filtro-select-box {
  min-height: 48px;
}

.filtro-select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(32, 74, 151, 0.15);
  background-color: #fff;
  transform: translateY(-1px);
}

/* Desplegable custom: ocultar select nativo y mostrar trigger + panel */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.custom-dropdown-trigger {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  background-image: none;
}

.custom-dropdown-trigger .custom-dropdown-label {
  flex: 1;
  min-width: 0;
}

.custom-dropdown-arrow {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--azul);
  border-bottom: 2px solid var(--azul);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.custom-dropdown.open .custom-dropdown-arrow {
  transform: rotate(-135deg) translateY(-2px);
}

.custom-dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(32, 74, 151, 0.15);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(32, 74, 151, 0.12);
  padding: 6px;
  min-width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-dropdown.open .custom-dropdown-panel[hidden] {
  display: block;
}

.custom-dropdown-option {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  margin: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #1d3557;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.custom-dropdown-option:hover {
  background: rgba(32, 74, 151, 0.08);
  color: var(--azul);
  transform: translateX(4px);
}

.custom-dropdown-option:focus {
  outline: none;
  background: rgba(32, 74, 151, 0.1);
  box-shadow: 0 0 0 2px rgba(32, 74, 151, 0.2);
}

.custom-dropdown-option.is-selected {
  background: rgba(32, 74, 151, 0.12);
  color: var(--azul);
}

.custom-dropdown-option.is-selected:hover {
  background: rgba(32, 74, 151, 0.18);
}

.filtros-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-buscar {
  padding: 0.8rem 1.6rem;
  background: #F48B2B;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(244, 139, 43, 0.35);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@keyframes ppBtnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-buscar:hover {
  background: #e67d1f;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(244, 139, 43, 0.5);
}

.btn-vender {
  padding-inline: 1.3rem;
  background: linear-gradient(135deg, #1a2d4a 0%, #3a86ff 100%);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(26, 45, 74, 0.35);
  font-weight: 500;
}

.btn-vender:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 45, 74, 0.45);
}

/* Campo de texto comuna/ciudad */
.filtro-input-text {
  width: 100%;
  border-radius: 16px;
  border: 1.5px solid rgba(244, 139, 43, 0.25);
  padding: 0.8rem 2.6rem 0.8rem 2.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1d3557;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.filtro-input-text::placeholder {
  color: rgba(29, 53, 87, 0.55);
}

.filtro-input-text:focus {
  outline: none;
  border-color: #204A97;
  box-shadow: 0 0 0 3px rgba(32, 74, 151, 0.15);
  background-color: #fff;
  transform: translateY(-1px);
}

.filtro-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #E7282F;
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.filtro-search-icon svg {
  width: 100%;
  height: 100%;
}

/* Switch proyectos */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--gris-texto);
}

.switch-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d0d7e4;
  transition: background var(--transicion);
}

.switch-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 24, 40, 0.3);
  transition: transform var(--transicion);
}

.switch-input:checked + .switch-toggle {
  background: var(--azul);
}

.switch-input:checked + .switch-toggle::before {
  transform: translateX(15px);
}

.switch-text {
  font-size: 0.9rem;
  color: var(--gris-texto);
}

/* Botón buscar en mapa (secundario) */
.btn-mapa {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.4rem;
  white-space: nowrap;
  background: var(--azul);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  box-shadow: 0 4px 16px rgba(32, 74, 151, 0.25);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  animation: mapaPulse 2.2s ease-in-out infinite;
}

.btn-mapa svg {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes mapaShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes mapaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(32, 74, 151, 0.25), 0 0 0 0 rgba(32, 74, 151, 0.3); }
  50% { transform: scale(1.04); box-shadow: 0 6px 24px rgba(32, 74, 151, 0.4), 0 0 20px 4px rgba(32, 74, 151, 0.35); }
}

@keyframes mapaGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-mapa:hover {
  animation: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(32, 74, 151, 0.35);
}

.btn-mapa:active {
  transform: translateY(-1px) scale(0.98);
}

/* Pulso y brillo del botón "Buscar en mapa" (rojo) */
@keyframes mapa-btn-red-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(231, 40, 47, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(231, 40, 47, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 28px rgba(231, 40, 47, 0.55), 0 2px 8px rgba(0, 0, 0, 0.15), 0 0 24px 6px rgba(231, 40, 47, 0.4);
  }
}

/* Botón Buscar en mapa en cabecera destacadas — rojo llamativo */
.btn-mapa--destacadas {
  background: linear-gradient(135deg, #E7282F 0%, #c41e24 50%, #a0181d 100%);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(231, 40, 47, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  gap: 0.6rem;
  animation: mapa-btn-red-pulse 2.2s ease-in-out infinite;
}
.btn-mapa--destacadas svg {
  width: 22px;
  height: 22px;
}
.btn-mapa--destacadas:hover {
  animation: none;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(231, 40, 47, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ee323a 0%, #d92228 50%, #b01c21 100%);
}
.btn-mapa--destacadas:active {
  transform: translateY(-1px) scale(0.98);
}

/* Propiedades destacadas — estilo editorial */
.destacadas-section {
  margin-bottom: 3.5rem;
  position: relative;
  padding: 2rem 0 2.25rem;
  overflow: visible;
}

.destacadas-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3rem;
  padding-left: 1rem;
  border-left: 4px solid #E7282F;
}

/* Estilo moderno mejorado: icono en caja + texto agrupado */
.destacadas-header--modern {
  padding-left: 0;
  border-left: none;
  margin-bottom: 2.75rem;
  padding: 1.5rem 0;
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2rem;
}
.destacadas-header-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.destacadas-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(244, 139, 43, 0.2) 0%, rgba(244, 139, 43, 0.1) 50%, rgba(32, 74, 151, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(244, 139, 43, 0.3);
  box-shadow: 0 4px 16px rgba(244, 139, 43, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.destacadas-icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.destacadas-icon-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 139, 43, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border-color: rgba(244, 139, 43, 0.4);
}
.destacadas-icon-box:hover::before {
  opacity: 1;
}
.destacadas-icon-box svg {
  color: #F48B2B;
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(244, 139, 43, 0.2));
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}
.destacadas-icon-box:hover svg {
  transform: scale(1.1) rotate(5deg);
}
.destacadas-text-group {
  flex: 1;
  padding-top: 0.15rem;
  min-width: 0;
}
.destacadas-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  min-width: 0;
  margin-bottom: 0.35rem;
}
.destacadas-title-row .btn-mapa--destacadas {
  flex-shrink: 0;
}
.btn-mapa-text-short {
  display: none;
}
.destacadas-title--modern {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #1d3557;
  margin: 0;
  letter-spacing: 0.015em;
  line-height: 1.15;
  min-width: 0;
  background: linear-gradient(135deg, #1d3557 0%, #204A97 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.destacadas-subtitle--modern {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  color: #5a6c7d;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.025em;
  position: relative;
  padding-left: 1.5rem;
}
.destacadas-subtitle--modern::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #F48B2B;
  font-weight: 600;
  font-size: 1rem;
}

.destacadas-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: transparent;
  color: #E7282F;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid rgba(231, 40, 47, 0.5);
  margin-bottom: 0.5rem;
}

.destacadas-title-wrap {
  margin-top: 0;
}

.destacadas-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  color: #1d3557;
  margin: 0 0 0.4rem 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.destacadas-subtitle {
  font-size: 1rem;
  color: #3d5068;
  margin: 0;
  max-width: 520px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.destacadas-accent {
  color: #E7282F;
  font-weight: 700;
  font-style: italic;
  position: relative;
}

.destacadas-accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, #E7282F 0%, #F48B2B 100%);
  border-radius: 2px;
  opacity: 0.7;
}

.destacadas-link {
  border: none;
  background: transparent;
  color: #E7282F;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color var(--transicion);
}

.destacadas-link:hover {
  color: #c92229;
}

.destacadas-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 8px;
  padding-bottom: 0.4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.destacadas-carousel::-webkit-scrollbar {
  display: none;
}

/* Mapa + filtros avanzados */
/* CTA Mapa — banner para abrir mapa en página dedicada */
.mapa-cta {
  margin: 2rem 0 3rem;
}

.mapa-cta-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafd 40%, #fffbf8 100%);
  box-shadow: 0 18px 40px rgba(29, 53, 87, 0.12), 0 0 0 1px rgba(32, 74, 151, 0.08) inset;
  position: relative;
  overflow: hidden;
}

.mapa-cta-inner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(32, 74, 151, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.mapa-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(32, 74, 151, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(32, 74, 151, 0.12);
}

.mapa-cta-text {
  flex: 1;
  position: relative;
  z-index: 1;
}

.mapa-cta-badge {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--azul);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  border: 1px solid rgba(32, 74, 151, 0.2);
  margin-bottom: 0.5rem;
}

.mapa-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gris-texto);
  margin-bottom: 0.25rem;
}

.mapa-cta-desc {
  font-size: 0.9rem;
  color: var(--gris-suave);
}

.mapa-cta-btn {
  flex-shrink: 0;
  border-radius: 14px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}


.destacadas-shell {
  position: relative;
  padding: 0 0.5rem;
  margin-top: 0.5rem;
  overflow: visible;
}

.destacadas-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d1d9e0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1d3557;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.destacadas-arrow--left {
  left: -4px;
}

.destacadas-arrow--right {
  right: -4px;
}

.destacadas-arrow:hover {
  background: #1d3557;
  color: #fff;
  border-color: #1d3557;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.25);
}

.destacadas-arrow svg {
  width: 18px;
  height: 18px;
}

.card-destacada {
  flex: 0 0 360px;
  max-width: 380px;
  background: #ffffff;
  border: 2px solid var(--azul);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(32, 74, 151, 0.12);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-destacada:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(32, 74, 151, 0.2);
  border-color: #1a3d7a;
  transform: translateY(-6px);
}

.card-destacada-img {
  position: relative;
  height: 250px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-destacada-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 30, 0.45) 0%, transparent 50%);
  pointer-events: none;
}

/* Badge sobre la imagen */
.card-destacada-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #204A97 0%, #E7282F 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(231, 40, 47, 0.4);
  letter-spacing: 0.02em;
}

.card-destacada-badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.card-destacada-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

/* Etiqueta PROYECTO */
.card-destacada-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7282F;
  margin-bottom: 0.05rem;
}

.card-destacada-tipo {
  font-size: 0.85rem;
  color: #1d3557;
  opacity: 0.8;
}

/* Nombre del proyecto */
.card-destacada-nombre {
  font-family: 'Outfit', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #1d3557;
  line-height: 1.3;
}

/* Ubicación con check */
.card-destacada-ubicacion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: #1d3557;
  opacity: 0.75;
  margin-bottom: 0.35rem;
}

.card-destacada-ubicacion .check-icon {
  width: 14px;
  height: 14px;
  color: #E7282F;
  flex-shrink: 0;
}

.card-destacada-label {
  display: block;
  font-size: 0.78rem;
  color: #1d3557;
  opacity: 0.6;
}

.card-destacada-precio {
  font-size: 1.45rem;
  font-weight: 800;
  color: #F48B2B;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

/* Detalles */
.card-destacada-detalles {
  font-size: 0.82rem;
  color: #1d3557;
  opacity: 0.75;
}

.card-destacada-detalles .sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(29, 53, 87, 0.25);
  margin: 0 0.4rem;
  vertical-align: middle;
}

/* Dirección */
.card-destacada-direccion {
  font-size: 0.8rem;
  color: #1d3557;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Estado */
.card-destacada-estado {
  font-size: 0.8rem;
  color: #059669;
  font-weight: 500;
}

/* Unidades */
.card-destacada-unidades {
  font-size: 0.8rem;
  color: #1d3557;
  opacity: 0.7;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(244, 139, 43, 0.15);
  margin-top: auto;
}

/* Separador entre destacadas y viviendas disponibles */
.catalogo-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
  padding: 0 1rem;
}
.catalogo-separator-line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(32, 74, 151, 0.35), transparent);
  border-radius: 2px;
}
.catalogo-separator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(32, 74, 151, 0.5);
  flex-shrink: 0;
}

/* =============================================
   VIVIENDAS DISPONIBLES — Grid tipo proyecto
   ============================================= */
.viviendas-section {
  margin-top: 0;
  margin-bottom: 3rem;
  position: relative;
}

.viviendas-header {
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.viviendas-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  background: linear-gradient(135deg, #1d3557 0%, #204A97 50%, #2d5aa8 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: viviendaTitleShimmer 5s ease infinite;
  margin-bottom: 0.4rem;
  position: relative;
  display: inline-block;
}

.viviendas-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.6rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #204A97, #2d5aa8);
  animation: viviendaLineGlow 3s ease infinite alternate;
}

@keyframes viviendaTitleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes viviendaLineGlow {
  0% { width: 40px; opacity: 0.6; }
  100% { width: 80px; opacity: 1; }
}

.viviendas-subtitle {
  font-size: 1rem;
  color: #5a6c7d;
  margin-top: 0.5rem;
}

.viviendas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.destacadas-empty,
.viviendas-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #5a6c7d;
  padding: 2rem 1rem;
}
.destacadas-empty {
  padding-left: 3.5rem;
  padding-right: 3.5rem;
}

.viviendas-empty {
  grid-column: 1 / -1;
}

/* Tarjeta de vivienda (proyecto) */
.card-vivienda {
  background: #ffffff;
  border: 2px solid var(--azul);
  border-radius: var(--radio-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(32, 74, 151, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-vivienda:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(32, 74, 151, 0.2);
  border-color: var(--azul);
}

/* Imagen */
.card-vivienda-img {
  position: relative;
  height: 210px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-vivienda-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 10, 30, 0.45) 0%, transparent 50%);
  pointer-events: none;
}

/* Badge sobre la imagen (ej: "Subsidio Tasa Hipotecaria") */
.card-vivienda-badge-img {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: linear-gradient(135deg, #204A97 0%, #E7282F 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(231, 40, 47, 0.4);
  letter-spacing: 0.02em;
}

.card-vivienda-badge-img svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Cuerpo de la tarjeta */
.card-vivienda-body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

/* Etiqueta PROYECTO */
.card-vivienda-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E7282F;
  margin-bottom: 0.15rem;
}

/* Tipo de propiedad */
.card-vivienda-tipo {
  font-size: 0.85rem;
  color: #1d3557;
  opacity: 0.8;
  margin-bottom: 0.05rem;
}

/* Nombre del proyecto */
.card-vivienda-nombre {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 0.1rem;
  line-height: 1.3;
}

/* Ubicación con check */
.card-vivienda-ubicacion {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #1d3557;
  opacity: 0.75;
  margin-bottom: 0.45rem;
}

.card-vivienda-ubicacion .check-icon {
  width: 14px;
  height: 14px;
  color: #E7282F;
  flex-shrink: 0;
}

/* Precio */
.card-vivienda-desde {
  font-size: 0.75rem;
  color: #1d3557;
  opacity: 0.65;
  margin-bottom: 0.1rem;
}

.card-vivienda-precio {
  font-size: 1.45rem;
  font-weight: 800;
  color: #F48B2B;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

/* Detalles (dormitorios | baños | m²) */
.card-vivienda-detalles {
  font-size: 0.82rem;
  color: #1d3557;
  opacity: 0.75;
  margin-bottom: 0.2rem;
}

.card-vivienda-detalles .sep {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: rgba(29, 53, 87, 0.25);
  margin: 0 0.45rem;
  vertical-align: middle;
}

/* Dirección */
.card-vivienda-direccion {
  font-size: 0.8rem;
  color: #1d3557;
  opacity: 0.65;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Estado de venta */
.card-vivienda-estado {
  font-size: 0.78rem;
  color: #059669;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

/* Unidades disponibles */
.card-vivienda-unidades {
  font-size: 0.8rem;
  color: #1d3557;
  opacity: 0.7;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(244, 139, 43, 0.15);
  margin-top: auto;
}

/* Botón ver más proyectos + Buscar en mapa */
.viviendas-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.viviendas-footer-mapa {
  text-decoration: none;
}

.btn-ver-mas-viviendas {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.75rem;
  background: linear-gradient(135deg, #204A97 0%, #2d5aa8 50%, #204A97 100%);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(32, 74, 151, 0.35);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  animation: verMasShimmer 4s ease infinite;
}

@keyframes verMasShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-ver-mas-viviendas:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 36px rgba(231, 40, 47, 0.45);
}

.btn-ver-mas-viviendas:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-ver-mas-viviendas svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.btn-ver-mas-viviendas:hover svg {
  transform: translateX(4px);
}

/* Responsive viviendas grid */
@media (max-width: 1024px) {
  .viviendas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comunas-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .viviendas-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .viviendas-title {
    font-size: 2.25rem;
  }
  .card-vivienda-img {
    height: 180px;
  }
  .comunas-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .comuna-card {
    min-height: 140px;
  }
  .viviendas-comuna-title {
    font-size: 1.5rem;
  }
  .viviendas-comuna-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-volver-comunas {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   MODAL DETALLE DE VIVIENDA
   ============================================= */
.modal-vivienda {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(2rem, var(--safe-top)) max(1rem, var(--safe-right)) max(2rem, var(--safe-bottom)) max(1rem, var(--safe-left));
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal-vivienda.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-vivienda-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
}

.modal-vivienda-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1050px;
  max-height: calc(100vh - 4rem);
  margin: auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid rgba(32, 74, 151, 0.2);
  border-radius: 22px;
  box-shadow: 0 32px 64px rgba(32, 74, 151, 0.12), 0 0 0 1px rgba(32, 74, 151, 0.06) inset;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-vivienda.is-open .modal-vivienda-container {
  transform: translateY(0) scale(1);
}

/* Un solo scroll dentro del modal; sin flex para evitar espacio vacío abajo */
.modal-vivienda-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: calc(100vh - 4rem);
  /* Capa propia para scroll fluido y evitar que el contenido “salte” */
  transform: translateZ(0);
  contain: paint;
  backface-visibility: hidden;
}

.modal-vivienda-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 74, 151, 0.2);
  border-radius: 12px;
  color: #1d3557;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.modal-vivienda-close:hover {
  background: rgba(32, 74, 151, 0.1);
  border-color: rgba(32, 74, 151, 0.35);
  color: #204A97;
  transform: rotate(90deg);
}

/* Body: columna izquierda (galería + descripción) y derecha (info) */
.modal-vivienda-body {
  display: grid;
  grid-template-columns: 1.15fr 340px;
  gap: 1.25rem;
  flex-shrink: 0;
  align-items: start;
}

/* Columna izquierda: galería y descripción */
.mv-col-izq {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  padding-right: 0.25rem;
}

/* ——— Galería ——— */
.mv-galeria {
  display: flex;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 0;
  padding-right: 1rem;
}

.mv-galeria-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 64px;
  flex-shrink: 0;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 74, 151, 0.3) transparent;
}

.mv-thumb {
  width: 64px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.mv-thumb.is-active,
.mv-thumb:hover {
  opacity: 1;
  border-color: #204A97;
}

.mv-galeria-main {
  position: relative;
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  min-height: 340px;
  max-height: 420px;
}

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

.mv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.mv-nav:hover {
  background: rgba(32, 74, 151, 0.85);
}

.mv-nav--prev { left: 0.6rem; }
.mv-nav--next { right: 0.6rem; }

.mv-nav svg {
  width: 18px;
  height: 18px;
}

/* Botón Ver más grande (sobre la imagen principal) */
.mv-btn-ver-mas-grande {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(29, 53, 87, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.mv-btn-ver-mas-grande:hover {
  background: rgba(32, 74, 151, 0.95);
  transform: translateY(-1px);
}
.mv-btn-ver-mas-grande:active {
  transform: translateY(0);
}
.mv-btn-ver-mas-grande svg {
  flex-shrink: 0;
}

/* Columna de videos: en fila desde arriba hacia abajo; mismo tamaño que miniaturas de foto (64×50) */
.mv-galeria-videos {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 92px;
  min-width: 92px;
  flex-shrink: 0;
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  border-left: 1px solid rgba(32, 74, 151, 0.12);
  align-items: center;
  justify-content: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 74, 151, 0.3) transparent;
  box-sizing: border-box;
}

.mv-galeria-videos[hidden] {
  display: none;
}

.mv-video-item {
  position: relative;
  width: 64px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  border: 2px solid #204A97;
  padding: 0;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mv-video-item:hover {
  opacity: 1;
  border-color: #1a3d7a;
  box-shadow: 0 0 0 1px #1a3d7a;
}

.mv-video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.mv-video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  pointer-events: none;
}

.mv-video-play-icon svg {
  width: 100%;
  height: 100%;
}

/* Lightbox de video: se despliega en pantalla al hacer clic en la miniatura */
.mv-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}

.mv-video-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.mv-video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.mv-video-lightbox-inner {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mv-video-lightbox-video {
  width: 100%;
  display: block;
  max-height: 80vh;
}

.mv-video-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.mv-video-lightbox-close:hover {
  background: rgba(32, 74, 151, 0.9);
}

.mv-video-lightbox-close svg {
  width: 22px;
  height: 22px;
}

body.mv-video-lightbox-open {
  overflow: hidden;
}

.mv-img-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(29, 53, 87, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  z-index: 2;
}

/* Lightbox imagen más grande */
.mv-lightbox-imagen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s ease, opacity 0.2s ease;
}
.mv-lightbox-imagen.is-open {
  visibility: visible;
  opacity: 1;
}
body.mv-lightbox-imagen-open { overflow: hidden; }
.mv-lightbox-imagen-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.mv-lightbox-imagen-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}
.mv-lightbox-imagen-inner {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mv-lightbox-imagen-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.mv-lightbox-imagen-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d3557;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mv-lightbox-imagen-close:hover {
  background: #fff;
  transform: scale(1.05);
}
.mv-lightbox-imagen-close:focus {
  outline: 2px solid #204A97;
  outline-offset: 2px;
}

.mv-lightbox-imagen-prev,
.mv-lightbox-imagen-next {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1d3557;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}
.mv-lightbox-imagen-prev:hover,
.mv-lightbox-imagen-next:hover {
  background: #fff;
  transform: scale(1.08);
}
.mv-lightbox-imagen-prev:active,
.mv-lightbox-imagen-next:active {
  transform: scale(0.95);
}
.mv-lightbox-imagen-prev:focus,
.mv-lightbox-imagen-next:focus {
  outline: 2px solid #204A97;
  outline-offset: 2px;
}

/* ——— Info panel ——— */
.mv-info {
  padding: 1.5rem 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-left: 1px solid rgba(32, 74, 151, 0.2);
  min-width: 0;
  flex-shrink: 0;
}

.mv-badge-tipo {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #204A97, #2a5bb5);
  color: #fff;
  border: none;
  margin-bottom: 0.2rem;
}

.mv-nombre {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #1d3557;
  line-height: 1.25;
}

.mv-publicado {
  font-size: 0.82rem;
  color: rgba(29, 53, 87, 0.7);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.mv-publicado strong {
  color: #204A97;
}

.mv-publicado .check-icon {
  width: 14px;
  height: 14px;
  color: #204A97;
}

/* Precio */
.mv-precio-block {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(32, 74, 151, 0.2);
  border-bottom: 1px solid rgba(32, 74, 151, 0.2);
}

.mv-desde {
  font-size: 0.78rem;
  color: rgba(29, 53, 87, 0.7);
}

.mv-precio {
  font-size: 1.8rem;
  font-weight: 800;
  color: #204A97;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Specs */
.mv-specs {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.35rem 0;
}

.mv-spec-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #1d3557;
}

.mv-spec-row svg {
  width: 16px;
  height: 16px;
  color: #204A97;
  flex-shrink: 0;
}

.mv-unidades {
  font-size: 0.88rem;
  font-weight: 700;
  color: #204A97;
}

/* Botón contactar */
/* Pulso del botón "Consultar por esta propiedad" */
@keyframes mv-btn-pulse {
  0%, 100% {
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.6), 0 0 0 4px rgba(34, 197, 94, 0.15);
    transform: scale(1.02);
  }
}

.mv-btn-contactar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.4);
  transition: background 0.25s ease, color 0.25s ease;
  animation: mv-btn-pulse 2.5s ease-in-out infinite;
}

.mv-btn-contactar:hover {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  animation: none;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.5);
}

.mv-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  flex-shrink: 0;
}

.mv-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(180deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-btn-whatsapp:hover {
  background: linear-gradient(180deg, #2ee871 0%, #25D366 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Detalles */
.mv-detalle-section,
/* Descripción: debajo de la galería en columna izquierda */
.mv-descripcion-section {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(32, 74, 151, 0.15);
  margin: 0 1.25rem 1.25rem 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(32, 74, 151, 0.12);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 74, 151, 0.35) rgba(32, 74, 151, 0.08);
}
.mv-descripcion-section::-webkit-scrollbar {
  width: 8px;
}
.mv-descripcion-section::-webkit-scrollbar-track {
  background: rgba(32, 74, 151, 0.08);
  border-radius: 4px;
}
.mv-descripcion-section::-webkit-scrollbar-thumb {
  background: rgba(32, 74, 151, 0.35);
  border-radius: 4px;
}
.mv-descripcion-section::-webkit-scrollbar-thumb:hover {
  background: rgba(32, 74, 151, 0.5);
}

.mv-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 0.6rem;
}

.mv-detalle-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mv-detalle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.mv-detalle-row svg {
  width: 15px;
  height: 15px;
  color: #204A97;
  flex-shrink: 0;
}

.mv-detalle-label {
  color: rgba(29, 53, 87, 0.7);
}

.mv-detalle-value {
  color: #1d3557;
  font-weight: 500;
}

.mv-descripcion {
  font-size: 0.88rem;
  color: #1d3557;
  line-height: 1.65;
  opacity: 0.9;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Información de la zona (debajo de Descripción) */
.mv-zona-section {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(32, 74, 151, 0.15);
  margin: 0 1.25rem 1.25rem 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(32, 74, 151, 0.12);
}

.mv-zona-intro {
  font-size: 0.82rem;
  color: rgba(29, 53, 87, 0.8);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.mv-zona-intro-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(29, 53, 87, 0.6);
  margin-top: 0.35rem;
  font-style: italic;
}

.mv-zona-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(32, 74, 151, 0.2);
  margin-bottom: 1rem;
}

.mv-zona-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem 0.65rem;
  border: none;
  background: transparent;
  color: rgba(29, 53, 87, 0.6);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  margin-bottom: -1px;
  transition: color 0.2s ease;
}

.mv-zona-tab:hover {
  color: #1d3557;
}

.mv-zona-tab.is-active {
  color: #204A97;
}

.mv-zona-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #204A97;
  border-radius: 2px 2px 0 0;
}

.mv-zona-tab svg {
  flex-shrink: 0;
  color: inherit;
}

.mv-zona-panel {
  display: none;
}

.mv-zona-panel.is-active {
  display: block;
}

.mv-zona-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d3557;
  margin-bottom: 0.6rem;
}

.mv-zona-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mv-zona-list li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mv-zona-nombre {
  font-size: 0.88rem;
  color: #1d3557;
  font-weight: 500;
}

.mv-zona-distancia {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(29, 53, 87, 0.7);
}

.mv-zona-distancia svg {
  flex-shrink: 0;
  color: #204A97;
  opacity: 0.9;
}

/* Características del inmueble (debajo de Información de la zona) */
.mv-caracteristicas-section {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(32, 74, 151, 0.15);
  margin: 0 1.25rem 1.25rem 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(32, 74, 151, 0.12);
}

.mv-caracteristicas-grid {
  display: flex;
  flex-direction: column;
  margin-top: 0.6rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(32, 74, 151, 0.2);
}

.mv-caracteristicas-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(32, 74, 151, 0.1);
}

.mv-caracteristicas-row:last-child {
  border-bottom: none;
}

.mv-caracteristicas-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.5);
}

.mv-caracteristicas-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.7);
}

.mv-caracteristicas-label {
  font-weight: 600;
  color: #1d3557;
}

.mv-caracteristicas-value {
  color: #1d3557;
  text-align: right;
}

/* Comodidades y mapa van en columna derecha, debajo de Información del proyecto */
.mv-info .mv-comodidades-section {
  margin-top: 1rem;
}

.mv-info .mv-mapa-wrap {
  margin-top: 1rem;
}

.mv-mapa-wrap {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(32, 74, 151, 0.15);
  min-height: 180px;
  flex-shrink: 0;
}

.mv-mapa-mini {
  width: 100%;
  height: 180px;
  min-height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(32, 74, 151, 0.25);
  background: #e8eef5;
}

.mv-mapa-mini .leaflet-control-attribution {
  display: none;
}

.mv-mapa-leyenda {
  font-size: 0.75rem;
  color: rgba(29, 53, 87, 0.7);
  margin: 0.5rem 0 0;
}

.mv-comodidades-section {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(32, 74, 151, 0.15);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(32, 74, 151, 0.12);
}

.mv-section-title--accent {
  color: #204A97;
  border-bottom: 2px solid #204A97;
  padding-bottom: 0.35rem;
  display: inline-block;
}

.mv-comodidades-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mv-comodidades-list li {
  font-size: 0.88rem;
  color: #1d3557;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(32, 74, 151, 0.12);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mv-comodidades-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #204A97;
  flex-shrink: 0;
}

.mv-comodidades-list li:last-child {
  border-bottom: none;
}

/* ——— Modal responsive ——— */
@media (max-width: 900px) {
  .modal-vivienda-body {
    grid-template-columns: 1fr;
  }

  .mv-galeria {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .mv-galeria-thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .mv-thumb {
    width: 56px;
    height: 44px;
  }

  .mv-galeria-main {
    flex: 1 1 100%;
    min-height: 260px;
    max-height: 320px;
  }

  .mv-galeria-videos {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
    padding-left: 0;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-left: none;
    border-top: 1px solid rgba(32, 74, 151, 0.12);
  }

  .mv-col-izq {
    padding-right: 0;
  }

  .mv-galeria {
    padding: 1rem 1rem 0;
  }

  .mv-descripcion-section,
  .mv-zona-section,
  .mv-caracteristicas-section {
    margin: 0 1rem 1rem 0;
    padding: 1rem;
  }

  .mv-comodidades-section {
    margin: 0;
    padding: 1rem;
  }

  .mv-info {
    border-left: none;
    border-top: 1px solid rgba(32, 74, 151, 0.2);
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .modal-vivienda {
    padding: 0;
  }

  .modal-vivienda-container {
    border-radius: 0;
    min-height: 100vh;
  }

  .mv-galeria {
    flex-direction: column;
    padding: 0.85rem 0.85rem 0;
  }

  .mv-descripcion-section,
  .mv-zona-section,
  .mv-caracteristicas-section {
    margin: 0 0.85rem 1rem 0;
    padding: 0.85rem;
  }

  .mv-comodidades-section {
    padding: 0.85rem;
  }

  .mv-galeria-main {
    min-height: 220px;
    max-height: 280px;
  }

  .mv-nombre {
    font-size: 1.2rem;
  }

  .mv-precio {
    font-size: 1.5rem;
  }
}

/* Bloquear scroll del body cuando modal está abierto */
body.modal-open {
  overflow: hidden;
}

/* Mensaje sin resultados (por si se reutiliza) */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gris-suave);
  font-size: 1rem;
}

/* ——— Parte 1: Selector de comunas (fotos reales de viviendas) ——— */
.comunas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.comuna-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
  padding: 0;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  overflow: hidden;
  background-color: #e8f5e9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.comuna-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.comuna-card.active {
  box-shadow: 0 0 0 3px var(--azul), 0 16px 40px rgba(0, 0, 0, 0.15);
}

.comuna-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
  pointer-events: none;
}

.comuna-card-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}

.comuna-card-name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.comuna-card-count {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.comuna-card.active .comuna-card-name {
  color: #fff;
}

/* ——— Parte 2: Zona de resultados dinámicos ——— */
.resultados-wrap {
  margin-top: 1.5rem;
  background: rgba(254, 254, 254, 0.92);
  border: 1px solid var(--borde);
  border-radius: var(--radio-xl);
  box-shadow: var(--sombra);
  overflow: hidden;
  transform: translateY(8px);
  opacity: 0;
  max-height: 0;
  padding: 0 1.25rem;
  transition: max-height 0.45s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease;
}

.resultados-wrap.is-open {
  opacity: 1;
  transform: translateY(0);
  max-height: 2000px; /* suficiente para múltiples tarjetas */
  padding: 1.25rem;
}

.resultados-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.resultados-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--borde);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--gris-suave);
  cursor: pointer;
  transition: background var(--transicion), color var(--transicion), transform var(--transicion);
  flex-shrink: 0;
}

.resultados-close:hover {
  background: rgba(32, 74, 151, 0.08);
  color: var(--gris-texto);
  transform: translateY(-1px);
}

.resultados-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gris-texto);
  margin-bottom: 0;
}

.grid-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.resultados-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  background: var(--blanco);
  border-radius: var(--radio-xl);
  border: 2px dashed var(--borde);
}

.resultados-empty p {
  margin: 0;
  color: var(--gris-suave);
  font-size: 1.05rem;
}

/* Tarjetas de propiedad (en resultados) */
.card-propiedad {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 139, 43, 0.12);
  border-radius: var(--radio-xl);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.card-propiedad:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(244, 139, 43, 0.2);
  border-color: rgba(244, 139, 43, 0.3);
}

.card-img-wrap {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-img-1 {
  background: linear-gradient(145deg, var(--rojo), #ff6b6b);
}

.card-img-2 {
  background: linear-gradient(145deg, var(--azul), #3a6bb5);
}

.card-img-3 {
  background: linear-gradient(145deg, var(--acento-cta), #c92229);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-propiedad-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-propiedad-precio {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.25rem;
}

.card-propiedad-tipo {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.15rem;
}

.card-propiedad-ubicacion {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Nosotros — 65-75% blanco, 20-25% azul */
.nosotros {
  padding: 16rem 0 18rem;
  margin-bottom: -10rem;
  background: #ffffff;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.nosotros::after {
  display: none;
}

/* Orbes decorativos — ocultos para fondo blanco sin tinte naranja */
.ns-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none;
}

.ns-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  animation: nsOrbFloat 20s ease-in-out infinite, nsOrbPulse 10s ease-in-out infinite;
}

.ns-orb--1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.22) 0%, transparent 70%);
  top: -12%;
  right: -6%;
}

.ns-orb--2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(204, 102, 0, 0.16) 0%, transparent 70%);
  bottom: -8%;
  left: -4%;
  animation-delay: -7s;
}

.ns-orb--3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.14) 0%, transparent 70%);
  top: 45%;
  left: 55%;
  animation-delay: -13s;
}

@keyframes nsOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -35px) scale(1.08); }
  50% { transform: translate(-40px, 32px) scale(0.92); }
  75% { transform: translate(32px, 45px) scale(1.05); }
}

@keyframes nsOrbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Líneas decorativas rojas */
.ns-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ns-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 74, 151, 0.12), transparent);
}

.ns-line--1 {
  width: 240px;
  top: 18%;
  left: 5%;
  transform: rotate(-10deg);
}

.ns-line--2 {
  width: 190px;
  bottom: 22%;
  right: 6%;
  transform: rotate(7deg);
}

/* Grid sutil — oculto */
.ns-grid-bg {
  display: none;
}

/* Badge */
.ns-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: rgba(32, 74, 151, 0.08);
  border: 1px solid rgba(32, 74, 151, 0.2);
  color: var(--azul);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.1);
}

/* Transición rojo→claro */

.nosotros .container {
  position: relative;
  z-index: 2;
}

.flex-nosotros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3.5rem;
}

.nosotros-img-wrap {
  height: 380px;
  background: linear-gradient(145deg, rgba(32, 74, 151, 0.1), rgba(32, 74, 151, 0.05));
  border-radius: 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(32, 74, 151, 0.1);
  overflow: hidden;
  border: 1px solid rgba(32, 74, 151, 0.15);
}

.nosotros-img-wrap .nosotros-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
}

.nosotros-img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(32, 74, 151, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.nosotros-content .section-title {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  color: #204A97;
}

@keyframes nsTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.nosotros-text {
  color: #1d3557;
  margin-bottom: 1.75rem;
  line-height: 1.75;
  font-size: 1.02rem;
}

.nosotros-list {
  list-style: none;
  margin-bottom: 2rem;
}

.nosotros-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-weight: 500;
  color: #1d3557;
}

.list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--azul);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* CTA botón */
.ns-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border-radius: 999px;
  background: var(--acento-cta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ns-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(220, 38, 38, 0.45);
}

/* ====== CONTACTO — Paleta del logo: naranja/azul oscuro ====== */


.contacto {
  padding: 16rem 0 14rem;
  background: #ffffff;
  position: relative;
  z-index: 2;
  overflow: hidden;
  scroll-margin-top: calc(var(--safe-top, 0px) + 6rem);
}

.contacto::after {
  display: none;
}

/* Orbes decorativos — ocultos para fondo blanco sin tinte naranja */
.ct-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  display: none;
}

.ct-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: ctOrbFloat 20s ease-in-out infinite, ctOrbPulse 9s ease-in-out infinite;
}

.ct-orb--1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 128, 0, 0.22) 0%, transparent 70%);
  top: -10%;
  left: -6%;
}

.ct-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(204, 102, 0, 0.16) 0%, transparent 70%);
  bottom: -8%;
  right: -5%;
  animation-delay: -7s;
}

.ct-orb--3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.14) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -13s;
}

@keyframes ctOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-45px, 35px) scale(1.08); }
  50% { transform: translate(40px, -28px) scale(0.92); }
  75% { transform: translate(-30px, -38px) scale(1.05); }
}

@keyframes ctOrbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Líneas decorativas doradas */
.ct-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ct-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 139, 43, 0.15), transparent);
}

.ct-line--1 {
  width: 230px;
  top: 15%;
  right: 6%;
  transform: rotate(12deg);
}

.ct-line--2 {
  width: 180px;
  bottom: 18%;
  left: 8%;
  transform: rotate(-6deg);
}

/* Grid sutil — oculto */
.ct-grid-bg {
  display: none;
}

.contacto .container {
  position: relative;
  z-index: 2;
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacto-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1d3557;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  border: 1px solid rgba(244, 139, 43, 0.25);
  box-shadow: 0 4px 16px rgba(244, 139, 43, 0.1);
}

.contacto-heading {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: #204A97;
}

@keyframes ctTextShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.contacto-desc {
  font-size: 1rem;
  color: #1d3557;
  opacity: 0.85;
  line-height: 1.75;
  max-width: 400px;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contacto-dato {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.contacto-dato-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(32, 74, 151, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--azul);
  flex-shrink: 0;
  border: 1px solid rgba(32, 74, 151, 0.15);
}

.contacto-dato-icon svg {
  width: 20px;
  height: 20px;
}

.contacto-dato-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #1d3557;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contacto-dato-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1d3557;
  text-decoration: none;
}

a.contacto-dato-value:hover {
  color: var(--azul);
}

.contacto-box {
  background: #ffffff;
  padding: 2.5rem;
  border: 1px solid rgba(32, 74, 151, 0.15);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(32, 74, 151, 0.1);
  position: relative;
  overflow: hidden;
}

.contacto-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--azul);
  background-size: 200% 100%;
  animation: ctFormShine 4s linear infinite;
}

@keyframes ctFormShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.form-contacto {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1d3557;
  letter-spacing: 0.01em;
}

.form-row input,
.form-row textarea {
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: #f8fafd;
  border: 1.5px solid rgba(32, 74, 151, 0.2);
  border-radius: 14px;
  color: #1d3557;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(29, 53, 87, 0.5);
  font-size: 0.9rem;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(32, 74, 151, 0.15);
  background: #fff;
  transform: translateY(-1px);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-contacto-aviso {
  font-size: 0.82rem;
  color: #5a6578;
  margin: -0.25rem 0 0.75rem 0;
  line-height: 1.4;
}

.contacto-mensaje-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.contacto-btn-limpiar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(32, 74, 151, 0.25);
  border-radius: 8px;
  background: rgba(32, 74, 151, 0.08);
  color: #5a6578;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.contacto-btn-limpiar:hover {
  color: var(--azul);
  background: rgba(32, 74, 151, 0.12);
  border-color: rgba(32, 74, 151, 0.35);
}

.contacto-btn-limpiar:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(32, 74, 151, 0.25);
}

/* Burbujas de servicio/propiedad en formulario de contacto (varias permitidas) */
.contacto-servicio-burbuja-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.contacto-servicio-burbuja-wrap[hidden] {
  display: none !important;
}
.contacto-burbuja-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 100%;
  min-width: 0;
}
.contacto-servicio-burbuja {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(32, 74, 151, 0.12) 0%, rgba(32, 74, 151, 0.08) 100%);
  border: 1px solid rgba(32, 74, 151, 0.25);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--azul);
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.contacto-servicio-burbuja-cerrar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(32, 74, 151, 0.15);
  color: var(--azul);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.contacto-servicio-burbuja-cerrar:hover {
  background: rgba(32, 74, 151, 0.25);
  color: #1d3557;
}

.contacto-submit {
  align-self: stretch;
  border-radius: 14px;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  background: var(--acento-cta) !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(231, 40, 47, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: none;
}

.contacto-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(231, 40, 47, 0.35);
}



/* Socios / Empresas socio — franja horizontal, logo + títulos, sin fondo blanco */
.socios {
  padding: 2.5rem max(1.5rem, var(--safe-right)) 2.5rem max(1.5rem, var(--safe-left));
  background: linear-gradient(180deg, #FFB84D 0%, #FFC873 50%, #FFB84D 100%);
  color: #1d3557;
  position: relative;
  z-index: 1;
}

.socios-inner {
  max-width: var(--ancho-max, 1200px);
  margin: 0 auto;
}

.socios-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #1d3557;
  margin: 0 0 1.5rem;
  text-align: center;
}

.socios-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.socios-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0;
}

.socios-carousel::-webkit-scrollbar {
  display: none;
}

.socio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  gap: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.socio-item:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.socio-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-bottom: 0;
}

.socio-logo {
  max-height: 200px;
  width: auto;
  max-width: 600px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.socio-titulo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d3557;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.socio-subtitulo {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(29, 53, 87, 0.7);
  letter-spacing: 0.02em;
}


/* Footer — sin barra de desplazamiento (overflow-y: visible, no auto/scroll) */
.footer {
  padding: 3rem max(1.5rem, var(--safe-right)) max(2rem, var(--safe-bottom)) max(1.5rem, var(--safe-left));
  background: linear-gradient(180deg, #152a4d 0%, #0f2040 50%, #0d1a33 100%);
  color: var(--blanco);
  position: relative;
  z-index: 1;
  min-height: auto;
  max-height: none;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 100%;
}

.footer .container {
  overflow: hidden;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blanco);
}

.logo-footer {
  height: 56px;
  width: auto;
  min-width: 180px;
  max-width: 280px;
  border-radius: var(--radio);
}

.footer-logo .logo-svg {
  height: 56px;
  min-width: 180px;
  max-width: 280px;
}

.logo-brand-footer .logo-title {
  color: var(--blanco);
  font-size: 1.2rem;
}

.logo-brand-footer .logo-tagline {
  color: rgba(254, 254, 254, 0.85);
  font-size: 0.8rem;
}

/* Recorte del logo en footer: solo el espacio necesario */
.logo-img-wrap-footer {
  width: 100px;
  height: 48px;
  background: #0d1a33;
  border-radius: 0 8px 8px 0;
}

.logo-img-wrap-footer .logo-footer {
  height: 48px;
  width: auto;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
  max-width: 100%;
  text-align: center;
}

.footer-admin-link {
  color: inherit;
  opacity: 0.5;
  text-decoration: none;
  margin-left: 0.5rem;
  font-size: 0.75rem;
}
.footer-admin-link:hover {
  opacity: 0.8;
}

.footer-socios-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  margin-left: 2.5rem;
}

.footer-socios-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.02em;
}

.footer-socios-divider {
  width: 1px;
  height: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.footer-socio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  overflow: visible;
  max-width: 100%;
  padding-top: 0;
  border: none;
  outline: none;
  box-shadow: none;
}

.footer-socio-link:hover {
  opacity: 0.9;
}

.footer-socio-link:hover .footer-socio-logo {
  transform: scale(1);
}

.footer-socio-logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  opacity: 0.95;
  transition: opacity 0.2s ease;
  transform: scale(1);
  transform-origin: center center;
  margin-top: 0;
  border: none;
  outline: none;
  box-shadow: none;
  overflow: visible;
}

.footer-socio-link:hover .footer-socio-logo {
  opacity: 1;
}

/* Modal prompt de contraseña Admin (index/catalogo) */
.admin-prompt-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-prompt-box {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
}
.admin-prompt-box h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1d3557;
}
.admin-prompt-box p {
  color: #666;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.admin-prompt-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.admin-prompt-hint {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 1rem !important;
}
.admin-prompt-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.admin-prompt-cancel {
  padding: 0.65rem 1.25rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #1d3557;
  cursor: pointer;
  font-size: 0.95rem;
}
.admin-prompt-cancel:hover {
  background: #f5f5f5;
}
.admin-prompt-submit {
  padding: 0.65rem 1.5rem;
  background: #F48B2B;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.admin-prompt-submit:hover {
  background: #e67d1f;
}

/* Botones flotantes de contacto (esquina inferior derecha) — estilo página */
.floating-actions {
  position: fixed;
  right: max(1.5rem, var(--safe-right));
  bottom: max(1.5rem, var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
  background: transparent;
  overflow: visible;
}

.floating-actions > * {
  pointer-events: auto;
}

/* Menú tipo hamburguesa: botón principal WhatsApp, resto se despliegan hacia arriba */
.fab-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  position: relative;
  background: transparent;
  overflow: visible;
}

.fab-menu-dropdown {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
  background: transparent;
  border: none;
  box-shadow: none;
}

.fab-menu:hover .fab-menu-dropdown,
.fab-menu.is-open .fab-menu-dropdown {
  max-height: 320px;
  opacity: 1;
  visibility: visible;
  overflow: visible;
}

/* Items del menú: mismo estilo visual que el botón WhatsApp (tamaño, borde blanco, sólido) */
.fab-menu-item {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.fab-menu-item svg {
  width: 28px;
  height: 28px;
}

.fab-menu-dropdown .fab-whatsapp {
  background: #25D366;
}

.fab-menu-dropdown .fab-whatsapp:hover {
  background: #20bd5a;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(37, 211, 102, 0.5);
}

.fab-menu-dropdown .fab-instagram {
  background: linear-gradient(135deg, #E1306C 0%, #F77737 50%, #FCAF45 100%);
}

.fab-menu-dropdown .fab-instagram:hover {
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.fab-menu-dropdown .fab-facebook {
  background: #1877F2;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(24, 119, 242, 0.35);
}

.fab-menu-dropdown .fab-facebook:hover {
  background: #166fe5;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(24, 119, 242, 0.5);
}

.fab-menu-dropdown .fab-facebook svg {
  fill: #fff;
  width: 28px;
  height: 28px;
}

.fab-menu-dropdown .fab-email {
  background: #E7282F;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(231, 40, 47, 0.35);
}

.fab-menu-dropdown .fab-email:hover {
  background: #d42229;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(231, 40, 47, 0.5);
}

.fab-menu-dropdown .fab-email svg {
  fill: #fff;
  width: 28px;
  height: 28px;
}

/* Contenedor y menú de opciones del botón Correo */
.fab-email-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fab-email-wrap .fab-email {
  cursor: pointer;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab-email-options {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-right: 0.6rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0;
  min-width: 180px;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fab-email-options[hidden] {
  display: none !important;
}

.fab-email-opt {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.fab-email-opt:hover {
  background: rgba(32, 74, 151, 0.08);
  color: var(--azul, #204a97);
}

.fab-email-opt + .fab-email-opt {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fab-main {
  border: none;
  font: inherit;
  padding: 0;
  flex-shrink: 0;
}

/* Pulso y brillo del botón principal WhatsApp */
@keyframes fab-whatsapp-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22), 0 0 0 0 rgba(37, 211, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 24px 6px rgba(37, 211, 102, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

/* Botón principal: siempre encima para recibir el tap al cerrar */
.fab-main {
  position: relative;
  z-index: 260;
}

/* Botón principal de WhatsApp: limpio, sólido y bien definido */
.fab-main.fab-whatsapp {
  width: 68px;
  height: 68px;
  min-width: 68px;
  min-height: 68px;
  background: #25D366;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.22),
    0 0 0 0 rgba(37, 211, 102, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease;
  animation: fab-whatsapp-pulse 2.2s ease-in-out infinite;
}

.fab-main.fab-whatsapp svg {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease;
}

.fab-main.fab-whatsapp:hover {
  background: #20bd5a;
  animation: none;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(37, 211, 102, 0.35);
}

.fab-main.fab-whatsapp:hover svg {
  transform: scale(1.05);
}

.fab-main.fab-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(244, 139, 43, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(225, 48, 108, 0.3);
  touch-action: manipulation;
  position: relative;
  z-index: 251;
}

.fab svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

/* WhatsApp — más grande y llamativo, sin efecto de brillo */
.fab-whatsapp {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  background: #25D366;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(37, 211, 102, 0.4);
}

.fab-whatsapp svg {
  width: 28px;
  height: 28px;
}

.fab-whatsapp:hover {
  background: #20bd5a;
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.fab-facebook {
  background: rgba(24, 119, 242, 0.18);
  color: #1877F2;
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(24, 119, 242, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.fab-facebook:hover {
  background: rgba(24, 119, 242, 0.3);
  border-color: rgba(24, 119, 242, 0.6);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(24, 119, 242, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: #fff;
}

.fab-instagram {
  background: rgba(225, 48, 108, 0.18);
  color: #E1306C;
  border-color: rgba(225, 48, 108, 0.35);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(225, 48, 108, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.fab-instagram:hover {
  background: rgba(225, 48, 108, 0.3);
  border-color: rgba(225, 48, 108, 0.6);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(225, 48, 108, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: #fff;
}

.fab-email {
  background: rgba(255, 255, 255, 0.08);
  color: #E7282F;
  border-color: rgba(244, 139, 43, 0.25);
}

.fab-email:hover {
  background: rgba(244, 139, 43, 0.25);
  border-color: rgba(244, 139, 43, 0.5);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(244, 139, 43, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.fab-facebook {
  background: rgba(24, 119, 242, 0.2);
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(24, 119, 242, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.fab-facebook:hover {
  background: rgba(24, 119, 242, 0.35);
  border-color: rgba(24, 119, 242, 0.6);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(24, 119, 242, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.fab-instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.25) 0%, rgba(253, 29, 29, 0.2) 50%, rgba(252, 175, 69, 0.2) 100%);
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(225, 48, 108, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(225, 48, 108, 0.4);
}

.fab-instagram svg {
  width: 28px;
  height: 28px;
}

.fab-instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.45) 0%, rgba(253, 29, 29, 0.35) 50%, rgba(252, 175, 69, 0.35) 100%);
  border-color: rgba(225, 48, 108, 0.7);
  color: #fff;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(225, 48, 108, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.fab-instagram:active {
  transform: translateY(-2px) scale(0.95);
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.55) 0%, rgba(253, 29, 29, 0.45) 50%, rgba(252, 175, 69, 0.45) 100%);
}

.fab:hover {
  transform: translateY(-4px) scale(1.05);
}

.fab:hover svg {
  transform: scale(1.08);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem max(1.5rem, var(--safe-right)) max(1rem, var(--safe-bottom)) max(1.5rem, var(--safe-left));
  background: var(--blanco);
  border-top: 1px solid var(--borde);
  box-shadow: 0 -4px 20px rgba(29, 53, 87, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 200;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--gris-texto);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.btn-cookie {
  flex-shrink: 0;
  border-radius: var(--radio);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — OPTIMIZACIÓN MÓVIL COMPLETA
   ═══════════════════════════════════════════ */

/* ---- ≤ 1200px — Al minimizar: logo al borde izquierdo, sin Iniciar sesión/Archivos, menú hamburguesa ---- */
@media (max-width: 1200px) {
  .header-inner {
    padding: 0.85rem 1.25rem;
    justify-content: flex-start;
  }

  .nav {
    display: none;
  }

  /* Ocultar Iniciar sesión y Archivos al minimizar */
  .header-bottom {
    display: none;
  }

  .mobile-menu-bubble {
    display: flex;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    left: max(1rem, var(--safe-left)) !important;
    bottom: max(1rem, var(--safe-bottom)) !important;
    top: auto !important;
    right: auto !important;
  }

  .mobile-menu-bubble.is-scrolling {
    bottom: max(0.5rem, calc(var(--safe-bottom) - 0.5rem)) !important;
  }

  .mobile-nav {
    display: flex;
    min-width: 260px;
    max-width: calc(100vw - 2rem - max(1rem, var(--safe-left)) - max(1rem, var(--safe-right)));
  }

  .header-top {
    margin-left: 0;
  }

  .header-bottom {
    margin-right: 0;
  }

  .nav a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .header-actions button.auth-link,
  .header-actions a.auth-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 5rem 1.25rem 0.5rem;
  }

  .hero-inner {
    max-width: 600px;
  }

  .hero-orb, .vs-orb, .pp-orb, .ns-orb, .ct-orb {
    filter: blur(100px);
    opacity: 0.6;
  }

  .vision-servicios {
    padding: 4rem 0 16rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .propiedades {
    padding: 14rem 0 16rem;
  }

  .nosotros {
    padding: 14rem 0 16rem;
  }

  .contacto {
    padding: 14rem 0 12rem;
  }
}

/* ---- Tablet pequeña / Phablet: ≤ 900px ---- */
@media (max-width: 900px) {
  .nav a {
    font-size: 0.85rem;
  }

  .hero-brand-line--top {
    font-size: clamp(2.4rem, 8vw, 3.6rem);
  }

  .hero-brand-line--bottom {
    font-size: clamp(3.2rem, 11vw, 5rem);
  }

  .hero-stats {
    gap: 1.5rem;
    padding: 1.25rem 0 0;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-feature:nth-child(2),
  .hero-feature:nth-child(4) { border-right: 1px solid rgba(0, 0, 0, 0.06); }
  .hero-feature:nth-child(3) { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .hero-feature:nth-child(4) { border-bottom: none; }

  .hero-photo-wrap {
    width: 40%;
    opacity: 0.85;
  }

  .vision-card {
    padding: 1.5rem 1.4rem;
  }

  .filtros-card {
    margin: -2rem auto 2rem;
    padding: 1rem 1.1rem;
  }

  .filtros-form {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .filtro-field,
  .filtro-field--operacion,
  .filtro-field--tipo,
  .filtro-field--comuna-text {
    flex: 1 1 100%;
  }

  .filtros-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    flex-shrink: 1;
  }

  .filtros-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    justify-content: center;
  }

  .flex-nosotros {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nosotros-visual {
    order: -1;
  }

  .nosotros-img-wrap {
    height: 260px;
  }

  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contacto-desc {
    max-width: 100%;
  }

}

/* ---- Móvil: ≤ 768px ---- */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-bubble {
    display: flex;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    left: max(1rem, var(--safe-left)) !important;
    bottom: max(1rem, var(--safe-bottom)) !important;
    top: auto !important;
    right: auto !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.2s ease;
  }
  
  .mobile-menu-bubble.is-scrolling {
    bottom: max(0.5rem, calc(var(--safe-bottom) - 0.5rem)) !important;
  }

  .nav-toggle-bar {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  /* Móvil: sin backdrop-filter en menú desplegable para evitar pegues/lag */
  .mobile-nav {
    display: flex;
    min-width: 260px;
    max-width: calc(100vw - 2rem - max(1rem, var(--safe-left)) - max(1rem, var(--safe-right)));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, #24324f 0%, #1a2538 100%);
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.25s ease, padding 0.25s ease;
  }

  .mobile-nav.is-open {
    padding: 1rem 0;
  }

  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding-left: max(1.5rem, var(--safe-left));
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .header-inner {
    padding: 0.75rem max(1rem, var(--safe-right)) 0.75rem max(1rem, var(--safe-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 56px;
    flex-wrap: nowrap;
  }

  .header-top {
    margin-left: 0;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .header-top .logo-link {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .header-top .logo-img-wrap--custom {
    max-width: 52px;
    width: 52px;
    height: 40px;
    flex-shrink: 0;
  }

  .header-top .logo-img-wrap--custom .logo-img {
    max-height: 40px;
    width: auto;
  }

  /* Móvil: logo a la izquierda; título y subtítulo más cerca del logo */
  .header .logo-headline {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    gap: 0.05rem 0;
    min-width: 0;
  }

  .header-top .logo-img-wrap--custom {
    transform: none;
    grid-row: 1 / -1;
    align-self: center;
    margin-right: -0.8rem;
  }

  .header .logo-title {
    grid-column: 2;
    grid-row: 1;
    font-size: clamp(0.95rem, 4vw, 1.35rem);
    letter-spacing: 0.03em;
    min-width: 0;
    padding-right: 0.25rem;
    line-height: 1.2;
  }

  .header .header-logo-tagline {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
    padding-left: 0;
    padding-right: 0.25rem;
    margin-top: 0;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.3;
    word-break: break-word;
  }

  .header-bottom {
    margin-right: 0;
  }

  .header-actions .icon-link,
  .header-actions .btn-header {
    display: none;
  }

  .contacto-submit {
    width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
  }

  .hero {
    min-height: auto;
    padding: 6rem 1rem 1rem;
    margin-bottom: -7rem;
  }

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

  .hero-tagline {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  .hero-brand-line--top {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .hero-brand-line--bottom {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-brand-wrap::after {
    width: 70px;
    margin-top: 1rem;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 0 1rem;
  }

  .hero-ctas .btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
    justify-content: center;
  }

  .btn {
    min-height: 44px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    margin-top: 2rem;
  }

  .hero-stats-divider {
    width: 100%;
    height: 1px;
    margin: 0.5rem 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12), transparent);
  }

  .hero-photo-wrap {
    display: none;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .hero-feature:nth-child(2),
  .hero-feature:nth-child(4) { border-right: 1px solid rgba(0, 0, 0, 0.06); }
  .hero-feature:nth-child(3) { border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
  .hero-feature:nth-child(4) { border-bottom: none; }

  .wave-sep {
    height: clamp(56px, 9vw, 88px);
  }

  /* Orbes y líneas reducidos en móvil */
  .hero-orb, .vs-orb, .pp-orb, .ns-orb, .ct-orb {
    filter: blur(110px);
    opacity: 0.4;
  }

  .vs-line, .pp-line, .ns-line, .ct-line {
    display: none;
  }

  .vs-grid-bg, .pp-grid-bg, .ns-grid-bg, .ct-grid-bg {
    display: none;
  }

  /* Reducir overlap en móvil */
  .vision-servicios,
  .propiedades,
  .nosotros {
    margin-bottom: -7rem;
  }

  /* Visión y Servicios */
  .vision-servicios {
    padding: 3rem 0 14rem;
  }

  .vision-header .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .vision-header .section-subtitle {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .vision-card {
    padding: 1.25rem 1.15rem;
  }

  .vision-text {
    font-size: 0.9rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .service-card:hover {
    transform: none;
  }

  /* Catálogo y filtros */
  .propiedades {
    padding: 12rem 0 14rem;
  }

  .catalogo-badge {
    font-size: 1.35rem;
    padding: 0.9rem 2rem;
  }

  .catalogo-title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem) !important;
  }

  .catalogo-header::after {
    width: 80px;
  }

  .filtros-card {
    margin: 1rem auto 2rem;
    padding: 1rem;
    border-radius: 16px;
  }

  .filtro-select-box {
    min-height: 44px;
  }

  /* Destacadas: tarjetas completas como Viviendas disponibles, flechas encima */
  .destacadas-section {
    padding: 1.5rem 0 1.75rem;
    overflow: visible;
  }

  .destacadas-shell {
    padding: 0 0.5rem;
    overflow: visible;
    position: relative;
  }

  .destacadas-carousel {
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding: 0;
    padding: 0;
  }

  .card-destacada {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
  }

  .destacadas-arrow {
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    top: 50%;
    transform: translateY(-50%);
  }

  .destacadas-arrow--left {
    left: 0.5rem;
  }

  .destacadas-arrow--right {
    right: 0.5rem;
  }

  .destacadas-header {
    padding-left: 0.75rem;
    border-left-width: 3px;
    margin-bottom: 2.5rem;
  }
  .destacadas-header--modern {
    padding-left: 0;
    border-left: none;
    padding: 1.25rem 0;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    overflow: visible;
  }
  .destacadas-header-wrapper {
    gap: 1rem;
    flex: 1 1 auto;
    min-width: 0;
  }
  .destacadas-title-row {
    gap: 0.75rem;
  }
  .btn-mapa-text-full {
    display: none;
  }
  .btn-mapa-text-short {
    display: inline;
  }
  .btn-mapa--destacadas {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .btn-mapa--destacadas svg {
    width: 16px;
    height: 16px;
  }
  .destacadas-icon-box {
    width: 56px;
    height: 56px;
  }
  .destacadas-icon-box svg {
    width: 28px;
    height: 28px;
  }
  .destacadas-title--modern {
    font-size: clamp(1.65rem, 3.8vw, 2rem);
  }
  .destacadas-subtitle--modern {
    font-size: 0.88rem;
    padding-left: 1.25rem;
  }

  .destacadas-badge {
    font-size: 0.62rem;
    padding: 0.22rem 0.5rem;
  }

  .destacadas-subtitle {
    font-size: 0.85rem;
  }

  .destacadas-carousel {
    gap: 0;
  }

  .destacadas-arrow {
    width: 36px;
    height: 36px;
  }

  .card-destacada-img {
    height: 200px;
  }

  /* Cards de propiedad */
  .card-propiedad {
    min-width: 220px;
  }

  /* Nosotros */
  .nosotros {
    padding: 12rem 0 14rem;
  }

  .ns-badge, .vs-badge, .contacto-badge {
    font-size: 0.85rem;
  }

  .nosotros-content .section-title {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
  }

  .nosotros-text {
    font-size: 0.9rem;
  }

  .nosotros-img-wrap {
    height: 220px;
  }

  .ns-cta-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Contacto */
  .contacto {
    padding: 12rem 0 10rem;
  }

  .contacto-heading {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .contacto-box {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }

  .form-row-double {
    grid-template-columns: 1fr;
  }

  /* Socios */
  .socios {
    padding: 2rem 1rem;
  }

  .socios-carousel-wrap {
    gap: 0;
  }

  .socio-logo-wrap {
    height: 160px;
    margin-bottom: 0;
  }

  .socio-logo {
    max-height: 160px;
    max-width: 480px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
  }

  .footer-socios-wrap {
    margin-left: 0;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-socios-divider {
    height: 1.25rem;
  }

  .footer-copy {
    font-size: 0.8rem;
    max-width: none;
    margin-right: 0;
  }

  .footer-socio-logo {
    height: 40px;
    transform: scale(1);
  }
  
  .footer-socio-link:hover .footer-socio-logo {
    transform: scale(1);
  }

  /* Cookie banner */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .cookie-banner .btn {
    width: 100%;
  }
}

/* ---- Móvil pequeño: ≤ 480px ---- */
@media (max-width: 480px) {
  .wave-sep {
    height: 52px;
  }

  .hero {
    padding: 5.5rem 0.75rem 0.75rem;
    margin-bottom: -5rem;
  }

  .hero-brand-line--top {
    font-size: clamp(1.8rem, 11vw, 2.6rem);
  }

  .hero-brand-line--bottom {
    font-size: clamp(2.4rem, 15vw, 3.8rem);
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-ctas {
    padding: 0;
  }

  .btn-hero {
    font-size: 1.05rem;
    padding: 0.9rem 1.75rem;
  }

  .btn-hero-secondary {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .hero-stats {
    padding: 1rem;
    border-radius: 16px;
  }

  .stat-value {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .vision-servicios,
  .propiedades,
  .nosotros {
    margin-bottom: -5rem;
  }

  .hero-v2 {
    margin-bottom: -4rem;
    padding-left: max(0.5rem, var(--safe-left));
    padding-right: max(0.5rem, var(--safe-right));
    padding-bottom: 5rem;
  }

  .hero-v2-card {
    padding: 1rem 0.85rem;
  }

  .hero-v2-card-title {
    font-size: 1rem;
  }

  .hero-v2-card-desc {
    font-size: 0.9rem;
  }

  .hero-v2-cards-photo {
    min-height: 20px;
  }

  .vision-servicios {
    padding: 2.5rem 0 12rem;
  }

  .vision-header .section-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .service-card {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 18px;
  }

  .service-avatar {
    width: 48px;
    height: 48px;
  }

  .service-title {
    font-size: 1rem;
    min-height: auto;
  }

  .service-text {
    font-size: 0.82rem;
  }

  .service-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.9rem;
  }

  .propiedades {
    padding: 9rem 0 12rem;
  }

  .propiedades .container {
    padding-left: max(1rem, var(--safe-left));
    padding-right: max(1rem, var(--safe-right));
  }

  .catalogo-title {
    font-size: clamp(1.2rem, 6vw, 1.6rem) !important;
  }

  .card-destacada-img {
    height: 200px;
  }

  .btn-mapa--destacadas {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }
  .btn-mapa--destacadas svg {
    width: 14px;
    height: 14px;
  }

  .filtros-card {
    padding: 0.85rem;
  }

  .nosotros {
    padding: 10rem 0 12rem;
  }

  .nosotros-img-wrap {
    height: 180px;
  }

  .nosotros-list li {
    font-size: 0.88rem;
  }

  .contacto {
    padding: 10rem 0 8rem;
  }

  .contacto-heading {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .contacto-desc {
    font-size: 0.9rem;
  }

  .contacto-box {
    padding: 1.5rem 1rem;
  }

  .form-row input,
  .form-row textarea {
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .contacto-submit {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .contacto-dato-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .contacto-dato-value {
    font-size: 0.88rem;
  }

  /* Floating actions — respetar notch y barra de gestos */
  .floating-actions {
    right: max(1rem, var(--safe-right));
    bottom: max(1rem, var(--safe-bottom));
    gap: 0.75rem;
    z-index: 9999;
  }

  .fab {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
  }

  .fab svg {
    width: 24px;
    height: 24px;
  }

  .fab-instagram {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }

  .fab-instagram svg {
    width: 28px;
    height: 28px;
  }

  .form-row input,
  .form-row textarea {
    min-height: 44px;
  }

  .contacto-btn-limpiar {
    min-width: 44px;
    min-height: 44px;
  }

  /* Reveal más sutil en móvil */
  :root {
    --reveal-distance: 25px;
    --reveal-duration: 0.65s;
  }

  .reveal-item--left {
    transform: translateX(-20px);
  }

  .reveal-item--right {
    transform: translateX(20px);
  }
}

/* ---- Móvil muy pequeño: ≤ 360px ---- */
@media (max-width: 360px) {
  .hero {
    padding: 5rem 0.5rem 0.5rem;
  }

  .header-inner {
    padding-left: max(0.5rem, var(--safe-left));
    padding-right: max(0.5rem, var(--safe-right));
  }

  .header-top .logo-img-wrap--custom {
    max-width: 44px;
    width: 44px;
    height: 36px;
  }

  .header-top .logo-img-wrap--custom .logo-img {
    max-height: 36px;
  }

  .header .logo-headline {
    gap: 0.08rem 0.2rem;
  }

  .header .logo-title {
    font-size: 0.9rem;
  }

  .header .header-logo-tagline {
    font-size: 0.45rem;
    padding-right: 0.2rem;
  }

  .mobile-menu-bubble {
    left: max(0.5rem, var(--safe-left)) !important;
    bottom: max(0.75rem, var(--safe-bottom)) !important;
  }

  .floating-actions {
    right: max(0.5rem, var(--safe-right));
    bottom: max(0.75rem, var(--safe-bottom));
  }

  .hero-badge {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .hero-brand-line--top {
    font-size: 1.75rem;
  }

  .hero-brand-line--bottom {
    font-size: 2.35rem;
  }

  .hero-feature-title {
    font-size: 0.95rem;
  }

  .hero-feature-desc {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.3rem !important;
  }

  .catalogo-title {
    font-size: 1.2rem !important;
  }

  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .contacto-box {
    padding: 1.25rem 0.75rem;
  }
}

/* ---- Touch: deshabilitar hover sticky ---- */
@media (hover: none) and (pointer: coarse) {
  .card-propiedad:hover {
    transform: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  .service-card:hover {
    transform: none;
  }

  .fab:hover {
    transform: none;
  }

  .contacto-submit:hover {
    transform: none;
  }

  .ns-cta-btn:hover {
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   BLEEDING BACKGROUNDS — transiciones invisibles
   Cada sección funde sus bordes con la siguiente
   usando padding extra + pseudo-elements degradados
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */

/* Wave dividers entre secciones */
.wave-divider {
  position: relative;
  z-index: 2;
  line-height: 0;
  margin-top: -1px;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 50px;
}

.wave-divider--flip {
  transform: scaleX(-1);
}

.wave-divider--dark {
  background: linear-gradient(180deg, #0f1c30 0%, #0f1c30 50%, transparent 100%);
}

.wave-divider--dark svg {
  height: 70px;
}

/* Transición fluida azul → verde: sin div separado, se logra con overlap */

/* ====== FADE-IN PREMIUM — Scroll Reveal System ====== */

/* Easing profesional */
:root {
  --reveal-easing: cubic-bezier(0.16, 1, 0.3, 1);
  --reveal-duration: 0.8s;
  --reveal-distance: 40px;
}

/* --- Sección completa: fade-in al entrar en viewport --- */
.reveal-section {
  position: relative;
}

/* --- Elemento individual: fade-in sutil --- */
.reveal-item {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    transform var(--reveal-duration) var(--reveal-easing);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Variante: fade desde la izquierda --- */
.reveal-item--left {
  opacity: 0;
  transform: translateX(-35px);
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    transform var(--reveal-duration) var(--reveal-easing);
  will-change: opacity, transform;
}

.reveal-item--left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Variante: fade desde la derecha --- */
.reveal-item--right {
  opacity: 0;
  transform: translateX(35px);
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    transform var(--reveal-duration) var(--reveal-easing);
  will-change: opacity, transform;
}

.reveal-item--right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Variante: scale sutil (para cards/imagenes) --- */
.reveal-item--scale {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition:
    opacity var(--reveal-duration) var(--reveal-easing),
    transform var(--reveal-duration) var(--reveal-easing);
  will-change: opacity, transform;
}

.reveal-item--scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* --- Stagger automático: delay progresivo para hijos --- */
.stagger-item {
  transition-delay: calc(var(--stagger-i, 0) * 0.1s);
}

/* JS inyecta --child-i en hijos de .reveal-children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 0.65s var(--reveal-easing),
    transform 0.65s var(--reveal-easing);
  transition-delay: calc(var(--child-i, 0) * 0.08s);
  will-change: opacity, transform;
}

.reveal-children.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* prefers-reduced-motion: desactiva animaciones */
@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .reveal-item--left,
  .reveal-item--right,
  .reveal-item--scale,
  .reveal-children > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }

  .stagger-item {
    transition-delay: 0s !important;
  }

  .hero-anim {
    animation: none !important;
    opacity: 1 !important;
  }

  .btn-hero {
    animation: none !important;
  }

  .vision-card::before {
    animation: none !important;
  }

  .catalogo-title::before {
    animation: none !important;
  }

  .hero-orb {
    animation: none !important;
    opacity: 0.5 !important;
  }

  .hero-brand-shine {
    animation: none !important;
    display: none;
  }

  .hero-brand-line--top,
  .hero-brand-line--bottom {
    animation: none !important;
  }

  .hero-brand-wrap::after {
    animation: none !important;
  }

  .vs-orb, .pp-orb, .ns-orb, .ct-orb {
    animation: none !important;
  }

  .catalogo-title, .catalogo-header::after,
  .nosotros-content .section-title,
  .contacto-heading, .contacto-box::before {
    animation: none !important;
  }

  .btn-buscar {
    animation: none !important;
  }

  .vision-header .section-title {
    animation: none !important;
  }

  .vision-card::before {
    animation: none !important;
  }

}

/* ——— Carrusel de Anuncios (solo la imagen, sin recuadro) ——— */
/* ====== CARRUSEL DE ANUNCIOS — Banner Hero Full Width ====== */

/* Barra separadora entre anuncios y contenido (como logo/botones del header) */
.anuncios-separator {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
}

.anuncios-carousel {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 1.5rem auto 0;
  padding: 0;
  overflow: hidden;
  z-index: 2;
  border-radius: 0;
  box-shadow: none;
  display: block;
  background: #ffffff;
}

/* Escritorio: visible en pantallas anchas; móvil: oculto */
.anuncios-carousel--desktop { display: block; }
.anuncios-carousel--mobile { display: none; }

@media (max-width: 768px) {
  .anuncios-carousel--desktop { display: none; }
  .anuncios-carousel--mobile { display: block; }
}

.anuncios-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anuncios-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  overflow: hidden;
  height: 580px;
}

.anuncios-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

/* Flechas de navegación */
.anuncios-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
}

.anuncios-carousel:hover .anuncios-arrow {
  opacity: 1;
}

.anuncios-arrow svg {
  width: 22px;
  height: 22px;
}

.anuncios-arrow--prev {
  left: 1rem;
}

.anuncios-arrow--next {
  right: 1rem;
}

.anuncios-arrow:hover {
  background: rgba(255, 128, 0, 0.7);
  border-color: rgba(255, 128, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 20px rgba(255, 128, 0, 0.35);
}

/* Indicadores (dots) */
.anuncios-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.anuncios-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}

.anuncios-dots span:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.anuncios-dots span.is-active {
  background: #FF8000;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 128, 0, 0.6);
}

/* Barra de progreso automático */
.anuncios-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
}

.anuncios-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF8000, #ffa040);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
}

.anuncios-progress-bar.is-animating {
  animation: anuncioProgress 5s linear forwards;
}

@keyframes anuncioProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* Carrusel móvil: siempre formato vertical (pantalla de celular) */
.anuncios-carousel--mobile .anuncios-slide {
  height: auto;
  min-height: 320px;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  position: relative;
}

.anuncios-carousel--mobile .anuncios-slide img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
}

/* Responsive: en móvil más altura para anuncios (incl. apartado móvil propio) y sin recortes */
@media (max-width: 768px) {
  /* Header móvil ≈ 56px + 1.5rem padding = 5rem. Carousel pegado al header sin gap. */
  body {
    padding-top: calc(var(--safe-top) + 5rem);
  }

  .anuncios-carousel--mobile {
    margin: 0 !important;
    max-width: 100%;
    border-radius: 0;
    contain: layout style; /* reduce repaints en scroll */
  }

  .anuncios-carousel--mobile .anuncios-slide {
    aspect-ratio: 9 / 16;
    min-height: 360px;
  }

  /* Móvil: sin backdrop-filter para evitar jank/pegue */
  .anuncios-arrow {
    width: 38px;
    height: 38px;
    opacity: 1;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
  }
  .anuncios-arrow svg {
    width: 18px;
    height: 18px;
  }
  .anuncios-arrow--prev { left: 0.5rem; }
  .anuncios-arrow--next { right: 0.5rem; }
  .anuncios-dots {
    bottom: 0.8rem;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.4);
  }

  /* FAB menú desplegable: transiciones más rápidas en móvil */
  .fab-menu-dropdown {
    transition: max-height 0.2s ease, opacity 0.18s ease, visibility 0.18s ease;
  }
  .fab-main,
  .fab-menu-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .anuncios-dots span {
    width: 8px;
    height: 8px;
  }
}
