/* ══════════════════════════════════════════════════════════
   ALONSO GONZÁLEZ · RE/MAX INFINITY QUERÉTARO
   Concepto: "Infinity Prestige"
   Entorno Online by entorno.online
   ══════════════════════════════════════════════════════════ */

/* ── 1. TOKENS DE DISEÑO ── */
:root {
  /* Paleta RE/MAX */
  --remax-red:      #D9272E;
  --remax-red-dark: #B01E24;
  --remax-blue:     #003DA5;
  --remax-blue-mid: #0052CC;
  --remax-blue-lt:  #E8EFF9;
  --white:          #FFFFFF;
  --off-white:      #F7F7F5;
  --gray-50:        #F9F9F9;
  --gray-100:       #F0F0EE;
  --gray-200:       #E2E2DE;
  --gray-400:       #9B9B95;
  --gray-600:       #5C5C58;
  --gray-800:       #2A2A26;
  --black:          #111110;

  /* Semánticos */
  --color-accent:     var(--remax-red);
  --color-accent-dk:  var(--remax-red-dark);
  --color-primary:    var(--remax-blue);
  --color-text:       var(--gray-800);
  --color-text-soft:  var(--gray-600);
  --color-text-muted: var(--gray-400);
  --color-bg:         var(--white);
  --color-bg-alt:     var(--off-white);
  --color-border:     var(--gray-200);
  --cl-em: #0052CC;

  /* Glassmorphism */
  --glass-bg:       rgba(255, 255, 255, 0.82);
  --glass-bg-dark:  rgba(0, 61, 165, 0.12);
  --glass-border:   rgba(255, 255, 255, 0.55);
  --glass-shadow:   0 8px 32px rgba(0, 0, 0, 0.10);
  --blur-strength:  backdrop-filter: blur(14px);

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', 'Google Sans', system-ui, sans-serif;

  /* Espaciado */
  --space-xs:   6px;
  --space-sm:   12px;
  --space-md:   20px;
  --space-lg:   32px;
  --space-xl:   56px;
  --space-2xl:  88px;

  /* Radios */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.12);

  /* Transiciones */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   160ms;
  --dur-mid:    280ms;
  --dur-slow:   480ms;

  /* Header */
  --header-h: 64px;
}

/* ── 2. RESET Y BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── 3. UTILIDADES ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}

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

/* Headers de sección */
.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 10px;
}
.section__title em {
  font-style: italic;
  color: var(--color-accent);
}

.section__desc {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--dur-mid) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(217, 39, 46, 0.30);
}
.btn--primary:hover {
  background: var(--color-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 39, 46, 0.38);
}
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn--lg { padding: 13px 30px; font-size: 0.92rem; }

/* Animación reveal scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}


/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow var(--dur-mid) var(--ease);
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.11);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  max-width: 1160px;
  margin: 0 auto;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.header__logo-badge--sm {
  width: 34px;
  height: 34px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header__logo-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
}
.header__logo-sub {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

/* Nav desktop */
.header__nav {
  display: none;
  align-items: center;
  gap: 2px;
}

.header__nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-soft);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.header__nav-link:hover {
  color: var(--color-primary);
  background: var(--remax-blue-lt);
}

.header__cta-btn {
  margin-left: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--color-accent);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.header__cta-btn:hover {
  background: var(--color-accent-dk);
  transform: translateY(-1px);
}

/* Hamburguesa */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.header__hamburger:hover { background: var(--gray-100); }
.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease), opacity var(--dur-mid);
}
.header__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.header__mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 8px 0 12px;
}
.header__mobile-menu.open { display: flex; }

.header__mobile-link {
  display: block;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.header__mobile-link:hover {
  color: var(--color-accent);
  background: var(--gray-50);
}
.header__mobile-cta {
  margin: 12px 16px 0;
  background: var(--color-accent);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  border: none;
  padding: 12px 24px;
}
.header__mobile-cta:hover { background: var(--color-accent-dk) !important; }


/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  overflow: hidden;
}

/* Video fondo */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video, .hero__video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video-fallback { z-index: 0; }
.hero__video { z-index: 1; }

/* Overlay gradiente RE/MAX */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(
      to top,
      rgba(28, 46, 88, 0.1) 0%,
      rgba(28, 46, 88, 0.1) 100%
    );
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 16px;
  max-width: 1160px;
  margin: 0 auto;
  margin-top: var(--header-h);
}

/* Card glassmorphism */
.hero__glass-card {
  display: inline-block;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  max-width: 600px;
  width: 100%;
}

.hero__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--remax-red-dark);
  margin-bottom: 10px;
  background: rgba(220,35,48,0.15);
  border: 1px solid rgba(220,35,48,0.30);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  width: fit-content;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 12px;
}
.hero__title em {
  font-style: italic;
  color: var(--remax-blue-mid);
}

