/* ─── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #0b1a0d;
  --forest:     #1a3d25;
  --leaf:       #3a7a2e;
  --gold:       #c8a255;
  --gold-light: #e6c97a;
  --cream:      #f0e9d6;
  --parchment:  #e6dcc6;
  --smoke:      #d4ccb8;
  --white:      #faf8f3;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', system-ui, sans-serif;
  --mono:       'Space Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
  cursor: none;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────────────────── */
.cursor {
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(200, 162, 85, 0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(.25,.1,.25,1), width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
body:hover .cursor { opacity: 1; }

/* ─── NAVIGATION ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s ease, padding 0.4s ease;
}
nav.scrolled {
  background: rgba(11, 26, 13, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 3rem;
  border-bottom: 1px solid rgba(200,162,85,0.15);
}
.nav-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(0,0,0,0.5));
}
nav a:hover .nav-logo { opacity: 0.80; transform: scale(0.97); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(.25,.46,.45,.94);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

/* ─── SOUND TOGGLE ─────────────────────────────────────────────────── */
.sound-btn {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  background: rgba(11,26,13,0.8);
  border: 1px solid rgba(200,162,85,0.4);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 0.6rem 1.1rem;
  border-radius: 2rem;
  cursor: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  display: flex; align-items: center; gap: 0.5rem;
}
.sound-btn:hover { background: rgba(200,162,85,0.15); border-color: var(--gold); }
.sound-btn.active { color: var(--gold-light); border-color: var(--gold-light); }
.sound-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-bars span {
  width: 3px; background: var(--gold);
  border-radius: 2px;
  transition: height 0.2s ease;
}
.sound-bars span:nth-child(1) { height: 6px; }
.sound-bars span:nth-child(2) { height: 12px; }
.sound-bars span:nth-child(3) { height: 8px; }
.sound-bars span:nth-child(4) { height: 14px; }
.sound-bars span:nth-child(5) { height: 6px; }
.sound-btn.active .sound-bars span:nth-child(1) { animation: bar 0.8s ease-in-out infinite alternate; }
.sound-btn.active .sound-bars span:nth-child(2) { animation: bar 0.6s 0.1s ease-in-out infinite alternate; }
.sound-btn.active .sound-bars span:nth-child(3) { animation: bar 0.9s 0.2s ease-in-out infinite alternate; }
.sound-btn.active .sound-bars span:nth-child(4) { animation: bar 0.5s 0.15s ease-in-out infinite alternate; }
.sound-btn.active .sound-bars span:nth-child(5) { animation: bar 0.7s 0.05s ease-in-out infinite alternate; }
@keyframes bar { from { height: 4px; } to { height: 14px; } }

/* ─── HERO ─────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 5rem 4rem;
}
.hero-video-wrap {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute; inset: 0;
  transition: opacity 1.2s ease;
}
.hero-video-wrap video.active { opacity: 1; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to top,
    rgba(11,26,13,0.92) 0%,
    rgba(11,26,13,0.4) 40%,
    rgba(11,26,13,0.15) 70%,
    transparent 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 900px;
}
.hero-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 2.5rem; height: 1px;
  background: var(--gold);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-subtitle {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--smoke);
  max-width: 420px;
  line-height: 1.7;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; right: 4rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(200,162,85,0.6);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 3.5rem;
  background: linear-gradient(to bottom, rgba(200,162,85,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}
.hero-video-dots {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  display: flex; gap: 0.5rem;
}
.hero-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(200,162,85,0.35);
  transition: background 0.4s ease, transform 0.3s ease;
  cursor: none;
}
.hero-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ─── SECTION BASE ─────────────────────────────────────────────────── */
section { position: relative; }

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 1.8rem; height: 1px;
  background: var(--gold);
}

/* ─── STATS BAND ───────────────────────────────────────────────────── */
#stats {
  background: var(--forest);
  border-top: 1px solid rgba(200,162,85,0.2);
  border-bottom: 1px solid rgba(200,162,85,0.2);
  padding: 2.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(200,162,85,0.25);
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-top: 0.4rem;
  display: block;
}

/* ─── HISTORIA ─────────────────────────────────────────────────────── */
#historia {
  padding: 8rem 4rem;
  background: var(--ink);
}
.historia-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}
.historia-text-col { padding-top: 1rem; }
.historia-heading {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 2.5rem;
}
.historia-heading em {
  font-style: italic;
  color: var(--gold-light);
}
.historia-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--smoke);
  font-weight: 300;
  max-width: 480px;
}
.historia-body p + p { margin-top: 1.4rem; }

