/* VIEREK — sitio institucional
   Manual de marca v1.0: azul marino #0B0F24 de base, azul VIEREK #0066FF como color principal,
   violeta #8A00FF solo como acento gráfico (nunca texto sobre oscuro), cian #00D4FF para datos y destacados.
   Exo 2 en títulos, Montserrat en textos. */

@font-face { font-family: "Exo 2"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/exo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/exo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0B0F24;
  --surface: #0E1330;
  --card: #121835;
  --line: #1E2547;
  --line-2: #2E3870;
  --ink: #FFFFFF;
  --ink-2: #C9D0EE;
  --ink-3: #A9B2D6;
  --blue: #0066FF;
  --blue-hover: #0055D6;
  --violet: #8A00FF;
  --cyan: #00D4FF;

  --title: "Exo 2", Arial, sans-serif;
  --text: "Montserrat", Arial, sans-serif;
  --r-control: 8px;
  --r-panel: 14px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 32px);
  --split: 1fr 1.1fr; /* única proporción para las grillas de dos columnas */
  --topbar: 72px;

  color-scheme: dark;
  scrollbar-color: var(--line-2) var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--cyan); }
::selection { background: rgba(0, 102, 255, .45); color: var(--ink); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 3px solid var(--bg); border-radius: 8px; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-underline-offset: 4px; }
a:hover { color: #7FE9FF; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--title); font-weight: 700; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.25; }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-3); max-width: 38em; margin: 20px 0 0; text-wrap: pretty; }
.accent { color: var(--cyan); }
.sub { font-size: 24px; margin: 0 0 22px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: var(--r-control);
  font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; color: var(--ink);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { color: var(--ink); }
.btn--primary { background: var(--blue); }
.btn--primary:hover { background: var(--blue-hover); color: var(--ink); }
.btn--secondary { background: var(--card); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink-3); }
.btn--ghost { border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary svg { transition: transform .2s var(--ease-out); }
.btn--primary:hover svg[aria-hidden] { transform: translateX(2px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 520px) { .actions .btn { width: 100%; } }
.link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; text-decoration: none; }
.link svg { width: 14px; height: 14px; }
.link:hover { text-decoration: underline; }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { height: var(--topbar); display: flex; align-items: center; gap: 28px; }
.brand { flex: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 176px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current]:not(.btn) { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__cta, .nav__toggle { display: none; }
.lang { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--r-control); }
.lang a { font: 600 13px/1 var(--text); letter-spacing: .04em; color: var(--ink-3); text-decoration: none; padding: 11px 12px; border-radius: 5px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (max-width: 1000px) {
  .lang { margin-left: auto; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: var(--r-control);
    color: var(--ink); cursor: pointer;
  }
  .nav__toggle svg { width: 18px; height: 18px; }
  .nav {
    display: none; position: fixed; inset: var(--topbar) 0 auto 0; z-index: 49; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--pad) 24px;
    background: var(--bg); border-bottom: 1px solid var(--line-2);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current]:not(.btn) { text-decoration: none; color: var(--cyan); }
  .nav .nav__cta { display: inline-flex; margin-top: 20px; height: 52px; }
}
@media (max-width: 560px) { .brand img { width: 128px; } .topbar__cta { display: none; } .topbar__inner { gap: 12px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  min-height: calc(100svh - var(--topbar)); display: grid; align-content: center;
}
.hero__v { position: absolute; z-index: -1; right: -40px; top: 50%; width: min(720px, 50vw); height: auto; transform: translateY(-50%); pointer-events: none; }
.hero__v .v-a, .hero__v .v-b { fill: var(--blue); }
.hero__v .v-c { fill: var(--violet); }
.hero__inner { position: relative; width: 100%; }
.hero h1 { font-size: clamp(42px, 5.6vw, 74px); line-height: 1.03; max-width: 9.6em; }
.hero .lead { max-width: 31em; }
.facts { list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 40px; max-width: 900px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.facts svg { width: 16px; height: 16px; color: var(--cyan); }

/* El momento animado del sitio: los planos de la V entran al cargar */
@media (prefers-reduced-motion: no-preference) {
  .hero__v polygon { animation: v-in 1.1s var(--ease-out) backwards; transform-box: fill-box; }
  .hero__v .v-a { animation-delay: .1s; }
  .hero__v .v-b { animation-delay: .25s; }
  .hero__v .v-c { animation-delay: .4s; --from: translate(18%, -18%); }
}
@keyframes v-in { from { opacity: 0; transform: var(--from, translate(-14%, 14%)); } }

@media (max-width: 1100px) { .hero__v { opacity: .3; width: 70vw; right: -16vw; } }
@media (max-width: 640px) { .hero__v { opacity: .2; width: 110vw; top: 30%; right: -46vw; } }

/* ---------- Secciones ---------- */
.section { padding: clamp(88px, 12vw, 144px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 820px; margin-bottom: clamp(44px, 6vw, 72px); }

/* Qué hacemos */
.split { display: grid; grid-template-columns: var(--split); gap: clamp(40px, 7vw, 96px); align-items: start; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.areas li { display: flex; gap: 16px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.areas li:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--line); }
.areas svg { width: 22px; height: 22px; color: var(--cyan); flex: none; margin-top: 3px; }
.areas p { margin: 8px 0 0; color: var(--ink-3); font-size: 15px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } .areas li:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Productos */
.product { margin-top: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: var(--split); border: 1px solid var(--line-2); border-radius: var(--r-panel); background: var(--card); overflow: hidden; }
.product__main { padding: clamp(28px, 4vw, 48px); }
.product__status { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--cyan); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 212, 255, .15); }
.product__name { margin-top: 16px; font-size: clamp(32px, 3.6vw, 44px); line-height: 1.05; letter-spacing: .02em; }
.product__tag { margin: 10px 0 0; font-family: var(--title); font-weight: 600; font-size: 22px; color: var(--ink-2); }
.product__text { margin: 18px 0 24px; color: var(--ink-3); max-width: 34em; }
.product__facts { margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.product__facts div { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); }
.product__facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.product__facts dt { font-size: 13px; color: var(--ink-3); }
.product__facts dd { margin: 2px 0 0; font-family: var(--title); font-weight: 600; font-size: 17px; }
.product__shot { margin: 0; padding: clamp(20px, 3vw, 36px); background: var(--bg); border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; }
.product__shot img { width: 100%; border-radius: 10px; border: 1px solid var(--line-2); }
.product__shot figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.next-product { margin: 28px 0 0; color: var(--ink-3); max-width: 46em; }
.next-product b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product__shot { border-left: 0; border-top: 1px solid var(--line-2); } }

/* Inversores */
.band { background: var(--surface); overflow: hidden; isolation: isolate; }
.band__v { position: absolute; z-index: -1; right: -12%; top: -18%; height: 70%; width: auto; pointer-events: none; }
.band__v polygon { fill: none; stroke: var(--line-2); stroke-width: .5; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-bottom: clamp(64px, 8vw, 96px); }
.why div { padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.why div::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 1px; background: var(--cyan); }
.why p { margin: 10px 0 0; color: var(--ink-3); font-size: 15px; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

.road { list-style: none; margin: 0 0 clamp(64px, 8vw, 96px); padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.road li { position: relative; padding: 30px 20px 0 0; border-top: 2px solid var(--line-2); }
.road li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.road li.is-now { border-top-color: var(--cyan); }
.road li.is-now::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(0, 212, 255, .18); }
.road li.is-goal::before { border-color: var(--violet); background: var(--violet); }
.road__when { display: block; font-family: var(--title); font-weight: 700; font-size: 18px; }
.road li.is-now .road__when { color: var(--cyan); }
.road__what { display: block; margin-top: 6px; color: var(--ink-3); font-size: 14px; }
@media (max-width: 900px) {
  .road { grid-template-columns: 1fr; }
  .road li { border-top: 0; border-left: 2px solid var(--line-2); padding: 0 0 26px 26px; }
  .road li.is-now { border-left-color: var(--cyan); border-top: 0; }
  .road li::before { top: 2px; left: -8px; }
}

.meet { display: grid; grid-template-columns: var(--split); gap: clamp(32px, 6vw, 72px); align-items: start; }
.meet__steps ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.meet__steps li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-3); }
.meet__steps li b { color: var(--ink); font-weight: 600; }
.meet__steps svg { width: 18px; height: 18px; color: var(--cyan); flex: none; margin-top: 4px; }
.meet__card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: clamp(26px, 3.5vw, 40px); }
.meet__card > p { color: var(--ink-2); margin: 20px 0 26px; }
.meet__card small { display: block; margin-top: 16px; color: var(--ink-3); font-size: 13px; }
.person { display: flex; align-items: center; gap: 16px; }
.person__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-family: var(--title); font-weight: 700; font-size: 20px; flex: none; }
.person__name { margin: 0; font-weight: 600; font-size: 17px; }
.person__role { margin: 2px 0 0; color: var(--ink-3); font-size: 14px; }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } .meet__card .btn { width: 100%; } }

