/* ============================================================
   VAULT 57 — Design System v5 (Complete Authoritative Rewrite)
   Navy Blue #041328 · Pearl #F4F6F9 · Orange #FF6600
   Bebas Neue · Outfit | Dark sections + Light sections
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Navy Blue Palette */
  --black:   #041328;
  --black2:  #072146;
  --carbon:  #0B2B5A;
  --carbon2: #0F376E;

  /* Light Backgrounds */
  --pearl:   #F4F6F9;
  --pearl2:  #EAECF0;
  --white:   #FFFFFF;

  /* Beige alias for legacy usage */
  --beige:   #F4F6F9;
  --beige2:  rgba(255,255,255,0.6);

  /* IMPORTANT: --muted is defined as dark (for light sections by default)
     Dark sections override via .section-dark .t-muted */
  --muted-light: rgba(4,19,40,0.55);
  --muted-dark:  rgba(255,255,255,0.60);

  /* Orange Accent */
  --gold:    #FF6600;
  --gold2:   #E65C00;
  --gold3:   #CC5200;

  /* Green for positive numbers */
  --green:   #22C55E;

  /* Text */
  --text-on-light: #041328;
  --text-on-dark:  #FFFFFF;
  /* Default muted = dark (for light section backgrounds) */
  --muted:   rgba(4,19,40,0.55);
  --muted2:  rgba(4,19,40,0.55);

  /* Borders */
  --border-soft: rgba(4,19,40,0.08);
  --border-dark: rgba(255,255,255,0.08);

  /* Typography */
  --ff-display: 'Bebas Neue', Impact, sans-serif;
  --ff-body:    'Outfit', system-ui, sans-serif;
  --ff-mono:    'DM Mono', 'Courier New', monospace;

  /* Radii */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-gold: 0 0 40px rgba(255,102,0,0.25);
  --shadow-card: 0 4px 24px rgba(4,19,40,0.08);
  --shadow-lg:   0 16px 48px rgba(4,19,40,0.14);

  /* Easings */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --transition:  0.25s var(--ease-out);
  --transition-fast: 0.15s var(--ease-out);

  --nav-h: 72px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--pearl);
  color: var(--text-on-light);
  font-family: var(--ff-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; background: transparent; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6,p,span,div { color: inherit; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
.t-display  { font-family: var(--ff-display); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.t-hero     { font-size: clamp(60px, 10vw, 120px); letter-spacing: -0.02em; }
.t-h1       { font-size: clamp(42px, 5vw, 72px); }
.t-h2       { font-size: clamp(32px, 4vw, 52px); }
.t-h3       { font-size: clamp(22px, 3vw, 36px); }
.t-body-lg  { font-size: 18px; font-weight: 400; }
.t-body     { font-size: 16px; }
.t-sm       { font-size: 14px; }
.t-xs       { font-size: 12px; }
.t-gold     { color: var(--gold) !important; }
.t-muted    { color: var(--muted) !important; }
.t-white    { color: var(--white) !important; }
.t-mono     { font-family: var(--ff-mono); }
.text-center { text-align: center; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 100px 0; background: var(--pearl); }
.section-sm   { padding: 60px 0; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { flex-direction: column; }
.gap-xs { gap: 8px; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }

/* ── DARK SECTIONS ───────────────────────────────────────── */
.section-dark {
  background: var(--black) !important;
  color: var(--text-on-dark) !important;
}
/* In dark sections, override muted to be white-based */
.section-dark,
.section-dark * {
  --muted:  rgba(255,255,255,0.60);
  --muted2: rgba(255,255,255,0.60);
}
.section-dark .t-muted { color: rgba(255,255,255,0.60) !important; }

/* Story overlay (inside scroll panels - always dark) */
.story-overlay,
.story-overlay * {
  --muted:  rgba(255,255,255,0.65);
  --muted2: rgba(255,255,255,0.65);
  color: var(--white);
}
.story-overlay .eyebrow { color: var(--gold); }

/* Hero is always dark */
#hero,
#hero * {
  --muted:  rgba(255,255,255,0.60);
  --muted2: rgba(255,255,255,0.60);
}

/* Stats strip is dark */
#stats-strip,
#stats-strip * {
  --muted:  rgba(255,255,255,0.50);
}

/* Footer dark */
#footer,
#footer * {
  --muted:  rgba(255,255,255,0.50);
  --muted2: rgba(255,255,255,0.50);
}

/* ── DIVIDER & EYEBROW ───────────────────────────────────── */
.divider {
  width: 60px; height: 3px;
  background: var(--gold);
  margin: 24px 0;
  border-radius: 2px;
}
.divider-center { margin-left: auto; margin-right: auto; }
.eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold);
  display: block; margin-bottom: 12px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px;
  transition: var(--transition); gap: 8px; cursor: pointer;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(255,102,0,0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.btn-lg { padding: 18px 36px; font-size: 14px; border-radius: 12px; }
.btn-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white) !important;
}
.btn-glass:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.9); }
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translateY(-4px); }
  50%  { opacity: 1; transform: translateY(4px); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes navbarGlow {
  from { box-shadow: none; }
  to   { box-shadow: 0 4px 24px rgba(4,19,40,0.4); }
}

/* ── NAVBAR ──────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: rgba(4,19,40,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
  color: var(--white);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px;
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65); transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 16px; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 8px;
  background: transparent;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(4,19,40,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px; flex-direction: column; gap: 16px;
  z-index: 999; color: var(--white);
}
.mobile-menu a { font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.8); }
.mobile-menu.open { display: flex; }

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  height: 100vh; min-height: 680px;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,102,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,102,0,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,102,0,0.1); border: 1px solid rgba(255,102,0,0.25);
  color: var(--gold); border-radius: 100px;
  padding: 8px 18px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 32px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(72px, 12vw, 140px);
  color: var(--white); line-height: 0.9; letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.7);
  font-weight: 500; margin-bottom: 12px;
}
.hero-tagline {
  font-size: clamp(14px, 1.5vw, 18px); color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}
.hero-stat-item {}
.hero-stat-num {
  display: block;
  font-family: var(--ff-display); font-size: 48px; color: var(--gold); line-height: 1;
}
.hero-stat-label {
  display: block;
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(255,255,255,0.45); margin-top: 4px;
}
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  animation: scrollHint 2s ease-in-out infinite;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
#stats-strip {
  background: var(--black2);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {}
.stat-number {
  display: block;
  font-family: var(--ff-display); font-size: 48px; color: var(--gold); line-height: 1;
}
.stat-label {
  display: block;
  font-size: 13px; color: rgba(255,255,255,0.5);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 6px;
}

/* ── SCROLL PIN (PROBLEMA) ───────────────────────────────── */
.scroll-pin-section { overflow: hidden; }
.scroll-pin-container {
  height: 100dvh; display: flex; align-items: stretch;
  position: sticky; top: 0; overflow: hidden;
}
.scroll-track {
  display: flex;
  /* 1 intro + 3 image panels = 4 panels total */
  width: 400vw;
  will-change: transform;
}

/* Intro panel (light) */
.intro-panel {
  width: 100vw; height: 100dvh; flex-shrink: 0;
  display: flex; align-items: center;
  background: var(--pearl);
  color: var(--text-on-light);
  padding: 0;
}
/* Force dark text in intro panel since it has a light background */
.intro-panel h2,
.intro-panel p,
.intro-panel span:not(.eyebrow),
.intro-panel div { color: var(--text-on-light) !important; }
.intro-panel .eyebrow { color: var(--gold) !important; }
.intro-panel .t-body-lg { color: rgba(4,19,40,0.6) !important; }

/* Image panels (dark, full bleed photo) */
.image-panel {
  width: 100vw; height: 100dvh; flex-shrink: 0;
  position: relative; overflow: hidden;
}
.story-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.story-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(4,19,40,0.92) 0%, rgba(4,19,40,0.75) 55%, rgba(4,19,40,0.25) 100%);
  display: flex; align-items: center;
  padding: 0 5vw;
  color: var(--white);
}
.story-content { max-width: 640px; }
.story-content h3 { color: var(--white) !important; }
.story-content p { color: rgba(255,255,255,0.85) !important; }
.story-tag {
  display: inline-block; margin-top: 24px;
  background: rgba(255,102,0,0.15); border: 1px solid rgba(255,102,0,0.3);
  color: var(--gold); border-radius: 100px;
  padding: 6px 16px; font-size: 12px; font-weight: 600; letter-spacing: 1px;
}
.panel-icon-container { display: flex; justify-content: flex-start; }
.panel-icon-container svg { filter: drop-shadow(0 0 16px rgba(255,102,0,0.5)); }

