/* ============================================================
   CENTRO LOGÍSTICO DE CALDAS — styles.css
   Paleta de marca: #FFFFFF · #F0F1F2 · #000000 · #1A1A1A · #97885C
   Tipografía de marca: Roboto (variable)
   ============================================================ */

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #f4f0e8;   /* crema cálido */
  --bg-deep:   #ebe5d8;   /* beige (secciones alternas) */
  --card:      #ffffff;
  --text:      #201d18;   /* tinta cálida casi negra */
  --text-soft: rgba(32, 29, 24, 0.74);
  --text-dim:  rgba(32, 29, 24, 0.52);
  --gold:      #c1841e;   /* ámbar de marca (botones, líneas, hexágonos) */
  --gold-soft: #8f6316;   /* ámbar texto legible sobre claro (kickers, labels, em) */
  --gold-dim:  rgba(193, 132, 30, 0.45);
  --line:      rgba(32, 29, 24, 0.14);
  --glass-bg:  rgba(255, 255, 255, 0.74);
  --shadow:    0 18px 44px rgba(60, 52, 32, 0.12);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 86px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--gold-soft); }

/* ============ FONDO DE RENDERS + CONTRASTE ============ */
.bg-stage {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: var(--bg);
}
.bg-layer {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  filter: blur(4px);
  transition: opacity 1.3s var(--ease-out);
  will-change: opacity, transform;
}
.bg-layer.is-active {
  opacity: 1;
  animation: kenburns 20s ease-out forwards;
}
@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.14); }
}
/* Velo crema translúcido: deja ver los renders, refuerza solo la franja
   izquierda (donde va el texto) para mantener la legibilidad. */
.bg-tint {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244,240,232,0.74) 0%, rgba(244,240,232,0.44) 48%, rgba(244,240,232,0.26) 100%),
    linear-gradient(180deg, rgba(244,240,232,0.32) 0%, rgba(244,240,232,0.18) 42%, rgba(244,240,232,0.44) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0.03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 3; }
.nav { z-index: 20; }