.hero__subtitle {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

/* Trust indicators */
.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.hero__trust-item strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero__trust-item span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.hero__trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  right: 24px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scrollPulse 1.8s ease-in-out infinite;
}
.hero__scroll-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}


/* ══════════════════════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════════════════════ */
.servicios { background: var(--color-bg-alt); }

.servicios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: box-shadow var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease), border-color var(--dur-mid);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-mid) var(--ease);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gray-200);
}
.service-card:hover::before { transform: scaleY(1); }

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--remax-blue-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.service-card__desc {
  font-size: 0.83rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-card__list li {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding-left: 14px;
  position: relative;
}
.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.7rem;
}


/* ══════════════════════════════════════════════════════════
   ¿POR QUÉ YO?
══════════════════════════════════════════════════════════ */
.porque-yo { background: var(--white); }

.porque-yo__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Visual — formato vertical para foto de perfil */
.porque-yo__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 520px;
}
.porque-yo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.porque-yo__badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
}
.porque-yo__badge-icon {
  color: var(--color-accent);
  display: flex;
  align-items: center;
}
.porque-yo__badge strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.porque-yo__badge span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.porque-yo__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.metric-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.metric-glass__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 4px;
}
.metric-glass__label {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  line-height: 1.3;
}

/* Beneficios */
.porque-yo__content .section__title { text-align: left; }
.porque-yo__content .section__eyebrow { text-align: left; }

.beneficios__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-md);
}

.beneficio-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.beneficio-item__icon {
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}

.beneficio-item h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.beneficio-item p {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  line-height: 1.55;
}


/* ══════════════════════════════════════════════════════════
   PROPIEDADES
══════════════════════════════════════════════════════════ */
.propiedades { background: var(--color-bg-alt); }

.props__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: var(--space-lg);
}

.prop-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.prop-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.prop-card--featured {
  border-color: var(--color-accent);
}

.prop-card__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.prop-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.prop-card:hover .prop-card__img-wrap img { transform: scale(1.04); }

.prop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.prop-card__badge--venta {
  background: var(--color-primary);
  color: var(--white);
}
.prop-card__badge--exclusiva {
  background: var(--color-accent);
  color: var(--white);
}

.prop-card__body { padding: 16px 16px 18px; }

.prop-card__zona {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 6px;
}

.prop-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.prop-card__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.prop-card__specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.prop-card__specs span {
  font-size: 0.72rem;
  background: var(--remax-blue-lt);
  color: var(--color-primary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-weight: 500;
}

.prop-card__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 9px;
  background: var(--color-primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.prop-card__btn:hover {
  background: var(--remax-blue-mid);
  transform: translateY(-1px);
}

.props__cta {
  text-align: center;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.props__cta p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}


/* ══════════════════════════════════════════════════════════
   TESTIMONIALES
══════════════════════════════════════════════════════════ */
.testimoniales { background: var(--white); }

.testimoniales__slider {
  overflow: hidden;
  position: relative;
}

.testi-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fadeInTesti 0.4s var(--ease);
}
.testi-card.active { display: flex; }

@keyframes fadeInTesti {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

.testi-card__stars {
  color: #F5A623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.testi-card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.65;
  border-left: 3px solid var(--color-accent);
  padding-left: 14px;
}

.testi-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-card__avatar {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-card__author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}
.testi-card__author span {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

/* Controles */
.testimoniales__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: var(--space-md);
}

.testi-prev, .testi-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  transition: all var(--dur-fast);
}
.testi-prev:hover, .testi-next:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--remax-blue-lt);
}

.testi-dots {
  display: flex;
  gap: 6px;
}
.testi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background var(--dur-fast), width var(--dur-fast);
  cursor: pointer;
}
.testi-dot.active {
  background: var(--color-accent);
  width: 20px;
  border-radius: var(--radius-full);
}


/* ══════════════════════════════════════════════════════════
   CTA DESTACADO
══════════════════════════════════════════════════════════ */
.cta-oferta {
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.cta-oferta::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(217,39,46,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-oferta__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.cta-oferta__eyebrow {
  color: rgba(217,39,46,0.85);
  background: rgba(217,39,46,0.12);
  border: 1px solid rgba(217,39,46,0.25);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  width: fit-content;
}

.cta-oferta__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 14px;
}
.cta-oferta__title em {
  display: block;
  font-style: italic;
  color: #FFC2C4;
}

.cta-oferta__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.65;
  margin-bottom: 18px;
}

.cta-oferta__includes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-md);
}
.cta-oferta__includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
}
.cta-oferta__includes li span {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.cta-oferta__fine {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
}

.cta-oferta__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;    /* vertical — ideal para flyer */
  max-height: 480px;
}
.cta-oferta__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}


