/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --ink: #1F1E1D;
  --paper: #EFEBE2;
  --paper-soft: #f4f1ea;

  --font-body: "Quicksand", -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;

  --fs-eyebrow: clamp(0.56rem, 2.1vw, 0.64rem);
  --fs-body: clamp(9px, 2.4vw, 11px);
  --fs-body-lg: clamp(0.66rem, 2.6vw, 0.78rem);
  --fs-h2: clamp(1.7rem, 7.4vw, 2.5rem);
  --fs-h1: clamp(2.1rem, 9vw, 3.2rem);
  --fs-word: clamp(40px, 10.6vw, 56px);
  --fs-tag: clamp(0.85rem, 3.4vw, 1.05rem);

  --tracking: 0.03em;
  --tracking-wide: 0.08em;

  --frame: 480px;
  --gutter: clamp(22px, 7vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
main { display: block; }

.section {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3rem, 12vw, 4.5rem) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
}

.container {
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.container-wide {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

/* ============================================================
   TYPOGRAPHY — all copy ships uppercase + justified per spec
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0;
  text-align: justify;
  text-align-last: justify;
}

.h2 { font-size: var(--fs-h2); }
.h1 { font-size: var(--fs-h1); }

.word {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--fs-word);
  line-height: 1;
  text-align: center;
}

p {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.75;
  text-transform: uppercase;
  letter-spacing: var(--tracking);
  text-align: justify;
  text-align-last: left;
}

.body-lg { font-size: var(--fs-body-lg); }
.center { text-align: center; text-align-last: center; }

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: var(--fs-tag);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.tag-serif {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(0.9rem, 4vw, 1.15rem);
  text-align: center;
  line-height: 1.6;
}

.tag-serif .dot { opacity: 0.55; padding: 0 0.35em; }

.stack { display: flex; flex-direction: column; gap: 1.1rem; }
.stack-sm { display: flex; flex-direction: column; gap: 0.85rem; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }
.reveal-delay-4.is-visible { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.hero-bg {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: calc(100% + 200px);
  object-fit: cover;
  will-change: transform;
}
.hero-tag {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 3vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero-scroll {
  position: absolute;
  bottom: calc(clamp(1.2rem, 4vw, 2rem) + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll .stem {
  width: 1px;
  height: 28px;
  background: currentColor;
  opacity: 0.5;
  animation: stem-grow 2.2s ease-in-out infinite;
}
@keyframes stem-grow {
  0%, 100% { transform: scaleY(0.6); opacity: 0.25; }
  50% { transform: scaleY(1); opacity: 0.6; }
}

/* ============================================================
   FULL-BLEED PHOTO SECTIONS
   ============================================================ */
.photo-section {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 13vw, 5rem) 0 clamp(3rem, 11vw, 4.5rem);
  color: var(--paper);
  background: var(--ink);
}
.photo-section img.bg {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: min(calc(100% + 200px), 170vh);
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.photo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 16, 0.18) 0%, rgba(20, 14, 16, 0.32) 60%, rgba(20, 14, 16, 0.5) 100%);
  z-index: 0;
}
.photo-section .container { position: relative; z-index: 1; }
.photo-section p { color: var(--paper); }

.decor { pointer-events: none; user-select: none; }

.sparkle-row {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  opacity: 0.75;
  margin: 1.4rem 0;
}

/* ============================================================
   SECTION 3 — HE OBSERVADO / UNIVERSO
   ============================================================ */
.s-observado { padding-top: clamp(4rem, 16vw, 6rem); padding-bottom: clamp(4rem, 16vw, 6rem); }
.s-observado .h2 { font-size: clamp(1.3rem, 5.6vw, 1.7rem); margin-bottom: clamp(3rem, 11vw, 4.4rem); }
.s-observado p { color: var(--paper); opacity: 0.78; text-align: justify; text-align-last: left; font-size: clamp(8px, 2.1vw, 9.5px); max-width: 34ch; margin: 0 auto; }
.s-observado .lede-wrap { margin: clamp(2.8rem, 10vw, 4.2rem) 0 clamp(3.6rem, 13vw, 5.4rem); }
.s-observado .universo-intro {
  text-align: justify;
  text-align-last: left;
  opacity: 1;
  color: var(--paper);
  margin-bottom: 0.6rem;
}
.s-observado .word { margin-top: clamp(0.8rem, 3vw, 1.4rem); position: relative; z-index: 1; }
.s-observado .decor-butterfly {
  width: clamp(90px, 26vw, 140px);
  margin: clamp(1.4rem, 5vw, 2rem) auto 0;
  display: block;
  opacity: 0.9;
}