/* SVG draw animations — paths need dasharray set for GSAP to animate strokeDashoffset */
#growth-line {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
#svg-ecommerce {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
#svg-escasez {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}
#svg-pymes {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
}

.animated-chart-container { position: relative; margin-bottom: 8px; }

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ── AMENIDADES — Dual-Row Marquee ───────────────────────── */
#diferenciadores {
  padding-bottom: 80px;
  overflow: hidden;
}

/* Outer wrapper — clips overflow and adds edge fade masks */
.marquee-outer {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 40px;
  /* Soft edge fade */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
}

/* The scrolling track — MUST be a single horizontal row */
.marquee-track {
  display: flex;
  flex-direction: row;     /* Explicit: horizontal */
  flex-wrap: nowrap;       /* Never wrap to next line */
  align-items: center;
  gap: 14px;
  width: max-content;      /* Grow to fit all pills */
  will-change: transform;
}

/* Left-flowing row */
.marquee-left {
  animation: marquee-scroll-left 30s linear infinite;
}
/* Right-flowing row (starts offset so it scrolls in opposite direction) */
.marquee-right {
  animation: marquee-scroll-right 34s linear infinite;
}

/* Pause everything on hover over the outer container */
.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-scroll-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}


/* Pill base */
.mq-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: default;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;

  /* Default style: subtle glass */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85);
}
.mq-pill:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Outline variant */
.mq-pill-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.65);
}

