/* =============================================================
   WeSurf Agro — fonts (self-hosted)
   ============================================================= */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('lib/fonts/newsreader-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('lib/fonts/newsreader-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('lib/fonts/public-sans.woff2') format('woff2');
}

/* =============================================================
   Tokens — Manual de Marca WeSurf v3
   ============================================================= */
:root[data-theme="light"] {
  --bg: #F6F3EC;
  --text: #14120F;
  --text-secondary: #6b6558;
  --accent: #B4502E;
  --surface-dark: #16283A;
  --surface: #ffffff;
  --border: rgba(20,18,15,.12);
  --border-soft: rgba(20,18,15,.08);
  --card-neutral-bg: #EDEAE2;
}
:root[data-theme="dark"] {
  --bg: #14120F;
  --text: #F6F3EC;
  --text-secondary: #C9C2B4;
  --accent: #B4502E;
  --surface-dark: #0d0a08;
  --surface: #1b1814;
  --border: rgba(246,243,236,.14);
  --border-soft: rgba(246,243,236,.08);
  --card-neutral-bg: #1f1c17;
}
:root {
  --font-display: 'Newsreader', serif;
  --font-sans: 'Public Sans', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
  --pad: 24px;
}
@media (min-width: 1024px) { :root { --pad: 64px; } }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
  /* `clip`, not `hidden`: per the CSS Overflow spec, an axis set to
     `hidden` (or `auto`/`scroll`) forces the OTHER axis to compute as
     `auto` when it would otherwise be `visible` — silently turning body
     itself into its own internal scroll container, decoupled from
     window.scrollY. That broke every window.scrollY-based scroll listener
     on this page (nav's glass-on-scroll swap, the dots-nav active state,
     GSAP ScrollTrigger) and felt like scrolling was "stuck". `clip` is
     exempt from that coercion — same sitewide convention as styles.css's
     own `body { overflow-x: clip }`. */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg);
  padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

h1, h2, h3, blockquote, p { margin: 0; }

.h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  max-width: 16ch;
}
.lede {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--text-secondary);
  margin-top: 18px;
}
.lede-sm {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 52ch;
}
.legal-sm {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 60ch;
}
.label-sm {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.closing-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  margin-top: 40px;
  max-width: 22ch;
}

/* wave signature mark — a curve that rises once and returns to baseline */
.wave-mark {
  display: inline-block;
  width: 34px; height: 16px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 16'><path d='M1 13 C 7 13, 9 3, 15 3 S 23 13, 33 13' fill='none' stroke='%23B4502E' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  margin-right: 10px;
}
.wave-mark-lg { width: 64px; height: 30px; margin: 0 0 24px; }

