/* ============================================================
   ⚠ FUENTE COMPARTIDA — main.css
   Este archivo se copia VERBATIM a consumidores externos: el sitio
   jorgediaz.com.co (Razor Pages) y el producto Tienda.
   · Lo que no se usa en esta maqueta puede estar en uso allá.
   · Eliminar, estrechar o renombrar selectores NO es seguro aunque
     aquí no se note: rompe pantallas en producción sin error de build.
   · Cualquier limpieza se PROPONE, no se aplica. Solo se añade.
   Ver README.md en la raíz del activo.
   ============================================================ */
/* ============================================================
   Jorge Díaz — main.css
   Variables, reset, layout, tipografía, nav, hero, footer
   CSS vanilla. Sin frameworks.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* superficies (light = base, alineado a brand sheet) */
  --bg: #FFFFFF;
  --surface: #FAF8F7;
  --surface-2: #F1EDEC;
  --border: #E7E1DE;

  /* acento oficial brand sheet */
  --accent: #D84332;
  --accent-strong: #B5392B;   /* nuevo: hover/pressed */
  --accent-soft: rgba(216, 67, 50, 0.09); /* nuevo: tinte fondo */
  --accent-line: rgba(216, 67, 50, 0.22);  /* nuevo: hairlines rojas */

  /* estado success de formularios (nuevo, imprescindible) */
  --ok: #1E9E5A;
  --ok-soft: rgba(30, 158, 90, 0.12);

  /* texto */
  --text: #111111;
  --text-muted: #555555;
  --text-dim: #908A86;

  /* panel "ink" (banda oscura de contraste, ambos modos) */
  --ink-bg: #161311;
  --ink-surface: #211C19;
  --ink-border: #322B27;
  --ink-text: #FAF8F7;
  --ink-muted: #B4ABA4;

  /* tipografía */
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace; /* nuevo: micro-labels técnicas */

  /* radios + sombras */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17,17,17,.04), 0 2px 8px rgba(17,17,17,.04);
  --shadow: 0 4px 14px rgba(17,17,17,.06), 0 18px 50px -18px rgba(17,17,17,.18);
  --shadow-lg: 0 24px 70px -24px rgba(17,17,17,.30);
  --shadow-red: 0 18px 50px -18px rgba(216,67,50,.45);

  /* layout */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --nav-h: 74px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="dark"] {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --border: #2A2A2A;

  --accent: #E54A38;          /* +luminosidad para contraste sobre negro */
  --accent-strong: #F25C4A;
  --accent-soft: rgba(229, 74, 56, 0.12);
  --accent-line: rgba(229, 74, 56, 0.28);

  --ok: #4FD08A;
  --ok-soft: rgba(79, 208, 138, 0.14);

  --text: #F5F5F5;
  --text-muted: #A8A29E;
  --text-dim: #6B7280;

  --ink-bg: #000000;
  --ink-surface: #131313;
  --ink-border: #262626;
  --ink-text: #FAF8F7;
  --ink-muted: #A8A29E;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 10px 40px -12px rgba(0,0,0,.7);
  --shadow-lg: 0 30px 80px -28px rgba(0,0,0,.85);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 900; text-wrap: balance; }
p { text-wrap: pretty; }