.historia-timeline {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: flex; gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(200,162,85,0.15);
  align-items: flex-start;
}
.timeline-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  min-width: 3.5rem;
  padding-top: 0.1rem;
}
.timeline-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--smoke);
  font-weight: 300;
}

.historia-img-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.8rem;
  position: sticky;
  top: 7rem;
}
.historia-img-col img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.85) contrast(1.05);
  transition: filter 0.5s ease, transform 0.6s ease;
  display: block;
}
.historia-img-col img:hover { filter: saturate(1.1) contrast(1.05); }
.historia-img-col img:nth-child(1) { grid-column: 1 / 3; height: 320px; }
.historia-img-col img:nth-child(2) { height: 200px; }
.historia-img-col img:nth-child(3) { height: 200px; }

/* ─── MISIÓN & VISIÓN ──────────────────────────────────────────────── */
#mision {
  background: var(--forest);
  padding: 8rem 4rem;
  border-top: 1px solid rgba(200,162,85,0.12);
  border-bottom: 1px solid rgba(200,162,85,0.12);
}
.mision-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.mision-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6rem;
  align-items: start;
}
.mision-card { position: relative; padding: 2.5rem 0; }
.mision-card::before {
  content: '"';
  font-family: var(--serif);
  font-size: 8rem;
  color: rgba(200,162,85,0.15);
  position: absolute;
  top: -1rem; left: -1rem;
  line-height: 1;
  pointer-events: none;
}
.card-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.card-type::before { content: ''; display: block; width: 1.8rem; height: 1px; background: var(--gold); }
.mision-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.8rem;
  letter-spacing: -0.01em;
}
.mision-title em { font-style: italic; color: var(--gold-light); }
.mision-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--smoke);
  font-weight: 300;
}
.vision-card {
  padding: 2.5rem 0;
  border-left: 1px solid rgba(200,162,85,0.25);
  padding-left: 3.5rem;
}
.vision-year {
  font-family: var(--serif);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 300;
  color: rgba(200,162,85,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}
.vision-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--smoke);
  font-weight: 300;
}

/* ─── GALLERY ──────────────────────────────────────────────────────── */
#galeria {
  padding: 8rem 4rem;
  background: var(--ink);
}
.galeria-header {
  max-width: 1300px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.galeria-heading {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.galeria-heading em { font-style: italic; color: var(--gold-light); }
.galeria-sub {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--smoke);
  max-width: 260px;
  text-align: right;
  line-height: 1.7;
  font-weight: 300;
}

.gallery-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 0.6rem;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  cursor: none;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
  transition: filter 0.6s ease, transform 0.8s cubic-bezier(.25,.46,.45,.94);
  display: block;
}
.g-item:hover img {
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.04);
}
.g-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,26,13,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex; align-items: flex-end;
  padding: 1rem 1.2rem;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-caption {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* Grid layout — organic, asymmetric */
.g-item:nth-child(1)  { grid-column: 1 / 6;  grid-row: 1 / 5; }
.g-item:nth-child(2)  { grid-column: 6 / 9;  grid-row: 1 / 3; }
.g-item:nth-child(3)  { grid-column: 9 / 13; grid-row: 1 / 4; }
.g-item:nth-child(4)  { grid-column: 6 / 9;  grid-row: 3 / 6; }
.g-item:nth-child(5)  { grid-column: 9 / 13; grid-row: 4 / 7; }
.g-item:nth-child(6)  { grid-column: 1 / 4;  grid-row: 5 / 8; }
.g-item:nth-child(7)  { grid-column: 4 / 7;  grid-row: 5 / 9; }
.g-item:nth-child(8)  { grid-column: 7 / 10; grid-row: 6 / 9; }
.g-item:nth-child(9)  { grid-column: 10 / 13;grid-row: 7 / 10; }
.g-item:nth-child(10) { grid-column: 1 / 4;  grid-row: 8 / 11; }
.g-item:nth-child(11) { grid-column: 4 / 8;  grid-row: 9 / 12; }
.g-item:nth-child(12) { grid-column: 8 / 11; grid-row: 9 / 12; }
.g-item:nth-child(13) { grid-column: 11 / 13;grid-row: 10 / 13; }

/* ─── TERRITORIO ───────────────────────────────────────────────────── */
#territorio {
  padding: 8rem 4rem;
  background: var(--forest);
  overflow: hidden;
}
.territorio-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.territorio-heading {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}
.territorio-heading em { font-style: italic; color: var(--gold-light); }
.territorio-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--smoke);
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.territorio-detail {
  display: flex; flex-direction: column; gap: 1rem;
  margin-top: 2rem;
}
.detail-row {
  display: flex; gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(200,162,85,0.12);
}
.detail-icon {
  width: 1.8rem; height: 1.8rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.detail-icon svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.detail-info strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.detail-info span {
  font-size: 0.92rem;
  color: var(--smoke);
  font-weight: 300;
}

.territorio-img-wrap {
  position: relative;
}
.territorio-img-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 2px;
  filter: saturate(0.85) contrast(1.05);
}
.territorio-img-accent {
  position: absolute;
  bottom: -2rem; left: -2rem;
  width: 220px; height: 260px;
  object-fit: cover;
  border-radius: 2px;
  border: 4px solid var(--forest);
  filter: saturate(0.85) contrast(1.05);
}