/* Gold / accent pill */
.mq-pill-gold {
  background: linear-gradient(135deg, rgba(255,102,0,0.2), rgba(255,102,0,0.08));
  border: 1px solid rgba(255,102,0,0.35);
  color: var(--gold);
}
.mq-pill-gold .mq-icon { color: var(--gold); }

/* Icon inside pill */
.mq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.9;
}

/* ── AMENIDAD GLASS — Premium Mouse-Tracking Spotlight ───── */
.amenidad-glass {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex; align-items: flex-start; gap: 18px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  color: var(--text-on-light);
  position: relative;
  isolation: isolate;
  /* Default border rendered as box-shadow so pseudo can override it cleanly */
  border: 1px solid transparent;
  outline: 1px solid var(--border-soft);
}

/* 1) Soft background spotlight — follows mouse */
.amenidad-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 102, 0, 0.07),
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

/* 2) Glowing border that follows the mouse — masked to only the border strip */
.amenidad-glass::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;                          /* defines border thickness */
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    220px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 102, 0, 0.75),
    transparent 65%
  );
  /* Mask: keep only the 1px border ring, hide interior */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

/* Activate both glows on hover */
.amenidad-glass:hover::before,
.amenidad-glass:hover::after { opacity: 1; }

/* Lift card slightly, deepen shadow */
.amenidad-glass:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(255, 102, 0, 0.08);
}

/* All content stays above the pseudo-element glows */
.amenidad-glass > * { position: relative; z-index: 1; }

/* Icon: subtle pulse-glow on hover — NO fill change */
.amenidad-circle-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 102, 0, 0.08);
  border: 1px solid rgba(255, 102, 0, 0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.amenidad-glass:hover .amenidad-circle-icon {
  border-color: rgba(255, 102, 0, 0.5);
  box-shadow: 0 0 16px rgba(255, 102, 0, 0.25);
}

.amenidad-glass h3 { color: var(--text-on-light) !important; }
.amenidad-glass p { color: var(--muted2) !important; }

/* ── COMPARATIVO ─────────────────────────────────────────── */
#comparativo { background: var(--pearl); }
.comp-table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; color: var(--text-on-light);
}
.comp-table thead tr { border-bottom: 2px solid var(--border-soft); }
.comp-table th {
  padding: 16px 20px; text-align: left;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--muted2); font-weight: 600;
}
.comp-table td { padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr.highlight-row { background: rgba(255,102,0,0.06); }
.comp-table tr.highlight-row td:first-child { border-left: 3px solid var(--gold); }
.comp-pct { font-family: var(--ff-mono); font-weight: 600; color: var(--gold); }
.comp-bar { display: flex; align-items: center; gap: 12px; }
.comp-bar-track {
  flex: 1; height: 6px; background: var(--pearl2);
  border-radius: 3px; overflow: hidden;
}
.comp-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 3px; width: 0;
  transition: width 1s var(--ease-out);
}
.highlight-row .comp-bar-fill {
  background: linear-gradient(90deg, var(--gold), var(--gold3));
  box-shadow: 0 0 8px rgba(255,102,0,0.4);
}

/* ── PROYECTO / FICHA TÉCNICA ────────────────────────────── */
#proyecto { background: var(--white); }
.map-embed { border-radius: var(--radius-xl); overflow: hidden; }
.map-embed iframe {
  width: 100%; height: 420px; display: block; border: none;
}