/* ============ SPLASH ============ */
.splash {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.splash-symbol { width: 72px; height: auto; animation: splashPulse 2.2s ease-in-out infinite; }
@keyframes splashPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }
.splash-word {
  font-size: 0.78rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--text-soft); font-weight: 400; text-align: center; padding-inline: 1rem;
}
.splash-word strong { font-weight: 700; color: var(--text); }
.splash-bar { width: 132px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.splash-bar span { display: block; height: 100%; width: 40%; background: var(--gold); animation: splashBar 1.2s ease-in-out infinite; }
@keyframes splashBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(244, 240, 232, 0.9);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(60, 52, 32, 0.07);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-solid { background: rgba(244, 240, 232, 0.68); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); }
}
.nav-inner {
  max-width: 1240px; margin-inline: auto;
  height: var(--nav-h);
  padding-inline: clamp(1rem, 4vw, 2rem);
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { height: 66px; width: auto; }
.nav-logo--dark { display: none; }
.nav.is-solid .nav-logo--light { display: none; }
.nav.is-solid .nav-logo--dark { display: block; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(253, 251, 246, 0.82); position: relative; padding-block: 0.4rem;
  transition: color 0.25s;
}
.nav.is-solid .nav-links a { color: var(--text-soft); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0%;
  background: var(--gold); transition: width 0.35s var(--ease-out);
}
.nav-links a:hover { color: #fff; }
.nav.is-solid .nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.btn-nav { margin-left: 0.4rem; }
.nav-toggle { display: none; }
.nav-mobile { display: none; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.7rem;
  font-family: inherit; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 4px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn-gold {
  background: linear-gradient(135deg, #d99a2a 0%, var(--gold) 55%, #8f6316 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(193, 132, 30, 0.32);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(193, 132, 30, 0.44); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(32, 29, 24, 0.22);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-soft); background: #fff; }
.btn-full { width: 100%; }

/* ============ TIPOGRAFÍA / UTILIDADES ============ */
.container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.kicker {
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-soft);
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.3rem;
}
.kicker::before { content: ""; width: 22px; height: 12px; background: var(--gold); flex: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }

h1, h2, h3 { line-height: 1.08; font-weight: 900; letter-spacing: -0.015em; text-wrap: balance; }

.section { position: relative; padding-block: clamp(3.4rem, 7vh, 5.4rem); }
.section-tall { min-height: auto; display: flex; align-items: center; }
.section-slim { padding-block: clamp(2rem, 4vh, 3rem); }
.section-title { font-size: clamp(1.8rem, 3.8vw, 2.9rem); margin-bottom: 0.9rem; max-width: 20ch; }
.section-note { color: var(--text-soft); max-width: 52ch; margin-bottom: 2.2rem; font-size: 1.02rem; }

/* Reveals */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Glass — tarjetas blancas elevadas sobre el fondo crema */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(18px)) {
  .glass { background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
}

/* Icono hexágono de marca */
.hex-ico {
  display: block; width: 30px; height: 34px; margin-bottom: 1.1rem;
  background: linear-gradient(160deg, var(--gold), #6f6038);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ============ HERO (banner rotativo · oscuro dramático) ============ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  isolation: isolate;
  background: #14120e;
}
/* Fondo propio del hero (tapa el fondo global claro) */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img {
  position: absolute; inset: -3%;
  background-size: cover; background-position: center;
  filter: blur(3px) saturate(1.06);
  opacity: 0;
  animation: heroFade 28s infinite;
  will-change: opacity, transform;
}
.hero-bg-img:nth-child(1) { animation-delay: 0s; }
.hero-bg-img:nth-child(2) { animation-delay: 7s; }
.hero-bg-img:nth-child(3) { animation-delay: 14s; }
.hero-bg-img:nth-child(4) { animation-delay: 21s; }
@keyframes heroFade {
  0%   { opacity: 0; transform: scale(1.04); }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  27%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.04); }
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12,11,8,0.92) 0%, rgba(12,11,8,0.72) 40%, rgba(12,11,8,0.42) 72%, rgba(12,11,8,0.6) 100%),
    linear-gradient(180deg, rgba(12,11,8,0.55) 0%, transparent 30%, transparent 55%, rgba(12,11,8,0.82) 100%),
    radial-gradient(ellipse at 74% 42%, rgba(193,132,30,0.22) 0%, transparent 60%);
}
.hero-slides { position: absolute; inset: 0; z-index: 1; }
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s var(--ease-out), visibility 1.1s;
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
/* Textos del hero en claro (sobre fondo oscuro dramático) */
.hero-slide .kicker { color: #ecc36f; }
.hero-slide .kicker::before { background: var(--gold-soft); }
.hero-slide .hero-title { color: #fdfbf6; }
.hero-slide .hero-title em { color: #ecc36f; }
.hero-slide .hero-tagline { color: #e0ad4f; }
.hero-slide .hero-sub { color: rgba(253, 251, 246, 0.82); }
.hero-slide .hero-chips { color: rgba(253, 251, 246, 0.82); }
.hero-slide .hero-chips strong { color: #fff; }
.hero-inner {
  max-width: 1240px; width: 100%;
  margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  align-items: center;
  position: relative; z-index: 1;
}
/* Slide de marca — frase grande (izq) + logo (der) */
.hero-inner--brand {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  align-items: center;
}
.brand-phrase {
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fdfbf6;
  border-left: 4px solid var(--gold);
  padding-left: clamp(1rem, 2vw, 1.8rem);
}
.brand-phrase em { color: #ecc36f; }
.brand-logo-wrap { display: flex; justify-content: center; align-items: center; }
.brand-logo {
  width: 100%; max-width: 560px; height: auto;
}
/* Indicadores */
.hero-dots {
  position: absolute; bottom: 2.1rem; left: clamp(1.1rem, 4vw, 2rem);
  display: flex; gap: 0.55rem; z-index: 5;
}
.hero-dot {
  width: 26px; height: 4px; border-radius: 3px; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.32); cursor: pointer;
  transition: background 0.35s var(--ease-out), width 0.35s var(--ease-out);
}
.hero-dot.is-active { background: var(--gold-soft); width: 42px; }
/* Botón fantasma y scroll sobre el hero oscuro */
.hero-slide .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fdfbf6;
}
.hero-slide .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--gold-soft); color: #fff; }
.hero .hero-scroll { color: rgba(253, 251, 246, 0.6); }
.brand-logo { filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.5)); }
.hero-visual {
  position: relative;
  height: clamp(400px, 66vh, 660px);
  perspective: 1500px;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(ellipse at 52% 52%, rgba(193, 132, 30, 0.22) 0%, rgba(193, 132, 30, 0.07) 46%, transparent 70%);
  pointer-events: none; z-index: 0;
}
/* Composición hexagonal: fotos dentro de la forma del isotipo */
.hexshow {
  position: absolute; inset: 0; margin: auto;
  width: min(100%, 480px); aspect-ratio: 1 / 1.14;
  animation: hexFloat 8s ease-in-out infinite;
}
@keyframes hexFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(0.6deg); }
}
/* Hexágono principal con las fotos */
.hex-photo {
  position: absolute; inset: 0;
  clip-path: polygon(50% 1%, 97% 25%, 97% 75%, 50% 99%, 3% 75%, 3% 25%);
  overflow: hidden;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.hex-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: hexFade 27.5s infinite;
}
.hex-img:nth-child(1) { animation-delay: 0s; }
.hex-img:nth-child(2) { animation-delay: 5.5s; }
.hex-img:nth-child(3) { animation-delay: 11s; }
.hex-img:nth-child(4) { animation-delay: 16.5s; }
.hex-img:nth-child(5) { animation-delay: 22s; }
@keyframes hexFade {
  0%   { opacity: 0; transform: scale(1.08); }
  3%   { opacity: 1; }
  18%  { opacity: 1; }
  22%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}
