/* ==========================================================================
   Apollo Web Co. — hoja de estilos del sitio.
   Tokens del sistema "Modernist" + los componentes que usa la página.
   CSS plano, sin build step.
   ========================================================================== */

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  /* Tinta y papel de la página oscura */
  --ink: #121110;
  --ink-deep: #0c0b0b;
  --paper: #f3f2f2;

  --line: rgba(243, 242, 242, .28);
  --line-soft: rgba(243, 242, 242, .22);
  --muted: rgba(243, 242, 242, .72);
  --muted-2: rgba(243, 242, 242, .8);
  --dim: rgba(243, 242, 242, .6);

  --font-heading: "Archivo", system-ui, -apple-system, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-heading-weight: 800;

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;

  --radius-md: 0px;

  --shell: 1240px;
  --gutter: 32px;
}

/* — base — */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink-deep);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--font-heading-weight); }

a { color: var(--paper); text-decoration: none; }
a:hover { color: rgba(243, 242, 242, .7); }

img { max-width: 100%; }

.hr { height: 2px; border: 0; margin: var(--space-4) 0; background: var(--line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  transition: opacity .18s ease;
}
.btn:hover { opacity: .86; }

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

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--dim);
}

/* ==========================================================================
   Fondo de video en scroll
   160 cuadros dibujados en un canvas fijo detrás de todo el contenido.
   ========================================================================== */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink-deep); }
.backdrop canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  backface-visibility: hidden; transform: translateZ(0);
  filter: grayscale(1) contrast(1.04) brightness(1.05);
}
.backdrop .vignette {
  position: absolute; inset: 0;
  background: radial-gradient(115% 85% at 55% 45%,
    rgba(12,11,11,0) 0%, rgba(12,11,11,.18) 60%, rgba(12,11,11,.5) 100%);
}

/* ==========================================================================
   Barra superior
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: rgba(18, 17, 16, .82);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(243, 242, 242, .25);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.brand img { width: 38px; height: 38px; object-fit: contain; mix-blend-mode: screen; }
.brand span {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 15px; letter-spacing: .26em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(243, 242, 242, .7);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a[aria-current="page"] {
  color: var(--paper); border-bottom: 2px solid var(--paper); padding-bottom: 2px;
}
/* El botón gana al color heredado de .site-nav a, que es más específico. */
.site-nav a.btn { letter-spacing: .12em; text-transform: uppercase; font-size: 12px; padding: 10px 18px; }
.site-nav a.btn-light, .site-nav a.btn-light:hover { color: var(--ink); }

