/* Provetec Venezuela — estilos compartidos
   Identidad tomada del logo oficial (assets/provetec-logo.png):
   azul marino de "PROVE", gris de "TEC" y el naranja de los puntos del lema.
   El naranja de marca (#E8360A) da 4,2:1 sobre blanco: se usa en superficies y textos grandes.
   Para texto pequeño y botones se usan variantes que cumplen WCAG AA (ver README). */

:root {
  --pv-navy: #103353;
  --pv-navy-900: #0a2238;
  --pv-navy-950: #061626;
  --pv-navy-700: #1b4a73;
  --pv-gray: #7d7d7d;
  --pv-gray-300: #c9ced4;
  --pv-gray-100: #eef1f4;
  --pv-orange: #e8360a;
  --pv-orange-600: #c92d07;
  --pv-orange-action: #d9330a;  /* fondo de botón: texto blanco 4,7:1 */
  --pv-orange-ink: #c92d07;     /* texto pequeño sobre claro: 5,4:1 */
  --pv-orange-bright: #ff7347;  /* texto pequeño sobre oscuro: 4,8:1 a 6,8:1 */
  --pv-orange-light: #ffa27f;   /* acentos decorativos sobre oscuro */
  --pv-orange-soft: #fde7df;
  --pv-paper: #f5f6f8;
  --pv-white: #ffffff;
  --pv-ink: #0b1b2b;
  --pv-muted: #55606c;
  --pv-line: #dfe3e8;
  --pv-line-dark: rgba(255, 255, 255, .12);
  --pv-text-dark: #e8eef4;
  --pv-muted-dark: #9fb0c2;

  /* Ficha de Trazo: su propia paleta (petróleo y cobre), solo dentro de .tz-scope */
  --tz-ink: #14202e;
  --tz-primary: #1d5c6b;
  --tz-copper: #9c5521;
  --tz-copper-light: #e39b5b;

  /* Ficha de Vendex: su propia paleta (persimón y piedra), solo dentro de .vx-scope */
  --vx-primary: #e64e16;
  --vx-primary-600: #c43e0e;
  --vx-primary-700: #9c3109;
  --vx-ink: #1c1813;
  --vx-stone-50: #faf7f3;
  --vx-stone-100: #f3eee8;
  --vx-stone-200: #e7e0d8;
  --vx-muted: #635a4f;  /* stone-600: su "muted" (#857B6E) no llega a 4,5:1 sobre stone-100 */

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--pv-ink);
  background: var(--pv-paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.04; margin: 0; letter-spacing: -0.035em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--pv-orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--pv-orange); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 30px; width: auto; }
.brand-full img { height: auto; width: 240px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 22, 38, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--pv-line-dark);
  color: var(--pv-text-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: var(--pv-muted-dark); transition: color .2s, background .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--pv-line-dark); color: #fff; border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s var(--ease), background .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--pv-navy-950); border-bottom: 1px solid var(--pv-line-dark);
    padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .25s var(--ease), visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--pv-line-dark); }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; border-radius: 999px; padding: 15px 26px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--pv-orange-action); color: #fff; box-shadow: 0 10px 30px -10px rgba(232, 54, 10, .7); }
