/* =========================================================
   Propulse SLU — Concepto 07: Póster de estudio gráfico
   Paleta: papel #F7F5F0 · tinta #0A0A0A · amarillo #F2C230
   Tipografía: Anton (display) + Space Grotesk (cuerpo / UI)
   ========================================================= */

:root {
  --paper: #F7F5F0;
  --ink: #0A0A0A;
  --yellow: #F2C230;

  --focus: var(--ink);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --edge: 3px;
  --edge-thick: 6px;

  color-scheme: light;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
  z-index: 1000;
  border: var(--edge) solid var(--ink);
}

.skip-link:focus {
  left: var(--gutter);
  top: var(--gutter);
}

*:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: var(--edge) solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 0 var(--ink);
  transform: translate(0, 0);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover, .btn:focus-visible {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
  transform: translate(-4px, -4px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--ink); }

.btn-outline-paper {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}
.btn-outline-paper:hover, .btn-outline-paper:focus-visible {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 6px 6px 0 var(--yellow);
}

.btn-ink {
  background: var(--ink);
  color: var(--yellow);
  border-color: var(--ink);
}
.btn-ink:hover, .btn-ink:focus-visible {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-nav { padding: 0.75rem 1.35rem; font-size: 0.9rem; }

.lang-toggle { font-family: var(--font-body); letter-spacing: 0.02em; }
.lang-toggle .lang-option { opacity: 0.5; }
.lang-toggle .lang-option.is-active { opacity: 1; font-weight: 700; }
.lang-toggle:hover .lang-option,
.lang-toggle:focus-visible .lang-option { opacity: 1; }

.lang-toggle--mobile { margin-top: -1rem; }

.btn-big { min-height: 60px; font-size: 1.15rem; padding: 1.1rem 2.25rem; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:focus-visible { transform: none; }
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: var(--edge-thick) solid var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  letter-spacing: 0.01em;
}

.wordmark-dot { color: var(--yellow); }

.nav-links {
  display: flex;
  gap: clamp(1.1rem, 2vw, 2rem);
  font-weight: 600;
  font-size: 0.98rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  position: relative;
  padding: 0.35rem 0.1rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 3px;
  background: var(--yellow);
  transition: right 0.2s ease;
}

.nav-links a:hover::after, .nav-links a:focus-visible::after { right: 0; }

@media (prefers-reduced-motion: reduce) {
  .nav-links a::after { transition: none; }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  border: var(--edge) solid var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
}

.nav-toggle-icon {
  width: 18px;
  height: 2px;
  background: var(--paper);
  position: relative;
}
.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--paper);
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: 0;
  background: var(--ink);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: var(--gutter);
}

.nav-mobile[hidden] { display: none; }

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-mobile nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--paper);
}

.nav-mobile nav a:hover, .nav-mobile nav a:focus-visible { color: var(--yellow); }

/* ---------- Halftone texture ---------- */

.halftone {
  position: relative;
  isolation: isolate;
}

.halftone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, var(--dot-color, rgba(0,0,0,0.4)) 1.6px, transparent 1.7px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle at var(--dot-pos, 80% 20%), black 0%, transparent 65%);
  mask-image: radial-gradient(circle at var(--dot-pos, 80% 20%), black 0%, transparent 65%);
  opacity: var(--dot-opacity, 0.5);
  pointer-events: none;
}

.halftone > * { position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  --focus: var(--yellow);
  padding: clamp(3.5rem, 10vw, 7rem) var(--gutter) clamp(3rem, 8vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.06em;
  color: var(--yellow);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.05s both;
}

.hero-title {
  font-size: clamp(4.4rem, 18vw, 13.5rem);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
}

.hero-title-line {
  display: block;
  transform: scale(0.85) rotate(-3deg);
  opacity: 0;
  animation: heroPunch 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) 0.1s both;
}

.hero-title-line--offset {
  color: var(--yellow);
  margin-left: clamp(0.6rem, 6vw, 3rem);
  margin-top: -0.05em;
  animation-delay: 0.22s;
}