/* Marco ámbar del hexágono de foto */
.hex-frame {
  position: absolute; inset: 0; z-index: 2;
  color: var(--gold); opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(193, 132, 30, 0.3));
}
/* Segundo hexágono entrelazado (evoca el isotipo) */
.hex-ghost {
  position: absolute; z-index: 0;
  width: 66%; height: 66%;
  top: -9%; right: -8%;
  color: var(--gold-soft); opacity: 0.5;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: clamp(280px, 40vh, 360px); order: 2; margin-top: 0.6rem; }
  .hero-slide { padding-top: calc(var(--nav-h) + 0.4rem); overflow-y: auto; }
  .hero-slide--brand { align-items: center; }
  .hero-inner--brand { grid-template-columns: 1fr; gap: 1.6rem; text-align: left; }
  .hero-inner--brand .brand-logo-wrap { order: -1; justify-content: flex-start; }
  .brand-logo { width: min(72vw, 360px); }
  .brand-phrase { font-size: clamp(1.7rem, 8vw, 3rem); }
  .hexshow { width: min(74vw, 320px); }
}
@media (prefers-reduced-motion: reduce) {
  .stack-card { transition-duration: 1.6s; }
}
.hero-title {
  font-size: clamp(2.9rem, 7.2vw, 6rem);
  line-height: 0.98;
  margin-bottom: 0.9rem;
  max-width: 14ch;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  color: var(--text-soft);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }
.hero-chips {
  list-style: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
  font-size: 0.88rem; color: var(--text-soft); font-weight: 400;
}
.hero-chips strong { color: var(--text); font-weight: 700; font-size: 1.05rem; }
.chip-sep { width: 5px; height: 5px; background: var(--gold); clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim);
}
.scroll-line { width: 1px; height: 44px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); opacity: 1; } 50% { transform: scaleY(0.55); opacity: 0.5; } }