/* Equipo */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.team li { padding: 28px 24px 0 0; }
.team li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.team h3 { font-size: 22px; }
.team__role { margin: 4px 0 0; color: var(--cyan); font-weight: 600; font-size: 14px; }
.team li > p:last-child { margin: 12px 0 0; color: var(--ink-3); font-size: 15px; }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; row-gap: 32px; } .team li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; } .team li + li { padding-left: 0; border-left: 0; } }

/* Contacto */
.contact { padding-top: clamp(104px, 14vw, 176px); padding-bottom: clamp(104px, 14vw, 176px); }
.contact h2 { font-size: clamp(38px, 5.4vw, 64px); max-width: 12em; }
.contact__alt { margin: 22px 0 0; color: var(--ink-3); }
.contact__alt a { font-weight: 600; word-break: break-word; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 13px; color: var(--ink-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.footer p { margin: 0; }

/* Raíz sin middleware */
.fallback { min-height: 100vh; display: grid; place-items: center; }
.fallback a { margin: 0 10px; }

/* El botón dentro del menú conserva el texto blanco del botón primario */
.nav .nav__cta, .nav .nav__cta:hover { color: var(--ink); font-size: 15px; }

/* Alternativas al botón de mail para quien usa el correo en el navegador */
.webmail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.webmail a { font-weight: 600; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px;
  font: 600 14px/1 var(--text); color: var(--cyan); background: none;
  border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer;
}
.copy:hover { border-color: var(--cyan); }
.copy svg { width: 13px; height: 13px; }