/* ============================================================
   SECTION 4 — Y LOS UNIVERSOS CRECEN
   ============================================================ */
.s-universos { min-height: 92vh; display: flex; align-items: center; }
.s-universos img.bg { filter: blur(6px); }
.s-universos .sub { text-align: justify; text-align-last: right; opacity: 0.85; margin: clamp(1.6rem, 6vw, 2.4rem) 0 clamp(1.8rem, 7vw, 2.8rem); }

.h2-wrap { position: relative; }
.h2-wrap .sparkle-glyph {
  position: absolute;
  right: 0;
  top: 36%;
  font-size: 1.3rem;
  opacity: 0.85;
  white-space: nowrap;
}

.constellation-wrap { position: relative; max-width: 380px; margin: 0 auto; }
.constellation { width: 100%; overflow: visible; display: block; margin: 0 auto; }
.constellation text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 7.6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  fill: var(--paper);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}
.constellation .spiral-line {
  stroke: var(--paper);
  stroke-width: 0.7;
  opacity: 0.8;
  stroke-linecap: round;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.constellation.is-visible .spiral-line { stroke-dashoffset: 0; }
.constellation circle { fill: var(--paper); opacity: 0; transition: opacity 0.5s var(--ease); }
.constellation.is-visible circle { opacity: 1; transition-delay: 1.5s; }
.constellation text { opacity: 0; transition: opacity 0.6s var(--ease); }
.constellation.is-visible text { opacity: 1; transition-delay: 1.7s; }
@media (prefers-reduced-motion: reduce) {
  .constellation .spiral-line, .constellation circle, .constellation text {
    stroke-dashoffset: 0; opacity: 1; transition: none;
  }
}

/* ============================================================
   SECTION 5 — AHI ES DONDE ENTRO YO
   ============================================================ */
.s-entro { padding-top: 0; }

.entro-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(6rem, 18vw, 12rem);
  margin-bottom: 2rem;
}
.entro-hero-bg {
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: min(calc(100% + 200px), 170vh);
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.entro-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 12, 12, 0.3) 0%, rgba(15, 12, 12, 0.45) 55%, rgba(15, 12, 12, 0.7) 100%);
  z-index: 0;
}
.entro-hero .container { position: relative; z-index: 1; padding-top: clamp(3.4rem, 13vw, 5rem); }
.entro-hero .glyph-divider { color: var(--paper); text-shadow: 0 1px 8px rgba(0,0,0,0.4); margin-top: clamp(2rem, 7vw, 2.8rem); margin-bottom: 0; }
.entro-caption {
  color: var(--paper);
  font-size: clamp(0.8rem, 3vw, 0.95rem);
  text-align: justify;
  text-align-last: left;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin-bottom: clamp(2.2rem, 8vw, 3.2rem);
}

.word-list {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-align: center;
  text-align-last: center;
  font-size: clamp(1rem, 4.4vw, 1.35rem);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  margin: 0 auto;
}
.word-list .sep { opacity: 0.5; padding: 0 0.4em; font-size: 0.6em; vertical-align: middle; }

.sig-block {
  position: relative;
  max-width: clamp(300px, 82vw, 400px);
  margin: 1.4rem auto clamp(2rem, 6.5vw, 3rem);
}
.curve-sig {
  width: 100%;
  display: block;
  overflow: visible;
  position: relative;
  z-index: 1;
}
.curve-sig text {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  fill: var(--paper);
  opacity: 1;
}
.sig-shell {
  width: 42%;
  margin: -12% auto 0;
  display: block;
  position: relative;
  z-index: 0;
}