/* ============ CINTA DE RENDERS ============ */
.rmarquee {
  position: relative;
  padding-block: 1.6rem;
  overflow: clip;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rm-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: rmScroll 48s linear infinite;
  will-change: transform;
}
.rmarquee:hover .rm-track { animation-play-state: paused; }
.rm-track figure {
  flex: none;
  height: clamp(150px, 24vw, 240px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), border-color 0.5s;
}
.rm-track figure:hover { transform: translateY(-6px) scale(1.02); border-color: var(--gold-dim); }
.rm-track img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.98);
  transition: filter 0.5s;
}
.rm-track figure:hover img { filter: saturate(1.15) brightness(1.06); }
@keyframes rmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .rm-track { animation-duration: 96s; } /* más lento, nunca muerto */
}

/* ============ MAPA (dentro de Ubicación) ============ */
.loc-map-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.1rem;
  align-items: stretch;
}
.map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  filter: grayscale(0.15) contrast(1.03);
  transition: filter 0.5s;
}
.map-frame:hover iframe { filter: none; }
.map-actions { display: grid; gap: 0.9rem; align-content: stretch; }
.map-btn {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text); font-size: 0.94rem; line-height: 1.25;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.map-btn svg { flex: none; }
.map-btn strong { font-weight: 700; }
.map-btn:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(50, 44, 28, 0.16); }
.map-btn--waze { color: #1c8adb; }
.map-btn--waze span, .map-btn--maps span, .map-btn--visit span { color: var(--text); }
.map-btn--maps { color: #d9482f; }
.map-btn--visit { color: var(--gold); }
.map-btn:hover { border-color: currentColor; }

/* ============ PROYECTO ============ */
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.6rem; align-items: start; }
.split-text { padding: clamp(1.6rem, 3.5vw, 2.8rem); }
.split-text h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 1.2rem; }
.split-text .lead { font-size: 1.06rem; color: var(--text-soft); margin-bottom: 1rem; }
.split-text p + p { margin-top: 0.9rem; color: var(--text-soft); }
.stat-stack { display: grid; gap: 1rem; }
.stat { padding: 1.35rem 1.6rem; display: flex; align-items: baseline; gap: 1.1rem; }
.stat-num { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 900; color: var(--gold-soft); letter-spacing: -0.02em; }
.stat-num i { font-style: normal; font-size: 0.55em; font-weight: 500; }
.stat-label { color: var(--text-soft); font-size: 0.92rem; line-height: 1.35; }

/* ============ UBICACIÓN ============ */
.loc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem; margin-block: 2rem 1.4rem;
}
.loc-card { padding: 1.7rem 1.5rem; transition: transform 0.4s var(--ease-out), border-color 0.4s; }
.loc-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.loc-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.6rem; }
.loc-card p { font-size: 0.92rem; color: var(--text-soft); font-weight: 400; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ============ MASTERPLAN ============ */
.stage-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; width: 100%; }
.stage { padding: 1.8rem 1.6rem; position: relative; overflow: hidden; transition: transform 0.4s var(--ease-out), border-color 0.4s; }
.stage:hover { transform: translateY(-6px); }
.stage.is-active { border-color: var(--gold-dim); }
.stage.is-active::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
}
.stage-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 0.9rem;
}
.stage h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.stage-big { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.3rem; }
.stage p { color: var(--text-soft); font-size: 0.94rem; }
.stage .gold { color: var(--gold-soft); }
.legal-strip {
  font-size: 0.78rem; color: var(--text-dim);
  border-top: 1px solid var(--line); padding-top: 1.1rem;
  letter-spacing: 0.04em;
}

