/* =========================================================
   FIRSTHOME — Design System
   ========================================================= */

:root {
  --bg: #f8f5f0;
  --bg-dark: #0b0f1a;
  --bg-dark-2: #131826;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-dim: #8a8a8a;
  --line: #e8e3db;
  --line-dark: #1f2638;
  --accent: #c8704f;
  --accent-soft: #d4a574;
  --accent-dark: #a85a3e;
  --sage: #7a9b76;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.08);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.15);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1400px;
  --pad-x: clamp(24px, 5vw, 80px);
}

/* ======== RESET ======== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--white); }

/* ======== PRELOADER ======== */
#preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg-dark); color: var(--accent-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#preloader.gone { opacity: 0; visibility: hidden; }
.preloader-mark { display: flex; align-items: center; gap: 16px; }
.preloader-logo { width: 140px; height: 140px; object-fit: contain; }
.preloader-text {
  font-family: var(--serif);
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--white);
}
.preloader-bar {
  width: 220px; height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.preloader-bar > div {
  height: 100%; width: 30%;
  background: var(--accent-soft);
  animation: loadslide 1.4s var(--ease) infinite;
}
@keyframes loadslide {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(400%); width: 30%; }
}

/* ======== HEADER ======== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(248, 245, 240, 0);
  backdrop-filter: blur(0px);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.site-header.scrolled {
  background: rgba(248, 245, 240, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  padding: 12px var(--pad-x);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.site-header.hero-overlay {
  color: var(--ink);
}
.site-header.hero-overlay.scrolled { color: var(--ink); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-logo { height: 64px; width: auto; display: block; }
.site-nav {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
}
.site-nav a {
  position: relative; opacity: 0.85;
  transition: opacity 0.2s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.3s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { width: 100%; }
.btn-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink); color: var(--white);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}
.btn-header:hover { transform: translateY(-1px); background: var(--accent); }
.site-header.hero-overlay:not(.scrolled) .btn-header {
  background: var(--white); color: var(--ink);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(212, 165, 116, 0); }
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: currentColor;
  transition: transform 0.3s;
}

/* ======== HERO ======== */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-dark);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.hero-media {
  position: relative;
  width: 100%;
  height: clamp(640px, 90vh, 1050px);
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 24s ease-in-out infinite alternate;
  filter: brightness(0.82) saturate(1.05);
}
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}
.hero-layers { position: absolute; inset: 0; pointer-events: none; }
.hero-layer {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.layer-far {
  background: radial-gradient(ellipse at 30% 20%, rgba(212, 165, 116, 0.25), transparent 55%);
  animation: drift 16s ease-in-out infinite alternate;
}
.layer-mid {
  background: radial-gradient(ellipse at 70% 80%, rgba(200, 112, 79, 0.2), transparent 50%);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}
.layer-near {
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(11, 15, 26, 0.85) 100%);
}
@keyframes drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(3%, -2%); }
}
.hero-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.4'/></svg>");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--pad-x);
  animation: rise 1.2s var(--ease) 0.3s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: 32px;
}
.eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-soft);
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; color: var(--accent-soft); font-weight: 300; }
.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  max-width: 620px;
  opacity: 0.85;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-cta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  background: var(--white); color: var(--ink);
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 15px 40px rgba(200, 112, 79, 0.4);
}
.btn-primary.btn-lg { padding: 22px 40px; font-size: 16px; }
.btn-primary.btn-full { width: 100%; justify-content: center; padding: 20px 32px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  color: inherit; opacity: 0.9;
  font-size: 14px; font-weight: 500;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.2s, gap 0.3s var(--ease);
}
.btn-ghost:hover { opacity: 1; gap: 16px; }
.btn-ghost svg { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-audio {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--ink); color: var(--white);
  border: 0; border-radius: 100px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-audio:hover { transform: translateY(-1px); background: var(--accent); }
.site-header.hero-overlay:not(.scrolled) .btn-audio {
  background: var(--white); color: var(--ink);
}
.btn-audio.on { background: var(--accent); color: var(--white); }
.site-header.hero-overlay:not(.scrolled) .btn-audio.on { background: var(--accent); color: var(--white); }
.btn-audio svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-audio .icon-on { display: none; }
.btn-audio.on .icon-muted { display: none; }
.btn-audio.on .icon-on { display: block; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 680px;
}
.hero-stats > div {
  display: flex; flex-direction: column;
}
.hero-stats strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.hero-stats span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.ambient-toggle {
  position: absolute;
  right: var(--pad-x); bottom: 40px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: var(--white);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.3s;
}
.ambient-toggle.on { background: rgba(212, 165, 116, 0.2); border-color: var(--accent-soft); }
.ambient-bars { display: flex; gap: 3px; align-items: flex-end; height: 14px; }
.ambient-bars span {
  width: 2px; background: currentColor;
  height: 40%;
  border-radius: 2px;
}
.ambient-toggle.on .ambient-bars span {
  animation: barflow 1s ease-in-out infinite;
}
.ambient-toggle.on .ambient-bars span:nth-child(1) { animation-delay: 0s; }
.ambient-toggle.on .ambient-bars span:nth-child(2) { animation-delay: 0.15s; }
.ambient-toggle.on .ambient-bars span:nth-child(3) { animation-delay: 0.3s; }
.ambient-toggle.on .ambient-bars span:nth-child(4) { animation-delay: 0.45s; }
@keyframes barflow {
  0%, 100% { height: 40%; }
  50% { height: 100%; }
}
.hero-scroll {
  position: absolute;
  bottom: 32px; left: var(--pad-x);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em;
  opacity: 0.6;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, currentColor, transparent);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute;
  width: 100%; height: 40%;
  background: var(--white);
  animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown {
  0% { top: -40%; }
  100% { top: 100%; }
}

/* ======== SECTION HEADS ======== */
.section-head {
  padding: clamp(80px, 12vh, 140px) var(--pad-x) clamp(40px, 6vh, 64px);
  max-width: var(--maxw); margin: 0 auto;
}
.section-head.center { text-align: center; }
.section-head.dark { color: var(--white); }
.kicker {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--accent);
  padding-left: 20px; position: relative;
  margin-bottom: 20px;
}
.kicker::before {
  content: ""; position: absolute;
  left: 0; top: 50%; width: 12px; height: 1px;
  background: var(--accent);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400; font-style: normal;
  line-height: 1.05; letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 900px;
}
.section-head.center h2 { margin-left: auto; margin-right: auto; }
.section-head h2 em { font-style: italic; color: var(--accent); font-weight: 300; }
.section-desc {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  max-width: 680px;
  opacity: 0.75;
  font-weight: 300;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ======== NARRATIVA / SCENES ======== */
.narrativa {
  position: relative;
  padding-bottom: 80px;
}
.scenes-track {
  display: flex;
  gap: 32px;
  padding: 20px var(--pad-x) 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scenes-track::-webkit-scrollbar { display: none; }
.scene {
  flex: 0 0 min(88vw, 720px);
  scroll-snap-align: center;
  display: grid;
  grid-template-rows: auto auto;
  gap: 28px;
}
.scene-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  box-shadow: var(--shadow-md);
}
.scene-img-wrap {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.scene-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
  animation: scenekb 18s ease-in-out infinite alternate;
}
@keyframes scenekb {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.scene:hover .scene-img-wrap img { transform: scale(1.05); }
.scene-vfx {
  position: absolute; inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.scene-vfx.sunrise {
  background: linear-gradient(135deg, rgba(255, 180, 90, 0.4) 0%, transparent 60%);
  animation: sunriseshift 8s ease-in-out infinite alternate;
}
@keyframes sunriseshift {
  0% { opacity: 0.6; transform: translateX(-5%); }
  100% { opacity: 1; transform: translateX(0); }
}
.scene-vfx.steam {
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.3) 0%, transparent 40%);
  animation: steamrise 4s ease-in-out infinite;
}
@keyframes steamrise {
  0% { transform: translateY(10%) scale(1); opacity: 0.3; }
  100% { transform: translateY(-20%) scale(1.3); opacity: 0; }
}
.scene-vfx.sunlight {
  background: linear-gradient(110deg, transparent 40%, rgba(255, 220, 150, 0.4) 60%, transparent 80%);
  animation: lightmove 12s linear infinite;
}
@keyframes lightmove {
  0% { transform: translateX(-30%); }
  100% { transform: translateX(30%); }
}
.scene-vfx.goldenhour {
  background: linear-gradient(180deg, transparent 40%, rgba(255, 140, 60, 0.35) 100%);
  animation: sunset 10s ease-in-out infinite alternate;
}
@keyframes sunset {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}
.scene-vfx.candlelight {
  background: radial-gradient(circle at 50% 60%, rgba(255, 190, 100, 0.3) 0%, transparent 50%);
  animation: flicker 3s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
.scene-vfx.dusk {
  background: linear-gradient(180deg, rgba(30, 40, 80, 0.3) 0%, transparent 50%);
}
.scene-text { padding: 0 4px; }
.scene-time {
  display: inline-block;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.scene-text h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.scene-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
  max-width: 580px;
}
.scene-play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  background: var(--ink); color: var(--white);
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  transition: gap 0.3s var(--ease), background 0.2s;
}
.scene-play svg { width: 14px; height: 14px; }
.scene-play:hover { gap: 14px; background: var(--accent); }
.scenes-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-soft);
}
.scenes-progress {
  flex: 1; height: 2px;
  background: var(--line);
  border-radius: 2px; overflow: hidden;
}
.scenes-progress > div {
  height: 100%; width: 16%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

/* ======== TOUR SECTION ======== */
.tour-section {
  background: var(--bg-dark);
  color: var(--white);
  padding: clamp(80px, 12vh, 140px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.tour-section::before {
  content: "";
  position: absolute;
  top: -30%; right: -20%;
  width: 70%; height: 100%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.12), transparent 60%);
  pointer-events: none;
}
.tour-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  max-width: var(--maxw); margin: 0 auto;
  align-items: center;
  position: relative;
}
.tour-left .kicker { color: var(--accent-soft); }
.tour-left h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.tour-left h2 em { font-style: italic; color: var(--accent-soft); }
.tour-left .section-desc { opacity: 0.75; margin-bottom: 36px; }
.tour-bullets {
  list-style: none;
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 40px;
}
.tour-bullets li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; opacity: 0.85;
}
.tour-bullets svg {
  width: 22px; height: 22px;
  color: var(--accent-soft);
  flex-shrink: 0;
}
.tour-right { position: relative; }
.sofia-card {
  padding: 48px;
  background: linear-gradient(140deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.sofia-card::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(212, 165, 116, 0.08), transparent 40%);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sofia-avatar {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 28px;
}
.avatar-ring {
  position: absolute; inset: -8px;
  border: 2px solid var(--accent-soft);
  border-radius: 50%;
  border-right-color: transparent;
  animation: spin 4s linear infinite;
  opacity: 0.5;
}
.avatar-inner {
  position: relative; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 40px rgba(212, 165, 116, 0.3);
}
.avatar-svg { width: 100%; height: 100%; }
.avatar-status {
  position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--bg-dark); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 8px var(--sage);
}
.sofia-quote { text-align: center; position: relative; z-index: 1; }
.sofia-quote p {
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 24px);
  font-style: italic; font-weight: 300;
  line-height: 1.4;
  margin-bottom: 24px;
}
.sofia-meta {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  font-size: 12px; opacity: 0.6;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ======== PLANOS ======== */
.planos-section {
  background: var(--bg-dark);
  color: var(--white);
  padding-bottom: clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--line-dark);
}
.planos-section .section-head { color: var(--white); }
.planos-switcher {
  display: flex; gap: 8px; justify-content: center;
  padding: 0 var(--pad-x);
  margin-bottom: 48px;
}
.plano-btn {
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--white);
  font-size: 14px; font-weight: 500;
  transition: all 0.3s;
}
.plano-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}
.plano-btn:hover:not(.active) { background: rgba(255,255,255,0.1); }
.planos-display { padding: 0 var(--pad-x); }
.plano-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  max-width: var(--maxw); margin: 0 auto;
  align-items: stretch;
}
/* ======== PLANO (imagen rasterizada del PDF arquitectónico) ======== */
.plano-4d {
  position: relative;
  background: #fafaf7;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: 640px;
  border: 1px solid rgba(255,255,255,0.08);
}
.plano-4d::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 165, 116, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 165, 116, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.plano-4d .floors {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  height: 100%;
}
.floor-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--sans);
}
.floor-svg .floor-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  fill: var(--accent-soft);
  letter-spacing: 0.05em;
}
.floor-outline rect {
  fill: rgba(255,255,255,0.02);
  stroke: rgba(212, 165, 116, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}
.floor-svg .room rect {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1.2;
  transition: fill 0.35s var(--ease), stroke 0.35s var(--ease), filter 0.35s var(--ease);
}
.floor-svg .room.outdoor rect {
  fill: rgba(122, 155, 118, 0.15);
  stroke: rgba(122, 155, 118, 0.5);
}
.floor-svg .room.interactive { cursor: pointer; }
.floor-svg .room.interactive:hover rect {
  fill: rgba(212, 165, 116, 0.22);
  stroke: var(--accent-soft);
  stroke-width: 2;
  filter: drop-shadow(0 0 12px rgba(212, 165, 116, 0.5));
}
.floor-svg .room g {
  color: var(--accent-soft);
}
.floor-svg .room-label {
  fill: rgba(255,255,255,0.95);
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
}
.floor-svg .room-dims {
  fill: rgba(212, 165, 116, 0.75);
  font-size: 8.5px;
  font-weight: 500;
  pointer-events: none;
  font-family: var(--serif);
}

/* 4th dimension: time of day breathing (light shifts slowly) */
.plano-4d .time-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 200, 130, 0.1) 0%, transparent 50%, rgba(40, 60, 120, 0.15) 100%);
  mix-blend-mode: overlay;
  animation: dayNightBreath 30s ease-in-out infinite alternate;
}
@keyframes dayNightBreath {
  0% {
    background: linear-gradient(180deg, rgba(255, 200, 130, 0.12) 0%, transparent 50%, rgba(200, 150, 80, 0.05) 100%);
    opacity: 0.9;
  }
  33% {
    background: linear-gradient(180deg, rgba(255, 240, 200, 0.08) 0%, transparent 50%, rgba(180, 200, 230, 0.06) 100%);
    opacity: 1;
  }
  66% {
    background: linear-gradient(180deg, rgba(255, 120, 60, 0.18) 0%, transparent 50%, rgba(80, 60, 120, 0.15) 100%);
    opacity: 0.85;
  }
  100% {
    background: linear-gradient(180deg, rgba(40, 60, 120, 0.3) 0%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0.75;
  }
}

/* Floating preview of real render on hover */
.plano-preview {
  position: absolute;
  width: 260px;
  background: rgba(20, 26, 40, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 165, 116, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
  z-index: 20;
}
.plano-preview.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.plano-preview .pp-frame {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0b0f1a;
}
.plano-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plano-preview .pp-meta {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plano-preview .pp-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}
.plano-preview .pp-dims {
  font-size: 12px;
  color: var(--accent-soft);
  letter-spacing: 0.03em;
}
.plano-preview .pp-cta {
  margin-top: 6px;
  font-style: italic;
  font-size: 11px;
  opacity: 0.7;
  color: var(--accent-soft);
}

.plano-hint {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(212, 165, 116, 0.08);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}
.plano-hint .hint-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .plano-4d .floors { grid-template-columns: 1fr; gap: 24px; }
  .plano-4d { padding: 20px; min-height: 720px; }
}
.plano-info {
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 0;
}
.plano-info h3 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 8px;
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
}
.plano-info h3 span {
  font-size: 14px;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--sans);
}
.plano-info ul {
  list-style: none;
  margin: 32px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.plano-info li {
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}
.plano-info li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 1px;
  background: var(--accent-soft);
}
.plano-info strong { color: var(--accent-soft); font-weight: 500; }
.plano-img-link { display: block; width: 100%; height: 100%; }
.plano-img {
  display: block;
  width: 100%; height: auto;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-md);
  transition: transform 0.4s var(--ease);
}
.plano-img-link:hover .plano-img { transform: scale(1.02); }
.plano-pdf-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 100px;
  font-size: 14px; font-weight: 500;
  width: max-content;
  transition: transform 0.2s, background 0.2s;
}
.plano-pdf-cta:hover { transform: translateY(-1px); background: var(--accent-dark); }
.plano-pdf-cta svg { width: 16px; height: 16px; }
.plano-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.plano-stats > div { display: flex; flex-direction: column; }
.plano-stats strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
}
.plano-stats span {
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ======== PLANO slideshow (renders + plano final) ======== */
.plano-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
}
.plano-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  -webkit-user-drag: none;
}
.plano-slideshow .slide.active { opacity: 1; }
.plano-slideshow .slide.slide-plan { object-fit: contain; background: #fff; }
.plano-slideshow .slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  font-family: var(--sans);
  display: flex; align-items: center; justify-content: center;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
  padding: 0;
  line-height: 1;
}
.plano-slideshow:hover .slide-arrow { opacity: 1; }
.plano-slideshow .slide-arrow:hover { background: rgba(0, 0, 0, 0.85); }
.plano-slideshow .slide-arrow:active { transform: translateY(-50%) scale(0.94); }
.plano-slideshow .slide-prev { left: 16px; }
.plano-slideshow .slide-next { right: 16px; }
.plano-slideshow .slide-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.plano-slideshow:hover .slide-counter { opacity: 1; }
.plano-slideshow .slide-counter .slide-sep { opacity: 0.6; margin: 0 4px; }
.plano-slideshow .slide-lens {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.2);
  background-repeat: no-repeat;
  background-color: #fff;
  pointer-events: none;
  z-index: 10;
}
@media (hover: none) {
  .plano-slideshow { cursor: default; }
  .plano-slideshow .slide-arrow,
  .plano-slideshow .slide-counter { opacity: 1; }
}
@media (max-width: 768px) {
  .plano-slideshow { min-height: 420px; }
  .plano-slideshow .slide-lens { width: 160px; height: 160px; }
  .plano-slideshow .slide-arrow { width: 40px; height: 40px; font-size: 18px; }
}

