/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #f8fafc;
  --bg-2:        #f1f5f9;
  --bg-card:     #ffffff;
  --ink:         #0f172a;
  --ink-soft:    #334155;
  --ink-mute:    #64748b;
  --accent:      #06b6d4;
  --accent-dark: #0891b2;
  --accent-xdark:#0e7490;
  --accent-bg:   rgba(6, 182, 212, 0.08);
  --accent-bg2:  rgba(6, 182, 212, 0.14);
  --line:        rgba(15, 23, 42, 0.08);
  --line-md:     rgba(15, 23, 42, 0.12);
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-cyan: 0 8px 32px rgba(6,182,212,0.25);
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --sans:        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --nav-h:       72px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; object-fit: cover; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--white);
  z-index: 9999; border-radius: 8px; font-weight: 600; font-size: .875rem;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 720px)  { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

/* =============================================================
   4. Typography
   ============================================================= */
.section-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(6,182,212,0.2);
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.0625rem;
  color: var(--ink-mute);
  max-width: 56ch;
  line-height: 1.7;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-sub { margin: 0 auto; }
.accent { color: var(--accent-dark) !important; font-weight: 600; }

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  transition: all .22s var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-cyan);
}
.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 38px rgba(6,182,212,0.35);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--line-md);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-bg);
  transform: translateY(-2px);
}
.btn-nav-cta {
  background: var(--accent);
  color: var(--white);
  padding: .625rem 1.25rem;
  font-size: .875rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-cyan);
}
.btn-nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* =============================================================
   6. NAVBAR
   ============================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(248, 250, 252, 0.0);
  backdrop-filter: none;
  transition: background .35s var(--ease-soft), box-shadow .35s var(--ease-soft), backdrop-filter .35s;
}
.navbar.is-scrolled {
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-size: .9375rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.logo-sub {
  font-size: .625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .5rem .875rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: .875rem; right: .875rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav-link:hover { color: var(--accent-dark); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent-dark); }
.nav-link.is-active::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
.nav-hamburger:hover { background: var(--accent-bg); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .28s var(--ease-out), opacity .2s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(248,250,252,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .25s;
  border-top: 1px solid var(--line);
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-link {
  display: block;
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
  border-bottom: 1px solid var(--line);
}
.mobile-link:hover { color: var(--accent-dark); background: var(--accent-bg); }
.mobile-link:last-child { border: 0; }
.mobile-link-cta {
  margin-top: 1rem;
  text-align: center;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius-md);
  border: 0;
}
.mobile-link-cta:hover { background: var(--accent-dark); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
  .mobile-menu { display: none; }
}

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: var(--bg);
}
.hero-mesh {
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 700px at 80% 30%, rgba(6,182,212,0.12) 0%, transparent 60%),
    radial-gradient(circle 500px at 20% 80%, rgba(14,116,144,0.07) 0%, transparent 60%),
    radial-gradient(circle 900px at 50% -10%, rgba(6,182,212,0.06) 0%, transparent 55%);
  filter: blur(60px);
  animation: meshDrift 20s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(2%, 3%); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding-block: 5rem 4rem;
}
.hero-kicker {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-bg);
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(6,182,212,0.25);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.04;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(24px);
}
.hero-title em {
  font-style: normal;
  color: var(--accent-dark);
  position: relative;
}
.hero-title em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineIn 0.8s 0.9s var(--ease-out) forwards;
}
@keyframes underlineIn { to { transform: scaleX(1); } }
.hero-sub {
  font-size: 1.125rem;
  color: var(--ink-mute);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(18px);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(18px);
}
.hero-stat { text-align: center; }
.stat-value {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--accent-dark);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-label {
  font-size: .75rem;
  color: var(--ink-mute);
  font-weight: 500;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--line);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual { display: none; }
.hero-img-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.hero-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero-img-main img {
  width: 100%;
  height: 100%;
  transition: transform 8s linear;
}
.hero-img-main:hover img { transform: scale(1.04); }
.hero-img-secondary {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 220px;
}
.hero-img-secondary img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  width: 100%;
}
.hero-glass-badge {
  position: absolute;
  top: -3.5rem;
  left: -3rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  font-size: .8125rem;
}
.badge-icon { font-size: 1.25rem; }
.hero-glass-badge strong { display: block; font-weight: 700; color: var(--ink); }
.hero-glass-badge span { color: var(--ink-mute); font-size: .75rem; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: scrollFadeIn 1s 2.2s var(--ease-out) forwards;
}
@keyframes scrollFadeIn { to { opacity: 1; } }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollLineDown 1.6s 2.2s ease-in-out infinite;
}
@keyframes scrollLineDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}
.scroll-label { font-size: .6875rem; color: var(--ink-mute); letter-spacing: .1em; font-weight: 600; }

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-block: 6rem 5rem;
  }
  .hero-visual { display: block; padding-bottom: 3rem; padding-right: 2rem; }
}