.eyebrow {
  display: flex; align-items: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-logo { display: block; height: 44px; }
.site-logo img { height: 100%; width: auto; }
@media (min-width: 1024px) { .site-logo { height: 60px; } }
.site-logo .logo-white { display: none; }
:root[data-theme="dark"] .site-logo .logo-black { display: none; }
:root[data-theme="dark"] .site-logo .logo-white { display: block; }

.header-toggles { display: flex; align-items: center; gap: 8px; }
.toggle-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.toggle-theme { width: 38px; padding: 0; justify-content: center; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

/* header sits over a permanently-dark section (hero photo / dark cierre band):
   force light logo + overlay-contrast bar regardless of the light/dark theme setting */
.site-header.header-on-dark {
  background: rgba(20,18,15,.45);
  border-bottom-color: rgba(246,243,236,.14);
}
.site-header.header-on-dark .toggle-btn {
  background: rgba(20,18,15,.35);
  border-color: rgba(246,243,236,.35);
  color: #F6F3EC;
}
.site-header.header-on-dark .site-logo .logo-black { display: none; }
.site-header.header-on-dark .site-logo .logo-white { display: block; }

/* =============================================================
   Section layout
   ============================================================= */
.deck { width: 100%; }
.section {
  position: relative;
  min-height: 100vh;
  scroll-margin-top: var(--nav-h, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 60px;
}
@media (min-width: 1024px) {
  html { scroll-snap-type: y proximity; }
  .section { scroll-snap-align: start; }
}
.section-inner { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 var(--pad); }
.section-inner-wide { max-width: 1180px; }

[data-reveal] { opacity: 1; }
html:not(.no-js) [data-reveal] { opacity: 0; transform: translateY(24px); }
html [data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) [data-reveal] { opacity: 1; transform: none; }
}

.badge-pill {
  display: inline-block;
  margin-top: 26px;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 14px;
}

.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid-light { background: #F6F3EC; color: #14120F; }

/* =============================================================
   1 — Hero
   ============================================================= */
.s-hero { padding: 0; overflow: hidden; justify-content: flex-end; }
.hero-media { position: absolute; inset: 0; transform: scale(1.15); }
.hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: hero-crossfade 14s ease-in-out infinite;
}
.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: -7s; }
@keyframes hero-crossfade {
  0%, 39% { opacity: 1; }
  50%, 89% { opacity: 0; }
  100% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 1; }
  .hero-slide-2 { opacity: 0; }
}
/* semi-transparent layer over the slideshow so hero copy stays legible on either photo */
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.45) 0%, rgba(20,18,15,.54) 45%, rgba(20,18,15,.78) 100%); }
.hero-inner { position: relative; z-index: 2; padding-bottom: 60px; color: #F6F3EC; }
.s-hero .eyebrow { color: #E3D9C9; }
.s-hero .h1 { color: #F6F3EC; }
.s-hero .lede { color: #E3D9C9; }
.s-hero .badge-pill { border-color: rgba(246,243,236,.4); color: #F6F3EC; }
.hero-footer {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 0 var(--pad) 32px;
  color: #E3D9C9; font-size: 13px; letter-spacing: .04em;
}
.hero-footer-logo { height: 44px; width: auto; }
@media (min-width: 1024px) { .hero-footer-logo { height: 58px; } }
.hero-footer-logo.logo-black { display: none; }

/* =============================================================
   2 — Cómo funciona el canje
   ============================================================= */
.como-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-top: 56px;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.como-col-right { text-align: right; }
.como-body { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); margin-top: 4px; }
.como-badge {
  display: flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 24px;
  border-radius: 100px;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 719px) {
  .como-grid { grid-template-columns: 1fr; text-align: left; gap: 24px; }
  .como-col-right { text-align: left; }
  .como-badge { justify-self: start; }
}
.quote-block { margin-top: 48px; max-width: 46ch; }
.quote-block p { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 3vw, 32px); line-height: 1.35; }

/* =============================================================
   3 — El circuito del canje
   ============================================================= */
.circuito-diagram { margin-top: 56px; display: flex; flex-direction: column; gap: 0; max-width: 560px; }
.actor {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  padding: 20px 22px;
}
.actor-dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.actor-dark .actor-desc, .actor-dark .label-sm { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.actor-name { font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.actor-desc { font-size: 14px; color: var(--text-secondary); max-width: 32ch; }
.flow { display: flex; align-items: center; gap: 14px; padding: 14px 0 14px 22px; }
.flow-line { width: 1px; height: 28px; background: var(--border); flex: none; }
.flow-label { font-size: 13px; color: var(--text-secondary); }

/* =============================================================
   4/7 — Compare cards
   ============================================================= */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
@media (max-width: 719px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { border-radius: 6px; padding: 32px; }
.compare-neutral { background: var(--card-neutral-bg); }
.compare-dark { background: var(--text); color: var(--bg); }
.compare-dark .label-sm { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plain-list, .check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.plain-list li, .check-list li { font-size: 15px; line-height: 1.5; }
.check-list li { padding-left: 26px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.flow-eq { font-family: var(--font-display); font-size: 26px; margin-top: 6px; }
.option-note { font-size: 14px; color: var(--text-secondary); margin-top: 10px; }
.compare-dark .option-note { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* =============================================================
   5/8 — Proyectos grid
   ============================================================= */
.proyectos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
@media (max-width: 719px) { .proyectos-grid { grid-template-columns: 1fr; } }
.proyecto-card h3 { font-family: var(--font-display); font-size: 26px; margin: 18px 0 16px; }
.proyecto-media { aspect-ratio: 4/3; overflow: hidden; border-radius: 6px; }
.proyecto-media img { width: 100%; height: 100%; object-fit: cover; }
.proyecto-card dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.proyecto-card dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 3px; }
.proyecto-card dd { margin: 0; font-size: 14px; line-height: 1.55; }

.proyectos-grid-op .proyecto-card { border: 1px solid var(--border); border-radius: 8px; padding: 22px; position: relative; }
.op-badge { position: absolute; top: 16px; right: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 100px; padding: 6px 14px; font-size: 12px; }
.op-address { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin: 4px 0 12px; }
.op-desc { font-size: 15px; margin-bottom: 16px; }

/* =============================================================
   6 — Plan de pagos (timeline)
   ============================================================= */
.timeline { margin-top: 56px; position: relative; padding-top: 30px; }
.timeline::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--border); }
.timeline-track { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-step { position: relative; flex: 1; min-width: 110px; }
.t-dot { position: absolute; top: -35px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--text-secondary); }
.t-step.is-first .t-dot { background: var(--accent); }
.t-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.t-value { font-family: var(--font-display); font-size: 22px; margin: 4px 0; }
.t-tag { font-size: 12px; color: var(--text-secondary); }

/* Below ~720px the 5 steps wrap onto multiple rows, and the single top line + per-step
   "-35px" dot offset (designed for one row) no longer lines up with wrapped rows — switch
   to a vertical timeline instead of trying to keep a broken horizontal one. */
@media (max-width: 719px) {
  .timeline { padding-top: 4px; }
  .timeline::before { display: none; }
  .timeline-track { flex-direction: column; flex-wrap: nowrap; gap: 28px; position: relative; padding-left: 22px; }
  .timeline-track::before {
    content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px;
    width: 1px; background: var(--border);
  }
  .t-step { min-width: 0; }
  .t-dot { top: 4px; left: -22px; }
}
.banner-dark { background: var(--text); color: var(--bg); border-radius: 6px; padding: 28px 32px; margin-top: 48px; }
.banner-dark p { font-family: var(--font-display); font-style: italic; font-size: clamp(18px, 2.2vw, 24px); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag-pill { border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px; font-size: 13px; }

/* =============================================================
   9 — Ejemplos de canje
   ============================================================= */
.ejemplos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
@media (max-width: 719px) { .ejemplos-grid { grid-template-columns: 1fr; } }
.ejemplo-card { border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.ejemplo-title { font-family: var(--font-display); font-size: 22px; }
.ejemplo-unit { font-size: 13px; color: var(--text-secondary); margin: 4px 0 20px; }
.ejemplo-row-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-secondary); margin: 16px 0 8px; }
.grain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.grain-grid span b { font-family: var(--font-sans); }
.grain-grid div { font-size: 14px; display: flex; justify-content: space-between; border-bottom: 1px dashed var(--border-soft); padding-bottom: 4px; }
.ejemplo-status { margin-top: 20px; font-size: 13px; color: var(--text-secondary); }

/* =============================================================
   10 — Tablas de precios
   ============================================================= */
.table-wrap { margin-top: 44px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.price-table th, .price-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border-soft); }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table thead th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.price-table tr.row-total td { font-weight: 700; border-top: 1px solid var(--border); border-bottom: none; }
.price-table tbody tr:last-child td { border-bottom: none; }

/* =============================================================
   11 — Cierre
   ============================================================= */
.s-cierre { background: var(--surface-dark); color: #F6F3EC; text-align: center; overflow: hidden; }
.s-cierre .section-inner { display: flex; flex-direction: column; align-items: center; }
.s-cierre .eyebrow-onlight { color: #C9C2B4; justify-content: center; }
.h2-onlight { color: #F6F3EC; max-width: 18ch; }
.contact-line { margin-top: 24px; font-size: 14px; color: #C9C2B4; }
.legal-footer { position: relative; z-index: 2; padding: 28px var(--pad) 40px; text-align: center; }
.legal-footer p { font-size: 13px; line-height: 1.5; color: #8f8a7d; max-width: 70ch; margin: 0 auto; }

/* EMDAI studio credit — same pattern as the rest of the WeSurf site (and Societarios) */
.emdai-credits { background: #000; padding: 16px 20px; text-align: center; }
.emdai-credits__link {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11px/1 var(--font-sans); letter-spacing: .02em;
  color: rgba(246,243,236,.45);
  transition: color .2s var(--ease-out);
}
.emdai-credits__link:hover, .emdai-credits__link:focus-visible { color: #F6F3EC; }
.emdai-credits__logo { height: 16px; width: auto; }

/* =============================================================
   WhatsApp float
   ============================================================= */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .25s var(--ease-out);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* =============================================================
   Sitewide nav() (2026-09-23) — replaces this deck's own bespoke
   `.site-header` (single WeSurf Desarrollos Sustentables logo, no
   dark/white swap). Its CTA link carries a bare `.btn` class from
   the shared styles.css, which this file's own heavier `.btn` rule
   (margin-top:32px, used by this deck's own CTAs) would otherwise
   clobber once loaded after it — restored narrowly, scoped to the
   nav/mobile-menu only.
   ============================================================= */
.site-nav .btn, .mobile-menu .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 0; border-radius: 999px; font: 600 14px/1 var(--font-sans);
  padding: 15px 26px; text-decoration: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background-color .3s var(--ease-out);
  white-space: nowrap;
}
.site-nav .btn:hover, .mobile-menu .btn:hover { transform: translateY(-2px); }
@media (min-width: 960px) { .site-nav .btn, .mobile-menu .btn { padding: 18px 34px; font-size: 15px; } }

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