/* ─── MARQUEE ──────────────────────────────────────────────────────── */
#marquee-band {
  background: var(--gold);
  overflow: hidden;
  padding: 1rem 0;
  border-top: 1px solid rgba(200,162,85,0.3);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0 2.5rem;
  letter-spacing: 0.04em;
}
.marquee-track span.dot {
  color: rgba(11,26,13,0.4);
  padding: 0;
  font-size: 0.4rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CONTACT / FOOTER ─────────────────────────────────────────────── */
#contacto {
  padding: 8rem 4rem 4rem;
  background: var(--ink);
}
.contacto-inner {
  max-width: 1300px;
  margin: 0 auto;
}
.contacto-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(200,162,85,0.15);
}
.contacto-heading {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
}
.contacto-heading em { font-style: italic; color: var(--gold-light); }
.contacto-right { padding-top: 1rem; }
.contacto-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--smoke);
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.contacto-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.contacto-list li {
  display: flex; gap: 1rem;
  align-items: flex-start;
}
.contacto-list li strong {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 5rem;
  padding-top: 0.1rem;
}
.contacto-list li span {
  font-size: 0.92rem;
  color: var(--smoke);
  font-weight: 300;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  height: 46px;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0,0,0,0.4));
  opacity: 0.85;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(214,204,184,0.35);
  text-align: center;
}
.footer-made {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: rgba(200,162,85,0.35);
  text-align: right;
}

