/* EMFIT — executive dark. Tokens first, sections in page order. */

@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('../fonts/BarlowCondensed-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0A0A0B;
  --surface: #0E0E10;
  --card: #141416;
  --text: #F5F3F0;
  --body: #C9C6C1;
  --muted: #8F8C88;
  --accent: #E8232B;
  --hairline: rgba(245, 243, 240, 0.12);
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --pad: clamp(20px, 4.5vw, 64px);
  --nav-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, .display {
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.75rem); margin-bottom: 22px; }
h2 em, h1 em { font-style: normal; color: var(--accent); }

section { padding: clamp(64px, 8vw, 110px) var(--pad); border-top: 1px solid var(--hairline); }
.kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.lede { color: var(--body); max-width: 62ch; }
.alt { background: var(--surface); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 18px 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.btn--ghost { background: transparent; border: 1px solid rgba(245, 243, 240, 0.4); }
.btn--ghost:hover { color: var(--text); border-color: var(--text); }
.btn--pulse { animation: pulse-red 2.4s ease-in-out infinite; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
  padding: 0 var(--pad);
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.brand { line-height: 1; }
.brand strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: 0.01em;
}
.brand strong em { font-style: normal; color: var(--accent); }
.brand .bar { width: 56px; height: 3px; background: var(--accent); margin: 3px 0; }
.brand small {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.32em;
  color: var(--muted);
}
.nav__cta {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  /* Hero + sticky nav together fill exactly one screen. svh tracks the
     real visible height on phones (URL bar in and out); vh is the fallback. */
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  border-top: 0;
  padding: 0;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: clamp(48px, 7vw, 80px) var(--pad);
}
.hero__kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.75rem, 6.5vw, 4.875rem); }
.hero__hook { font-weight: 600; font-size: 1.1875rem; }
.hero__media { position: relative; overflow: hidden; min-height: 0; }
.hero__media img {
  /* Out of flow so its intrinsic height can't stretch the hero past the viewport. */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.85);
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 11, 0.25) 40%, rgba(10, 10, 11, 0) 70%);
}

/* Ticker */
.ticker {
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  background: var(--accent);
  color: #fff;
}
.ticker--dark { background: var(--bg); color: var(--accent); }
.ticker__track {
  display: flex;
  gap: 56px;
  width: max-content;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
}

/* Pain list */
.pain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; margin-top: 44px; }
.pain li { list-style: none; padding: 17px 0; border-top: 1px solid var(--hairline); }
.pain li:last-child { border-bottom: 1px solid var(--hairline); }
.verdict { margin-top: 52px; max-width: 720px; }
.verdict p {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.1;
}
.verdict p + p { color: var(--accent); }

/* Transformations */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head aside { color: var(--muted); font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cambios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.cambio {
  border: 1px solid var(--hairline);
  background: var(--card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cambio:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
/* Ratio boxes via percentage padding, not aspect-ratio: this must render
   identically everywhere, and padding-vs-width has no failure modes. */
.cambio__ph { position: relative; height: 0; padding-top: 100%; overflow: hidden; }
.cambio__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
/* Three columns: cards are pre-sorted by ratio, so the first row shows the
   4:5 collages uncropped and the second row barely trims the squarish ones. */
@media (min-width: 981px) {
  /* Uniform 4:5 grid: the named collages are mostly 4:5; the square-ish
     pair only loses a sliver of each side and the story-format one is
     composed to survive a centered crop. */
  .cambio__ph { padding-top: 125%; }
  .cambio__ph img { object-position: center; }
}
.cambio figcaption { padding: 14px 18px 16px; }
.cambio__id {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}
.cambio__id em { font-style: normal; color: var(--accent); }
.cambio figcaption p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; margin-top: 6px; }
.section-cta { margin-top: 44px; text-align: center; }
.tagline { margin-top: 30px; color: var(--body); }

/* Logic */
.logic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 44px 0 52px; }
.logic-grid div {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.2vw, 2rem);
  text-transform: uppercase;
}
.wins { display: flex; flex-wrap: wrap; gap: 12px 38px; font-weight: 600; font-size: 1.1875rem; }
.wins span:last-child { color: var(--muted); font-weight: 500; }

/* Formula */
.formula {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 4.125rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.formula em { font-style: normal; color: var(--accent); }
.formula-note { font-weight: 600; font-size: 1.1875rem; margin-top: 14px; }

/* Method */
.method { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
.method article { border-top: 1px solid var(--hairline); padding-top: 26px; }
.method h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.625rem, 2.6vw, 2.375rem);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.method p { color: var(--body); }
.method .claim { color: var(--text); font-weight: 600; margin-top: 16px; }
.efficiency { margin-top: 84px; text-align: center; }
.efficiency p:first-child, .efficiency p:nth-child(2) {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}
.efficiency p:nth-child(2) { color: var(--accent); }
.efficiency .lede { margin: 20px auto 0; max-width: 560px; }

/* Who */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 64px; margin-top: 44px; }
.who li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.who svg { flex-shrink: 0; margin-top: 5px; }
.who-close { margin-top: 44px; font-weight: 600; font-size: 1.1875rem; }
.who-close em { font-style: normal; color: var(--accent); }

