/* Brhayan Torres — sitio de expectativa
   Paleta: Naranja Cúcuta #EA5D1A · Carbón #1A1A1A · Tierra cálida #D9A67B · Blanco hueso #F5F5F7
   Tipografía web: pila tipo Arial/Helvetica (lineamiento de marca), con fallback a San Francisco en Apple */

:root {
  --naranja: #F0A830;
  --naranja-suave: #F5C05C;
  --rojo-acento: #C1272D;
  --carbon: #121212;
  --carbon-2: #0a0a0a;
  --tierra: #D9A67B;
  --hueso: #F5F5F7;
  --blanco: #FFFFFF;
  --texto-suave: rgba(245, 245, 247, 0.72);
  --texto-suave-oscuro: rgba(26, 26, 26, 0.64);
  --borde: rgba(245, 245, 247, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--hueso);
  color: var(--carbon);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4,
.brand, .nav-cta, .btn,
.stat-num, .eyebrow, .section-tag,
.timeline-year, .ig-follow-count {
  font-family: var(--font-heading);
}

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.12s; }
.reveal-delay-2.is-visible { transition-delay: 0.24s; }
.reveal-delay-3.is-visible { transition-delay: 0.36s; }
.reveal-delay-4.is-visible { transition-delay: 0.48s; }
.reveal-delay-5.is-visible { transition-delay: 0.6s; }
.reveal-delay-6.is-visible { transition-delay: 0.72s; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(26, 26, 26, 0);
  backdrop-filter: blur(0px);
  transition: background 0.5s var(--ease), backdrop-filter 0.5s var(--ease), padding 0.4s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  padding: 12px 24px;
  border-bottom: 1px solid var(--borde);
}
.nav-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--hueso);
  font-size: 15px;
}
.brand .mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--naranja);
  display: flex; align-items: center; justify-content: center;
  color: var(--hueso); font-weight: 800; font-size: 17px;
  box-shadow: 0 4px 14px rgba(234, 93, 26, 0.35);
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: var(--texto-suave);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--hueso); }
.nav-cta {
  background: var(--naranja);
  color: var(--hueso) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(234, 93, 26, 0.4); background: var(--naranja-suave); }
.nav-social {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 14px;
  margin-right: 8px;
  border-right: 1px solid rgba(245,245,247,0.16);
}
.nav-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(234,93,26,0.16);
  border: 1px solid rgba(234,93,26,0.4);
  color: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}
.nav-social a svg { width: 16px; height: 16px; }
.nav-social a:hover { color: var(--hueso); background: var(--naranja); border-color: var(--naranja); transform: translateY(-2px); }
.nav-toggle {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(245,245,247,0.1);
  border: 1px solid rgba(245,245,247,0.18);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-toggle span {
  width: 18px; height: 2px;
  background: var(--hueso);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] {
  background: var(--naranja);
  border-color: var(--naranja);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: var(--hueso);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -20px;
  overflow: hidden;
}
.hero-bg-inner {
  position: absolute; inset: 0;
  background-image: url('../assets/img/comunidad-3.jpg');
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,6,6,0.72) 0%, rgba(6,6,6,0.5) 30%, rgba(6,6,6,0.78) 65%, rgba(6,6,6,0.97) 100%);
}
.hero-glow {
  position: absolute;
  width: 46vw; height: 46vw;
  right: -12vw; top: -8vw;
  background: radial-gradient(circle, rgba(234,93,26,0.14) 0%, rgba(234,93,26,0) 68%);
  filter: blur(10px);
  pointer-events: none;
}