.btn-primary:hover { background: var(--pv-orange-600); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--pv-navy); color: #fff; }
.btn-dark:hover { background: var(--pv-navy-700); }
.btn-outline { border-color: var(--pv-navy); color: var(--pv-navy); }
.btn-outline:hover { background: var(--pv-navy); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em;
  color: var(--pv-orange-ink);
}
.dark .eyebrow, .navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-box .eyebrow { color: var(--pv-orange-bright); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-head { display: grid; gap: 20px; max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.h-xl { font-size: clamp(40px, 7.4vw, 104px); font-weight: 900; }
.h-lg { font-size: clamp(34px, 5.2vw, 68px); font-weight: 800; }
.h-md { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--pv-muted); max-width: 680px; }
.dark .lead { color: var(--pv-muted-dark); }
.accent { color: var(--pv-orange); }
.outline-text { color: transparent; -webkit-text-stroke: 2px currentColor; }

.dark { background: var(--pv-navy-950); color: var(--pv-text-dark); }
.navy { background: var(--pv-navy); color: var(--pv-text-dark); }
.light { background: var(--pv-white); }

/* ---------- Hero (inicio) ---------- */
.hero { position: relative; overflow: hidden; background: var(--pv-navy-950); color: #fff; isolation: isolate; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -18vw; top: -22vw; border-radius: 50%; background: radial-gradient(circle, rgba(232, 54, 10, .38), rgba(232, 54, 10, 0) 62%); filter: blur(10px); }
.hero-glow.b { left: -30vw; right: auto; top: auto; bottom: -40vw; background: radial-gradient(circle, rgba(27, 74, 115, .7), rgba(27, 74, 115, 0) 60%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero h1 { font-size: clamp(48px, 7.2vw, 102px); font-weight: 900; letter-spacing: -0.05em; line-height: .92; }
.hero h1 .line { display: block; }
.hero-rotator { display: block; position: relative; color: var(--pv-orange); min-height: .92em; white-space: nowrap; }
.hero-rotator .caret { display: inline-block; width: .08em; height: .8em; background: var(--pv-orange); margin-left: .06em; vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { margin-top: 28px; font-size: clamp(18px, 1.7vw, 22px); color: var(--pv-muted-dark); max-width: 560px; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; font-family: var(--font-mono); font-size: 13px; color: var(--pv-muted-dark); letter-spacing: .04em; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pv-orange); }

/* Panel de cuatro frentes en el hero */
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  min-height: 180px; padding: 20px; border-radius: var(--r-lg); text-decoration: none;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--pv-line-dark);
  transition: transform .35s var(--ease), background .3s, border-color .3s;
  overflow: hidden;
}
.stack a:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.stack a.is-hot { background: var(--pv-orange-action); border-color: var(--pv-orange-action); }
.stack a.is-hot .stack-num, .stack a.is-hot p { color: rgba(255, 255, 255, .85); }
.stack-num { font-family: var(--font-mono); font-size: 13px; color: var(--pv-muted-dark); }
.stack h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; color: #fff; }
.stack p { font-size: 14px; line-height: 1.45; color: var(--pv-muted-dark); margin-top: 8px; }
.stack a:nth-child(2) { transform: translateY(28px); }
.stack a:nth-child(4) { transform: translateY(28px); }
.stack a:nth-child(2):hover, .stack a:nth-child(4):hover { transform: translateY(24px); }
.stack-shape { position: absolute; right: -20px; top: -20px; width: 110px; height: 110px; opacity: .14; }
.stack a.is-hot .stack-shape { opacity: .3; }

/* Cinta de servicios */
.ticker { border-top: 1px solid var(--pv-line-dark); overflow: hidden; padding: 22px 0; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.03em; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; color: rgba(255, 255, 255, .9); }
/* Palabras alternas en blanco y naranja de marca (texto grande: 4,3:1 sobre el fondo);
   los separadores en un naranja claro para distinguirse de las palabras.
   Cada vuelta lleva un número par de palabras para que la alternancia no salte en el empalme. */
.ticker-track span:nth-child(even) { color: var(--pv-orange); }
.ticker-track span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pv-orange-light); flex-shrink: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Frentes (inicio) ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--pv-ink); }
.pillar { position: relative; padding: 32px 26px 36px; border-right: 1px solid var(--pv-line); display: flex; flex-direction: column; gap: 18px; text-decoration: none; transition: background .3s; overflow: hidden; }
.pillar:last-child { border-right: 0; }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--pv-orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.pillar:hover { background: var(--pv-white); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-num { font-family: var(--font-display); font-weight: 900; font-size: 64px; line-height: 1; letter-spacing: -0.06em; color: var(--pv-gray-100); -webkit-text-stroke: 1.5px var(--pv-gray-300); transition: color .3s, -webkit-text-stroke-color .3s; }
.pillar:hover .pillar-num { color: var(--pv-orange); -webkit-text-stroke-color: var(--pv-orange); }
.pillar h3 { font-size: 26px; font-weight: 800; }
.pillar p { color: var(--pv-muted); font-size: 16px; }
.pillar ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15px; }
.pillar li { display: flex; gap: 10px; align-items: baseline; }
.pillar li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pv-orange); flex-shrink: 0; transform: translateY(-2px); }
.pillar .more { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--pv-navy); display: inline-flex; gap: 8px; }

