/* =========================================
   TERRA — El Último Horizonte
   styles.css — Mobile-first, Production-grade
   ========================================= */

/* =========================================
   CUSTOM PROPERTIES
========================================= */
:root {
  --ink: #0d0d0d;
  --cream: #f5f0e8;
  --moss: #2d4a2d;
  --sage: #6b8f6b;
  --amber: #c8732a;
  --gold: #d4a843;
  --mist: #b8c9b8;
  --charcoal: #1a1a1a;
  --off-white: #faf8f3;
  --red-earth: #8b3a2a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  --section-padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  --max-width: 1100px;
}

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

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

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

a {
  color: inherit;
}

/* =========================================
   CUSTOM CURSOR (desktop only)
========================================= */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease-out-expo), opacity 0.3s;
  mix-blend-mode: difference;
  will-change: transform;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 168, 67, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  will-change: transform;
}

.cursor.hovering { transform: scale(3); }
.cursor-ring.hovering { width: 60px; height: 60px; opacity: 0.3; }

/* =========================================
   PROGRESS BAR
========================================= */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s linear;
}

/* =========================================
   NAVIGATION
========================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: rgba(13, 13, 13, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: var(--cream);
  text-decoration: none;
}

.logo span { color: var(--gold); }

.nav-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  opacity: 0.8;
}

/* =========================================
   KEYFRAME ANIMATIONS
========================================= */
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(0, 0); }
  50%  { transform: scale(1.14) translate(-1%, 1%); }
  100% { transform: scale(1.10) translate(1%, -0.5%); }
}

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

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* =========================================
   HERO
========================================= */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=1800&q=85');
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: kenBurns 20s ease-in-out infinite alternate;
  filter: brightness(0.45);
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 0.95) 0%,
    rgba(13, 13, 13, 0.4) 50%,
    rgba(13, 13, 13, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  padding: 7rem 1.5rem 4rem; /* 7rem = espacio libre para el nav */
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.8s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 300;
  max-width: 520px;
  color: rgba(245, 240, 232, 0.75);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 1.1s forwards;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 1.4s forwards;
}

.meta-item {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}

.meta-item strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-style: italic;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s ease 2s forwards;
}

.scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =========================================
   INTRO SECTION
========================================= */
#intro {
  background: var(--off-white);
  color: var(--ink);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

#intro::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: -1rem;
  font-family: var(--font-display);
  font-size: 25rem;
  color: rgba(45, 74, 45, 0.06);
  line-height: 1;
  pointer-events: none;
}

.intro-inner {
  max-width: 800px;
  margin: 0 auto;
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--moss);
  margin-bottom: 2rem;
}

.pull-quote strong {
  font-weight: 900;
  font-style: normal;
  color: var(--ink);
}

.intro-rule {
  width: 60px;
  height: 3px;
  background: var(--amber);
  margin: 3rem 0;
}

.intro-body {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.8;
}

/* =========================================
   SECTION UTILITIES
========================================= */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 3rem;
  max-width: 700px;
}

/* =========================================
   DATA / STATS
========================================= */
#data {
  background: var(--charcoal);
  padding: var(--section-padding);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card {
  padding: 2.5rem 1.5rem;
  background: var(--charcoal);
  transition: background 0.4s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.6s var(--ease-out-expo);
}

.stat-card:hover { background: #222; }
.stat-card:hover::after { width: 100%; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-unit {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--mist);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.stat-desc {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.7;
}

/* =========================================
   SCROLLYTELLING
========================================= */
#scrolly {
  background: var(--ink);
  position: relative;
}

.scrolly-container {
  display: flex;
  align-items: flex-start; /* el sticky no debe estirarse */
  width: 100%;
  /* OJO: no usar overflow:hidden acá, rompe position:sticky */
}

.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.scrolly-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
  opacity: 0;
  will-change: opacity;
}

.scrolly-img.active {
  opacity: 1;
  animation: kenBurns 15s ease-in-out infinite alternate;
}

.scrolly-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13, 13, 13, 0.35) 0%, transparent 100%);
}

.scrolly-steps {
  flex: 1;
  min-width: 0;
}

.step {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 3rem;
}

.step-inner {
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.step-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.step-body {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
}

.step-tag {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* =========================================
   CHART SECTION
========================================= */
#chart-section {
  background: var(--off-white);
  color: var(--ink);
  padding: var(--section-padding);
}

.chart-wrap {
  max-width: 900px;
  margin: 3rem auto 0;
}

.temp-chart {
  width: 100%;
  height: 280px;
  position: relative;
  margin-bottom: 1rem;
}

.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
  padding-bottom: 30px;
}