/* ---------- Insignias flotantes del hero ---------- */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(20,20,20,0.5);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(245,245,247,0.16);
  color: var(--hueso);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  opacity: 0;
  transform: perspective(600px) rotateY(50deg) translateY(14px) scale(0.7);
  transform-style: preserve-3d;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.hero-float-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--naranja);
  box-shadow: 0 6px 14px rgba(234,93,26,0.4);
}
.hero-floats.is-in .hero-float {
  opacity: 1;
  transform: perspective(600px) rotateY(0deg) translateY(0) scale(1);
  animation: heroFloatBob 5s ease-in-out infinite;
}
.hf-1 { top: 20%; right: 8%; transition-delay: 0.7s; animation-delay: 0.2s !important; }
.hf-2 { top: 42%; right: 2%; transition-delay: 0.9s; animation-delay: 0.9s !important; }
.hf-3 { top: 64%; right: 10%; transition-delay: 1.1s; animation-delay: 1.6s !important; }
@keyframes heroFloatBob {
  0%, 100% { transform: perspective(600px) translateY(0); }
  50% { transform: perspective(600px) translateY(-10px); }
}
@media (min-width: 1100px) and (min-height: 640px) {
  .hero-floats { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float { animation: none !important; transition: opacity 0.4s ease; transform: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 24px 88px;
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tierra);
  background: rgba(245,245,247,0.08);
  border: 1px solid rgba(245,245,247,0.16);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.2s forwards;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--naranja);
  box-shadow: 0 0 0 0 rgba(234,93,26,0.6);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(234,93,26,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(234,93,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(234,93,26,0); }
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 900px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.35s forwards;
}
.hero h1 .accent { color: var(--naranja); }
.hero p.lead {
  margin-top: 22px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--texto-suave);
  max-width: 560px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.5s forwards;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.65s forwards;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}
.btn-primary {
  background: var(--naranja);
  color: var(--hueso);
  box-shadow: 0 10px 30px rgba(234,93,26,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(234,93,26,0.48); background: var(--naranja-suave); }
.btn-ghost {
  background: rgba(245,245,247,0.08);
  border: 1px solid rgba(245,245,247,0.24);
  color: var(--hueso);
}
.btn-ghost:hover { background: rgba(245,245,247,0.16); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(26,26,26,0.18);
  color: var(--carbon);
}
.btn-outline:hover { background: var(--carbon); color: var(--hueso); transform: translateY(-2px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(245,245,247,0.6);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1s forwards;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(245,245,247,0.7), rgba(245,245,247,0));
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0.3); transform-origin: bottom; } }

/* ---------- Ticker cinético ---------- */
.ticker {
  background: var(--carbon-2);
  overflow: hidden;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245,245,247,0.08);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: tickerScroll 26s linear infinite;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track span { color: var(--texto-suave); }
.ticker-track .dot-sep { color: var(--naranja); font-weight: 400; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Section shell ---------- */
.section { padding: 130px 0; }
.section-dark { background: var(--carbon); color: var(--hueso); }
.section-tag {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 16px;
  display: block;
}
.section-title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.08;
  max-width: 760px;
}
.section-sub {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--texto-suave-oscuro);
  max-width: 620px;
}
.section-dark .section-sub { color: var(--texto-suave); }

/* ---------- Quién es: stats ---------- */
.stat-row {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(26,26,26,0.1);
  border-bottom: 1px solid rgba(26,26,26,0.1);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--naranja);
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 0.26s var(--ease);
}
.stat-num.pop { transform: scale(1.14); }
.stat-label {
  font-size: 13px;
  line-height: 1.4;
  color: var(--texto-suave-oscuro);
  font-weight: 600;
  max-width: 18ch;
}

/* ---------- Quién es ---------- */
.quien-es {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
  margin-top: 64px;
}
.quien-es-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px rgba(26,26,26,0.16);
  position: sticky;
  top: 110px;
}
.quien-es-photo img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 12%;
  transition: transform 8s var(--ease);
}
.quien-es-photo:hover img { transform: scale(1.06); }
.quien-es-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 55%, rgba(10,10,10,0.65) 100%);
}
.quien-es-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  z-index: 2;
  color: var(--hueso);
  font-size: 13px;
  font-weight: 600;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245,245,247,0.2);
}

