/* ══════════════════════════════════════════════════════════════════════
   AILEC WEB V2
   Brand: Ink Black #011B29 · Parchment #F4F2EC · Teal #0D4F5E
          Gold #FFEF94 · Silver #CAD1D3
   Display: Georgia serif · Body: DM Sans
   ══════════════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }

/* ── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --ink:       #011B29;
  --parchment: #F4F2EC;
  --teal:      #0D4F5E;
  --gold:      #FFEF94;
  --silver:    #CAD1D3;
  --silver-dim: rgba(202,209,211,0.5);
  --font-d:    Georgia, 'Times New Roman', serif;
  --font-b:    'DM Sans', system-ui, sans-serif;
  --scroll-h:  1000vh;
}

/* ── BASE ────────────────────────────────────────────────────────────────── */
body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════
   LOADER
   ══════════════════════════════════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transition: opacity 0.5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }

.loader-logo {
  font-family: var(--font-d);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.04em;
}

#loader-bar {
  width: clamp(160px, 30vw, 280px);
  height: 1px;
  background: rgba(13,79,94,0.15);
  position: relative;
}
#loader-bar-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--teal);
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(13,79,94,0.5);
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

/* Default scrolled state (dark bg) */
.site-header.scrolled {
  background: rgba(1,27,41,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(202,209,211,0.08);
}

/* On-hero state: transparent over parchment */
.site-header.on-hero .nav-logo { color: var(--teal); }
.site-header.on-hero .nav-links a { color: rgba(1,27,41,0.55); }
.site-header.on-hero .nav-links a:hover { color: var(--teal); }
.site-header.on-hero .nav-cta {
  border-color: rgba(13,79,94,0.3) !important;
  color: var(--teal) !important;
}
.site-header.on-hero .nav-cta:hover {
  background: rgba(13,79,94,0.08) !important;
  border-color: var(--teal) !important;
}
.site-header.on-hero .nav-toggle span { background: var(--teal); }

.site-nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: -0.03em;
  margin-right: auto;
  transition: color 0.3s ease;
}
.nav-logo:hover { color: var(--gold); }
.site-header.on-hero .nav-logo:hover { color: var(--teal); opacity: 0.7; }

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.nav-links a {
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--silver);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--parchment); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(202,209,211,0.35);
  border-radius: 2px;
  color: var(--parchment) !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
}
.nav-cta:hover {
  background: rgba(255,239,148,0.12) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  transition: background 0.3s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO PARCHMENT — fixed, fades on scroll
   ══════════════════════════════════════════════════════════════════════════ */
.hero-parchment {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-ailec {
  font-family: var(--font-d);
  font-size: clamp(6rem, 20vw, 24rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
}

.hero-tagline {
  font-family: var(--font-b);
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(1,27,41,0.75);
  margin-top: 1.75rem;
  letter-spacing: 0.01em;
}

.hero-sub {
  font-family: var(--font-b);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(1,27,41,0.45);
  margin-top: 0.75rem;
  letter-spacing: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-hint-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(13,79,94,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-hint-label {
  font-family: var(--font-b);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(13,79,94,0.4);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK OVERLAY — calculadora / ROI section
   ══════════════════════════════════════════════════════════════════════════ */
#dark-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;
  background: #000d16;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* ══════════════════════════════════════════════════════════════════════════
   MARQUEE — horizontal text slide
   ══════════════════════════════════════════════════════════════════════════ */
.marquee-wrap {
  position: fixed;
  bottom: 3.5rem;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.marquee-text {
  font-family: var(--font-d);
  font-size: clamp(4rem, 10vw, 12rem);
  font-weight: 400;
  color: rgba(244,242,236,0.05);
  white-space: nowrap;
  line-height: 1;
  will-change: transform;
}

/* ── Section images (mobile only — desktop uses background-image) ── */
.section-img { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL CONTAINER
   ══════════════════════════════════════════════════════════════════════════ */
#scroll-container {
  position: relative;
  height: var(--scroll-h);
  z-index: 5;
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL SECTIONS — base
   ══════════════════════════════════════════════════════════════════════════ */
.scroll-section {
  position: absolute;
  width: 100%;
  transform: translateY(-50%);
}

/* ── Side-aligned zones ── */
.align-left {
  padding-left: clamp(2rem, 6vw, 8vw);
  padding-right: 55vw;
  background: linear-gradient(to right, rgba(1,27,41,0.97) 54%, transparent 78%);
}
.align-right {
  padding-left: 55vw;
  padding-right: clamp(2rem, 6vw, 8vw);
  background: linear-gradient(to left, rgba(1,27,41,0.97) 54%, transparent 78%);
}
.align-left .section-inner,
.align-right .section-inner {
  max-width: 40vw;
}

/* Services section: teal gradient */
.section-services.align-right {
  background: linear-gradient(to left, rgba(13,79,94,0.97) 54%, transparent 78%);
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION TYPOGRAPHY
   ══════════════════════════════════════════════════════════════════════════ */
.section-label {
  display: block;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.5rem;
}

.section-heading {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4.5vw, 6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--parchment);
  margin: 0.75rem 0 1.5rem;
}

.section-body {
  font-family: var(--font-b);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--silver);
}

.section-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255,239,148,0.4);
  transition: border-color 0.2s ease;
}
.section-link:hover { border-color: var(--gold); }

/* ── Problem section: image as full background ── */
.section-problem.align-left {
  background-image:
    linear-gradient(to bottom, rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to top,    rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to right,
      rgba(1,27,41,0.97) 32%,
      rgba(1,27,41,0.80) 48%,
      rgba(1,27,41,0.30) 65%,
      rgba(1,27,41,0.05) 82%
    ),
    url('../img/problem_section.png');
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 100%, 0 0, center right;
  background-repeat: no-repeat;
  min-height: 60vh;
}

/* ── Value section: image as full background ── */
.section-value.align-left {
  background-image:
    linear-gradient(to bottom, rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to top,    rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to right,
      rgba(1,27,41,0.97) 32%,
      rgba(1,27,41,0.80) 48%,
      rgba(1,27,41,0.30) 65%,
      rgba(1,27,41,0.05) 82%
    ),
    url('../img/value.jpg');
  background-size: 100% 100%, 100% 100%, 100% 100%, 120% auto;
  background-position: 0 0, 0 100%, 0 0, 25% 50%;
  background-repeat: no-repeat;
  min-height: 60vh;
}

/* ── How section: image as full background ── */
.section-how.align-right {
  background-image:
    linear-gradient(to bottom, rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to top,    rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to left,
      rgba(1,27,41,0.97) 32%,
      rgba(1,27,41,0.80) 48%,
      rgba(1,27,41,0.30) 65%,
      rgba(1,27,41,0.05) 82%
    ),
    url('../img/what_we_do.jpg');
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 100%, 0 0, center left;
  background-repeat: no-repeat;
  min-height: 60vh;
}

/* ── Cost section: image as full background ── */
.section-cost.align-right {
  background-image:
    linear-gradient(to bottom, rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to top,    rgba(1,27,41,1) 0%, transparent 13%),
    linear-gradient(to left,
      rgba(1,27,41,0.97) 32%,
      rgba(1,27,41,0.80) 48%,
      rgba(1,27,41,0.30) 65%,
      rgba(1,27,41,0.05) 82%
    ),
    url('../img/cost.jpg');
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 100%, 0 0, center left;
  background-repeat: no-repeat;
  min-height: 60vh;
}

/* ══════════════════════════════════════════════════════════════════════════
   SERVICE CATEGORIES
   ══════════════════════════════════════════════════════════════════════════ */
.service-categories {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
}

.svc-cat {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(202,209,211,0.12);
}
.svc-cat:first-child { border-top: 1px solid rgba(202,209,211,0.12); }

.svc-num {
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gold);
  min-width: 2rem;
  padding-top: 2px;
}

.svc-title {
  font-family: var(--font-d);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 400;
  color: var(--parchment);
  display: block;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.svc-desc {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--silver);
  margin: 0;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   ROI CALCULATOR — dark overlay section
   ══════════════════════════════════════════════════════════════════════════ */
.section-roi {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
}

.roi-inner {
  width: 100%;
  max-width: 1100px;
}

.roi-header {
  margin-bottom: 3rem;
}

.roi-heading {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--parchment);
  margin: 0.75rem 0 0.75rem;
}

.roi-subheading {
  font-family: var(--font-b);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 300;
  color: var(--silver-dim);
  margin-top: 0.5rem;
}

.roi-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: start;
}

/* ── Inputs ── */
.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.roi-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.roi-label {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
}

.roi-helper {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(202,209,211,0.4);
  line-height: 1.4;
  margin: 0;
}

.roi-input {
  margin-top: 0.5rem;
  background: rgba(244,242,236,0.04);
  border: 1px solid rgba(202,209,211,0.15);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--parchment);
  outline: none;
  width: 100%;
  letter-spacing: -0.02em;
  transition: border-color 0.2s ease, background 0.2s ease;
  -moz-appearance: textfield;
}
.roi-input::-webkit-outer-spin-button,
.roi-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.roi-input::placeholder { color: rgba(202,209,211,0.2); }
.roi-input:focus {
  border-color: rgba(255,239,148,0.35);
  background: rgba(244,242,236,0.07);
}

/* ── Results ── */
.roi-results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 4vw;
  border-left: 1px solid rgba(202,209,211,0.1);
}

.roi-result {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.roi-result-label {
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(202,209,211,0.5);
}

.roi-result-value {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4.5vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--parchment);
  transition: color 0.3s ease;
}

.roi-result-value--gold {
  color: var(--gold);
}

.roi-result-desc {
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(202,209,211,0.45);
  line-height: 1.4;
}

.roi-divider {
  height: 1px;
  background: rgba(202,209,211,0.1);
}

.roi-disclaimer {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 300;
  color: rgba(202,209,211,0.3);
  line-height: 1.6;
  margin-top: -0.5rem;
}

.roi-next {
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--silver-dim);
  line-height: 1.6;
}