.chart-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  transition: height 1.2s var(--ease-out-expo);
  position: relative;
  min-height: 4px;
  cursor: pointer;
}

.chart-bar:hover::after {
  content: attr(data-year) '\A' attr(data-val);
  white-space: pre;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  z-index: 10;
  pointer-events: none;
  margin-bottom: 4px;
}

.chart-axis {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: #888;
  letter-spacing: 0.05em;
}

.chart-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #555;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-source {
  font-size: 0.75rem;
  color: #888;
  margin-top: 2rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* =========================================
   FULLBLEED IMAGE
========================================= */
.fullbleed {
  height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullbleed-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: kenBurns 18s ease-in-out infinite alternate;
  filter: brightness(0.4);
  will-change: transform;
}

.fullbleed-content {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.fullbleed-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--cream);
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.fullbleed-attr {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 1.5rem;
  text-transform: uppercase;
}

/* =========================================
   GALLERY
========================================= */
#gallery {
  background: var(--ink);
  padding: var(--section-padding);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
  margin: 3rem auto 0;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item:nth-child(1) { grid-column: 1 / 8;  grid-row: 1; height: 360px; }
.gallery-item:nth-child(2) { grid-column: 8 / 13; grid-row: 1; height: 360px; }
.gallery-item:nth-child(3) { grid-column: 1 / 5;  grid-row: 2; height: 240px; }
.gallery-item:nth-child(4) { grid-column: 5 / 9;  grid-row: 2; height: 240px; }
.gallery-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2; height: 240px; }

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease-out-expo);
}

.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.9), transparent);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--mist);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   TIMELINE
========================================= */
#timeline {
  background: var(--moss);
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

#timeline::before {
  content: 'HISTORIA';
  position: absolute;
  top: 2rem;
  right: -3rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.05em;
  pointer-events: none;
  white-space: nowrap;
}

.timeline-inner {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  min-width: 90px;
  text-align: right;
  flex-shrink: 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.5rem;
  position: relative;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 50%;
}

.timeline-text h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.timeline-text p {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.7;
}

/* =========================================
   CTA
========================================= */
#cta {
  background: var(--ink);
  padding: clamp(6rem, 12vw, 10rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 74, 45, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cta-title em {
  color: var(--gold);
  font-style: italic;
}

.cta-body {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.6);
  max-width: 480px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.3s, transform 0.2s;
  cursor: none;
}

.btn-primary:hover {
  background: var(--amber);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-block;
  margin-left: 1rem;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(245, 240, 232, 0.3);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, transform 0.2s;
  cursor: none;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* =========================================
   FOOTER
========================================= */
footer {
  background: #0a0a0a;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto 3rem;
}

.footer-brand .footer-logo {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--cream); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: rgba(245, 240, 232, 0.25);
}

/* =========================================
   SCROLL REVEAL UTILITY
========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE — TABLET
========================================= */
@media (max-width: 1024px) {
  .gallery-item:nth-child(1) { grid-column: 1 / 8; height: 280px; }
  .gallery-item:nth-child(2) { grid-column: 8 / 13; height: 280px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: span 4; height: 200px; }
}

/* =========================================
   RESPONSIVE — MOBILE
========================================= */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }

  nav { padding: 1rem 1.2rem; }
  .nav-label { display: none; }

  /* Scrolly: stack vertically */
  .scrolly-container { flex-direction: column; }

  .scrolly-sticky {
    width: 100%;
    height: 45vh;
    position: sticky; /* la imagen queda fija arriba mientras pasan los textos */
    top: 0;
    z-index: 5;
  }

  .scrolly-steps { width: 100%; }

  .scrolly-steps { position: relative; z-index: 1; background: var(--ink); }

  .step {
    min-height: 55vh;
    padding: 3rem 1.5rem;
  }

  .step-inner { max-width: 100%; }

  /* Gallery: mobile stack */
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(2) { grid-column: 1 / -1; height: 220px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: span 6; height: 150px; }

  /* Timeline */
  .timeline-item { flex-direction: column; gap: 0.5rem; }
  .timeline-year { text-align: left; font-size: 1.8rem; min-width: auto; }

  /* CTA buttons */
  .btn-outline {
    margin-left: 0;
    margin-top: 0.8rem;
    display: block;
    text-align: center;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: 1 / -1; height: 160px; }
}
