/* ═══════════════════════════════════════════
   AIKO COLLANTE — Luxury Real Estate
   Paleta: BLANCO · Negro · Plateado · Dorado
═══════════════════════════════════════════ */

:root {
  /* Fondos — BLANCO primario */
  --bg:         #ffffff;
  --bg-2:       #f8f7f5;
  --bg-3:       #f0ede8;
  --bg-dark:    #0a0a0a;
  --bg-dark-2:  #111111;

  /* Texto */
  --text:       #0a0a0a;
  --text-soft:  #3a3a3a;
  --text-mute:  #6a6a6a;
  --text-light: #9a9a9a;

  /* Plateado */
  --silver:     #c4c4c4;
  --silver-2:   #8a8a8a;

  /* Dorado */
  --gold:       #C9A84C;
  --gold-2:     #e8c96a;
  --gold-dark:  #9a7a2e;
  --gold-bg:    rgba(201,168,76,0.07);

  /* Líneas */
  --line:       rgba(0,0,0,0.08);
  --line-gold:  rgba(201,168,76,0.25);

  --radius:     3px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow:     0 4px 30px rgba(0,0,0,0.08);
  --shadow-md:  0 8px 50px rgba(0,0,0,0.12);
}

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  background: transparent;
  color: var(--text);
  border: none;
  outline: none;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--text-light); }

/* ─── TIPOGRAFÍA GLOBAL ─────────────────── */
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-eyebrow.on-dark { color: var(--gold-2); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.on-dark { color: #fff; }
.section-sub {
  font-size: 0.9rem;
  color: var(--text-mute);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  padding: 6rem 5vw 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ─── BOTONES ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  background-size: 200% 100%;
  color: #fff;
}
.btn-gold:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}
.btn-black {
  background: var(--text);
  color: #fff;
}
.btn-black:hover { background: var(--text-soft); transform: translateY(-2px); }
.btn-outline-black {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.2);
}
.btn-outline-black:hover { border-color: var(--text); background: rgba(0,0,0,0.03); }
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-silver {
  background: linear-gradient(135deg, #d4d0c8 0%, #e8e4dc 50%, #c8c4bc 100%);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
}
.btn-silver:hover { background: linear-gradient(135deg, #c8c4bc 0%, #d4d0c8 100%); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.btn-nav {
  background: var(--gold);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.6rem 1.4rem;
}
.btn-nav:hover { background: var(--gold-2); color: var(--text); }
.btn-full { width: 100%; }
.btn-lg { padding: 1.1rem 2.8rem; font-size: 0.8rem; }

/* ─── REVEAL ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.75s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal[data-split] { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════
   SPLASH — fondo blanco
═══════════════════════════════════════════ */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splash.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.splash-logo {
  width: min(260px, 60vw);
  /* Logo negro sobre blanco — sin filtro */
}
.splash-bar {
  width: 180px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.splash-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  width: 0;
  animation: splashLoad 1.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes splashLoad { 0% { width:0 } 60% { width:85% } 100% { width:100% } }
.splash-sub {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   NAV — blanca con borde dorado al scroll
═══════════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  background: #ffffff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}
#nav.scrolled {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.nav-logo {
  width: 140px;
  /* Logo negro sobre blanco — sin filtro */
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Nav cuando hero es blanco — texto oscuro siempre */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: var(--transition);
}

/* ─── Mobile nav ───────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.18,1);
  border-left: 1px solid var(--line);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav ul { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.mnav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-soft);
  transition: color 0.3s;
}
.mnav-link:hover { color: var(--gold); }
.mnav-wa {
  color: var(--gold) !important;
  font-size: 1.2rem !important;
  font-family: 'Inter', sans-serif !important;
}
.mobile-nav-close {
  position: absolute;
  top: 2rem; right: 5vw;
  font-size: 1.5rem;
  color: var(--text-mute);
}
.mobile-nav-broker { margin-top: 1.5rem; }
.mobile-nav-broker img { width: 100px; opacity: 0.6; }

/* ═══════════════════════════════════════════
   HERO — fondo blanco con foto de Aiko
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  overflow: hidden;
  border-bottom: none;
}

/* Hero: columna izquierda contenido */
.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5vw 3rem 5vw;
  background: var(--bg);
}

/* Hero: columna derecha foto */
.hero-photo-col {
  position: relative;
  overflow: hidden;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.8s ease;
}
.hero-photo-col:hover .hero-photo-img { transform: scale(1.03); }
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.25) 0%,
    transparent 30%,
    transparent 80%,
    rgba(0,0,0,0.15) 100%
  );
  pointer-events: none;
}
.hero-photo-broker {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow);
}
.hero-photo-broker img { width: 90px; }