/* ============ BODEGAS ============ */
.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem; margin-block: 2.4rem 2rem;
}
.spec { padding: 1.4rem 1.4rem; transition: transform 0.4s var(--ease-out), border-color 0.4s; }
.spec:hover { transform: translateY(-5px); border-color: var(--gold-dim); }
.spec strong { display: block; font-size: 1.28rem; font-weight: 900; color: var(--gold-soft); margin-bottom: 0.35rem; letter-spacing: -0.01em; }
.spec span { font-size: 0.87rem; color: var(--text-soft); font-weight: 400; line-height: 1.4; display: block; }
.mode-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.mode { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.mode h3 { font-size: 1.05rem; color: var(--gold-soft); margin-bottom: 0.4rem; font-weight: 700; }
.mode p { font-size: 0.92rem; color: var(--text-soft); font-weight: 400; }

/* ============ DIFERENCIALES ============ */
.diff-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-block: 2.4rem 1.8rem; }
.diff { padding: 2rem 1.7rem; transition: transform 0.4s var(--ease-out), border-color 0.4s; }
.diff:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.diff-num {
  font-size: 0.8rem; font-weight: 500; color: var(--gold);
  letter-spacing: 0.3em; display: block; margin-bottom: 1.2rem;
}
.diff h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.diff p { font-size: 0.94rem; color: var(--text-soft); font-weight: 400; }
.diff-note { color: var(--text-soft); max-width: 62ch; font-size: 0.98rem; }

/* ============ GALERÍA ============ */
.section-solid { background: var(--bg-deep); border-block: 1px solid var(--line); }
.tabs { display: flex; gap: 0.5rem; margin-block: 1.8rem 1.6rem; }
.tab {
  font-family: inherit; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--text-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 0.6rem 1.5rem; cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.tab:hover { color: var(--text); border-color: var(--gold-dim); }
.tab.is-active { color: #0e0e0e; background: var(--gold); border-color: var(--gold); font-weight: 700; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem;
  grid-auto-rows: 200px; grid-auto-flow: dense;
}
.gallery.is-hidden { display: none; }
.g-item {
  overflow: hidden; border-radius: 8px; cursor: zoom-in;
  border: 1px solid var(--line);
  position: relative;
}
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.8s;
  filter: saturate(0.96);
}
.g-item:hover img { transform: scale(1.07); filter: saturate(1.12) brightness(1.05); }
.g-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(11, 11, 11, 0.55) 100%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.g-item:hover::after { opacity: 1; }
.gallery-note { margin-top: 1.4rem; font-size: 0.8rem; color: var(--text-dim); }

/* ============ INVERSIÓN ============ */
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-block: 2.4rem 1.6rem; }
.price { padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; transition: transform 0.4s var(--ease-out), border-color 0.4s; }
.price:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.price-tag {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid var(--gold-dim); border-radius: 100px;
  padding: 0.35rem 0.9rem;
}
.price-big { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 900; letter-spacing: -0.02em; }
.price-big i { font-style: normal; font-size: 0.42em; font-weight: 400; color: var(--text-soft); letter-spacing: 0; }
.price ul { list-style: none; display: grid; gap: 0.55rem; }
.price li { padding-left: 1.4rem; position: relative; color: var(--text-soft); font-size: 0.95rem; font-weight: 400; }
.price li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 8px; height: 9px; background: var(--gold);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.urgency {
  border: 1px solid var(--gold-dim); border-radius: 10px;
  background: linear-gradient(135deg, rgba(151, 136, 92, 0.14), rgba(151, 136, 92, 0.05));
  padding: 1.4rem 1.8rem;
}
.urgency p { color: var(--text-soft); font-weight: 400; }
.urgency strong { color: var(--gold-soft); font-weight: 700; }