/* ======== UBICACION ======== */
.ubicacion-section {
  padding-bottom: clamp(80px, 12vh, 140px);
}
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: stretch;
}
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8f5f0;
  box-shadow: var(--shadow-md);
  min-height: 500px;
}
.map-placeholder {
  position: relative;
  width: 100%; height: 100%;
  min-height: 500px;
}
.map-svg {
  width: 100%; height: 100%;
  display: block;
}
.map-legend {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  display: flex; flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  box-shadow: var(--shadow-sm);
}
.map-legend > div { display: flex; align-items: center; gap: 8px; }
.dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.dot.ucb { background: var(--bg-dark); }
.dot.home { background: var(--accent); }
.dot.poi { background: var(--sage); }
.distances h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.distance-list {
  list-style: none;
  display: flex; flex-direction: column;
}
.distance-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.distance-list li:hover { background: rgba(200, 112, 79, 0.03); }
.distance-icon { font-size: 22px; }
.distance-list strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.distance-list span {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}
.distance-list em {
  font-style: normal;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.distances-note {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 20px;
  font-style: italic;
}

/* ======== CALCULADORA / INVERSION ======== */
.inversion-section {
  background: var(--bg-dark);
  color: var(--white);
  padding-bottom: clamp(80px, 12vh, 140px);
}
.calculator {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.calc-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.calc-input label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 20px;
}
.calc-input label span {
  text-transform: none;
  letter-spacing: normal;
  color: var(--accent-soft);
}
.input-wrap {
  display: grid;
  grid-template-columns: auto 1fr 140px;
  gap: 20px;
  align-items: center;
}
.currency {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--accent-soft);
}
#rentSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  outline: 0;
}
#rentSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(200, 112, 79, 0.3);
  transition: transform 0.2s;
}
#rentSlider::-webkit-slider-thumb:hover { transform: scale(1.15); }
#rentSlider::-moz-range-thumb {
  width: 24px; height: 24px;
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(200, 112, 79, 0.3);
}
#rentInput {
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 22px;
  text-align: center;
  outline: 0;
}
#rentInput:focus { border-color: var(--accent); }
.calc-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.result-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.result-card.rent {
  background: rgba(200, 112, 79, 0.08);
  border-color: rgba(200, 112, 79, 0.25);
}
.result-card.buy {
  background: rgba(122, 155, 118, 0.1);
  border-color: rgba(122, 155, 118, 0.3);
}
.result-label {
  display: block;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 12px;
}
.result-value {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.result-card.rent .result-value { color: #e08977; }
.result-card.buy .result-value { color: #a8c4a3; }
.result-card small { opacity: 0.7; font-size: 13px; }
.result-vs {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  opacity: 0.4;
}
.calc-breakdown {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}
.calc-breakdown h4 {
  font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 20px;
}
.calc-breakdown table {
  width: 100%;
  border-collapse: collapse;
}
.calc-breakdown td {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
}
.calc-breakdown td:last-child {
  text-align: right;
  font-family: var(--serif);
  font-size: 18px;
}
.calc-model-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.calc-model-selector .model-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--white);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-family: var(--sans);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  text-align: left;
}
.calc-model-selector .model-btn strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.calc-model-selector .model-btn span {
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.calc-model-selector .model-btn:hover { background: rgba(255,255,255,0.08); }
.calc-model-selector .model-btn.active {
  background: rgba(212, 165, 116, 0.14);
  border-color: var(--accent);
  color: var(--white);
}
.calc-model-selector .model-btn.active span { opacity: 0.9; color: var(--accent-soft); }
.calc-plusvalia {
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  margin-top: 24px;
}
.calc-plusvalia h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.calc-plusvalia .calc-note {
  font-size: 12px;
  line-height: 1.55;
  opacity: 0.7;
  margin: 0 0 18px;
}
.calc-plusvalia .calc-note strong { color: var(--accent-soft); font-weight: 600; }
.calc-plusvalia .calc-note em { font-style: italic; color: rgba(168, 196, 163, 0.9); }
.plusvalia-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.plusvalia-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  min-width: 480px;
}
.plusvalia-table thead th {
  text-align: right;
  padding: 12px 12px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(212, 165, 116, 0.25);
}
.plusvalia-table thead th:first-child { text-align: left; }
.plusvalia-table tbody td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.88);
}
.plusvalia-table tbody td:first-child {
  text-align: left;
  font-family: var(--serif);
  color: var(--accent-soft);
}
.plusvalia-table tbody tr:last-child td { border-bottom: none; }
.plusvalia-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.plusvalia-table .rent-cell { color: #e08977; }
.plusvalia-table .diff-cell { color: #a8c4a3; font-weight: 600; }
.plusvalia-table tfoot .plusvalia-total-row td {
  padding: 16px 12px;
  border-top: 2px solid rgba(212, 165, 116, 0.4);
  border-bottom: none;
  background: rgba(212, 165, 116, 0.06);
  vertical-align: top;
  text-align: right;
}
.plusvalia-table tfoot .plusvalia-total-row td:first-child {
  text-align: left;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent-soft);
  font-weight: 500;
}
.plusvalia-table tfoot .plusvalia-total-row td span {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.plusvalia-table tfoot .plusvalia-total-row .diff-cell span {
  font-size: 20px;
  color: #a8c4a3;
}
.plusvalia-table tfoot .plusvalia-total-row .rent-cell span { color: #e08977; }
.plusvalia-table tfoot .plusvalia-total-row td small {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.plusvalia-legend {
  margin: 22px 0 0;
  padding: 18px 20px 6px;
  background: rgba(255,255,255,0.025);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  gap: 12px;
}
.plusvalia-legend > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.plusvalia-legend > div:last-child { border-bottom: none; padding-bottom: 0; }
.plusvalia-legend dt {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.plusvalia-legend dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 640px) {
  .plusvalia-legend > div { grid-template-columns: 1fr; gap: 4px; }
  .plusvalia-table tfoot .plusvalia-total-row td span { font-size: 15px; }
  .plusvalia-table tfoot .plusvalia-total-row .diff-cell span { font-size: 17px; }
}

/* ============================================================
   CALCULATOR ELEGANT — rediseño tipo brunobreitenstein.com
   Paleta firsthome: ink dark + accent #c8704f + accent-soft #d4a574 + sage #7a9b76
   ============================================================ */
.calculator.elegant { max-width: 1200px; padding: 0 var(--pad-x); }
.calculator.elegant .calc-input {
  max-width: 720px;
  margin: 0 auto 56px;
}
.elegant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.elegant-col-left,
.elegant-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.elegant-col-right { position: sticky; top: 100px; }

.elegant-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.elegant-card .card-kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 14px;
}
.elegant-card .card-kicker.accent-soft { color: var(--accent-soft); }
.elegant-card .card-microcopy {
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin: -6px 0 20px;
  max-width: 460px;
}
.elegant-card .card-bignum {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
  color: var(--white);
}
.elegant-card .card-bignum.accent { color: var(--accent-soft); }
.elegant-card .card-sub {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}
.elegant-card .card-sub .accent-soft { color: var(--accent-soft); font-weight: 500; }
.elegant-card .card-footnote {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.55;
}

/* Scenarios block */
.scenarios { display: flex; flex-direction: column; }
.scenario {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.scenario:last-child { border-bottom: none; }
.scenario.active {
  margin: 0 -16px;
  padding-left: 16px; padding-right: 16px;
  background: rgba(212, 165, 116, 0.06);
  border-radius: 10px;
  border-bottom-color: transparent;
}
.scenario-name strong {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
}
.scenario-name small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}
.scenario-vals { text-align: right; }
.scenario-vals .sc-val {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.85);
}
.scenario-vals .sc-val.accent { color: var(--accent-soft); }
.scenario-vals .sc-val.sage { color: #a8c4a3; }
.scenario-vals .sc-multi {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  margin: 2px 0 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Rent tiers block */
.rent-tiers { display: flex; flex-direction: column; gap: 4px; }
.rent-tier {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.rent-tier:last-child { border-bottom: none; }
.rent-tier.active {
  margin: 0 -16px;
  padding-left: 16px; padding-right: 16px;
  background: rgba(224, 137, 119, 0.07);
  border-radius: 10px;
  border-bottom-color: transparent;
}
.rent-tier .tier-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}
.rent-tier.active .tier-label { color: var(--white); font-weight: 500; }
.rent-tier .tier-vals { text-align: right; }
.rent-tier .tier-vals b {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: #e08977;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.rent-tier .tier-vals small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* Highlight result card (dark contrast) */
.elegant-card.highlight-card {
  background: linear-gradient(160deg, rgba(200, 112, 79, 0.16), rgba(26, 26, 26, 0.4));
  border: 1px solid rgba(212, 165, 116, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.highlight-card .result-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.highlight-card .result-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.highlight-card .result-list li:last-child { border-bottom: none; }
.highlight-card .result-list span {
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
}
.highlight-card .result-list b {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.highlight-card .result-list b.accent-soft { color: var(--accent-soft); }
.highlight-card .result-list b.sage { color: #a8c4a3; }
.highlight-card .result-multiplier {
  text-align: center;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.highlight-card .result-mini {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 10px;
}
.highlight-card .result-bignum {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  color: var(--accent-soft);
  margin: 0;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Image card right column */
.elegant-img-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.elegant-img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
}
.elegant-img-card:hover img { transform: scale(1.04); }
.elegant-img-card .img-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 36px 32px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
  color: var(--white);
}
.elegant-img-card .img-kicker {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 8px;
}
.elegant-img-card .img-bignum {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}

/* Growth chart */
.growth-chart { display: flex; flex-direction: column; gap: 14px; }
.growth-row {
  display: grid;
  grid-template-columns: 52px 1fr 88px;
  align-items: center;
  gap: 14px;
}
.growth-year {
  font-size: 12px;
  font-family: var(--sans);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.growth-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.growth-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 100px;
  transition: width 0.8s var(--ease);
}
.growth-val {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  text-align: right;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* Key message */
.elegant-card.key-message { border-left: 3px solid var(--accent-soft); }
.key-message .key-headline {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.key-message .key-headline .accent-soft { color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.key-message .key-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 20px;
}
.key-message .key-body strong {
  color: var(--white);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.key-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.key-tags span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

/* Responsive */
@media (max-width: 1024px) {
  .elegant-grid { grid-template-columns: 1fr; gap: 24px; }
  .elegant-col-right { position: static; top: auto; }
}
@media (max-width: 640px) {
  .elegant-card { padding: 24px 22px; border-radius: 18px; }
  .elegant-card .card-bignum { font-size: 42px; }
  .highlight-card .result-bignum { font-size: 36px; }
  .elegant-img-card .img-bignum { font-size: 32px; }
  .key-message .key-headline { font-size: 22px; }
  .scenario.active,
  .rent-tier.active { margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
  .growth-row { grid-template-columns: 44px 1fr 76px; gap: 10px; }
}
@media (max-width: 640px) {
  .calc-model-selector { grid-template-columns: 1fr; }
  .calc-plusvalia { padding: 20px; }
  .plusvalia-table { font-size: 13px; }
}
.calc-breakdown .highlight {
  color: var(--accent-soft);
  font-weight: 500;
}
.calc-note {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 16px;
  font-style: italic;
}

/* ======== GOLDEN KEY ======== */
.goldenkey-section { padding-bottom: clamp(80px, 12vh, 140px); }
.goldenkey-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
  align-items: start;
}
.units-map {
  background: var(--bg-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.units-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.unit {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(122, 155, 118, 0.2);
  border: 1px solid rgba(122, 155, 118, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  color: #a8c4a3;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.unit:hover:not(.reserved) {
  transform: translateY(-2px);
  background: rgba(122, 155, 118, 0.4);
  box-shadow: 0 4px 16px rgba(122, 155, 118, 0.3);
}
.unit.reserved {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
  text-decoration: line-through;
}
.unit.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(200, 112, 79, 0.4);
}
.units-legend {
  display: flex; flex-wrap: wrap; gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}
.units-legend > div { display: flex; align-items: center; gap: 8px; }
.units-legend strong {
  margin-left: 4px;
  color: var(--accent-soft);
  font-family: var(--serif);
}
.u-dot {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1px solid;
}
.u-dot.available { background: rgba(122, 155, 118, 0.2); border-color: rgba(122, 155, 118, 0.4); }
.u-dot.reserved { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.u-dot.selected { background: var(--accent); border-color: var(--accent); }

.reserve-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.reserve-header {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.reserve-header h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.reserve-header p {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}
.reserve-form {
  display: flex; flex-direction: column; gap: 16px;
}
.form-row label {
  display: block;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.6;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-row input, .form-row select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  outline: 0;
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus { border-color: var(--accent); }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-legal {
  font-size: 11px;
  color: var(--ink-dim);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

/* ======== FAQ ======== */
.faq-section {
  padding-bottom: clamp(80px, 12vh, 140px);
  background: var(--bg-dark);
  color: var(--white);
}
.faq-section .section-head { color: var(--white); }
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; flex-direction: column;
  gap: 0;
}
.faq-item {
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.1); }
.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-soft); }
.faq-q::after {
  content: "+";
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  transition: transform 0.3s;
  color: var(--accent-soft);
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.6;
  max-width: 720px;
}

/* ======== FOOTER ======== */
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 60px var(--pad-x) 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 48px;
  max-width: var(--maxw);
  margin: 0 auto 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex; flex-direction: column; gap: 16px;
  font-family: var(--serif);
  font-size: 24px;
}
.footer-brand .brand-logo { height: 96px; width: auto; }
.footer-brand p {
  font-family: var(--sans);
  font-size: 14px;
  font-style: italic;
  opacity: 0.6;
  max-width: 280px;
  margin-top: 8px;
}
.footer-col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent-soft);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.8;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col a:hover { opacity: 1; color: var(--accent-soft); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.5;
}

/* ======== WHATSAPP FLOAT ======== */
.whatsapp-float {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  z-index: 900;
  transition: transform 0.3s var(--ease);
  animation: wafloat 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }
@keyframes wafloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ======== TOUR OVERLAY ======== */
.tour-overlay {
  position: fixed; inset: 0;
  background: var(--bg-dark);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tour-overlay.active {
  visibility: visible;
  opacity: 1;
}
.tour-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.tour-close:hover { background: var(--accent); }
.tour-close svg { width: 20px; height: 20px; }
.tour-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  height: 100%;
  overflow: hidden;
}
.tour-scene-3d {
  position: relative;
  overflow: hidden;
  background: #000;
  perspective: 1200px;
}
.parallax-layer {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s var(--ease), background-image 0.8s;
  will-change: transform;
}
.layer-bg {
  filter: blur(12px) brightness(0.6);
  transform: scale(1.1);
  z-index: 1;
}
.layer-mid {
  filter: blur(3px) brightness(0.85);
  z-index: 2;
}
.layer-fg {
  z-index: 3;
}
.tour-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  background: #000;
}
.tour-video.active {
  opacity: 1;
}
.tour-scene-3d::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  z-index: 5;
  pointer-events: none;
}
.scene-label {
  position: absolute;
  left: 40px; bottom: 40px;
  z-index: 10;
  max-width: 520px;
  color: var(--white);
}
.scene-time-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(212, 165, 116, 0.2);
  border: 1px solid rgba(212, 165, 116, 0.4);
  color: var(--accent-soft);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--serif);
}
.scene-label h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.scene-label p {
  font-size: 16px;
  opacity: 0.85;
  font-weight: 300;
  line-height: 1.5;
  max-width: 480px;
}
.time-slider-wrap {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 10;
  width: 320px;
  padding: 20px 24px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
}
.time-slider-wrap label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
  margin-bottom: 12px;
}
#timeSlider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  outline: 0;
  margin-bottom: 10px;
}
#timeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent-soft);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.3);
}
#timeSlider::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--accent-soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.time-labels {
  display: flex; justify-content: space-between;
  font-size: 11px;
  opacity: 0.7;
}

.tour-sofia {
  background: var(--bg-dark-2);
  color: var(--white);
  display: flex; flex-direction: column;
  border-left: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.sofia-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sofia-avatar-small {
  position: relative;
  width: 44px; height: 44px;
  flex-shrink: 0;
}
.sofia-avatar-small svg {
  width: 100%; height: 100%;
  border-radius: 50%;
}
.voice-indicator {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sage);
  border: 2px solid var(--bg-dark-2);
  transition: background 0.3s;
}
.voice-indicator.speaking {
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulseV 1.5s infinite;
}
@keyframes pulseV {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 112, 79, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(200, 112, 79, 0); }
}
.voice-indicator.listening { background: #e0b977; animation: pulseV 1s infinite; }
.sofia-header strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.sofia-header small {
  font-size: 11px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.sofia-rooms {
  display: flex; gap: 6px;
  padding: 14px 24px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  scrollbar-width: none;
}
.sofia-rooms::-webkit-scrollbar { display: none; }
.room-chip {
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.room-chip:hover { background: rgba(255,255,255,0.1); }
.room-chip.active {
  background: var(--accent);
  border-color: var(--accent);
}
.sofia-chat {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex; flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sofia-chat::-webkit-scrollbar { width: 4px; }
.sofia-chat::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.chat-msg {
  display: flex;
  animation: msgIn 0.4s var(--ease);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg p {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}
.chat-msg.bot {}
.chat-msg.bot p {
  background: rgba(212, 165, 116, 0.08);
  border: 1px solid rgba(212, 165, 116, 0.2);
  border-top-left-radius: 4px;
}
.chat-msg.bot.intro p {
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  opacity: 0.9;
  padding: 0;
}
.chat-msg.user { justify-content: flex-end; }
.chat-msg.user p {
  background: var(--accent);
  color: var(--white);
  border-top-right-radius: 4px;
}
.sofia-input {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.mic-btn, .send-btn {
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.mic-btn:hover, .send-btn:hover { background: var(--accent); border-color: var(--accent); }
.mic-btn svg, .send-btn svg { width: 18px; height: 18px; }
.mic-btn.listening {
  background: var(--accent);
  border-color: var(--accent);
  animation: micPulse 1.2s infinite;
}
@keyframes micPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 112, 79, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(200, 112, 79, 0); }
}
#sofiaText {
  padding: 11px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 14px;
  outline: 0;
  color: var(--white);
}
#sofiaText::placeholder { color: rgba(255,255,255,0.4); }
#sofiaText:focus { border-color: var(--accent); }
.sofia-suggestions {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 20px 16px;
}
.sofia-suggestions button {
  padding: 7px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: var(--white);
  font-size: 11px;
  opacity: 0.7;
  transition: all 0.2s;
}
.sofia-suggestions button:hover {
  opacity: 1;
  background: rgba(212, 165, 116, 0.1);
  border-color: rgba(212, 165, 116, 0.3);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .tour-grid, .plano-card, .ubicacion-grid, .goldenkey-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .tour-stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .tour-sofia { height: 45vh; border-left: 0; border-top: 1px solid rgba(255,255,255,0.08); }
  .scene-label { left: 20px; bottom: 20px; right: 20px; }
  .time-slider-wrap { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .units-container { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .hero { min-height: 92vh; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ambient-toggle { bottom: 16px; right: 16px; }
  .hero-scroll { display: none; }
  .calc-result { grid-template-columns: 1fr; }
  .result-vs { margin: -8px auto; }
  .form-row.split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .units-container { grid-template-columns: repeat(4, 1fr); }
  .scenes-track { padding: 20px 16px 40px; }
  .scene { flex: 0 0 85vw; }
  .btn-header span:not(.pulse-dot) { display: none; }
}

/* ======== SOFIA REAL AVATAR (photo) ======== */
.avatar-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 50%;
  filter: contrast(1.03) saturate(1.05);
}
.sofia-avatar-small img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}

/* ======== SOFIA COMPANION (walking beside user POV) ======== */
.sofia-companion {
  position: absolute;
  right: 3vw;
  bottom: 0;
  width: clamp(260px, 26vw, 420px);
  height: 88%;
  z-index: 8;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45));
  animation: walkingBob 2.4s ease-in-out infinite;
  transition: opacity 0.6s ease, transform 0.6s var(--ease);
  opacity: 0;
}
.tour-overlay.active .sofia-companion { opacity: 1; }
.sofia-companion img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom;
  mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
}
@keyframes walkingBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-0.3deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-4px) rotate(0.3deg); }
}
.sofia-companion.speaking {
  animation: walkingBob 2.4s ease-in-out infinite, companionGlow 2s ease-in-out infinite alternate;
}
@keyframes companionGlow {
  0% { filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)) drop-shadow(0 0 20px rgba(212,165,116,0.3)); }
  100% { filter: drop-shadow(0 30px 40px rgba(0,0,0,0.45)) drop-shadow(0 0 40px rgba(212,165,116,0.6)); }
}
.companion-whisper {
  position: absolute;
  bottom: 15%;
  right: 105%;
  width: clamp(220px, 22vw, 340px);
  padding: 14px 18px;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  border-radius: 18px 18px 4px 18px;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  font-family: var(--sans);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
  pointer-events: none;
}
.companion-whisper.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.companion-whisper::after {
  content: "";
  position: absolute;
  bottom: 12px; right: -10px;
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(255,255,255,0.95);
}

