/**
 * Archivo:     assets/css/styles.css
 * Proyecto:    Sitio web NIXEL IT (nixel.com.ar)
 * Descripción: Estilos del sitio. Los colores, espacios y radios salen del
 *              design system de NIXEL IT (rojo #e41536, grafito #1f2e39).
 * Versión:     1.1.0
 * Fecha:       2026-11-25
 * Autor:       NIXEL IT
 *
 * Historial:
 *   1.1.0 (2026-11-25) Estilo del captcha de suma.
 *   1.0.0 (2026-11-25) Versión inicial.
 */

/* ---------- 1. Tokens de marca (design system NIXEL IT) ---------- */
:root {
  --nixel-rojo: #e41536;
  --nixel-rojo-hover: #c41030;
  --nixel-rojo-texto: #e41536;
  --nixel-grafito: #1f2e39;
  --noche: #141c22;          /* fondo oscuro del tema "Oscuro" */
  --surface: #ffffff;
  --surface-alt: #f4f5f6;
  --ink: #1f2e39;
  --ink-muted: #5b6670;
  --ink-inv: #f4f5f6;
  --ink-inv-muted: #a9b2ba;
  --line: #dfe3e6;
  --line-dark: #33424e;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 2px; --radius-md: 4px; --radius-lg: 8px;

  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1160px;
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 var(--space-4); }

.wrap { width: min(100% - 2 * var(--space-6), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-4); top: -60px; z-index: 100; background: var(--nixel-rojo); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); }
.skip:focus { top: var(--space-4); }
:focus-visible { outline: 3px solid var(--nixel-rojo); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-inv-muted); margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--nixel-rojo); }
.eyebrow--dark { color: var(--ink-muted); }
.accent { color: var(--nixel-rojo); }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 var(--space-6);
  font: 700 15px/1 var(--font); text-decoration: none;
  border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--nixel-rojo); color: #fff; }