/* =============================================================
   8. SECTIONS (shared)
   ============================================================= */
.section {
  padding: 6rem 0;
}
.section:nth-child(even) { background: var(--bg-2); }

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="0.1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="0.2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="0.3"] { transition-delay: 0.3s; }
[data-reveal][data-delay="0.4"] { transition-delay: 0.4s; }
/* Safety net — reveal never hides split text */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   9. PROJECTS GRID
   ============================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 540px)  { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* Property card */
.property-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: visible;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .32s var(--ease-out), box-shadow .32s var(--ease-out);
  cursor: pointer;
}
@media (hover: hover) {
  .property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(6,182,212,0.15);
  }
  .property-card:hover .card-img-wrap img {
    transform: scale(1.06);
  }
}
.card-img-wrap {
  position: relative;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform .6s var(--ease-out);
}
.card-badge {
  position: absolute;
  top: .875rem;
  left: .875rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 999px;
}
.badge-cyan  { background: rgba(6,182,212,0.15); color: #0369a1; border: 1px solid rgba(6,182,212,0.3); }
.badge-green { background: rgba(22,163,74,0.12);  color: #15803d; border: 1px solid rgba(22,163,74,0.25); }
.badge-amber { background: rgba(245,158,11,0.12); color: #b45309; border: 1px solid rgba(245,158,11,0.25); }

.card-body {
  padding: 1.375rem 1.5rem 1.5rem;
}
.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .375rem;
}
.card-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--ink-mute);
  margin-bottom: .875rem;
}
.card-location svg { flex-shrink: 0; color: var(--accent); }
.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .875rem;
  letter-spacing: -.015em;
}
.card-features {
  display: flex;
  gap: 1rem;
  padding-top: .875rem;
  border-top: 1px solid var(--line);
}
.feature {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  color: var(--ink-mute);
  font-weight: 500;
}
.feature svg { color: var(--accent); flex-shrink: 0; }

/* =============================================================
   10. RECORRIDOS VIRTUALES
   ============================================================= */
.tours { background: var(--ink); }
.tours .section-kicker { background: rgba(6,182,212,0.15); border-color: rgba(6,182,212,0.3); }
.tours .section-title { color: #f1f5f9; }
.tours .section-sub { color: #94a3b8; }

.tours-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .tours-layout {
    grid-template-columns: 1fr 340px;
    gap: 3rem;
  }
}

/* Tour viewer */
.tour-viewer {}
.tour-screen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1e293b;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.tour-screen img {
  width: 100%;
  height: 100%;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.tour-screen img.is-loading {
  opacity: 0;
  transform: scale(1.02);
}
.tour-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem;
  pointer-events: none;
}
.tour-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .4rem .875rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.tour-live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}
.tour-controls-overlay { pointer-events: all; }
.tour-ctrl {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  color: #f1f5f9;
  padding: .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .18s;
}
.tour-ctrl:hover { background: var(--accent-dark); }

.tour-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.tour-info-left { flex: 1 1 240px; }
.tour-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: .5rem;
}
.tour-desc { font-size: .9rem; color: #94a3b8; line-height: 1.65; }
.tour-info-right {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  flex-shrink: 0;
}
.tour-meta {}
.tour-meta-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: .2rem;
}
.tour-meta-value {
  font-size: .9375rem;
  font-weight: 600;
  color: #cbd5e1;
}
.tour-meta-value.accent { color: var(--accent) !important; }