/* When Sofia speaks, her gaze + subtle head tilt toward user */
.sofia-companion img {
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.sofia-companion.gazing img {
  transform: scale(1.01);
  filter: contrast(1.05) saturate(1.08) brightness(1.02);
}

/* POV (first-person) mode for Un Día scenes */
.scene.pov .scene-img-wrap {
  aspect-ratio: 21/9;
  perspective: 1200px;
}
.scene.pov .scene-img-static,
.scene.pov .scene-video {
  animation: povWalk 20s ease-in-out infinite alternate;
}
@keyframes povWalk {
  0% {
    transform: scale(1.15) translateX(-2%) translateY(0.5%);
    filter: brightness(0.95) saturate(1.05);
  }
  50% {
    transform: scale(1.18) translateX(0) translateY(-0.3%);
    filter: brightness(1.02) saturate(1.1);
  }
  100% {
    transform: scale(1.16) translateX(1.5%) translateY(0.5%);
    filter: brightness(0.97) saturate(1.08);
  }
}

/* POV vignette suggests depth of field / human vision */
.scene.pov .scene-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 50%, rgba(0,0,0,0.25) 100%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* Mobile — companion smaller and centered */
@media (max-width: 1024px) {
  .sofia-companion {
    right: 2vw;
    width: 200px;
    height: 55%;
    bottom: 38vh;
  }
  .companion-whisper {
    right: auto;
    left: -10px;
    bottom: -80px;
    width: 80vw;
    max-width: 320px;
  }
}

/* ======== VIDEO / CINEMAGRAPH LAYER ======== */
.svg-defs { position: absolute; width: 0; height: 0; }

.hero-video, .scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 2;
}
.hero-video.ready, .scene-video.ready {
  opacity: 1;
}
.hero-video.ready ~ .hero-img, .scene-video.ready ~ .scene-img-static {
  opacity: 0;
}
.scene-img-static {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 1s ease;
  animation: scenekb 22s ease-in-out infinite alternate;
}