.btn--primary:hover { background: var(--nixel-rojo-hover); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- 4. Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(20, 28, 34, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.header.is-scrolled { background: rgba(20, 28, 34, .94); border-bottom-color: var(--line-dark); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo img { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav a:not(.btn) { color: var(--ink-inv); text-decoration: none; font-weight: 600; font-size: 15px; opacity: .85; }
.nav a:not(.btn):hover { opacity: 1; color: #fff; }
.nav-toggle { display: none; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink-inv);
  background:
    radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(160deg, var(--nixel-grafito) 0%, var(--noche) 65%);
  padding: calc(var(--header-h) + var(--space-24)) 0 var(--space-24);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-12); align-items: center; }
.hero__title { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: var(--space-6); color: #fff; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-inv-muted); max-width: 560px; margin-bottom: var(--space-8); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-8); }
.hero__motto { font-size: 14px; font-weight: 600; color: var(--ink-inv-muted); margin: 0; }
.hero__art { justify-self: center; width: min(100%, 400px); position: relative; display: grid; place-items: center; }
.hex { width: 100%; height: auto; }
.hex__outline { fill: none; stroke: var(--line-dark); stroke-width: 2; }
.hero__iso { position: absolute; width: 62%; height: auto; filter: drop-shadow(0 20px 40px rgba(228,21,54,.25)); }
@media (prefers-reduced-motion: no-preference) {
  .hex__outline { animation: girar 60s linear infinite; transform-origin: 200px 220px; }
  @keyframes girar { to { transform: rotate(360deg); } }
}

/* ---------- 6. Clientes ---------- */
.clients { background: var(--noche); border-top: 1px solid var(--line-dark); padding: var(--space-8) 0; }
.clients__title { color: var(--ink-inv-muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-align: center; margin-bottom: var(--space-6); }
.clients__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-8); }
.clients__list li { color: var(--ink-inv); font-weight: 800; font-size: 17px; letter-spacing: -0.01em; opacity: .72; }

/* ---------- 7. Secciones ---------- */
.section { padding: var(--space-24) 0; }
.section--alt { background: var(--surface-alt); }
.section--dark { background: var(--nixel-grafito); color: var(--ink-inv); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 680px; margin-bottom: var(--space-12); }
.section__lead { font-size: 18px; color: var(--ink-muted); }

/* ---------- 8. Servicios ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-8);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--nixel-rojo); transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31,46,57,.35); }
.card p { color: var(--ink-muted); margin: 0; }
.card__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--surface-alt); margin-bottom: var(--space-6); }
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--nixel-rojo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card__link { display: inline-block; margin-top: var(--space-4); font-weight: 700; font-size: 14px; color: var(--nixel-rojo-texto); text-decoration: none; }
.card__link:hover { text-decoration: underline; }
.card--featured { grid-column: span 2; background: var(--nixel-grafito); border-color: var(--nixel-grafito); color: var(--ink-inv); }
.card--featured h3 { color: #fff; font-size: 26px; }
.card--featured p { color: var(--ink-inv-muted); font-size: 17px; max-width: 560px; }
.card--featured .card__icon { background: var(--nixel-rojo); }
.card--featured .card__icon svg { stroke: #fff; }

/* ---------- 9. Marcas ---------- */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.brand {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-12) var(--space-8); border-radius: var(--radius-lg);
  text-decoration: none; color: #fff; transition: transform .2s;
}
.brand:hover { transform: translateY(-3px); }
.brand img { height: 84px; width: auto; }
.brand p { color: rgba(255,255,255,.82); margin: 0; font-size: 17px; }
.brand__go { font-weight: 700; font-size: 14px; margin-top: auto; }
.brand--gps { background: #1f3767; }   /* azul Global GPS */
.brand--seg { background: #2c4a77; }   /* azul Global Seguridad */

/* ---------- 10. Nosotros ---------- */
.about { display: grid; gap: var(--space-12); }
.about__intro { max-width: 760px; }
.about__intro p:not(.eyebrow) { font-size: 18px; color: var(--ink-muted); }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.pillar { border-top: 3px solid var(--nixel-rojo); padding-top: var(--space-6); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.ticks li { position: relative; padding-left: var(--space-8); color: var(--ink-muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--nixel-rojo); border-bottom: 3px solid var(--nixel-rojo); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); }
.values__title { margin-bottom: var(--space-6); }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.values__list li { background: var(--surface-alt); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-1); }
.values__list strong { font-size: 17px; }
.values__list span { color: var(--ink-muted); font-size: 15px; }

/* ---------- 11. Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); counter-reset: none; }
.steps li { border-top: 1px solid var(--line-dark); padding-top: var(--space-6); }
.steps__n { display: block; font-size: 40px; font-weight: 800; color: var(--nixel-rojo); letter-spacing: -0.03em; margin-bottom: var(--space-3); }
.steps p { color: var(--ink-inv-muted); margin: 0; }

/* ---------- 12. Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.quote { margin: 0; padding: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: var(--space-6); }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.6; }
.quote blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .6; color: var(--nixel-rojo); font-weight: 800; margin-bottom: var(--space-3); }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--ink-muted); font-size: 15px; }

/* ---------- 13. Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-12); align-items: start; }
.contact__info > p:not(.eyebrow) { font-size: 18px; color: var(--ink-muted); }
.contact__list { list-style: none; margin: var(--space-8) 0; padding: 0; display: grid; gap: var(--space-4); }
.contact__list li { display: grid; gap: 2px; font-weight: 600; }
.contact__list span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--nixel-rojo-texto); }
.social { display: flex; gap: var(--space-3); }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--nixel-grafito); transition: background .2s; }
.social a:hover { background: var(--nixel-rojo); }
.social svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: 0 20px 50px -30px rgba(31,46,57,.45); display: grid; gap: var(--space-4); }
.form__2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form__row { display: grid; gap: var(--space-2); }
.form label { font-weight: 700; font-size: 14px; }
.form .opt { font-weight: 400; color: var(--ink-muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid #b9c1c8; border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--nixel-rojo); box-shadow: 0 0 0 3px rgba(228,21,54,.18); }
.form textarea { resize: vertical; min-height: 130px; }
.form [aria-invalid="true"] { border-color: var(--nixel-rojo); }
.form__status { margin: 0; font-weight: 600; min-height: 1.6em; }
.form__status.is-ok { color: #1c7c45; }
.form__status.is-error { color: var(--nixel-rojo-texto); }
.form__captcha input { max-width: 120px; font-size: 18px; font-weight: 700; text-align: center; }
.captcha__q { white-space: nowrap; color: var(--nixel-rojo-texto); font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 14. Pie ---------- */
.footer { background: var(--noche); color: var(--ink-inv-muted); padding: var(--space-12) 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.footer__nav { display: flex; gap: var(--space-6); }
.footer__nav a { text-decoration: none; font-weight: 600; font-size: 14px; }
.footer__nav a:hover { color: #fff; }
.footer__legal { margin: 0; font-size: 14px; }

/* ---------- 15. WhatsApp ---------- */
.wa {
  position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45); transition: transform .2s;
}
.wa:hover { transform: scale(1.06); }
.wa svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- 16. Animación de entrada (solo si el usuario no pidió reducir movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 17. Página 404 ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; padding: var(--space-12) 0; }
.error-page__inner { text-align: center; }
.error-page__inner img { margin: 0 auto 40px; }
.error-page__inner .hero__lead { margin-inline: auto; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .contact { grid-template-columns: 1fr; }
  .hero__art { width: 240px; justify-self: start; order: -1; }
  .cards, .quotes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .values__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .2s;
  }
  .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -7px; }
  .nav-toggle__bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--noche); border-bottom: 1px solid var(--line-dark);
    padding: var(--space-4) var(--space-6) var(--space-6); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: var(--space-3) 0; }
  .nav .btn { margin-top: var(--space-3); }
  .hero__art { display: none; }
  .section { padding: var(--space-16) 0; }
  .hero { padding: calc(var(--header-h) + var(--space-12)) 0 var(--space-16); }
  .cards, .quotes, .brands, .about__cols, .steps, .values__list, .form__2 { grid-template-columns: 1fr; }
  .card--featured { grid-column: auto; }
  .brand img { height: 64px; }
  .form { padding: var(--space-6); }
}