.timeline { position: relative; margin-top: 8px; }
.timeline-track {
  position: absolute;
  left: 21px; top: 6px; bottom: 6px;
  width: 2px;
  background: rgba(26,26,26,0.1);
}
.timeline-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0%;
  background: var(--naranja);
  transition: height 0.15s linear;
}
.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding-bottom: 40px;
  perspective: 800px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-icon {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--hueso);
  border: 2px solid rgba(26,26,26,0.12);
  color: rgba(26,26,26,0.28);
  opacity: 0;
  transform: rotateY(-75deg) scale(0.55);
  transform-style: preserve-3d;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
}
.timeline-item.is-visible .timeline-icon {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  background: var(--naranja);
  border-color: transparent;
  color: var(--hueso);
  box-shadow: 0 10px 22px rgba(234,93,26,0.35);
}
.timeline-card {
  flex: 1;
  background: var(--blanco);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(26,26,26,0.04);
  opacity: 0;
  transform: translateX(26px);
  transform-style: preserve-3d;
  will-change: transform;
  transition: opacity 0.7s var(--ease) 0.1s, transform 0.7s var(--ease) 0.1s, box-shadow 0.3s ease, border-color 0.3s ease;
}
.timeline-item.is-visible .timeline-card { opacity: 1; transform: translateX(0); }
.timeline-card:hover { box-shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.05) 0 4px 10px, rgba(0,0,0,0.09) 0 8px 20px; border-color: rgba(234,93,26,0.25); }
.timeline-year {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 8px;
}
.timeline-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.timeline-card p { font-size: 15px; line-height: 1.6; color: var(--texto-suave-oscuro); }

/* ---------- Territorio ---------- */
.territorio-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: 26px;
  overflow: hidden;
  perspective: 700px;
}
.territorio-grid figure { position: relative; overflow: hidden; aspect-ratio: 3/4; transition: transform 0.2s ease-out; }
.territorio-grid:nth-child(1) {}
.territorio-grid figure img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.7s ease;
  filter: grayscale(0.15) brightness(0.92);
}
.territorio-grid figure:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
.territorio-grid figure figcaption {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  color: var(--hueso); font-size: 13.5px; font-weight: 600;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.territorio-grid figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0) 50%, rgba(20,20,20,0.65) 100%);
}
.territorio-copy {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.territorio-copy .item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--naranja); }
.territorio-copy .item p { font-size: 14.5px; line-height: 1.6; color: var(--texto-suave); }

/* ---------- Pilares ---------- */
.pilares-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 700px;
}
.pilar-card {
  background: var(--blanco);
  border: 1px solid rgba(26,26,26,0.08);
  border-radius: 22px;
  padding: 30px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}
.pilar-card:hover {
  box-shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.05) 0 4px 10px, rgba(0,0,0,0.09) 0 8px 20px;
  border-color: rgba(234,93,26,0.35);
}
.pilar-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--hueso);
  border: 1px solid rgba(26,26,26,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--carbon);
  margin-bottom: 18px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pilar-card:hover .pilar-icon { background: var(--naranja); color: var(--hueso); border-color: transparent; }
.pilar-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pilar-card p { font-size: 14px; line-height: 1.55; color: var(--texto-suave-oscuro); }

/* ---------- Cita / posicionamiento ---------- */
.cita {
  padding: 150px 0;
  text-align: center;
  position: relative;
  background: var(--carbon);
  color: var(--hueso);
  overflow: hidden;
}
.cita::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(234,93,26,0.18), rgba(26,26,26,0) 60%);
}
.cita blockquote {
  position: relative; z-index: 1;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0 auto;
}
.cita blockquote .accent { color: var(--naranja); }
.cita cite {
  position: relative; z-index: 1;
  display: block;
  margin-top: 26px;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--texto-suave);
}

/* ---------- Galería ---------- */
.galeria-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 22px;
}
.galeria-grid button {
  grid-column: span 1; grid-row: span 1; border-radius: 22px; overflow: hidden;
  position: relative; display: block;
  border: none; padding: 0; background: none; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.galeria-grid button:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }
.galeria-grid button.big { grid-column: span 2; grid-row: span 2; }
.galeria-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.face-top { object-position: 50% 12% !important; }
.galeria-grid button:hover img { transform: scale(1.07); }