/* Hyperrealistic cinemagraph on static images (fallback when no MP4) */
.scene-img-wrap.cine .scene-img-static {
  filter: url(#cineMove) saturate(1.05) contrast(1.02);
}
.scene-img-wrap.cine::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(20px) brightness(1.1) saturate(1.2);
  opacity: 0.35;
  z-index: 1;
  animation: breathLayer 9s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
@keyframes breathLayer {
  0% { transform: scale(1.02) translate(0, 0); opacity: 0.25; }
  100% { transform: scale(1.05) translate(-1%, -0.5%); opacity: 0.4; }
}

/* Light sweep — simulates sunlight moving through windows */
.light-sweep {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 230, 190, 0.22) 50%,
    transparent 60%,
    transparent 100%);
  mix-blend-mode: soft-light;
  animation: sweep 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}
@keyframes sweep {
  0%, 100% { transform: translateX(-30%) skewX(-10deg); opacity: 0; }
  50% { transform: translateX(30%) skewX(-10deg); opacity: 1; }
}

/* Hero light beam (stronger) */
.hero-lightbeam {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 200, 140, 0.12) 50%, transparent 70%),
    radial-gradient(ellipse at 20% 30%, rgba(255, 210, 150, 0.15), transparent 50%);
  mix-blend-mode: overlay;
  animation: beamMove 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