/* Selector de idioma ES / EN (lo controla i18n.js). */
.lang-switch { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.lang-switch button {
  appearance: none; border: 0; background: transparent; margin: 0; padding: 2px 0;
  cursor: pointer; font-family: inherit; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(243, 242, 242, .5);
  border-bottom: 1px solid transparent;
}
.lang-switch button[aria-pressed="true"] { color: var(--paper); border-bottom-color: var(--paper); }
.lang-switch span { font-size: 10px; color: rgba(243, 242, 242, .3); }

.nav-toggle {
  display: none;
  appearance: none; background: transparent; margin: 0; padding: 0;
  cursor: pointer; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 2px solid rgba(243, 242, 242, .45); color: var(--paper);
}

/* ==========================================================================
   Secciones
   ========================================================================== */
section { position: relative; z-index: 1; }

.s-hero {
  padding: 132px 0 0;
  background: linear-gradient(180deg,
    rgba(12,11,11,.82) 0%, rgba(12,11,11,.62) 70%, rgba(18,17,16,.42) 100%);
  backdrop-filter: blur(10px);
}
.s-hero h1 {
  font-size: clamp(38px, 5.6vw, 82px); line-height: .96;
  letter-spacing: -.03em; margin: 18px 0 0;
}
.s-hero p {
  max-width: 520px; margin: 22px 0 0;
  font-size: 16px; line-height: 1.65; color: rgba(243, 242, 242, .78);
}
.s-hero .hr { margin: 48px 0 0; }

.veil-42 { background: rgba(18, 17, 16, .42); backdrop-filter: blur(10px); }
.veil-30 { background: rgba(18, 17, 16, .3);  backdrop-filter: blur(10px); }

.s-about { padding: 56px 0 88px; }
.s-about .shell {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start;
}
.s-about h2 {
  font-size: clamp(26px, 3vw, 40px); line-height: 1.05;
  letter-spacing: -.025em; margin: 18px 0 24px;
}
.s-about p {
  margin: 0 0 18px; max-width: 58ch;
  font-size: 15.5px; line-height: 1.7; color: var(--muted-2);
}
.s-about p:last-child { margin-bottom: 0; }

.beliefs { background: rgba(18, 17, 16, .7); backdrop-filter: blur(10px); padding: 36px 32px; }
.beliefs ul { list-style: none; display: grid; gap: 20px; margin: 24px 0 0; padding: 0; }
.beliefs li { padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.beliefs li:last-child { padding-bottom: 0; border-bottom: 0; }
.beliefs dt, .beliefs .t { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.beliefs .d { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.s-services { padding: 88px 0; }
.s-services h2 {
  font-size: clamp(26px, 3vw, 40px); line-height: 1.05;
  letter-spacing: -.025em; margin: 18px 0 48px;
}

/* Rejilla de cuatro columnas separadas por reglas verticales. */
.rule-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--line);
}
.rule-grid > * { border-right: 2px solid var(--line); }
.rule-grid > *:last-child { border-right: 0; }

.services .col { padding: 30px 26px 0; }
.services .col:first-child { padding-left: 0; }
.services .col:last-child { padding-right: 0; }
.services .col h3 { font-weight: 800; font-size: 18px; margin: 0; }
.services .col p { margin: 12px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.s-numbers { padding: 0 0 88px; }
.numbers .col { padding: 40px 24px 0; }
.numbers .col:first-child { padding-left: 0; }
.numbers .col:last-child { padding-right: 0; }
.numbers .n {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 42px; line-height: 1; letter-spacing: -.03em;
}
.numbers .k {
  margin-top: 10px; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

.s-founder { padding: 0 0 96px; }
.s-founder .shell {
  display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 56px; align-items: start;
  border-top: 2px solid var(--line); padding-top: 56px;
}
.s-founder figure { margin: 0; }
.s-founder figure img {
  display: block; width: 100%; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.05);
}
.s-founder figcaption {
  margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--line);
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(243, 242, 242, .7);
}
.s-founder blockquote { margin: 0; align-self: center; }
.s-founder blockquote p {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1.06;
  letter-spacing: -.03em; margin: 0; max-width: 24ch; text-wrap: balance;
}
.s-founder footer { margin-top: 32px; display: grid; gap: 6px; }
.s-founder .name { font-family: var(--font-heading); font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.s-founder .org { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 242, 242, .65); }

.s-cta { background: rgba(238, 237, 237, .94); color: var(--ink); padding: 64px 0; }
.s-cta .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.s-cta .line {
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(24px, 3vw, 40px); letter-spacing: -.02em; max-width: 22ch;
}
.s-cta .btn { letter-spacing: .16em; text-transform: uppercase; padding: 15px 24px; }
.s-cta a.btn-dark, .s-cta a.btn-dark:hover { color: var(--paper); }

.site-footer {
  position: relative; z-index: 1;
  background: rgba(18, 17, 16, .94); color: rgba(243, 242, 242, .7);
  padding: 22px var(--gutter);
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
}

/* ==========================================================================
   Teléfono y tableta: las columnas se apilan y las reglas verticales
   se vuelven horizontales.
   ========================================================================== */
@media (max-width: 820px) {
  :root { --gutter: 20px; }

  .site-header { flex-wrap: wrap; padding: 10px 16px; gap: 10px; top: 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }

  html[data-nav-open] .site-header { background: var(--ink); }
  html[data-nav-open] .site-nav {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; gap: 0; padding: 8px 0 4px;
    border-top: 2px solid rgba(243, 242, 242, .25);
  }
  html[data-nav-open] .site-nav a {
    font-size: 16px; letter-spacing: .16em; padding: 16px 0;
    border-bottom: 1px solid rgba(243, 242, 242, .18);
    color: var(--paper); text-align: left;
  }
  html[data-nav-open] .site-nav a[aria-current="page"] { border-bottom-width: 1px; padding-bottom: 16px; }
  html[data-nav-open] .site-nav a:last-child {
    margin-top: 14px; border-bottom: 0; padding: 16px 18px; text-align: center;
  }

  .s-hero { padding-top: 116px; }

  .s-about .shell,
  .s-founder .shell { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .rule-grid > * {
    border-right: 0;
    border-bottom: 2px solid var(--line);
    padding: 24px 0;
  }
  .rule-grid > *:last-child { border-bottom: 0; }

  .s-cta .shell { flex-wrap: wrap; }
}

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