/* ---------- Contacto ---------- */
.contacto {
  background: var(--carbon-2);
  color: var(--hueso);
  border-radius: 32px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: "";
  position: absolute; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(234,93,26,0.35), rgba(234,93,26,0) 70%);
  top: -180px; right: -140px;
}
.contacto h2 {
  position: relative; z-index: 1;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 680px;
  margin: 0 auto;
}
.contacto p {
  position: relative; z-index: 1;
  margin-top: 16px;
  color: var(--texto-suave);
  font-size: 16px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
}
.contacto-actions {
  position: relative; z-index: 1;
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-row {
  position: relative; z-index: 1;
  margin-top: 40px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.social-row a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(245,245,247,0.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: var(--hueso);
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.social-row a:hover {
  background: rgba(240,168,48,0.14);
  border-color: var(--naranja);
  color: var(--naranja);
  transform: translateY(-3px) scale(1.08);
}

/* ---------- Instagram ---------- */
.ig-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ig-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.ig-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 18px;
  overflow: hidden;
  display: block;
}
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ig-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(234,93,26,0.05), rgba(10,10,10,0.35));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile:hover::after { opacity: 1; }
.ig-tile-icon {
  position: absolute; top: 12px; right: 12px;
  color: var(--hueso);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.ig-tile:hover .ig-tile-icon { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0 34px;
  text-align: center;
  background: var(--carbon-2);
}
footer .container { display: flex; flex-direction: column; gap: 8px; align-items: center; }
footer .fine { font-size: 12.5px; color: var(--texto-suave); max-width: 620px; line-height: 1.6; }
footer .brand-mini { font-size: 13px; font-weight: 700; color: var(--hueso); letter-spacing: 0.02em; }
footer .credit { font-size: 12px; color: rgba(245,245,247,0.45); margin-top: 4px; }
footer .credit a { color: var(--naranja); font-weight: 600; }
footer .credit a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .quien-es { grid-template-columns: 1fr; gap: 40px; }
  .quien-es-photo { position: relative; top: 0; aspect-ratio: 4/5; }
  .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .territorio-grid { grid-template-columns: repeat(3, 1fr); }
  .territorio-copy { grid-template-columns: 1fr; gap: 24px; }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .galeria-grid button.big { grid-column: span 2; grid-row: span 1; }
  .contacto { padding: 56px 28px; }
}
@media (max-width: 720px) {
  .nav-cta-desktop { display: none; }
  .nav-social { display: none; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78vw;
    max-width: 320px;
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    background: rgba(20,20,20,0.97);
    backdrop-filter: blur(20px);
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 20px; }
  .section { padding: 90px 0; }
  .pilares-grid { grid-template-columns: 1fr; }
  .territorio-grid { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 40px; }
  .scroll-cue { display: none; }
  .eyebrow {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 14px;
    line-height: 1.4;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ============ Mejoras de dinamismo (paquete 2) ============ */

/* Barra de progreso de scroll */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--naranja);
  z-index: 200;
  transition: width 0.1s linear;
}

/* Cursor personalizado (solo desktop con mouse fino) */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(234,93,26,0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 300;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  display: none;
}
.cursor-dot.is-active { opacity: 1; }
.cursor-dot.is-hovering {
  width: 40px; height: 40px;
  background: rgba(234,93,26,0.12);
  border-color: var(--naranja);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}

/* Estadísticas con ícono */
.stat-icon {
  display: flex;
  width: 34px; height: 34px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  background: var(--hueso);
  border: 1px solid rgba(26,26,26,0.08);
  color: var(--naranja);
  margin-bottom: 10px;
}

/* Prueba social de Instagram */
.ig-follow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ig-follow-count {
  font-size: 15px;
  font-weight: 800;
  color: var(--carbon);
}
.ig-follow-count small {
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave-oscuro);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Íconos de Temas: rebote al pasar el mouse */
@keyframes iconWiggle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.18) rotate(-8deg); }
  60% { transform: scale(1.1) rotate(6deg); }
}
.pilar-card:hover .pilar-icon { animation: iconWiggle 0.55s var(--ease); }