@keyframes beamMove {
  0% { transform: translateX(-5%) translateY(0); opacity: 0.5; }
  100% { transform: translateX(5%) translateY(-2%); opacity: 0.9; }
}

/* Strengthened Ken Burns per scene (varied directions) */
.scene:nth-child(1) .scene-img-static { animation-duration: 18s; transform-origin: 30% 40%; }
.scene:nth-child(2) .scene-img-static { animation-duration: 22s; transform-origin: 70% 60%; }
.scene:nth-child(3) .scene-img-static { animation-duration: 20s; transform-origin: 40% 30%; }
.scene:nth-child(4) .scene-img-static { animation-duration: 24s; transform-origin: 60% 70%; }
.scene:nth-child(5) .scene-img-static { animation-duration: 19s; transform-origin: 50% 50%; }
.scene:nth-child(6) .scene-img-static { animation-duration: 21s; transform-origin: 45% 65%; }

@keyframes scenekb {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1.5%, -1%); }
  100% { transform: scale(1.04) translate(1%, -0.5%); }
}

/* Grain overlay on scenes */
.scene-img-wrap.cine::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 4;
  animation: grainShift 0.6s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(2%, 2%); }
  100% { transform: translate(0, 0); }
}

/* ======== GOLDEN KEY — imagen "disponibilidad" reemplaza el grid de unidades ======== */
.units-map .goldenkey-banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.units-map .goldenkey-disclaimer {
  margin-top: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-dim, rgba(255,255,255,0.55));
  opacity: 0.75;
  text-align: justify;
  letter-spacing: 0.01em;
  font-weight: 300;
}