.glyph-divider {
  text-align: center;
  text-align-last: center;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0 0 clamp(2.2rem, 8.4vw, 3.1rem);
}

.glyph-single {
  text-align: center;
  text-align-last: center;
  color: var(--paper);
  opacity: 0.85;
  font-size: 1rem;
  letter-spacing: 0;
  margin: clamp(1.4rem, 5vw, 2rem) 0 0;
}

.s-entro .h2 { text-align: left; margin-bottom: clamp(1.6rem, 6vw, 2.2rem); }
.s-entro p + p { margin-top: 1.05rem; }
.s-entro .entro-copy { max-width: 62%; margin-left: auto; margin-bottom: clamp(1.6rem, 6vw, 2.2rem); }
.s-entro .entro-copy p { opacity: 0.82; text-align: justify; text-align-last: right; }

/* ============================================================
   SECTION 6 — ESTO ES LO QUE HARIA
   ============================================================ */
.s-haria .h2 { margin-bottom: clamp(3.2rem, 11vw, 4.6rem); }

.row-scroll {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }

.row-card {
  position: relative;
  flex: 0 0 78%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
  overflow: hidden;
}
.row-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transition-line {
  position: relative;
  overflow: hidden;
  margin-top: clamp(2rem, 7vw, 2.8rem);
  padding: clamp(2.2rem, 9vw, 3.2rem) 0;
}
.transition-line { background: var(--ink); }
.transition-line .bg { position: absolute; top: -100px; left: 0; width: 100%; height: min(calc(100% + 200px), 170vh); object-fit: cover; z-index: 0; will-change: transform; }
.transition-line::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,16,0.42); z-index: 0; }
.transition-line p { position: relative; z-index: 1; color: var(--paper); text-align: justify; text-align-last: left; max-width: 30ch; margin: 0 auto; }

.wipe-reveal {
  clip-path: inset(0 100% 0 0);
  transform: none;
  opacity: 1;
  transition: clip-path 1.2s var(--ease);
}
.transition-line.is-visible .wipe-reveal { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  .wipe-reveal { clip-path: inset(0 0 0 0); transition: none; }
}

/* ============================================================
   SECTION 7 — LO QUE YA HE HECHO
   ============================================================ */
.s-hecho img.bg { filter: none; }
.s-hecho::after { background: linear-gradient(180deg, rgba(15,10,10,0.28) 0%, rgba(15,10,10,0.42) 55%, rgba(15,10,10,0.6) 100%); }
.s-hecho p { color: var(--paper); opacity: 0.9; }