/* ─── REVEAL ANIMATIONS ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(.25,.46,.45,.94),
              transform 0.9s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { padding: 1.5rem 2rem; }
  nav.scrolled { padding: 1rem 2rem; }
  #hero { padding: 4rem 2.5rem; }
  #historia, #mision, #galeria, #territorio, #contacto { padding: 6rem 2.5rem; }
  .historia-inner, .mision-grid, .territorio-inner, .contacto-top { grid-template-columns: 1fr; gap: 3rem; }
  .historia-img-col { position: static; }
  .vision-card { border-left: none; padding-left: 0; border-top: 1px solid rgba(200,162,85,0.25); padding-top: 3rem; }
  .galeria-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .galeria-sub { text-align: left; max-width: 100%; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 70px; }
  .g-item:nth-child(1)  { grid-column: 1 / 4; grid-row: 1 / 5; }
  .g-item:nth-child(2)  { grid-column: 4 / 7; grid-row: 1 / 3; }
  .g-item:nth-child(3)  { grid-column: 4 / 7; grid-row: 3 / 6; }
  .g-item:nth-child(4)  { grid-column: 1 / 4; grid-row: 5 / 8; }
  .g-item:nth-child(5)  { grid-column: 4 / 7; grid-row: 6 / 9; }
  .g-item:nth-child(6)  { grid-column: 1 / 3; grid-row: 8 / 11; }
  .g-item:nth-child(7)  { grid-column: 3 / 5; grid-row: 8 / 11; }
  .g-item:nth-child(8)  { grid-column: 5 / 7; grid-row: 9 / 12; }
  .g-item:nth-child(9)  { grid-column: 1 / 3; grid-row: 11 / 14; }
  .g-item:nth-child(10) { grid-column: 3 / 5; grid-row: 11 / 14; }
  .g-item:nth-child(11) { grid-column: 5 / 7; grid-row: 12 / 15; }
  .g-item:nth-child(12) { grid-column: 1 / 4; grid-row: 14 / 17; }
  .g-item:nth-child(13) { grid-column: 4 / 7; grid-row: 15 / 18; }
  #stats { grid-template-columns: 1fr; padding: 2rem; }
  .stat-item + .stat-item::before { display: none; }
  .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
  .territorio-img-accent { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-scroll { display: none; }
  .sound-btn { bottom: 1.2rem; right: 1.2rem; }
}

/* ─── CIFRAS COUNTER ───────────────────────────────────────────────── */
#cifras {
  background: var(--ink);
  padding: 7rem 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(200,162,85,0.1);
  overflow: hidden;
  position: relative;
}
#cifras::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(26,61,37,0.5), transparent);
  pointer-events: none;
}
.cifras-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.cifras-label {
  font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
}
.cifras-label::before, .cifras-label::after {
  content: ''; display: block; width: 2rem; height: 1px; background: var(--gold);
}
.counter-wrap {
  display: flex; align-items: baseline;
  justify-content: center; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.counter-number {
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 300; color: var(--gold-light);
  line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.counter-unit {
  font-family: var(--mono); font-size: 0.9rem;
  color: var(--gold); letter-spacing: 0.2em;
  text-transform: uppercase; align-self: flex-end;
  margin-bottom: 1.8rem;
}
.counter-desc {
  font-family: var(--sans); font-size: 0.92rem;
  color: var(--smoke); letter-spacing: 0.04em; font-weight: 300;
}

/* ─── WORLD MAP ────────────────────────────────────────────────────── */
#ruta {
  background: var(--ink);
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.ruta-inner {
  max-width: 1300px; margin: 0 auto;
  padding: 0 4rem;
}
.ruta-heading {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300; color: var(--white);
  margin-bottom: 3rem; letter-spacing: -0.02em;
}
.ruta-heading em { font-style: italic; color: var(--gold-light); }
.map-outer {
  width: 100%; position: relative;
  border: 1px solid rgba(200,162,85,0.18);
  border-radius: 4px; overflow: hidden;
  background: #060f07;
}
#worldmap { width: 100%; display: block; }
.map-legend {
  position: absolute; bottom: 1.2rem; left: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.map-leg-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(200,162,85,0.7);
}
.map-leg-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px var(--gold);
}
.map-leg-line {
  width: 20px; height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  border-radius: 2px;
}

/* ─── CONTACT FORM ─────────────────────────────────────────────────── */
.contact-form { margin-top: 3rem; }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem; margin-bottom: 1.2rem;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-group {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,162,85,0.2);
  border-radius: 3px; padding: 0.85rem 1.1rem;
  font-family: var(--sans); font-size: 0.9rem;
  color: var(--cream); outline: none; width: 100%;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(200,162,85,0.55);
  background: rgba(255,255,255,0.07);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(200,162,85,0.3);
}
.form-submit {
  display: inline-flex; align-items: center;
  gap: 0.8rem; background: transparent;
  border: 1px solid rgba(200,162,85,0.45);
  color: var(--gold-light); font-family: var(--mono);
  font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; padding: 1rem 2.2rem;
  border-radius: 3px; cursor: none; margin-top: 1.5rem;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.form-submit:hover {
  background: rgba(200,162,85,0.1);
  border-color: var(--gold-light); transform: translateX(3px);
}
.form-submit svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.form-submit.loading { opacity: 0.6; pointer-events: none; }
.form-success {
  display: none; margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(50,100,55,0.25);
  border: 1px solid rgba(100,180,100,0.3);
  border-radius: 3px; font-size: 0.9rem;
  color: #98d898;
}
.form-success.visible { display: block; }

/* ─── SOCIAL ICONS ─────────────────────────────────────────────────── */
.social-links {
  display: flex; gap: 0.7rem; align-items: center;
}
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(200,162,85,0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--smoke); transition: border-color 0.3s, color 0.3s, background 0.3s;
  text-decoration: none;
}
.social-link:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(200,162,85,0.1); }
.social-link.wa:hover  { border-color:#25D366; color:#25D366; background:rgba(37,211,102,.08); }
.social-link.ig:hover  { border-color:#E1306C; color:#E1306C; background:rgba(225,48,108,.08); }
.social-link.fb:hover  { border-color:#1877F2; color:#1877F2; background:rgba(24,119,242,.08); }
.social-link svg { width: 15px; height: 15px; fill: currentColor; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 5.5rem; right: 2rem;
  z-index: 201; width: 50px; height: 50px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.3s, box-shadow 0.3s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }
.wa-float svg { width: 26px; height: 26px; fill: white; }

/* Footer social row */
.footer-social-row {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem;
}
.footer-social-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(200,162,85,0.4);
}