/* ============ RESPALDO ============ */
.backer {
  display: flex; align-items: center; gap: clamp(1.4rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
}
.backer-logo { width: clamp(110px, 14vw, 170px); height: auto; opacity: 0.9; flex: none; }
.backer p { color: var(--text-soft); font-weight: 400; }
.backer strong { color: var(--text); font-weight: 700; }
.backer .kicker { margin-bottom: 0.5rem; }

/* ============ CONTACTO ============ */
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.2rem; margin-top: 2.4rem; }
.contact-form { padding: clamp(1.6rem, 3vw, 2.2rem); display: grid; gap: 1rem; }
.contact-form label {
  display: grid; gap: 0.45rem;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft);
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: inherit; font-size: 0.98rem; font-weight: 400;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 0.8rem 0.95rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  width: 100%;
}
.contact-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238a7a4e'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.contact-form select option { background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(193, 132, 30, 0.15);
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.form-note { font-size: 0.8rem; color: var(--text-dim); text-align: center; }
.contact-side { display: grid; gap: 1.2rem; align-content: start; }
.c-block { padding: 1.7rem 1.6rem; }
.c-block h3 { font-size: 1.02rem; margin-bottom: 0.6rem; color: var(--gold-soft); }
.c-block p { color: var(--text-soft); font-weight: 400; font-size: 0.95rem; }
.c-links { display: flex; gap: 1.4rem; margin-top: 0.9rem; }
.c-links a, .c-big {
  color: var(--text); font-weight: 700; font-size: 0.92rem;
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px; transition: color 0.3s, border-color 0.3s;
  cursor: pointer;
}
.c-links a:hover, .c-big:hover { color: var(--gold-soft); border-color: var(--gold); }
.c-big { font-size: 1.1rem; }
.c-dim { margin-top: 0.5rem; font-size: 0.85rem !important; color: var(--text-dim) !important; }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding-block: 2.6rem 2rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem;
  flex-wrap: wrap; margin-bottom: 1.6rem;
}
.footer-logo { height: 44px; width: auto; }
.footer-gm { height: 34px; width: auto; opacity: 0.65; }
.footer-domain { font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); font-weight: 500; }
.footer-legal { font-size: 0.76rem; color: var(--text-dim); line-height: 1.7; }