/* ══════════════════════════════════════════════════════════
   UBICACIÓN
══════════════════════════════════════════════════════════ */
.ubicacion { background: var(--color-bg-alt); }

.ubicacion__layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ubicacion__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ubicacion__dato {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 14px;
}
.ubicacion__dato-icon {
  width: 36px;
  height: 36px;
  background: var(--remax-blue-lt);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.ubicacion__dato strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}
.ubicacion__dato span, .ubicacion__dato a {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  line-height: 1.4;
}
.ubicacion__dato a:hover { color: var(--color-accent); }

.ubicacion__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 280px;
  box-shadow: var(--shadow-sm);
}
.ubicacion__map iframe { width: 100%; height: 100%; display: block; }


/* ══════════════════════════════════════════════════════════
   HUB DE CONTACTO
══════════════════════════════════════════════════════════ */
.contacto { background: var(--white); }

.contacto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--dur-mid) var(--ease);
}
.contact-channel:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-channel__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast);
}
.contact-channel:hover .contact-channel__icon { transform: scale(1.08); }

.contact-channel__icon--wa  { background: #E8F5E9; color: #25D366; }
.contact-channel__icon--tel { background: var(--remax-blue-lt); color: var(--color-primary); }
.contact-channel__icon--email { background: #FFF3E0; color: #E65100; }
.contact-channel__icon--ig  { background: #FCE4EC; color: #C2185B; }
.contact-channel__icon--fb  { background: #E3F2FD; color: #1565C0; }
.contact-channel__icon--li  { background: #E8F4FD; color: #0A66C2; }

.contact-channel__text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}
.contact-channel__text span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  line-height: 1.3;
  word-break: break-all;
}


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
  background: var(--gray-800);
  color: rgba(255,255,255,0.75);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.footer__logo .header__logo-badge {
  background: var(--color-accent);
}
.footer__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.footer__sub {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
}
.footer__tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.footer__nav a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.60);
  transition: color var(--dur-fast);
}
.footer__nav a:hover { color: var(--color-accent); }

.footer__legal {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__legal p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
}
.footer__legal a {
  color: rgba(255,255,255,0.55);
  transition: color var(--dur-fast);
}
.footer__legal a:hover { color: var(--color-accent); }


/* ══════════════════════════════════════════════════════════
   CHATBOT WIDGET v2
══════════════════════════════════════════════════════════ */

/* ── Launcher: burbuja + botón ── */
.cw-launcher {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  /* Se oculta cuando el chat está abierto */
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
}
.cw-launcher.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.95);
}

/* ── Burbuja de mensaje ── */
.cw-bubble {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px 10px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  animation: cwBubbleFloat 3.4s ease-in-out infinite;
  /* siempre visible */
  opacity: 1;
}
/* Cola apuntando al botón */
.cw-bubble::after {
  content: '';
  position: absolute;
  right: -9px;
  bottom: 11px;
  border: 6px solid transparent;
  border-left-color: var(--color-border);
}
.cw-bubble::before {
  content: '';
  position: absolute;
  right: -7px;
  bottom: 12px;
  border: 5px solid transparent;
  border-left-color: var(--white);
  z-index: 1;
}

.cw-bubble__emoji {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.cw-bubble__body { line-height: 1.25; }
.cw-bubble__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}
.cw-bubble__sub {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  white-space: nowrap;
}

@keyframes cwBubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ── Botón circular ── */
.cw-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 22px rgba(217,39,46,0.42);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.cw-btn:hover {
  background: var(--color-accent-dk);
  transform: scale(1.07);
}
.cw-btn:active { transform: scale(0.96); }

/* ── Overlay (mobile) ── */
.cw-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.50);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cw-overlay.visible { display: block; }

/* ── Modal ── */
.cw-modal {
  position: fixed;
  z-index: 999;
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  /* estado cerrado */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.97);
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  /* Mobile: pantalla completa */
  inset: 0;
  border-radius: 0;
}
.cw-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: none;
}
.cw-modal__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ── Header ── */
.cw-modal__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: var(--color-primary);
  color: var(--white);
  flex-shrink: 0;
}
.cw-modal__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.cw-modal__info { flex: 1; min-width: 0; }
.cw-modal__info strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cw-modal__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.69rem;
  color: rgba(255,255,255,0.72);
  margin-top: 1px;
}
.cw-modal__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: cwDotBlink 2s ease-in-out infinite;
}
@keyframes cwDotBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.cw-modal__close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.cw-modal__close:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ── Mensajes ── */
.cw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #EEF0F3;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cw-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}
.cw-msg--bot  { align-self: flex-start; }
.cw-msg--user { align-self: flex-end; }

