/* ==========================================================================
   NG Metrics — Design System
   Negro + Lima eléctrico (#b3ff00) + Blanco · Poppins
   ========================================================================== */

:root {
  --color-bg:          #0a0a0a;
  --color-card:        #111111;
  --color-card-alt:    #161616;
  --color-accent:      #b3ff00;
  --color-accent-dim:  #8fcc00;
  --color-text:        #ffffff;
  --color-text-muted:  #888888;
  --color-border:      rgba(255, 255, 255, 0.07);
  --color-border-hi:   rgba(255, 255, 255, 0.16);
  --color-whatsapp:    #25D366;

  --maxw: 1200px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --section-pad: 100px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--color-accent); color: #000; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #000;
  padding: 12px 20px;
  font-weight: 700;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }

h1 { font-size: clamp(38px, 6.2vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
h4 { font-size: 15px; letter-spacing: 0.04em; }

.section-pad { padding: var(--section-pad) 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 22px;
}
.label::before { content: "✦"; font-size: 12px; }

.muted { color: var(--color-text-muted); }
.accent { color: var(--color-accent); }

.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* lime decorative underline on a word/phrase */
.underline-accent {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.26em;
  padding-bottom: 0.02em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), opacity 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--color-accent); color: #000; }
.btn-primary:hover { opacity: 0.88; }

.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-border-hi); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-lg { padding: 18px 38px; font-size: 17px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.logo .ng { color: var(--color-accent); }
.logo .metrics { color: var(--color-text); letter-spacing: 0.02em; }
.logo.sm { font-size: 20px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--color-accent); }

.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: "›";
  display: inline-block;
  transform: rotate(90deg);
  margin-left: 6px;
  font-size: 13px;
  opacity: 0.6;
}
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 264px;
  background: var(--color-card);
  border: 1px solid var(--color-border-hi);
  border-radius: var(--radius-card);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s var(--ease);
  box-shadow: 0 24px 50px rgba(0,0,0,0.6);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 14px;
  font-weight: 500;
  border-radius: 7px;
}
.dropdown a:hover { background: var(--color-card-alt); color: var(--color-accent); }

.btn-header {
  background: var(--color-accent);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.15s var(--ease);
}
.btn-header:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-header svg { width: 16px; height: 16px; }

.hamburger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--color-border-hi);
  border-radius: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  width: 20px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 72px 0 auto 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 28px 28px;
  transform: translateY(-110%);
  transition: transform 0.32s var(--ease);
  z-index: 999;
  display: none;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.mobile-nav .sub a { font-size: 15px; font-weight: 400; color: var(--color-text-muted); padding-left: 18px; }
.mobile-nav .btn-whatsapp { width: 100%; margin-top: 20px; }

/* ==========================================================================
   WhatsApp float
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  animation: pulse-wa 3s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 40px rgba(37,211,102,0.72); }
}

/* ==========================================================================
   Placeholders (image stand-ins)
   ========================================================================== */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 12px, transparent 12px 24px),
    var(--color-card-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
}
.ph span {
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0d0d0d;
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-border);
}
.footer-top .brand .logo { margin-bottom: 18px; }
.footer-top .brand p { color: var(--color-text-muted); margin-bottom: 14px; max-width: 320px; }
.footer-top .brand a { color: var(--color-accent); font-weight: 600; }
.site-footer h4 { text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 18px; font-size: 13px; }
.site-footer nav a { display: block; padding: 7px 0; color: var(--color-text); transition: color 0.2s; }
.site-footer nav a:hover { color: var(--color-accent); }
.footer-cta p { margin-bottom: 18px; font-weight: 600; font-size: 18px; }
.footer-bottom { padding-top: 28px; text-align: center; color: var(--color-text-muted); font-size: 14px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }
  .main-nav, .btn-header { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}