/* Tour selector */
.tour-selector {}
.selector-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 1rem;
}
.tour-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tour-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: background .22s, border-color .22s, transform .22s var(--ease-out);
  width: 100%;
}
.tour-btn:hover {
  background: rgba(6,182,212,0.08);
  border-color: rgba(6,182,212,0.3);
  transform: translateX(4px);
}
.tour-btn.is-active {
  background: rgba(6,182,212,0.12);
  border-color: var(--accent);
}
.tour-btn-img {
  width: 72px;
  height: 50px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.tour-btn-img img { width: 100%; height: 100%; }
.tour-btn-info { flex: 1; min-width: 0; }
.tour-btn-info strong {
  display: block;
  font-size: .875rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: .2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tour-btn-info span {
  font-size: .75rem;
  color: #64748b;
}

/* =============================================================
   11. CALCULADORA
   ============================================================= */
.calculator { background: var(--bg); }
.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 720px) {
  .calc-layout { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.calc-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.calc-form { display: flex; flex-direction: column; gap: 1.5rem; }

/* Currency toggle */
.currency-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.currency-toggle-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.currency-toggle {
  display: flex;
  background: var(--bg-2);
  border: 1.5px solid var(--line-md);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.currency-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 6px;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--ink-mute);
  background: transparent;
  transition: background .2s, color .2s, box-shadow .2s;
  letter-spacing: .02em;
}
.currency-btn.is-active {
  background: var(--white);
  color: var(--accent-dark);
  box-shadow: var(--shadow-sm);
}
.currency-sym {
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.currency-rate-note {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  color: var(--ink-mute);
  margin-left: auto;
  font-style: italic;
}
.rate-spinner {
  display: inline-block;
  width: 10px; height: 10px;
  border: 2px solid var(--line-md);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.rate-spinner.is-hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.rate-live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}
.calc-field { display: flex; flex-direction: column; gap: .5rem; }
.calc-field label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.calc-input-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.calc-prefix {
  position: absolute;
  left: 1rem;
  font-weight: 600;
  color: var(--ink-mute);
  pointer-events: none;
  z-index: 1;
}
.calc-field input[type="number"],
.calc-field input[type="text"] {
  width: 100%;
  padding: .875rem 1rem .875rem 2rem;
  border: 1.5px solid var(--line-md);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
  appearance: textfield;
  -moz-appearance: textfield;
}
.calc-field input[type="number"]::-webkit-outer-spin-button,
.calc-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.calc-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.calc-field input[id="calc-amount"] { padding-left: 2rem; }
.calc-field input[id="calc-years"],
.calc-field input[id="calc-rate"] { padding-left: 1rem; padding-right: 3.5rem; }
.calc-suffix {
  position: absolute;
  right: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-mute);
  pointer-events: none;
}
/* Range input */
input[type="range"] {
  display: none;
}
.calc-range-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  font-size: .6875rem;
  color: var(--ink-mute);
  margin-top: .25rem;
}
.calc-hint {
  font-size: .75rem;
  color: var(--ink-mute);
}
.calc-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

/* Results panel */
.calc-results {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #f1f5f9;
  box-shadow: 0 20px 60px rgba(15,23,42,0.25);
  position: relative;
  overflow: hidden;
}
.calc-results::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.calc-result-main {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.75rem;
}
.result-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: .5rem;
}
.result-monthly {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .5rem;
}
.result-sub { font-size: .8125rem; color: #475569; }
.calc-result-breakdown { display: flex; flex-direction: column; gap: 0; }
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .875rem 0;
}
.breakdown-label { font-size: .875rem; color: #94a3b8; }
.breakdown-value { font-size: .9375rem; font-weight: 700; color: #e2e8f0; }
.breakdown-value.accent { color: var(--accent); }
.breakdown-divider { height: 1px; background: rgba(255,255,255,0.06); }
.calc-progress-wrap { margin-top: 1.5rem; }
.calc-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: #64748b;
  margin-bottom: .5rem;
}
.calc-progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.calc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-xdark), var(--accent));
  border-radius: 999px;
  transition: width .6s var(--ease-out);
}
.calc-disclaimer {
  font-size: .6875rem;
  color: #334155;
  margin-top: 1rem;
  line-height: 1.6;
}

/* =============================================================
   12. CONTACTO
   ============================================================= */
.contact { background: var(--bg-2); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
}

/* Contact info */
.contact-details { display: flex; flex-direction: column; gap: 0; margin-bottom: 2rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-child { padding-top: 0; }
.contact-icon {
  width: 42px; height: 42px;
  background: var(--accent-bg);
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}
.contact-item-label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .2rem;
}
.contact-item-value {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.5;
}
a.contact-item-value:hover { color: var(--accent-dark); }

/* Map */
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.map-inner {
  width: 100%;
  height: 100%;
  background: #e2e8f0;
}
.map-grid { width: 100%; height: 100%; }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem 2.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.form-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .45rem; }
.form-field label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: .8125rem 1rem;
  border: 1.5px solid var(--line-md);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: .9375rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,182,212,0.12);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: var(--radius-md);
  color: #15803d;
  margin-top: 1rem;
  animation: successIn .4s var(--ease-out);
}
.form-success[hidden] { display: none; }
.form-success strong { display: block; font-weight: 700; }
.form-success p { font-size: .875rem; margin-top: .2rem; }
@keyframes successIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   13. FOOTER
   ============================================================= */