/* Testimonials */
.testis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.testi video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--hairline);
}
.testi p { margin-top: 12px; color: var(--muted); font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); border-top: 1px solid var(--hairline); padding: 0; }
.about__media { position: relative; min-height: 420px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.about__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 35%);
}
.about__copy {
  padding: clamp(64px, 8vw, 110px) var(--pad) clamp(48px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about__copy h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.5rem); }
.about__copy .claim {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.3vw, 1.875rem);
  line-height: 1.15;
}
.about__copy .claim em { font-style: normal; color: var(--accent); }
.own-change { display: flex; gap: 20px; align-items: center; margin-top: 8px; }
.own-change img { width: 180px; height: 180px; object-fit: cover; filter: saturate(0.85); }
.own-change p { color: var(--muted); font-size: 0.875rem; max-width: 300px; }
.ig-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(245, 243, 240, 0.2);
  padding: 12px 20px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 0.9375rem;
}
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hairline); }
.stats div { padding: 36px 28px; border-right: 1px solid var(--hairline); }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 3.25rem);
  line-height: 1;
  color: var(--accent);
}
.stats b.small { font-size: clamp(1.25rem, 2vw, 1.875rem); color: var(--text); line-height: 1.1; padding-top: 8px; }
.stats span { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 8px; }

/* Process */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); padding: 0; }
.process__copy { padding: clamp(64px, 8vw, 110px) var(--pad); }
.step { display: flex; gap: 26px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.step:last-of-type { border-bottom: 1px solid var(--hairline); }
.step b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent);
  width: 52px;
  flex-shrink: 0;
}
.step h3 { font-size: 1.1875rem; font-weight: 600; }
.step p { color: var(--body); }
.process__closer { margin-top: 34px; font-weight: 600; font-size: 1.1875rem; }
.process__closer em { font-style: normal; color: var(--accent); }
.process__media { position: relative; overflow: hidden; min-height: 420px; }
.process__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.7) brightness(0.85);
}
.process__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(14, 14, 16, 0) 45%);
}

/* Closing */
.close { position: relative; overflow: hidden; text-align: center; }
.close > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.close::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Heavy on purpose: the photo is texture, the copy is the point. Checked
     against the brightest pixels (face, shirt logo), not the average. */
  background: linear-gradient(0deg, rgba(10, 10, 11, 0.97) 0%, rgba(10, 10, 11, 0.88) 50%, rgba(10, 10, 11, 0.76) 100%);
  z-index: 1;
}
.close__in {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px) 0;
}
.close__kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.close h2 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); max-width: 20ch; margin-bottom: 0; }
.close__ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.close__note { color: var(--muted); font-size: 0.875rem; }
.close__final {
  margin-top: 44px;
  border-top: 1px solid rgba(245, 243, 240, 0.2);
  padding-top: 38px;
  max-width: 760px;
}
.close__final p:first-child {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.05;
  text-transform: uppercase;
}
.close__final em { font-style: normal; color: var(--accent); }
.close__final span { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 14px; }

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px var(--pad);
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.8125rem;
}
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-wa 2s ease-in-out infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wa-float.on { opacity: 1; pointer-events: auto; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 35, 43, 0.45); } 50% { box-shadow: 0 0 0 16px rgba(232, 35, 43, 0); } }
@keyframes pulse-wa { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 64px var(--pad) 96px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--body); margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 34px; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: minmax(170px, 1fr) auto; }
  .hero__media { order: -1; height: 100%; min-height: 170px; }
  .hero__media img { object-position: center 18%; }
  .hero__copy { padding-top: 26px; padding-bottom: 32px; gap: 16px; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3rem); }
  .hero .lede { font-size: 0.9375rem; line-height: 1.55; }
  .hero__hook { font-size: 1.0625rem; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0.15) 55%); }
  .cambios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method { grid-template-columns: 1fr; gap: 40px; }
  .testis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__media { min-height: clamp(340px, 78vw, 600px); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div:nth-child(3) { border-right: 0; }
  .stats div:nth-child(n + 4) { border-top: 1px solid var(--hairline); }
  .process { grid-template-columns: 1fr; }
  .process__media { min-height: 320px; }
}
@media (max-width: 620px) {
  .pain, .who, .cambios, .testis { grid-template-columns: 1fr; }
  /* One card per row: show each before/after collage whole, no crop. */
  .cambio__ph { height: auto; padding-top: 0; }
  .cambio__ph img { position: static; height: auto; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { border-right: 0; }
  .stats div:nth-child(odd) { border-right: 1px solid var(--hairline); }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .btn { width: 100%; }
  .close__ctas { width: 100%; }
  /* Cover-scaling blows the face up right behind the copy on phones:
     bury the photo further so the section reads as dark texture. */
  .close::before { background: linear-gradient(0deg, rgba(10, 10, 11, 0.98) 0%, rgba(10, 10, 11, 0.94) 50%, rgba(10, 10, 11, 0.88) 100%); }
  .close h2 { font-size: clamp(2.1rem, 9vw, 2.75rem); }
  .nav__cta span { display: none; }
  .nav__cta::after { content: 'Valoración'; }
}

/* Short desktop viewports: keep the whole hero (CTA included) above the fold. */
@media (min-width: 981px) and (max-height: 900px) {
  .hero__copy { gap: 18px; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
  .hero .lede { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track, .btn--pulse, .wa-float { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