@keyframes heroPunch {
  0% { transform: scale(0.8) rotate(-6deg); opacity: 0; }
  55% { transform: scale(1.05) rotate(1.5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

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

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--yellow);
  margin-bottom: 1.1rem;
  max-width: 46rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s both;
}

.hero-copy {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 38rem;
  color: var(--paper);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.6s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title-line, .hero-tagline, .hero-copy, .hero-ctas {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Sections (generic) ---------- */

.section {
  padding: clamp(3.5rem, 9vw, 7rem) var(--gutter);
  position: relative;
}

.section > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

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

.section--black { background: var(--ink); color: var(--paper); --focus: var(--yellow); }

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

.section-title {
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-title--paper { color: var(--paper); }

.section-title--huge { font-size: clamp(2.8rem, 10vw, 7.5rem); }

/* ---------- Reveal-on-scroll blocks ---------- */

/* Fixed-distance fade + slide, independent of how tall the section is.
   (An earlier version animated a clip-path across the panel's full
   height, which for a 1500px+ tall section made the visible motion
   inside the viewport tiny and, with an ease-in-out curve, imperceptibly
   slow to start — effectively invisible in practice. Opacity/transform
   don't have that problem: the same 0.7s move plays regardless of the
   panel's height.) */

.reveal-panel {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-block.in-view .reveal-panel {
  opacity: 1;
  transform: translateY(0);
}

.reveal-block .section-title,
.reveal-block .poster-list,
.reveal-block .method-list,
.reveal-block .founder-grid {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease 0.18s, transform 0.6s ease 0.18s;
}

.reveal-block.in-view .section-title,
.reveal-block.in-view .poster-list,
.reveal-block.in-view .method-list,
.reveal-block.in-view .founder-grid {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-panel,
  .reveal-block .section-title,
  .reveal-block .poster-list,
  .reveal-block .method-list,
  .reveal-block .founder-grid {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Poster list (Qué hacemos / Problemas / Enfoque / Áreas) ---------- */

.poster-list {
  display: flex;
  flex-direction: column;
}

.poster-list > li {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-top: 3px solid currentColor;
}

.poster-list > li:last-child { border-bottom: 3px solid currentColor; }

.poster-list h3 {
  font-size: clamp(1.8rem, 4.2vw, 2.75rem);
  line-height: 1;
  margin-bottom: 0.65rem;
}

.poster-list p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 56ch;
  line-height: 1.55;
}

.poster-list--plain > li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1.25rem;
}

.poster-list--plain > li::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-top: 0.4rem;
  background: currentColor;
  flex-shrink: 0;
}

.poster-list--plain p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.15;
  max-width: 42ch;
}

.poster-list--paper { color: var(--paper); }

/* ---------- Methodology ---------- */

.method-list {
  display: grid;
  gap: 0;
}

.method-list > li {
  display: grid;
  grid-template-columns: clamp(4.5rem, 12vw, 8rem) 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.25rem) 0;
  border-top: 3px solid var(--paper);
}

.method-list > li:last-child { border-bottom: 3px solid var(--paper); }

.method-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 0.85;
  color: var(--yellow);
}

.method-body h3 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.method-body p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 56ch;
  color: var(--paper);
  opacity: 0.92;
}

/* ---------- Founder ---------- */

.founder-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.founder-grid--single {
  max-width: 68ch;
}

.founder-name {
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  margin-bottom: 1.25rem;
}

.founder-bio {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.founder-quote {
  margin: 0;
  border-left: var(--edge-thick) solid var(--yellow);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}

.founder-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  margin-bottom: 0.85rem;
}

.founder-quote cite {
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

/* ---------- Contact ---------- */

.section--contact {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(4.5rem, 12vw, 9rem);
  padding-bottom: clamp(4.5rem, 12vw, 9rem);
}

.section--contact .section-title { margin-bottom: 1.25rem; }

.contact-copy {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  --focus: var(--yellow);
  padding: clamp(2rem, 5vw, 3rem) var(--gutter);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a:hover, .footer-links a:focus-visible { color: var(--yellow); }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .method-list > li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .poster-list--plain > li {
    grid-template-columns: auto 1fr;
  }

  .founder-grid { gap: 1.75rem; }
}

@media (max-width: 420px) {
  .hero-title-line--offset { margin-left: 0.3rem; }
}