/* hero-fade-right ya no se usa */
.hero-fade-right { display: none; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.67rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.8rem;
  background: var(--gold-bg);
}
.badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.4; transform:scale(0.7); }
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.ht-line { display: block; }
.ht-gold em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Placa de licencia SC */
.hero-license {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  padding: 0.9rem 1.3rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.05) 100%);
  border: 1px solid var(--line-gold);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  max-width: 340px;
}
.license-seal { font-size: 1.4rem; color: var(--gold); flex-shrink: 0; }
.license-text { display: flex; flex-direction: column; gap: 0.2rem; }
.license-text strong { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.license-text span { font-size: 0.68rem; letter-spacing: 0.06em; color: var(--text-mute); }

/* hero-portrait y broker-badge legacy — ocultos */
.hero-portrait, .hero-broker-badge { display: none; }


/* ═══════════════════════════════════════════
   MARQUEE — ocupa las 2 columnas del hero grid, pegado al bottom
═══════════════════════════════════════════ */
.hero .marquee-strip {
  grid-column: 1 / -1; /* span ambas columnas */
  width: 100%;
  background: var(--gold);
  overflow: hidden;
  padding: 1.1rem 0;
  align-self: end;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0ece4;
}
.marquee-sep { color: rgba(240,236,228,0.45) !important; font-size: 0.6rem !important; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   STATS — fondo blanco con línea dorada top
═══════════════════════════════════════════ */
.stats {
  background: var(--bg);
  padding: 5rem 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
}
.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-suffix, .stat-prefix {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--gold);
}
.stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: 0.5rem;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--line);
}

/* ═══════════════════════════════════════════
   ABOUT — fondo off-white
═══════════════════════════════════════════ */
.about {
  background: var(--bg-2);
  padding: 7rem 5vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.about-title em { font-style: italic; color: var(--gold); }
.about-text {
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.8rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.cred-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.cred-icon { color: var(--gold); font-size: 0.55rem; }

/* Foto / frame */
.about-right { position: relative; }
.about-img-frame {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-md);
}
.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.7s ease;
  display: block;
}
.about-img-frame:hover img { transform: scale(1.04); }
.about-img-decor { display: none; }
.about-broker-seal {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-broker-seal img { width: 100px; }

/* ═══════════════════════════════════════════
   PROPERTIES — fondo blanco
═══════════════════════════════════════════ */
.properties {
  background: var(--bg);
  padding-bottom: 5rem;
}
.prop-grid {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.prop-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s, transform 0.4s;
}
.prop-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.prop-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}
.prop-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.prop-card:hover .prop-card-img { transform: scale(1.06); }
.prop-card-info {
  padding: 1.4rem 1.5rem 1.6rem;
}
.prop-tag {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 0.7rem;
  background: var(--gold-bg);
}
.prop-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.prop-location {
  font-size: 0.75rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.prop-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--gold);
}
.prop-details {
  display: flex;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.prop-cta {
  text-align: center;
  margin-top: 3.5rem;
  padding: 0 5vw;
}

/* ═══════════════════════════════════════════
   SCHEDULE — fondo plateado/champagne
═══════════════════════════════════════════ */
.schedule {
  background: linear-gradient(135deg, #e8e4dc 0%, #d8d4ca 100%);
  padding: 7rem 5vw;
  position: relative;
}
.schedule::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.schedule-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.schedule-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.schedule-title em { font-style: italic; color: var(--gold-dark); }
.schedule-desc {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}
.schedule-options { display: flex; flex-direction: column; gap: 0.7rem; }
.sched-opt {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: rgba(255,255,255,0.5);
}
.sched-opt:hover, .sched-opt.active {
  border-color: var(--gold);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 4px 16px rgba(201,168,76,0.2);
}
.sopt-icon { font-size: 1.3rem; }
.sched-opt div strong { display: block; font-size: 0.83rem; font-weight: 500; color: var(--text); }
.sched-opt div p { font-size: 0.73rem; color: var(--text-mute); margin-top: 0.1rem; }

/* Form — fondo blanco sobre negro */
.sched-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.72rem 0.95rem;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  outline: none;
  background: #fff;
}
.form-group select option { background: #fff; color: var(--text); }
.form-group input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.5; }
.form-privacy { font-size: 0.7rem; color: var(--text-mute); text-align: center; }

/* Success */
.sched-success {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.success-icon svg { width: 64px; height: 64px; margin: 0 auto 1.4rem; }
.check-path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 0.6s 0.3s ease forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.sched-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.sched-success p { color: var(--text-mute); font-size: 0.88rem; }

/* ═══════════════════════════════════════════
   TESTIMONIALS — fondo off-white
═══════════════════════════════════════════ */
.testimonials {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-bottom: 5rem;
}
.testimonial-slider {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 5vw;
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94);
}
.testi-card {
  flex: 0 0 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.8rem;
  box-shadow: var(--shadow);
}
.testi-stars { color: var(--gold); font-size: 1rem; margin-bottom: 1.2rem; letter-spacing: 0.2em; }
.testi-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 2rem;
}
.testi-author { display: flex; align-items: center; gap: 1rem; }
.testi-initials {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}
.testi-author strong { display: block; font-size: 0.86rem; font-weight: 500; color: var(--text); }
.testi-author span { font-size: 0.73rem; color: var(--text-mute); }
.testi-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.testi-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg);
}
.testi-btn:hover { border-color: var(--gold); color: var(--gold); }
.testi-dots { display: flex; gap: 0.5rem; }
.testi-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--silver);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testi-dot.active { background: var(--gold); transform: scale(1.4); }

