/* ============================================================
   EHA Solutions Group — Sitio web
   Paleta y tipografía según el Manual de Marca v1.0
   ============================================================ */

:root {
  /* Colores de marca */
  --azure:    #2F7DF6;
  --cyan:     #4FD0E0;
  --midnight: #0A1428;
  --navy:     #13233F;
  --mist:     #EAF1FB;

  --navy-soft: #17294a;
  --line: rgba(234, 241, 251, 0.10);
  --line-strong: rgba(79, 208, 224, 0.35);
  --text: #EAF1FB;
  --text-dim: #9fb0c9;
  --text-faint: #6b7d99;

  --grad: linear-gradient(90deg, var(--cyan), var(--azure));
  --grad-diag: linear-gradient(135deg, var(--azure), var(--cyan));

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --radius: 18px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  background: var(--midnight);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.015em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--azure); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; }
.brand-mark { height: 48px; width: auto; display: block; }
.brand-mark-sm { height: 52px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a { font-size: 15px; color: var(--text-dim); transition: color .2s; }
.site-nav > a:hover { color: var(--mist); }
.nav-cta { color: #fff !important; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-faint);
}
.lang-switch button {
  background: none; border: none; cursor: pointer; color: var(--text-faint);
  font-family: var(--font-mono); font-size: 13px; padding: 2px 2px; transition: color .2s;
}
.lang-switch button:hover { color: var(--mist); }
.lang-switch button.is-active { color: var(--cyan); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--azure); color: #fff; box-shadow: 0 8px 24px rgba(47,125,246,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,125,246,.42); }
.btn-ghost { background: transparent; color: var(--mist); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(79,208,224,.08); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #06341c; box-shadow: 0 8px 24px rgba(37,211,102,.25); }
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,.4); }

/* ---------- Circuit background motif ---------- */
.circuit-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(47,125,246,.22), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(79,208,224,.12), transparent 55%);
}
.circuit-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(79,208,224,.16) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 90px) 0 110px; }
.hero-inner { position: relative; z-index: 1; max-width: 820px; margin-right: auto; }
.eyebrow, .section-tag {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.28em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 22px;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-dim); margin: 26px 0 36px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--midnight), var(--navy) 50%, var(--midnight)); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; max-width: 16ch; }
.section-lead { color: var(--text-dim); font-size: 1.1rem; margin-top: 18px; max-width: 62ch; margin-bottom: 52px; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--navy); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; transition: border-color .25s, transform .25s, background .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-dim); }

.card-num { font-family: var(--font-mono); font-size: 14px; color: var(--azure); display: block; margin-bottom: 18px; }
.svc-icon { display: inline-flex; margin-bottom: 16px; }
.svc-icon svg { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Case cards */
.case-sector { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 14px; }
.case-card h3 { font-size: 1.3rem; }
.case-metric { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--mist); font-weight: 600; }

/* About */
.about-grid { margin-bottom: 56px; }
.card-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); margin-bottom: 16px; }
.about-statement { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--mist); line-height: 1.3; }
.values-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--text-dim); margin-bottom: 22px; }
.values-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.values-list li { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.values-list strong { font-family: var(--font-display); color: var(--mist); margin-right: 4px; }
.values-list span:not(.dot) { color: var(--text-dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grad); flex: none; transform: translateY(2px); }

/* Contact */
.section-contact { padding: 110px 0; text-align: center; overflow: hidden; }
.contact-inner { position: relative; z-index: 1; max-width: 760px; }
.section-contact .section-tag,
.section-contact .section-title,
.section-contact .section-lead { margin-left: auto; margin-right: auto; }
.section-contact .section-title { max-width: 22ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 22px; }
.contact-note { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--midnight); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer-tag { color: var(--text-dim); margin-top: 14px; font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: var(--text-dim); font-size: .95rem; transition: color .2s; }
.footer-nav a:hover { color: var(--mist); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
    width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--mist); margin-inline: auto; transition: .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: rgba(10,20,40,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); padding: 18px 24px 26px;
    transform: translateY(-140%); transition: transform .3s ease; visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav > a { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .nav-cta { margin-top: 8px; }
  .lang-switch { margin-top: 14px; font-size: 15px; }
  .lang-switch button { font-size: 15px; }

  .grid-2 { grid-template-columns: 1fr; }
  .values-list { grid-template-columns: 1fr; }
  .brand-mark { height: 42px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