.display {
  font-size: clamp(2.7rem, 6.2vw, 5.1rem);
  font-weight: 900;
  line-height: 0.97;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
.h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.015em; }
.lead {
  font-size: clamp(1.12rem, 1.9vw, 1.4rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 46ch;
}
.accent-text { color: var(--accent); }

/* eyebrow firma: cuadro rojo + label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 11px; height: 11px;
  background: var(--accent);
  flex: none;
  border-radius: 2px;
}
.eyebrow--light { color: var(--ink-muted); }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1320px; }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(54px, 7vw, 92px); }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }

.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* banda ink */
.band--ink {
  background: var(--ink-bg);
  color: var(--ink-text);
}
.band--ink .lead, .band--ink .text-muted { color: var(--ink-muted); }
.band--accent { background: var(--accent); color: #fff; }
.band--accent .lead { color: rgba(255,255,255,.86); }

/* ---------- BOTONES ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  position: relative;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-red); background: var(--accent-strong); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-2); box-shadow: none; border-color: var(--text-dim); }
.band--ink .btn--ghost { --btn-fg: var(--ink-text); border-color: var(--ink-border); }
.band--ink .btn--ghost:hover { background: var(--ink-surface); }
.band--accent .btn { --btn-bg: #fff; --btn-fg: var(--accent); }
.band--accent .btn:hover { background: #fff; box-shadow: 0 18px 50px -18px rgba(0,0,0,.4); }
.band--accent .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.band--accent .btn--ghost:hover { background: rgba(255,255,255,.12); }

.btn--lg { padding: 18px 32px; font-size: 1.05rem; }

/* link con flecha */
.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--accent);
  letter-spacing: -0.01em;
}
.arrow-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; gap: 14px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -0.02em; font-size: 1.12rem; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-family: var(--font-mono); margin-top: 1px; }
.brand .brand-txt { line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { list-style: none; }
.nav-links > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .95rem; color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.is-open { color: var(--text); background: var(--surface-2); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-link.is-open .chev { transform: rotate(180deg); }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 320px; padding: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav-item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item { display: flex; gap: 13px; padding: 12px 13px; border-radius: var(--r-sm); transition: background .18s; }
.dd-item:hover { background: var(--surface); }
.dd-ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.dd-ico svg { width: 21px; height: 21px; }
.dd-item h4, .dd-item .dd-title { font-size: .96rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.05; text-wrap: balance; }
.dd-item p { font-size: .82rem; color: var(--text-dim); line-height: 1.4; margin-top: 2px; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-muted);
  border: 1px solid var(--border); transition: all .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-dim); background: var(--surface); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-toggle {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--text-muted);
  transition: all .2s;
}
.lang-toggle:hover { color: var(--text); border-color: var(--text-dim); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.hamburger { display: none; }

/* ---------- HERO (compartido) ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(60px, 8vw, 120px); overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 100% at 70% 0%, #000 0%, transparent 72%);
  opacity: .5;
}
.hero-glow {
  position: absolute; z-index: 0; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -8%; top: -16%; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  pointer-events: none;
}

/* trust chips */
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.trust-row .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border: 1px solid var(--border); border-radius: 100px;
  font-size: .85rem; font-weight: 700; color: var(--text-muted); background: var(--bg);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--ink-border); border: 1px solid var(--ink-border); border-radius: var(--r-lg); overflow: hidden; }
.stat { padding: clamp(24px, 3vw, 40px); background: var(--ink-bg); }
.stat .num { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 900; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.stat .lbl { margin-top: 10px; font-size: .9rem; color: var(--ink-muted); font-weight: 600; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink-bg); color: var(--ink-text); padding-block: clamp(56px, 7vw, 88px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 56px); }
.footer h5, .footer .footer-col-title { font-size: .78rem; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 18px; font-weight: 600; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--ink-muted); font-size: .96rem; transition: color .2s; width: fit-content; }
.footer-links a:hover { color: var(--ink-text); }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.3rem; margin-bottom: 16px; }
.footer-brand img { height: 34px; }
.footer .blurb { color: var(--ink-muted); font-size: .96rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ink-border); display: grid; place-items: center; color: var(--ink-muted); transition: all .2s; }
.footer-social a:hover { color: #fff; border-color: var(--accent); background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--ink-border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-muted); font-size: .85rem; }
.footer-bottom .mono { font-family: var(--font-mono); }

/* ---------- AOS (reveal) ---------- */
[data-aos] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-aos].is-in { opacity: 1; transform: none; }
[data-aos-delay="1"] { transition-delay: .07s; }
[data-aos-delay="2"] { transition-delay: .14s; }
[data-aos-delay="3"] { transition-delay: .21s; }
[data-aos-delay="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  [data-aos] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- UTILIDADES ---------- */
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.divider { height: 1px; background: var(--border); border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- RESPONSIVE NAV/LAYOUT ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-actions .lang-toggle { display: none; }
  .hamburger { display: grid; place-items: center; }
  .nav-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 36px; }
}

/* menú móvil */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg); padding: 24px var(--gutter) 40px;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.is-open { transform: none; }
.mm-link { padding: 15px 4px; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mm-sub { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); padding: 22px 4px 8px; }
.mm-link .badge { font-size: .65rem; font-family: var(--font-mono); color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 100px; letter-spacing: .08em; }
.mm-foot { margin-top: auto; display: flex; gap: 10px; padding-top: 24px; }