.roi-link {
  display: inline-block;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,239,148,0.35);
  padding-bottom: 1px;
  font-weight: 400;
  transition: border-color 0.2s ease;
}
.roi-link:hover { border-color: var(--gold); }

/* ══════════════════════════════════════════════════════════════════════════
   PROCESS LIST
   ══════════════════════════════════════════════════════════════════════════ */
.process-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.process-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(202,209,211,0.1);
}
.process-list li:last-child { border-bottom: none; }

.proc-num {
  font-family: var(--font-d);
  font-size: 0.9rem;
  color: var(--gold);
  min-width: 2rem;
  padding-top: 2px;
}

.process-list strong {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 400;
  color: var(--parchment);
  display: block;
  margin-bottom: 0.3rem;
}

.process-list p {
  font-family: var(--font-b);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.section-cta--split {
  background: rgba(1,27,41,0.97) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cta-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
  width: 100%;
}

.cta-left {
  padding: clamp(3rem, 7vh, 6rem) clamp(2rem, 5vw, 4vw) clamp(3rem, 7vh, 6rem) clamp(2rem, 8vw, 8vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cta-left .section-heading {
  font-size: clamp(2.5rem, 4.5vw, 5.5rem);
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-button:hover { background: #ffe96a; transform: translateY(-1px); }
.cta-button:active { transform: translateY(0); }
.cta-button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.section-note {
  margin-top: 1rem;
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(202,209,211,0.5);
  letter-spacing: 0.04em;
}

.cta-right {
  padding: clamp(3rem, 7vh, 6rem) clamp(2rem, 8vw, 8vw) clamp(3rem, 7vh, 6rem) clamp(2rem, 5vw, 4vw);
  border-left: 1px solid rgba(202,209,211,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(202,209,211,0.06);
  padding: 2rem clamp(2rem, 8vw, 8vw) 1.75rem;
  position: relative;
  z-index: 10;
  /* margin-top set dynamically by positionSections() in app.js */
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 0 clamp(2rem, 4vw, 4rem);
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(202,209,211,0.05);
}

.site-footer-brand {
  display: flex;
  align-items: flex-start;
}

.site-footer-logo {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--parchment);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer-col-label {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(202,209,211,0.25);
  margin-bottom: 0.25rem;
}

.site-footer-col a {
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(202,209,211,0.4);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.site-footer-col a:hover { color: var(--parchment); }

.site-footer-bottom {
  padding-top: 1.1rem;
  display: flex;
  justify-content: flex-end;
}

.site-footer-copy {
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(202,209,211,0.18);
  letter-spacing: 0.04em;
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTACT FORM
   ══════════════════════════════════════════════════════════════════════════ */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.cf-field { display: flex; flex-direction: column; gap: 0.4rem; }

.cf-label {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.cf-input {
  background: rgba(244,242,236,0.05);
  border: 1px solid rgba(202,209,211,0.18);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--parchment);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
  resize: none;
}
.cf-input::placeholder { color: rgba(202,209,211,0.35); }
.cf-input:focus {
  border-color: rgba(255,239,148,0.5);
  background: rgba(244,242,236,0.08);
}

.cf-submit {
  margin-top: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--gold);
  border: none;
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.cf-submit:hover { background: #ffe96a; transform: translateY(-1px); }
.cf-submit:active { transform: translateY(0); }
.cf-submit:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ══════════════════════════════════════════════════════════════════════════
   INNER PAGES — shared components
   ══════════════════════════════════════════════════════════════════════════ */
.page-body {
  padding-top: 68px; /* header height */
}

/* ── Page Hero ── */
.page-hero {
  padding: clamp(6rem, 14vh, 12rem) clamp(2rem, 8vw, 8vw) clamp(4rem, 8vh, 8rem);
  border-bottom: 1px solid rgba(202,209,211,0.08);
}

.page-hero-label {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: block;
  margin-bottom: 1.5rem;
}

.page-hero-heading {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 6vw, 8rem);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.03em;
  color: var(--parchment);
  max-width: 18ch;
  margin-bottom: 2.5rem;
}

.page-hero-intro {
  font-family: var(--font-b);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--silver);
  max-width: 60ch;
}

/* ── Section block ── */
.page-section {
  padding: clamp(4rem, 9vh, 8rem) clamp(2rem, 8vw, 8vw);
  border-bottom: 1px solid rgba(202,209,211,0.06);
}

.page-section--teal {
  background: rgba(13,79,94,0.12);
}

.page-section--dark {
  background: rgba(1,27,41,0.5);
}

.page-section-label {
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  display: block;
  margin-bottom: 1.25rem;
}

.page-section-heading {
  font-family: var(--font-d);
  font-size: clamp(1.8rem, 3.5vw, 4.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--parchment);
  margin-bottom: 2rem;
}

.page-section-body {
  font-family: var(--font-b);
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--silver);
  max-width: 65ch;
}

/* ── Two-column layout ── */
.page-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 8rem);
  align-items: start;
}

.page-cols--thirds {
  grid-template-columns: 1fr 2fr;
}

/* ── Service cards ── */
.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.service-block {
  display: grid;
  grid-template-columns: 4rem 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(202,209,211,0.08);
  align-items: start;
}
.service-block:last-child { border-bottom: 1px solid rgba(202,209,211,0.08); }

.sb-num {
  font-family: var(--font-d);
  font-size: 0.9rem;
  color: var(--gold);
  padding-top: 4px;
}

.sb-title {
  font-family: var(--font-d);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sb-desc {
  font-family: var(--font-b);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
}

.sb-delivers {
  margin-top: 1rem;
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Process steps ── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.process-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(202,209,211,0.08);
  align-items: start;
}
.process-step:last-child { border-bottom: 1px solid rgba(202,209,211,0.08); }

.ps-num {
  font-family: var(--font-d);
  font-size: 3rem;
  font-weight: 400;
  color: rgba(255,239,148,0.25);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 4px;
}

.ps-content {}

.ps-title {
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.ps-body {
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.75;
  max-width: 55ch;
}

.ps-output {
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-left: 2px solid rgba(255,239,148,0.3);
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,239,148,0.6);
  line-height: 1.5;
}

/* ── Cases ── */
.case-blocks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 3rem;
}

.case-block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(202,209,211,0.08);
  align-items: start;
}
.case-block:last-child { border-bottom: 1px solid rgba(202,209,211,0.08); }

.case-context {
  font-family: var(--font-d);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--parchment);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.case-col-label {
  font-family: var(--font-b);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(202,209,211,0.4);
  margin-bottom: 0.75rem;
  display: block;
}

.case-text {
  font-family: var(--font-b);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
}

.case-result {
  font-family: var(--font-d);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* ── Disclaimer ── */
.page-disclaimer {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(202,209,211,0.1);
  border-radius: 2px;
}
.page-disclaimer p {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(202,209,211,0.4);
  line-height: 1.6;
}

/* ── Patterns grid ── */
.patterns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pattern-item {
  padding: 1.75rem;
  border: 1px solid rgba(202,209,211,0.08);
  border-radius: 2px;
}

.pattern-icon {
  font-family: var(--font-d);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  opacity: 0.6;
}

.pattern-title {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 400;
  color: var(--parchment);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pattern-desc {
  font-family: var(--font-b);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.6;
}

/* ── Page CTA block ── */
.page-cta-block {
  padding: clamp(5rem, 12vh, 10rem) clamp(2rem, 8vw, 8vw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-cta-block .section-heading {
  font-size: clamp(2rem, 4vw, 5rem);
  max-width: 16ch;
  text-align: center;
}

.page-cta-block .section-body {
  max-width: 50ch;
  text-align: center;
}

.page-cta-block .cta-button {
  margin-top: 0.5rem;
}

.page-cta-note {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(202,209,211,0.4);
}

/* ── Footer for inner pages ── */
.page-footer {
  padding: 2.5rem clamp(2rem, 8vw, 8vw);
  border-top: 1px solid rgba(202,209,211,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-footer-logo {
  font-family: var(--font-d);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.page-footer-note {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 300;
  color: rgba(202,209,211,0.3);
  letter-spacing: 0.04em;
}

/* ── Fade-in animation for inner pages ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Header ink-black on mobile ── */
  .site-header,
  .site-header.scrolled,
  .site-header.on-hero {
    background: var(--ink);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-header.on-hero .nav-logo { color: var(--parchment); }
  .site-header.on-hero .nav-links a { color: var(--silver); }
  .site-header.on-hero .nav-toggle span { background: var(--silver); }

  /* ── Nav hamburguesa ── */
  .nav-toggle { display: flex; }
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(202,209,211,0.1);
    padding: 1.5rem clamp(1.5rem, 6vw, 3rem);
    gap: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.25s ease;
    z-index: 45;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-toggle span { transition: transform 0.3s ease, opacity 0.2s ease; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child  { transform: translateY(-4px) rotate(-45deg); }

  /* ── Hero (normal flow) ── */
  .hero-parchment {
    position: relative;
    height: 100svh;
    pointer-events: auto;
  }
  .hero-ailec    { font-size: clamp(4.5rem, 22vw, 9rem); }
  .hero-tagline  { font-size: 0.95rem; margin-top: 1.25rem; }
  .hero-sub      { font-size: 0.8rem; margin-top: 0.5rem; }
  .hero-scroll-hint { display: none; }

  /* ── Scroll container: height auto ── */
  #scroll-container { height: auto; }

  /* ── Sections: flujo normal + fade-in via .m-visible ── */
  .scroll-section {
    position: relative !important;
    top: auto !important;
    transform: translateY(24px) !important;
    opacity: 0;
    visibility: visible !important;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .scroll-section.m-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  /* ── Imágenes sobre el texto ── */
  .section-img {
    display: block;
    width: 100%;
    height: 55vw;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
  }

  /* ── Section backgrounds quitados (imagen reemplaza el background-image) ── */
  .align-left, .align-right { padding: 0; background: none; }
  .section-problem.align-left,
  .section-value.align-left,
  .section-cost.align-right,
  .section-how.align-right { background-image: none; min-height: auto; }
  .align-left .section-inner,
  .align-right .section-inner {
    max-width: 100%;
    padding: 2rem 1.5rem;
    background: rgba(1,27,41,0.97);
  }
  /* ── Marquee y overlay ocultos ── */
  .marquee-wrap { display: none; }
  #dark-overlay { display: none !important; }

  /* ── ROI ── */
  .section-roi { padding: 3rem 1.5rem; background: rgba(1,27,41,0.98); }
  .roi-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .roi-results {
    padding-left: 0; border-left: none;
    border-top: 1px solid rgba(202,209,211,0.1);
    padding-top: 2rem;
  }
  .roi-heading { font-size: clamp(1.8rem, 8vw, 3rem); }
  .roi-input { font-size: 1.4rem; }

  /* ── CTA ── */
  .section-cta--split { padding-left: 0 !important; padding-right: 0 !important; }
  .cta-split-inner { grid-template-columns: 1fr; }
  .cta-left { padding: 2.5rem 1.5rem; }
  .cta-right {
    border-left: none;
    border-top: 1px solid rgba(202,209,211,0.1);
    padding: 2.5rem 1.5rem;
  }

  /* ── Footer ── */
  .site-footer { margin-top: 0; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .site-footer-brand { grid-column: 1 / -1; }

  /* ── Inner pages ── */
  .page-cols, .page-cols--thirds { grid-template-columns: 1fr; }
  .service-block { grid-template-columns: 3rem 1fr; }
  .service-block > div:last-child { grid-column: 2; }
  .case-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .patterns-grid { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 3rem 1fr; }
}

@media (max-width: 480px) {
  .patterns-grid { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; gap: 1rem; text-align: center; }
}