.footer {
  background: var(--ink);
  color: #94a3b8;
  padding-top: 4rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; }
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo .logo-name { color: #e2e8f0; }
.footer-logo .logo-sub { color: #475569; }
.footer-tagline {
  font-size: .875rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 28ch;
}
.footer-social { display: flex; gap: .75rem; }
.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: #64748b;
  transition: color .2s, border-color .2s, background .2s;
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(6,182,212,0.08);
}
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a {
  font-size: .875rem;
  color: #64748b;
  transition: color .18s;
}
.footer-links a:hover { color: var(--accent); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  font-size: .875rem;
}
.footer-contact a { color: #64748b; transition: color .18s; }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2rem;
  justify-content: space-between;
  font-size: .75rem;
  color: #334155;
}

/* =============================================================
   14. PROPERTY DETAIL MODAL
   ============================================================= */
.coming-soon-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: var(--text-muted);
  flex: 1;
  width: 100%;
  min-height: 380px;
}
.coming-soon-placeholder svg { opacity: .35; }
.coming-soon-placeholder span {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
}
.property-card--coming-soon {
  cursor: default;
  pointer-events: none;
  opacity: .75;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-view-more {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .875rem 1rem;
  background: linear-gradient(0deg, rgba(6,182,212,0.92) 0%, transparent 100%);
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .property-card:hover .card-view-more {
    opacity: 1;
    transform: translateY(0);
  }
}
[data-property] { cursor: pointer; }

/* Modal backdrop */
.prop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.prop-modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

/* Modal panel */
.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 32px 100px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1fr;
  animation: modalIn .35s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (min-width: 720px) {
  .modal-panel {
    grid-template-columns: 1.1fr 1fr;
    max-height: 88vh;
    overflow: hidden;
  }
}

/* Close button */
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .18s, transform .18s;
  box-shadow: var(--shadow-md);
}
.modal-close:hover { background: var(--ink); color: var(--white); transform: rotate(90deg); }

/* Gallery */
.modal-gallery {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
}
@media (min-width: 720px) {
  .modal-gallery {
    border-radius: var(--radius-xl) 0 0 var(--radius-xl);
    height: 100%;
  }
}
.gallery-main {
  position: relative;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
}
@media (min-width: 720px) { .gallery-main { min-height: 360px; } }
#modal-gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
#modal-gallery-main.is-switching {
  opacity: 0;
  transform: scale(1.03);
}
.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background .18s;
}
.gallery-arrow:hover { background: var(--accent); border-color: var(--accent); }
.gallery-prev { left: .875rem; }
.gallery-next { right: .875rem; }
.gallery-counter {
  position: absolute;
  bottom: .875rem; right: .875rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  padding: .3rem .7rem;
  border-radius: 999px;
}
.gallery-thumbs {
  display: flex;
  gap: .5rem;
  padding: .75rem;
  overflow-x: auto;
  background: rgba(0,0,0,0.3);
  scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gallery-thumb {
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .18s, opacity .18s;
  opacity: .65;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--accent); opacity: 1; }

/* Modal info panel */
.modal-info {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}
.modal-header { display: flex; flex-direction: column; gap: .5rem; }
@media (min-width: 540px) {
  .modal-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.modal-badge {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent-bg);
  color: var(--accent-dark);
  border: 1px solid rgba(6,182,212,0.25);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .4rem;
}
.modal-title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: .4rem;
}
.modal-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .875rem;
  color: var(--ink-mute);
}
.modal-location svg { color: var(--accent); flex-shrink: 0; }
.modal-price {
  font-size: 1.625rem;
  font-weight: 900;
  color: var(--accent-dark);
  letter-spacing: -.025em;
  white-space: nowrap;
  flex-shrink: 0;
}
.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  padding: 1.125rem;
  background: var(--bg-2);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.modal-spec {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.modal-spec svg { color: var(--accent); flex-shrink: 0; }
.modal-desc {
  font-size: .9375rem;
  color: var(--ink-mute);
  line-height: 1.75;
  border-top: 1px solid var(--line);
  padding-top: 1.125rem;
}
.modal-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.amenity-tag {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-bg);
  border: 1px solid rgba(6,182,212,0.18);
  padding: .35rem .75rem;
  border-radius: 999px;
}
.amenity-tag::before { content: "✓"; font-weight: 800; }
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 540px) { .modal-actions { flex-direction: row; } }
.modal-actions .btn { justify-content: center; flex: 1; }
.modal-contact-link { text-align: center; }

/* =============================================================
   16. Reduced-motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  .scroll-line { animation: none; }
  .tour-live-dot { animation: none; }
  /* Do NOT disable: card hover, reveals, transitions, nav underline */
  html { scroll-behavior: auto; }
}