/* ═══════════════════════════════════════════
   FAQ — fondo blanco
═══════════════════════════════════════════ */
.faq {
  background: var(--bg);
  padding: 7rem 5vw;
  border-top: 1px solid var(--line);
}
.faq-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 5rem;
  align-items: start;
}
.faq-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.faq-title em { color: var(--gold); font-style: italic; }
.faq-cta-text { font-size: 0.85rem; color: var(--text-mute); margin-bottom: 1.5rem; line-height: 1.65; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
  cursor: pointer;
  gap: 1rem;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--gold); }
.faq-q-text { font-size: 0.9rem; font-weight: 400; color: inherit; line-height: 1.4; }
.faq-icon {
  width: 22px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); border-color: var(--gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer p { font-size: 0.87rem; color: var(--text-soft); line-height: 1.75; padding-bottom: 1.3rem; }

/* ═══════════════════════════════════════════
   CONTACT — fondo dorado premium
═══════════════════════════════════════════ */
.contact {
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 40%, var(--gold-2) 100%);
  padding: 8rem 5vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.3);
}
.contact-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.contact-title em { font-style: italic; color: #fff; opacity: 0.85; }
.contact-sub {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.75);
  max-width: 400px;
  margin: 0 auto 3rem;
}
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.contact-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 4rem auto;
  max-width: 800px;
}
.contact-info-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.ci { display: flex; flex-direction: column; gap: 0.3rem; }
.ci-label { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.ci-value { font-size: 0.86rem; color: #fff; font-weight: 400; }

/* ═══════════════════════════════════════════
   FOOTER — plateado claro, logos visibles
═══════════════════════════════════════════ */
.footer {
  background: #ffffff;
  border-top: 3px solid var(--gold);
  padding: 4rem 5vw 2.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.footer-logo {
  width: 140px;
  /* Logo negro sobre fondo claro — sin filtro */
}
.footer-broker img {
  width: 110px;
  /* Logo Real Broker en color natural */
}
.footer-mid {
  text-align: center;
  margin-bottom: 2rem;
}
.footer-mid p {
  font-size: 0.73rem;
  color: var(--text-mute);
  letter-spacing: 0.06em;
  line-height: 1.9;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.7rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* ═══════════════════════════════════════════
   CHATBOT
═══════════════════════════════════════════ */
.chatbot-widget {
  position: fixed;
  bottom: 1.8rem;
  left: 1.8rem;
  z-index: 900;
}
.chatbot-trigger {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.chatbot-trigger:hover { border-color: var(--gold); transform: scale(1.07); }
.ct-pulse {
  position: absolute;
  top: -2px; right: -2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
  animation: ctPulse 2s ease-in-out infinite;
}
@keyframes ctPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}
.chatbot-panel {
  position: absolute;
  bottom: 68px;
  left: 0;
  width: 340px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: panelIn 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cb-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.1rem 1.2rem;
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.cb-avatar { width: 36px; }
.cb-hinfo strong { display: block; font-size: 0.83rem; font-weight: 600; color: #fff; }
.cb-hinfo span { font-size: 0.7rem; color: rgba(255,255,255,0.7); }
.cb-online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: #4ade80;
}
.cb-online span { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.cb-messages {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 280px;
  overflow-y: auto;
  background: var(--bg-2);
}
.cb-msg p {
  font-size: 0.83rem;
  line-height: 1.55;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  max-width: 95%;
}
.cb-msg.bot p {
  background: var(--bg);
  color: var(--text-soft);
  border: 1px solid var(--line);
  border-radius: 4px 10px 10px 10px;
}
.cb-msg.user p {
  background: var(--gold);
  color: #fff;
  text-align: right;
  border-radius: 10px 4px 10px 10px;
  margin-left: auto;
}
.cb-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.4rem;
}
.cb-qr {
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--text-mute);
  background: var(--bg);
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.cb-qr:hover { border-color: var(--gold); color: var(--gold); }
.cb-footer {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cb-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: linear-gradient(135deg, #128C7E, #25D366);
  color: #fff;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity 0.3s;
}
.cb-wa-btn:hover { opacity: 0.9; }

/* WhatsApp float — siempre visible */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #128C7E, #25D366);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 800;
  transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,0.55); }

/* ═══════════════════════════════════════════
   EDITORIAL STRIP — foto 3 + stats premium
═══════════════════════════════════════════ */
.editorial-strip {
  background: var(--bg-2);
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.editorial-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 600px;
}
.editorial-photo {
  overflow: hidden;
  position: relative;
}
.editorial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.8s ease;
}
.editorial-photo:hover img { transform: scale(1.04); }
.editorial-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw 4rem 4rem;
  gap: 1.4rem;
}
.editorial-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}
.editorial-title em { font-style: italic; color: var(--gold); }
.editorial-body {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.8;
  max-width: 440px;
}
.editorial-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.es-item { display: flex; flex-direction: column; gap: 0.3rem; }
.es-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.es-num sup { font-size: 1rem; }
.es-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.es-divider { width: 1px; height: 40px; background: var(--line); }

/* Botones sobre fondo dorado — contraste oscuro */
.btn-contact-wa {
  background: rgba(0,0,0,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-contact-wa:hover {
  background: rgba(0,0,0,0.35);
  transform: translateY(-2px);
}
.btn-contact-phone {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
}
.btn-contact-phone:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   TABLET (max 1024px)
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { max-width: 440px; margin: 0 auto; }
  .schedule-inner { grid-template-columns: 1fr; gap: 3rem; }
  .faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-inner { grid-template-columns: 1fr; min-height: auto; }
  .editorial-photo { aspect-ratio: 16/9; }
  .editorial-text { padding: 3rem 6vw; }
}

/* ═══════════════════════════════════════════
   MOBILE — iPhone & Android (max 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── NAV ───────────────────────────── */
  .nav-links, .btn-nav { display: none; }
  .nav-burger { display: flex; }
  #nav {
    padding: 0.9rem 5vw;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav-logo { width: 110px; }

  /* ── HERO — portada de revista ─────── */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
    padding-top: 0;
  }
  /* Foto: cubre la mitad superior de pantalla */
  .hero-photo-col {
    width: 100%;
    height: 58vw;
    min-height: 240px;
    max-height: 400px;
    flex-shrink: 0;
    margin-top: 60px; /* debajo del nav */
  }
  .hero-photo-img {
    object-position: top center;
  }
  .hero-photo-overlay {
    background: linear-gradient(
      to bottom,
      transparent 60%,
      rgba(255,255,255,0.6) 100%
    );
  }
  .hero-photo-broker {
    bottom: 0.8rem;
    left: 1rem;
  }
  .hero-photo-broker img { width: 72px; }

  /* Contenido: bloque debajo de la foto */
  .hero-content {
    padding: 1.8rem 6vw 1.5rem;
    flex: 1;
  }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }
  .hero-sub { font-size: 0.72rem; margin-bottom: 1.5rem; }
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-license {
    max-width: 100%;
    margin-top: 1.4rem;
  }

  /* Marquee al bottom */
  .hero .marquee-strip {
    flex-shrink: 0;
    position: static;
    grid-column: auto;
  }

  /* ── ABOUT ─────────────────────────── */
  .about { padding: 4rem 5vw; }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-right { max-width: 100%; order: -1; }
  .about-img-frame {
    aspect-ratio: 3/4;
    max-height: 480px;
    border-radius: 2px;
  }
  .about-broker-seal {
    left: auto;
    right: 0.5rem;
    bottom: -1rem;
  }

  /* ── EDITORIAL ─────────────────────── */
  .editorial-inner { grid-template-columns: 1fr; }
  .editorial-photo { aspect-ratio: 4/3; order: 1; }
  .editorial-text { order: 2; padding: 2.5rem 6vw; gap: 1.2rem; }

  /* ── PROPERTIES ────────────────────── */
  .prop-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 5vw;
  }
  .prop-card-img-wrap { aspect-ratio: 16/9; }

  /* ── SCHEDULE ──────────────────────── */
  .schedule { padding: 4rem 5vw; }
  .schedule-inner { grid-template-columns: 1fr; gap: 2rem; }
  .schedule-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .sched-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  /* ── FAQ ───────────────────────────── */
  .faq { padding: 4rem 5vw; }
  .faq-inner { grid-template-columns: 1fr; gap: 2rem; }
  .faq-left { text-align: center; }
  .faq-left .btn { width: 100%; }

  /* ── CONTACT ───────────────────────── */
  .contact { padding: 5rem 5vw; }
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
    gap: 0.8rem;
  }
  .btn-lg { width: 100%; }
  .contact-info-row {
    gap: 1.5rem 3rem;
    justify-content: center;
  }

  /* ── FOOTER ────────────────────────── */
  .footer { padding: 3rem 5vw 2rem; }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
  }
  .footer-logo { width: 120px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }

  /* ── CHATBOT ───────────────────────── */
  .chatbot-panel { width: calc(100vw - 2rem); max-width: 360px; left: -1rem; }
  .chatbot-widget { bottom: 5.5rem; left: 1rem; }

  /* ── SECTION HEADERS ───────────────── */
  .section-header { padding: 3.5rem 5vw 2rem; }

  /* ── MISC ──────────────────────────── */
  .stat-divider { display: none; }
}