/* ---------- Banda declaración ---------- */
/* Banda en grafito cálido con un resplandor naranja difuso: conserva el acento sin saturar */
.statement {
  background:
    radial-gradient(60% 120% at 88% 110%, rgba(232, 54, 10, .42), transparent 70%),
    radial-gradient(40% 80% at 4% -10%, rgba(255, 162, 127, .14), transparent 70%),
    linear-gradient(135deg, #2b2523 0%, #1f1b1a 100%);
  color: #f4efec; padding: clamp(64px, 9vw, 120px) 0; overflow: hidden; position: relative;
}
.statement-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.statement h2 { font-size: clamp(32px, 4.4vw, 62px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.04; }
.statement h2 span { display: block; margin-top: .35em; color: var(--pv-orange-bright); }
.statement-side { display: grid; gap: 28px; justify-items: start; }
.statement-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: p; }
.statement-promises li { counter-increment: p; position: relative; padding-left: 52px; color: #cfc6c1; font-size: 16px; line-height: 1.55; }
.statement-promises li::before { content: "0" counter(p); position: absolute; left: 0; top: 2px; font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 600; color: var(--pv-orange-light); border: 1px solid rgba(255, 162, 127, .4); border-radius: 999px; padding: 2px 8px; }
.statement-promises strong { display: block; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
@media (max-width: 900px) { .statement-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Portafolio de software ---------- */
.portfolio { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.product-card { position: relative; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); overflow: hidden; display: flex; flex-direction: column; gap: 22px; min-height: 460px; }
.product-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { font-size: clamp(34px, 4vw, 54px); font-weight: 900; }
.product-card .lead { font-size: 18px; }
.product-card .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }

/* Espacio de logo de producto, reemplazable */
.logo-slot { display: inline-flex; align-items: center; gap: 12px; }
.logo-slot .mark { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.logo-slot .word { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }

/* Ficha de Trazo con su paleta */
.tz-scope { background: var(--tz-ink); color: #e9edf1; }
.tz-scope .product-tag { color: var(--tz-copper-light); }
.tz-scope .lead { color: #aebccb; }
.tz-scope .mark { background: var(--tz-primary); }
.tz-scope .word span { color: var(--tz-copper-light); font-weight: 600; }
.tz-scope .btn-tz { background: var(--tz-copper); color: #fff; }
.tz-scope .btn-tz:hover { background: #b4652a; }
.tz-scope .btn-ghost { border-color: rgba(255, 255, 255, .25); }
.tz-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.tz-flow span { font-family: var(--font-mono); font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: #d3dce6; background: rgba(255, 255, 255, .03); }
.tz-flow span.on { border-color: var(--tz-copper-light); color: var(--tz-copper-light); }
.tz-lines { position: absolute; right: -60px; bottom: -60px; width: 340px; opacity: .22; pointer-events: none; }

/* ---------- IA ---------- */
.ai { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.ai-points { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--pv-line-dark); }
.ai-points > div { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--pv-line-dark); }
.ai-points b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--pv-orange-bright); padding-top: 4px; }
.ai-points h4 { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.ai-points p { color: var(--pv-muted-dark); font-size: 15px; margin-top: 4px; }
.chat { background: #0d2840; border: 1px solid var(--pv-line-dark); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--pv-line-dark); font-family: var(--font-mono); font-size: 12px; color: var(--pv-muted-dark); }
.chat-head .live { display: inline-flex; align-items: center; gap: 8px; }
.chat-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 4px rgba(60, 207, 122, .18); }
.chat-body { display: grid; gap: 14px; padding: 20px 0 6px; min-height: 300px; align-content: start; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg.q { justify-self: end; background: var(--pv-orange); color: #fff; border-bottom-right-radius: 4px; }
.msg.a { justify-self: start; background: rgba(255, 255, 255, .06); color: var(--pv-text-dark); border-bottom-left-radius: 4px; }
.msg.a table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; }
.msg.a td { padding: 6px 0; border-top: 1px solid var(--pv-line-dark); }
.msg.a td:last-child { text-align: right; color: #fff; }
.chat-note { font-size: 12px; color: var(--pv-muted-dark); margin-top: 10px; font-family: var(--font-mono); }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { background: var(--pv-white); border-radius: var(--r-lg); padding: 28px 24px; border: 1px solid var(--pv-line); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-display); font-weight: 900; font-size: 15px; color: #fff; background: var(--pv-navy); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; margin-bottom: 22px; }
.step:last-child::before { background: var(--pv-orange); }
.step h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--pv-muted); font-size: 15.5px; }

/* ---------- Local ---------- */
.local { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.local-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(46px, 8vw, 118px); line-height: .92; letter-spacing: -0.06em; color: var(--pv-navy); }
.local-big span { display: block; color: transparent; -webkit-text-stroke: 2px var(--pv-navy); }
.local-list { display: grid; gap: 18px; }
.local-list div { padding-left: 22px; border-left: 3px solid var(--pv-orange); }
.local-list h4 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.local-list p { color: var(--pv-muted); font-size: 16px; margin-top: 4px; }

/* ---------- CTA y contacto ---------- */
.cta { position: relative; overflow: hidden; }
.cta-box { position: relative; border-radius: 28px; background: var(--pv-navy); color: #fff; padding: clamp(36px, 6vw, 84px); overflow: hidden; isolation: isolate; }
.cta-box::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 54, 10, .6), transparent 65%); }
.cta-box h2 { font-size: clamp(36px, 6vw, 84px); font-weight: 900; letter-spacing: -0.045em; max-width: 900px; }
.cta-box .lead { color: var(--pv-muted-dark); margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.contact-grid a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid var(--pv-line-dark); text-decoration: none; transition: background .2s, border-color .2s, transform .25s var(--ease); min-width: 0; }
.contact-grid a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.contact-grid small { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--pv-muted-dark); }
.contact-grid strong { font-family: var(--font-display); font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.contact-grid a.wa { background: var(--pv-orange-action); border-color: var(--pv-orange-action); }
.contact-grid a.wa small { color: rgba(255, 255, 255, .85); }

/* ---------- Pie ---------- */
.site-footer { background: var(--pv-navy-950); color: var(--pv-muted-dark); padding: 64px 0 36px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--pv-line-dark); }
.footer-top h4 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #fff; font-weight: 500; margin-bottom: 14px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-top a { text-decoration: none; }
.footer-top a:hover { color: #fff; }
.footer-claim { margin-top: 16px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13px; }

/* ---------- Página de productos ---------- */
.page-hero { background: var(--pv-navy-950); color: #fff; position: relative; overflow: hidden; isolation: isolate; padding: clamp(56px, 9vw, 120px) 0 0; }
.page-hero h1 { font-size: clamp(48px, 10vw, 150px); font-weight: 900; letter-spacing: -0.055em; line-height: .88; }
.page-hero h1 .accent { display: block; }
.page-hero .lead { margin-top: 28px; }
.jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--pv-line-dark); }
.jump a { padding: 22px 20px 26px; text-decoration: none; border-right: 1px solid var(--pv-line-dark); display: grid; gap: 4px; transition: background .2s; }
.jump a:last-child { border-right: 0; }
.jump a:hover { background: rgba(255, 255, 255, .05); }
.jump small { font-family: var(--font-mono); font-size: 12px; color: var(--pv-orange-bright); }
.jump strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(17px, 1.8vw, 22px); letter-spacing: -0.02em; }

.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.svc-aside { position: sticky; top: 104px; align-self: start; display: grid; gap: 20px; }
.svc-index { font-family: var(--font-display); font-weight: 900; font-size: clamp(80px, 12vw, 170px); line-height: .8; letter-spacing: -0.07em; color: transparent; -webkit-text-stroke: 2px var(--pv-gray-300); }
.dark .svc-index { -webkit-text-stroke-color: rgba(255, 255, 255, .2); }
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc-card { background: var(--pv-white); border: 1px solid var(--pv-line); border-radius: var(--r-lg); padding: 26px 24px; display: grid; gap: 10px; align-content: start; transition: border-color .25s, transform .3s var(--ease); }
.svc-card:hover { border-color: var(--pv-navy); transform: translateY(-3px); }
.svc-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.svc-card p { color: var(--pv-muted); font-size: 15.5px; }
.svc-card.wide { grid-column: 1 / -1; background: var(--pv-navy); color: #fff; border-color: var(--pv-navy); }
.svc-card.wide p { color: var(--pv-muted-dark); }
.dark .svc-card { background: rgba(255, 255, 255, .04); border-color: var(--pv-line-dark); color: #fff; }
.dark .svc-card p { color: var(--pv-muted-dark); }
.dark .svc-card:hover { border-color: rgba(255, 255, 255, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--pv-gray-100); color: var(--pv-navy); font-weight: 500; }
.dark .chips span, .svc-card.wide .chips span { background: rgba(255, 255, 255, .08); color: var(--pv-text-dark); }

/* Ficha de producto ampliada (Trazo) */
.product-sheet { border-radius: 28px; overflow: hidden; }
.sheet-top { padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; position: relative; }
.sheet-top h3 { font-size: clamp(32px, 4.4vw, 58px); font-weight: 900; margin-top: 18px; }
.sheet-top .lead { margin-top: 16px; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sheet-modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .1); }
.sheet-modules div { padding: 24px 22px 28px; border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.sheet-modules div:nth-child(4n) { border-right: 0; }
.sheet-modules b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 12px; color: var(--tz-copper-light); margin-bottom: 10px; }
.sheet-modules h4 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.sheet-modules p { font-size: 14.5px; color: #aebccb; margin-top: 6px; line-height: 1.5; }
.sheet-states { display: grid; gap: 10px; }
.state-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: 12px; font-size: 13px; font-family: var(--font-mono); color: #c7d1dc; }
.state-row .bar { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.state-row .bar i { display: block; height: 100%; border-radius: 5px; width: 0; transition: width 1.2s var(--ease); }
.state-row .val { text-align: right; color: #fff; }
.sheet-panel { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 22px; }
.sheet-panel header { display: flex; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: #8fa0b2; margin-bottom: 18px; }
.sheet-integr { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #aebccb; flex-wrap: wrap; }
.sheet-integr strong { color: #fff; font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .hero-rotator .caret { animation: none; }
  .msg { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--pv-line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .sheet-modules { grid-template-columns: 1fr 1fr; }
  .sheet-modules div:nth-child(2n) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner, .ai, .local, .portfolio, .svc, .sheet-top { grid-template-columns: minmax(0, 1fr); }
  .svc-aside { position: static; }
  .product-card { min-height: 0; }
  .jump { grid-template-columns: 1fr 1fr; }
  .jump a:nth-child(2) { border-right: 0; }
  .jump a:nth-child(-n+2) { border-bottom: 1px solid var(--pv-line-dark); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stack a { min-height: 150px; padding: 16px; gap: 22px; }
  .stack a:nth-child(2), .stack a:nth-child(4) { transform: none; }
  .stack a:nth-child(2):hover, .stack a:nth-child(4):hover { transform: translateY(-4px); }
  .stack p { display: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar { border-right: 0; border-bottom: 1px solid var(--pv-line); }
  .steps, .svc-cards, .sheet-modules { grid-template-columns: minmax(0, 1fr); }
  .sheet-modules div { border-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-cta .btn, .sheet-actions .btn, .product-card .actions .btn { width: 100%; justify-content: center; }
  .state-row { grid-template-columns: 96px 1fr 36px; }
}

/* Ajustes tras revisión visual */
.page-hero .lead, .hero .lead { color: var(--pv-muted-dark); }
.contact-grid strong { font-size: clamp(16px, 1.45vw, 19px); }
@media (max-width: 900px) { .hero h1 { font-size: min(15vw, 104px); } }

/* ---------- Ficha de Vendex (paleta propia) ---------- */
.vx-scope { background: var(--vx-stone-100); color: var(--vx-ink); border: 1px solid var(--vx-stone-200); }
.vx-scope .product-tag { color: var(--vx-primary-600); }
.vx-scope .lead { color: var(--vx-muted); }
.vx-scope img.mark { border-radius: 11px; }
.vx-scope .word span { color: var(--vx-primary); }
.vx-scope .btn-vx { background: var(--vx-primary-600); color: #fff; }
.vx-scope .btn-vx:hover { background: var(--vx-primary-700); }
.btn-outline-vx { border-color: var(--vx-ink); color: var(--vx-ink); }
.btn-outline-vx:hover { background: var(--vx-ink); color: #fff; }
.vx-flow { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-flow span { font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--vx-stone-200); }
.vx-flow span.on { background: var(--vx-ink); color: #fff; border-color: var(--vx-ink); }
.vx-scope .sheet-modules { border-top-color: var(--vx-stone-200); }
.vx-scope .sheet-modules div { border-color: var(--vx-stone-200); }
.vx-scope .sheet-modules b { color: var(--vx-primary-600); }
.vx-scope .sheet-modules h4 { color: var(--vx-ink); }
.vx-scope .sheet-modules p { color: var(--vx-muted); }
.vx-ticket { background: #fff; border-radius: 18px; padding: 22px; border: 1px solid var(--vx-stone-200); box-shadow: 0 30px 60px -36px rgba(28, 24, 19, .45); display: grid; gap: 12px; }
.vx-ticket header { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--vx-muted); }
.vx-cur { display: inline-flex; justify-self: start; background: var(--vx-ink); border-radius: 10px; padding: 4px; gap: 2px; }
.vx-cur b { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: #cfc6bb; padding: 6px 12px; border-radius: 7px; }
.vx-cur b.on { background: var(--vx-primary-600); color: #fff; }
.vx-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--vx-stone-100); font-size: 15px; font-weight: 600; }
.vx-line small { display: block; font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--vx-muted); margin-top: 2px; }
.vx-line strong { font-family: var(--font-mono); font-weight: 500; }
.vx-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; padding-top: 4px; }
.vx-pay { text-align: center; background: var(--vx-primary-600); color: #fff; border-radius: 12px; padding: 13px; font-family: var(--font-display); font-weight: 700; }
.vx-note { font-family: var(--font-mono); font-size: 12px; color: var(--vx-muted); }
.vx-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 22px clamp(22px, 4vw, 40px) 28px; border-top: 1px solid var(--vx-stone-200); font-size: 14.5px; font-weight: 600; }
.vx-extra .chips span { background: #fff; color: var(--vx-ink); border: 1px solid var(--vx-stone-200); }

/* ---------- Catálogo de hardware (ilustraciones de línea) ---------- */
.cat-card { gap: 12px; }
.cat-art { background: var(--pv-gray-100); border-radius: 12px; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 6px; position: relative; }
.cat-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.cat-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--pv-orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.cat-card:hover .cat-art img { transform: scale(1.05); }
.cat-card:hover .cat-art::after { transform: scaleX(1); }

/* Contacto con dos números */
.contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Logotipo de Trazo (A4: la ruta en el nombre) ---------- */
.tz-logotype { display: inline-flex; align-items: flex-end; color: #fff; }
.tz-t { width: 22.8px; height: 27.4px; margin-right: 1.4px; margin-bottom: -2.1px; overflow: visible; flex-shrink: 0; }
.tz-razo { font-family: 'Archivo', var(--font-display); font-weight: 800; font-size: 36px; letter-spacing: -0.04em; line-height: .78; }
.tz-erp { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--tz-copper-light); margin-left: 12px; padding-bottom: 1px; }

/* Entrada del logotipo de Trazo: dibuja la ruta cada vez que la ficha entra en pantalla.
   Por defecto el logotipo está completo (sin JS o con movimiento reducido no se anima).
   main.js añade .is-armed (oculto, listo) y .is-drawing (dibujando) según la posición.
   Tiempos y curvas de docs/diseno/marca-trazo.md, sección 5. */
.tz-t .bar, .tz-t .stem, .tz-t .ring { stroke-dasharray: 1; stroke-dashoffset: 0; }
.tz-t .dot { transform-box: fill-box; transform-origin: center; }
.tz-logotype.is-armed .tz-t .bar, .tz-logotype.is-armed .tz-t .stem, .tz-logotype.is-armed .tz-t .ring { stroke-dashoffset: 1; opacity: 0; }
.tz-logotype.is-armed .tz-t .dot { transform: scale(0); }
.tz-logotype.is-armed .tz-razo, .tz-logotype.is-armed .tz-erp { opacity: 0; transform: translateX(-6px); }
.tz-logotype.is-drawing .tz-t .dot { animation: tz-dot .28s cubic-bezier(.3,1.6,.5,1) both; }
.tz-logotype.is-drawing .tz-t .bar { animation: tz-draw .42s var(--ease) .16s both; }
.tz-logotype.is-drawing .tz-t .stem { animation: tz-draw .3s var(--ease) .52s both; }
.tz-logotype.is-drawing .tz-t .ring { animation: tz-draw .32s var(--ease) .78s both; }
.tz-logotype.is-drawing .tz-razo, .tz-logotype.is-drawing .tz-erp { animation: tz-word .45s var(--ease) .85s both; }
@keyframes tz-dot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes tz-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes tz-word { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Contacto: formulario con WhatsApp al lado del envío ---------- */
.lead-form { display: grid; gap: 14px; margin-top: 36px; max-width: 860px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r); background: rgba(255, 255, 255, .06); border: 1px solid var(--pv-line-dark); }
.lead-form-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form .field { display: grid; gap: 6px; }
.lead-form label { font-size: 14px; font-weight: 500; color: var(--pv-text-dark); }
.lead-form .opt { color: var(--pv-muted-dark); font-weight: 400; }
.lead-form input, .lead-form textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: rgba(6, 22, 38, .55); border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, background .2s; }
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--pv-muted-dark); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--pv-orange-bright); background: rgba(6, 22, 38, .8); }
.lead-form [aria-invalid="true"] { border-color: var(--pv-orange-bright); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 4px; }
.wa-link { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--pv-text-dark); text-decoration: none; font-size: 15px; padding: 8px 4px; border-radius: 10px; transition: color .2s; }
.wa-link .wa-ico { width: 28px; height: 28px; flex-shrink: 0; color: #25d366; }
.wa-link strong { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.wa-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.lead-form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font-size: 14.5px; min-height: 1em; }
.form-status.ok { color: #8ee6b4; }
.form-status.err { color: var(--pv-orange-bright); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 700px) {
  .lead-form .row2 { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { justify-content: center; }
  .wa-link { justify-content: center; }
}