/* ── TIPOLOGÍAS ──────────────────────────────────────────── */
#tipologias { background: var(--pearl); }
.vis-select {
  flex: 1; padding: 12px 16px;
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); color: var(--text-on-light);
  font-family: var(--ff-body); font-size: 14px;
  appearance: none; cursor: pointer; transition: var(--transition);
}
.vis-select:focus { outline: none; border-color: var(--gold); }

.tipo-visualizer {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px; align-items: start;
  background: var(--white); border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-lg);
  padding: 40px; margin-top: 24px;
  color: var(--text-on-light);
}
.tipo-details-pane, .visualizer-pane { color: var(--text-on-light); }
.visualizer-svg-wrap {
  background: var(--pearl); border-radius: var(--radius-lg);
  padding: 24px; display: flex; align-items: center; justify-content: center;
}
.visualizer-svg-wrap svg { max-width: 300px; width: 100%; }
.vis-dimensions-badge {
  text-align: center; margin-top: 12px;
  font-size: 12px; color: var(--muted2);
  font-family: var(--ff-mono);
}
.ficha-grid { display: grid; gap: 0; }
.ficha-item {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 0;
  color: var(--text-on-light);
}
.ficha-key {
  font-size: 13px; color: var(--muted2); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ficha-val { font-weight: 700; font-size: 15px; color: var(--text-on-light); }

/* ── FRIENDS & FAMILY ────────────────────────────────────── */
#friends-family {
  background: var(--black) !important;
  color: var(--white) !important;
  position: relative; overflow: hidden;
  text-align: center;
}
#friends-family::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,102,0,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.ff-inner {
  max-width: 800px; margin: 0 auto; position: relative; z-index: 2;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  backdrop-filter: blur(20px);
}
.ff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 32px 0;
}
.ff-item-num {
  font-family: var(--ff-display); font-size: 52px;
  color: var(--gold); line-height: 1;
}
.ff-item-label {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-top: 8px;
}
.ff-quote {
  font-style: italic; color: rgba(255,255,255,0.4);
  margin-top: 32px; font-size: 15px;
}

/* ── PROCESO ─────────────────────────────────────────────── */
#proceso { background: var(--pearl); }
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px; margin-top: 48px;
}
.step-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card); position: relative;
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-on-light); }
.step-desc { font-size: 14px; line-height: 1.6; color: var(--muted2); }
.step-connector {
  position: absolute; right: -20px; top: 50%;
  color: var(--gold); font-size: 20px; font-weight: 700;
  transform: translateY(-50%);
}

/* ── FAQ ─────────────────────────────────────────────────── */
#faq { background: var(--white); }
.faq-wrap {
  max-width: 800px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--pearl); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); overflow: hidden;
  color: var(--text-on-light);
}
.faq-question {
  width: 100%; padding: 20px 24px; text-align: left;
  background: transparent; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-on-light); transition: var(--transition);
  cursor: pointer;
}
.faq-question:hover { color: var(--gold); }
.faq-icon { font-size: 22px; color: var(--gold); font-weight: 300; transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
  font-size: 15px; line-height: 1.7;
  color: var(--muted2); padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }

/* ── CONTACTO ────────────────────────────────────────────── */
#contacto {
  background: var(--black) !important;
  color: var(--white) !important;
}
#contacto h2, #contacto p { color: inherit; }

/* ── FOOTER ──────────────────────────────────────────────── */
#footer {
  background: var(--black2);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 56px;
  color: var(--white);
}
.footer-brand-logo { margin-bottom: 16px; }
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 260px; }
.footer-brand-rfc { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 8px; font-family: var(--ff-mono); }
.footer-col-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,0.35); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-legal { font-size: 11px; color: rgba(255,255,255,0.25); line-height: 1.6; max-width: 700px; }

/* ── FLOATING CTA ────────────────────────────────────────── */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  transform: translateY(100px); opacity: 0;
  transition: var(--transition);
}
.floating-cta.visible { transform: translateY(0); opacity: 1; }

/* ── FICHA ITEMS ─────────────────────────────────────────── */
.ficha-key { color: var(--muted2) !important; }
.section-dark .ficha-key { color: var(--muted) !important; }

/* ── MISC HELPERS ─────────────────────────────────────────── */
.divider-center { margin: 24px auto; }
.text-center .divider { margin: 24px auto; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .tipo-visualizer { grid-template-columns: 1fr 1fr; }
  .tipo-visualizer > div:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-stats { gap: 24px; }
  .hero-stat-num { font-size: 36px; }
  .ff-grid { grid-template-columns: 1fr; }
  .ff-inner { padding: 40px 24px; }
  .tipo-visualizer { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .amenidades-asymmetric { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .step-connector { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 64px; }
}