/* ═══════════════════════════════════════════
   PEQUEÑOS (max 430px) — iPhone SE, Galaxy A
═══════════════════════════════════════════ */
@media (max-width: 430px) {
  /* Evita zoom automático en iOS al enfocar inputs */
  input, select, textarea { font-size: 16px !important; }

  .hero-photo-col { height: 62vw; min-height: 220px; }
  .hero-title { font-size: 2.1rem; line-height: 1.05; }
  .hero-badge { font-size: 0.58rem; padding: 0.35rem 0.8rem; }
  .section-title { font-size: 1.9rem; }
  .about-title { font-size: 1.9rem; }
  .contact-title { font-size: 2rem; }
  .faq-title { font-size: 1.9rem; }
  .editorial-title { font-size: 1.7rem; }
  .schedule-title { font-size: 1.9rem; }
  .marquee-track span { font-size: 0.8rem; }
  .schedule-options { grid-template-columns: 1fr; }
  .prop-card-img-wrap { aspect-ratio: 3/2; }
  .sched-form { padding: 1.1rem; }
  .hero-license { padding: 0.75rem 1rem; }
  .btn { min-height: 46px; }
}

/* ═══════════════════════════════════════════
   iOS SAFE AREAS — notch + home indicator
═══════════════════════════════════════════ */
@supports (padding: max(0px)) {
  #nav {
    padding-left: max(5vw, env(safe-area-inset-left));
    padding-right: max(5vw, env(safe-area-inset-right));
  }
  .footer {
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }
  .wa-float {
    bottom: max(1.8rem, calc(env(safe-area-inset-bottom) + 1rem));
    right: max(1.8rem, env(safe-area-inset-right));
  }
  .chatbot-widget {
    bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
    left: max(1rem, env(safe-area-inset-left));
  }
}

/* ═══════════════════════════════════════════
   TOUCH — pantallas táctiles (iOS + Android)
═══════════════════════════════════════════ */
@media (pointer: coarse) {
  /* Targets mínimos Apple HIG / Material Design */
  .btn { min-height: 48px; min-width: 48px; }
  .nav-burger {
    width: 44px; height: 44px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .faq-question { min-height: 54px; }
  .sched-opt { padding: 1.1rem 1.1rem; }
  .cb-qr { padding: 0.5rem 0.9rem; min-height: 36px; }
  .wa-float { width: 60px; height: 60px; }
  .chatbot-trigger { width: 60px; height: 60px; }

  /* Elimina hover effects en touch para no quedar "pegados" */
  .prop-card:hover { transform: none; box-shadow: var(--shadow); }
  .btn-gold:hover { transform: none; box-shadow: none; }
  .btn-silver:hover { transform: none; box-shadow: none; }
}
