/* ============================================================
   SandoTech — Sistema visual
   Taller real · industrial honesto · cálido · acento rojo óxido
   Titulares: Newsreader (serif de confianza)
   Texto: Hanken Grotesk (grotesca limpia)
   ============================================================ */

:root {
  /* Acento rojo — óxido / ladrillo de taller (por defecto) */
  --red:        oklch(0.55 0.185 30);
  --red-strong: oklch(0.49 0.18 31);
  --red-deep:   oklch(0.40 0.13 33);
  --red-soft:   oklch(0.95 0.03 40);

  /* Neutros cálidos */
  --paper:    oklch(0.975 0.008 75);   /* fondo principal, blanco cálido */
  --paper-2:  oklch(0.955 0.011 72);   /* tarjeta / banda alterna */
  --paper-3:  oklch(0.925 0.014 70);   /* hairlines suaves */
  --ink:      oklch(0.245 0.014 50);   /* texto principal, carbón cálido */
  --ink-2:    oklch(0.435 0.018 55);   /* texto secundario */
  --ink-3:    oklch(0.58 0.016 58);    /* texto terciario / captions */
  --night:    oklch(0.235 0.018 38);   /* secciones oscuras, casi negro cálido */
  --night-2:  oklch(0.30 0.022 36);

  --line:     oklch(0.88 0.012 65);
  --line-ink: oklch(0.40 0.012 50);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Variantes de acento (Tweaks) */
:root[data-accent="ladrillo"] { --red: oklch(0.55 0.185 30); --red-strong: oklch(0.49 0.18 31); --red-deep: oklch(0.40 0.13 33); --red-soft: oklch(0.95 0.03 40); }
:root[data-accent="bermellon"] { --red: oklch(0.58 0.205 27); --red-strong: oklch(0.52 0.20 27); --red-deep: oklch(0.43 0.15 29); --red-soft: oklch(0.955 0.032 35); }
:root[data-accent="granate"]  { --red: oklch(0.47 0.15 25); --red-strong: oklch(0.42 0.145 24); --red-deep: oklch(0.35 0.11 26); --red-soft: oklch(0.945 0.028 28); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--red); color: oklch(0.98 0.01 75); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }

/* Etiqueta de sección (eyebrow) */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-strong);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow--plain::before { display: none; }

/* Botones / CTAs */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.005em;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: transform .35s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }

.btn--primary { background: var(--red); color: oklch(0.985 0.008 75); border-color: var(--red); }
.btn--primary:hover { background: var(--red-strong); border-color: var(--red-strong); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

.btn--light { background: oklch(0.98 0.01 75); color: var(--ink); border-color: oklch(0.98 0.01 75); }
.btn--light:hover { transform: translateY(-2px); }
.btn--on-dark.btn--ghost { color: oklch(0.95 0.01 75); border-color: oklch(0.6 0.02 60); }
.btn--on-dark.btn--ghost:hover { background: oklch(0.95 0.01 75); color: var(--night); border-color: oklch(0.95 0.01 75); }

/* Reveal on scroll — base is VISIBLE (safe for no-JS / capture / print).
   The hidden start-state only applies once JS marks <html class="js"> before paint,
   and the shown state is !important so it wins in every renderer. */
[data-reveal] { opacity: 1; transform: none; }
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--rd, 0ms);
}
html.js [data-reveal][data-shown] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.section { padding: clamp(72px, 10vw, 132px) 0; }
.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(34px, 5vw, 58px);
  margin-top: 22px;
}
.section-head .lede {
  margin-top: 22px;
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--ink-2);
  max-width: 60ch;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