/* Botones flotantes */
.float-btn {
  position: fixed;
  right: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  z-index: 150;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s ease, visibility 0.3s ease;
}
.float-whatsapp {
  bottom: 22px;
  width: auto;
  height: 54px;
  border-radius: 999px;
  padding: 0 20px 0 18px;
  gap: 10px;
  background: #25D366;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
}
.float-whatsapp.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.float-whatsapp-label {
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--font-heading);
}
@media (max-width: 360px) {
  .float-whatsapp-label { font-size: 13px; }
  .float-whatsapp { padding: 0 16px 0 14px; gap: 8px; }
}
.float-whatsapp:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px rgba(0,0,0,0.34); }
.float-top {
  bottom: 86px;
  background: var(--carbon-2);
  color: var(--hueso);
  border: 1px solid rgba(245,245,247,0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  cursor: pointer;
}
.float-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.float-top:hover { background: var(--naranja); border-color: transparent; transform: translateY(-3px) scale(1.05); }

/* Lightbox de galería */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(6,6,6,0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(88vw, 900px);
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.35s var(--ease) 0.05s, transform 0.35s var(--ease) 0.05s;
}
.lightbox.is-open .lightbox-img { opacity: 1; transform: scale(1); }
.lightbox-close, .lightbox-arrow {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(245,245,247,0.1);
  border: 1px solid rgba(245,245,247,0.2);
  color: var(--hueso);
  transition: background 0.25s ease, transform 0.25s var(--ease);
}
.lightbox-close:hover, .lightbox-arrow:hover { background: var(--naranja); border-color: transparent; }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

/* Costuras suaves entre secciones oscuras y claras */
.section-dark, footer { position: relative; }
.section-dark::before, footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 70px;
  background: linear-gradient(180deg, var(--hueso), rgba(245,245,247,0));
  pointer-events: none;
}
footer::before { background: linear-gradient(180deg, var(--hueso), rgba(245,245,247,0)); }

@media (max-width: 720px) {
  .float-btn { right: 16px; }
  .float-top { width: 48px; height: 48px; bottom: 74px; }
  .float-whatsapp { bottom: 16px; }
  .ig-follow { width: 100%; justify-content: space-between; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ===== Variante Amarillo: ajuste de contraste ===== */
/* El amarillo es un color claro — el texto/íconos que antes eran blancos
   sobre el naranja ahora deben ser carbón para mantener legibilidad,
   igual que hacen las marcas reales con amarillo (Snapchat, Post-it). */
.nav-cta,
.nav-social a:hover,
.btn-primary,
.timeline-item.is-visible .timeline-icon,
.pilar-card:hover .pilar-icon,
.float-top:hover,
.lightbox-close:hover,
.lightbox-arrow:hover {
  color: var(--carbon) !important;
}
.nav-toggle[aria-expanded="true"] span {
  background: var(--carbon);
}
.hero-float-icon {
  color: var(--carbon);
}
.pilar-icon-heart { color: var(--rojo-acento) !important; }
.pilar-card:hover .pilar-icon-heart { background: var(--rojo-acento); color: var(--hueso) !important; }

/* ---------- Formulario: solicitar visita al barrio ---------- */
.contacto-form-wrap {
  position: relative; z-index: 1;
  margin-top: 48px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
  text-align: left;
}
.contacto-form {
  background: var(--hueso);
  color: var(--carbon);
  border-radius: 24px;
  padding: 36px;
}
.contacto-form h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}
.contacto-form > p {
  margin: 8px 0 24px;
  font-size: 14.5px;
  color: rgba(18,18,18,0.62);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-field { margin-bottom: 14px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: rgba(18,18,18,0.75);
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1.5px solid rgba(18,18,18,0.14);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--carbon);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--naranja);
  box-shadow: 0 0 0 3px rgba(240,168,48,0.28);
}
.form-field textarea { resize: vertical; min-height: 84px; }
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-submit {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
  margin-top: 4px;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg {
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 18px;
}
.form-msg.is-success { color: #1a7a3c; }
.form-msg.is-error { color: var(--rojo-acento); }

@media (max-width: 640px) {
  .contacto-form { padding: 26px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.ig-social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--naranja);
}
.ig-social a { display: flex; transition: transform 0.25s ease, color 0.25s ease; }
.ig-social a:hover { color: var(--naranja-suave); transform: translateY(-2px); }