/* ============ WHATSAPP FLOTANTE ============ */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 14px 38px rgba(37, 211, 102, 0.5); }
.wa-float::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.5);
  animation: waPing 2.4s ease-out infinite;
}
@keyframes waPing { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ============ LIGHTBOX ============ */
.lightbox { border: none; background: rgba(8, 8, 8, 0.92); padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 8, 8, 0.85); }
.lightbox img {
  position: absolute; inset: 0; margin: auto;
  max-width: min(92vw, 1400px); max-height: 86vh;
  width: auto; height: auto;
  border-radius: 8px;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2;
  background: rgba(240, 241, 242, 0.08); color: var(--text);
  border: 1px solid var(--line); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.15rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, color 0.3s;
  font-family: inherit;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: #fff; }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ============ SECCIONES OSCURAS (ritmo claro/oscuro) ============ */
.section-dark {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(193,132,30,0.16) 0%, transparent 55%),
    linear-gradient(180deg, #17140f 0%, #100e0a 100%);
  color: #f0ece2;
  isolation: isolate;
}
.section-dark .kicker { color: #e0ad4f; }
.section-dark .section-title,
.section-dark h3 { color: #fdfbf6; }
.section-dark em { color: #ecc36f; }
.section-dark .section-note,
.section-dark .diff p,
.section-dark .diff-note,
.section-dark .price li,
.section-dark .urgency p { color: rgba(240, 236, 226, 0.74); }
.section-dark .glass {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
@supports (backdrop-filter: blur(18px)) {
  .section-dark .glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.section-dark .glass:hover { border-color: var(--gold-dim); }
.section-dark .price-tag { color: #ecc36f; border-color: rgba(217,201,141,0.4); }
.section-dark .price-big i { color: rgba(240,236,226,0.7); }
.section-dark .stat-num, .section-dark .price-big { color: #f2cd7a; }
.section-dark .urgency { border-color: rgba(217,201,141,0.4); background: linear-gradient(135deg, rgba(193,132,30,0.2), rgba(193,132,30,0.06)); }
.section-dark .urgency strong { color: #f2cd7a; }
.section-dark .mode { border-top-color: rgba(255,255,255,0.14); }
.section-dark .mode h3 { color: #ecc36f; }
.section-dark .legal-strip { color: rgba(240,236,226,0.55); border-top-color: rgba(255,255,255,0.14); }

/* Números grandes tipo editorial */
.diff-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900; line-height: 1;
  color: var(--gold-soft); letter-spacing: -0.02em;
  display: block; margin-bottom: 0.9rem;
  -webkit-text-stroke: 0; opacity: 0.95;
}
.section-dark .diff-num { color: #cf9e3a; }

/* ============ BANNER DE DECLARACIÓN (texto gigante superpuesto) ============ */
.statement {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(360px, 58vh, 560px);
  display: flex; align-items: center;
}
.statement-bg {
  position: absolute; inset: -3%; z-index: 0;
  background-size: cover; background-position: center;
  filter: grayscale(0.15) contrast(1.05);
  transform: scale(1.05);
  animation: kenburns 26s ease-out forwards;
}
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(11,10,7,0.92) 0%, rgba(11,10,7,0.6) 52%, rgba(11,10,7,0.42) 78%, rgba(11,10,7,0.7) 100%),
    linear-gradient(180deg, rgba(11,10,7,0.5) 0%, transparent 34%, transparent 60%, rgba(11,10,7,0.7) 100%);
}
.statement-inner {
  position: relative; z-index: 2;
  max-width: 1240px; width: 100%;
  margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem);
}
.statement-kicker {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: #e0ad4f; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.statement-kicker::before { content: ""; width: 22px; height: 12px; background: var(--gold-soft); clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.statement-title {
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 1.02; letter-spacing: -0.02em;
  color: #fdfbf6; max-width: 20ch; margin-bottom: 1.1rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.statement-title em { color: #f2cd7a; font-style: italic; }
.statement-sub { color: rgba(253, 251, 246, 0.82); max-width: 52ch; font-size: 1.06rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1023px) {
  .split { grid-template-columns: 1fr; }
  .stat-stack { grid-template-columns: repeat(2, 1fr); }
  .stage-row, .diff-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .price-row, .contact-grid { grid-template-columns: 1fr; }
  .loc-map-wrap { grid-template-columns: 1fr; }
  .map-actions { grid-template-columns: repeat(3, 1fr); }
  .map-btn { flex-direction: column; text-align: center; gap: 0.5rem; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    margin-left: auto; background: none; border: none; cursor: pointer; padding: 0.5rem;
  }
  .nav-toggle span { width: 26px; height: 2px; background: #fdfbf6; transition: transform 0.35s var(--ease-out), opacity 0.3s, background 0.3s; }
  .nav.is-solid .nav-toggle span { background: var(--text); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav-mobile {
    display: grid; gap: 0.2rem;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(244, 240, 232, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem clamp(1.1rem, 4vw, 2rem) 1.6rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.4s var(--ease-out), opacity 0.4s, visibility 0.4s;
  }
  .nav-mobile.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-mobile a { padding: 0.7rem 0.2rem; font-weight: 500; color: var(--text-soft); border-bottom: 1px solid var(--line); }
  .nav-mobile a:last-child { border: none; margin-top: 0.8rem; color: #fff; }
}
@media (max-width: 639px) {
  .stage-row, .diff-row, .mode-row, .stat-stack { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-wide { grid-column: span 1; grid-row: span 1; }
  .backer { flex-direction: column; text-align: center; align-items: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .map-actions { grid-template-columns: 1fr; }
  .map-btn { flex-direction: row; text-align: left; }
  .wa-float { right: 1rem; bottom: 1rem; }
}

/* Reduced motion: solo gatear lo intrusivo */
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
  .splash-symbol { animation: none; }
}