.text-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(var(--gutter) * -1) clamp(2rem, 7vw, 2.8rem);
  padding: 0 var(--gutter) 0.4rem;
  scrollbar-width: none;
}
.text-slider::-webkit-scrollbar { display: none; }
.text-slide {
  flex: 0 0 82%;
  max-width: 320px;
  min-height: 320px;
  display: flex;
  align-items: center;
  background: var(--ink);
  padding: 2rem 1.6rem;
  scroll-snap-align: start;
}
.text-slide p { color: var(--paper); opacity: 0.9; }
.text-slide-img { padding: 0; display: block; }
.text-slide-img img { width: 100%; height: 100%; object-fit: cover; }
.s-hecho .h2 { color: var(--paper); margin-bottom: clamp(1.8rem, 7vw, 2.6rem); text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.s-hecho .stack-sm { margin-bottom: clamp(2rem, 7vw, 2.8rem); }
.s-hecho p.center { color: var(--paper); opacity: 0.92; text-align: justify; text-align-last: center; max-width: 34ch; margin: 0 auto; text-shadow: 0 1px 10px rgba(0,0,0,0.35); }


/* ============================================================
   SECTION 8 — POR QUE USTEDES (flat cream)
   ============================================================ */
.s-porque {
  background: var(--paper);
  color: #57524E;
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: center;
}
.s-porque .container { width: 100%; }
.s-porque .h2 { color: #57524E; text-align: center; text-align-last: center; margin-bottom: clamp(1.8rem, 7vw, 2.6rem); }
.s-porque p { color: #57524E; opacity: 0.9; }
.s-porque .glyph-divider { color: #57524E; margin-top: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 0; }

/* ============================================================
   SECTION 9 — bw photo + ASI QUE AQUI ESTOY
   ============================================================ */
.s-ecosistema {
  min-height: clamp(520px, 72vh, 680px);
  display: flex;
  align-items: center;
  padding-top: clamp(2.4rem, 9vw, 3.4rem);
  padding-bottom: clamp(2.4rem, 9vw, 3.4rem);
}
.s-ecosistema .container { width: 100%; }
.s-ecosistema::after { background: linear-gradient(180deg, rgba(15, 12, 12, 0.42) 0%, rgba(15, 12, 12, 0.55) 60%, rgba(15, 12, 12, 0.68) 100%); }
.s-ecosistema .glyph-divider { margin-bottom: clamp(1.6rem, 6vw, 2.2rem); opacity: 0.8; }
.s-ecosistema p { text-align: center; text-align-last: center; max-width: 46ch; margin: 0 auto; text-shadow: 0 1px 10px rgba(0,0,0,0.35); }
.s-ecosistema p + p { margin-top: 1.05rem; }

.s-aqui-estoy { padding-top: clamp(4rem, 15vw, 6rem); padding-bottom: clamp(4rem, 15vw, 6rem); }
.s-aqui-estoy .glyph-single { margin-bottom: clamp(1.6rem, 6vw, 2.4rem); }
.s-aqui-estoy .h2 { color: var(--paper); font-size: clamp(2rem, 8.6vw, 3rem); text-align: left; margin-bottom: clamp(2.2rem, 8vw, 3.2rem); text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.s-aqui-estoy .h2 .heart { font-family: var(--font-body); font-size: 0.7em; vertical-align: middle; }
.s-aqui-estoy p { opacity: 0.9; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.s-aqui-estoy p + p { margin-top: 1.8rem; }

/* ============================================================
   FINAL SECTION
   ============================================================ */
.s-final {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(clamp(3.2rem, 13vw, 5rem) + env(safe-area-inset-top));
  padding-bottom: calc(clamp(3rem, 11vw, 4.5rem) + env(safe-area-inset-bottom));
}
.section-seam {
  position: relative;
  height: 0;
  z-index: 5;
}
.section-seam .decor-moon {
  position: absolute;
  top: 0;
  right: max(var(--gutter), env(safe-area-inset-right));
  margin-top: -45px;
  width: clamp(70px, 20vw, 100px);
  opacity: 0.9;
  will-change: transform;
}
.portrait-collage {
  position: relative;
  width: clamp(200px, 55vw, 260px);
  margin: 0 auto clamp(2rem, 7vw, 2.8rem);
}
.portrait-collage .collage-portrait.solo {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 68%;
  margin: 0 auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 22%;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.s-final p.lede { color: var(--paper); opacity: 0.85; text-align: center; text-align-last: center; margin-bottom: clamp(1.8rem, 7vw, 2.6rem); }
.s-final .h1 { color: var(--paper); font-size: clamp(1.7rem, 7vw, 2.5rem); text-align: center; text-align-last: center; margin-bottom: clamp(2rem, 8vw, 2.8rem); }
.s-final .h1 span { font-style: italic; }

.cta-wrap { display: flex; justify-content: center; }
.seal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.95em 2em;
  border: 1px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.seal-cta:hover { background: var(--paper); color: var(--ink); }
.seal-cta .arrow { transition: transform 0.4s var(--ease); }
.seal-cta:hover .arrow { transform: translateX(4px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  opacity: 0.65;
  padding: 1.8rem max(var(--gutter), env(safe-area-inset-right)) calc(2.4rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: space-between;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-info a {
  color: var(--paper);
  text-decoration: none;
}
.footer-info a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — desktop refinements
   ============================================================ */
@media (min-width: 860px) {
  .row-card { flex: 0 0 30%; }
}