.cw-msg__bubble {
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.52;
}
.cw-msg--bot .cw-msg__bubble {
  background: var(--white);
  color: var(--color-text);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.cw-msg--user .cw-msg__bubble {
  background: var(--color-primary);
  color: var(--white);
  border-bottom-right-radius: 3px;
}
.cw-msg__time {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  padding: 0 3px;
}
.cw-msg--user .cw-msg__time { text-align: right; }

/* Typing indicator */
.cw-msg--typing .cw-msg__bubble {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 16px;
}
.cw-msg--typing .cw-msg__bubble span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: cwTyping 1.2s ease-in-out infinite;
}
.cw-msg--typing .cw-msg__bubble span:nth-child(2) { animation-delay: 0.18s; }
.cw-msg--typing .cw-msg__bubble span:nth-child(3) { animation-delay: 0.36s; }
@keyframes cwTyping {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(-5px); opacity: 1; }
}

/* ── Quick items: lista vertical ── */
.cw-quick {
  background: var(--white);
  border-top: 1px solid var(--color-border);
  padding: 10px 12px 6px;
  flex-shrink: 0;
}
.cw-quick.hidden { display: none; }

.cw-quick__label {
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 7px;
  padding-left: 2px;
}

.cw-quick__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--gray-50);
  margin-bottom: 5px;
  text-align: left;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  cursor: pointer;
}
.cw-quick__item:last-child { margin-bottom: 0; }
.cw-quick__item:hover {
  background: var(--remax-blue-lt);
  border-color: rgba(0,61,165,0.25);
  transform: translateX(2px);
}
.cw-quick__item:active { transform: scale(0.99); }

.cw-quick__icon {
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}
.cw-quick__text {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.cw-quick__text strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
}
.cw-quick__text span {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.cw-quick__arrow {
  color: var(--color-text-muted);
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.cw-quick__item:hover .cw-quick__arrow {
  opacity: 1;
  transform: translateX(2px);
  color: var(--color-primary);
}

/* ── Input área ── */
.cw-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--color-border);
  background: var(--white);
  flex-shrink: 0;
}
.cw-input {
  flex: 1;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 9px 15px;
  font-size: 0.84rem;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--gray-50);
  outline: none;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  -webkit-appearance: none;
}
.cw-input:focus {
  border-color: var(--color-primary);
  background: var(--white);
}
.cw-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.cw-send:hover  { background: var(--color-accent-dk); transform: scale(1.06); }
.cw-send:active { transform: scale(0.94); }
.cw-send:disabled { background: var(--gray-200); cursor: not-allowed; transform: none; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (640px+)
══════════════════════════════════════════════════════════ */
@media (min-width: 640px) {

  .servicios__grid {
    grid-template-columns: 1fr 1fr;
  }

  .props__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contacto__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cta-oferta__inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }
  .cta-oferta__content { flex: 1; }
  .cta-oferta__visual {
    flex: 0 0 36%;        /* más estrecho porque es vertical */
    aspect-ratio: 3/4;
    max-height: 420px;
  }

  .ubicacion__map { height: 340px; }
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE — DESKTOP (1024px+)
══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* Header */
  .header__nav { display: flex; }
  .header__hamburger { display: none; }

  /* Hero */
  .hero__content { padding: 0 24px; }
  .hero__glass-card { padding: 32px 30px 28px; }

  /* Servicios */
  .servicios__grid { grid-template-columns: repeat(3, 1fr); }

  /* Por qué yo */
  .porque-yo__layout {
    flex-direction: row;
    gap: var(--space-xl);
    align-items: center;
  }
  .porque-yo__visual { flex: 0 0 44%; }
  .porque-yo__content { flex: 1; }

  /* Propiedades */
  .props__grid { grid-template-columns: repeat(3, 1fr); }

  /* Ubicación */
  .ubicacion__layout {
    flex-direction: row;
    gap: var(--space-lg);
  }
  .ubicacion__info { flex: 0 0 340px; }
  .ubicacion__map { flex: 1; height: 400px; }

  /* Contacto hub */
  .contacto__grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-xl);
    justify-content: space-between;
  }
  .footer__brand { flex: 0 0 280px; }
  .footer__nav { flex-direction: column; gap: 6px; }
  .footer__legal { margin-top: auto; }

  /* Chatbot v2: panel lateral en desktop */
  .cw-modal {
    inset: auto;
    bottom: 90px;
    right: 16px;
    width: 376px;
    height: 560px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
  }
  .cw-modal__inner { border-radius: var(--radius-xl); overflow: hidden; }
  .cw-overlay { display: none !important; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — WIDE (1280px+)
══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .container { padding: 0 24px; }
  .section { padding: var(--space-2xl) 0; }

  .contacto__grid { grid-template-columns: repeat(6, 1fr); }
  .contact-channel { padding: 20px 12px; }
}