/* ======== PLANO layout horizontal — armonioso para fotos panorámicas ======== */
.plano-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.plano-4d {
  min-height: 0;
  padding: 0;
  aspect-ratio: 3 / 2;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e0e10;
}
.plano-4d::before { content: none; }
.plano-slideshow {
  min-height: 0;
  height: 100%;
  border-radius: var(--radius-lg);
}
.plano-info {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px 56px;
  align-items: start;
  padding: 0 8px;
}
.plano-info h3 { grid-column: 1 / -1; margin-bottom: 4px; }
.plano-info ul { margin: 0; grid-column: 1; }
.plano-info .plano-stats { grid-column: 2; margin-top: 0; align-self: start; }
.plano-info .plano-pdf-cta { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
@media (max-width: 1024px) {
  .plano-4d { aspect-ratio: 16 / 10; min-height: 0; padding: 0; }
  .plano-info { grid-template-columns: 1fr; gap: 24px; }
  .plano-info ul,
  .plano-info .plano-stats,
  .plano-info .plano-pdf-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .plano-4d { aspect-ratio: 4 / 3; min-height: 0; padding: 0; }
  .plano-slideshow { min-height: 0; }
}

/* ======== Iniciar sesión (admin) — fijo en la esquina superior derecha ======== */
.fh-public-admin-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9997;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px;
  text-decoration: none;
  padding: 7px 14px;
  font-family: var(--sans);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.fh-public-admin-link:hover {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

/* ======== UTIL ======== */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
