/* ============================================================
   NanoThermIQ — ntiq.grupo-ats.com
   Advanced Engineered Coatings Division · A Grupo ATS company
   ============================================================ */

/* ── RESET & TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #08152a;
  --navy2:   #0d2244;
  --navy3:   #1a2b4a;
  --teal:    #1D9E75;
  --teal-d:  #085041;
  --teal-bg: #E1F5EE;
  --amber:   #BA7517;
  --amber-bg:#FAEEDA;
  --blue:    #185FA5;
  --red:     #A32D2D;
  --red-bg:  #FCEBEB;
  --ink:     #1a1a1a;
  --inks:    #555;
  --inkt:    #888;
  --bg:      #F4F4F1;
  --bgw:     #fff;
  --bd:      rgba(0,0,0,.09);
  --r:       11px;
  --rs:      7px;
  --max:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI',
               system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── LAMBDA TOOLTIP (singleton strategy) ────────────────────── */
/* position:absolute on a body child = document coordinates.
   Avoids position:fixed issues with CSS transforms/filters on
   any ancestor creating a new stacking context.                  */
#lambda-tooltip {
  display: none;
  position: absolute;
  z-index: 9999;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 14px 16px;
  width: 272px;
  box-shadow: 0 16px 48px rgba(0,0,0,.55);
  pointer-events: none;
  /* GPU-composite the tooltip to avoid repaints on scroll */
  will-change: transform;
}
#lambda-tooltip.visible { display: block; }
#lambda-tooltip::after {
  content: '';
  position: absolute;
  border: 7px solid transparent;
}
#lambda-tooltip.arrow-down::after {
  top: 100%;
  border-top-color: rgba(255,255,255,.18);
  left: var(--arrow-x, 24px);
}
#lambda-tooltip.arrow-up::after {
  bottom: 100%;
  border-bottom-color: rgba(255,255,255,.18);
  left: var(--arrow-x, 24px);
}
.lt-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}
.lt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 8px;
}
.lt-row:last-of-type { border-bottom: none; }
.lt-mat { font-size: 11px; color: rgba(255,255,255,.6); flex: 1; }
.lt-val { font-size: 12px; font-weight: 700; white-space: nowrap; }
.lt-val.ntq { color: var(--teal); }
.lt-val.comp { color: rgba(255,255,255,.35); }
.lt-mult {
  font-size: 10px;
  color: #e06c6c;
  background: rgba(163,45,45,.2);
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.lt-mult.ref {
  color: var(--teal);
  background: rgba(29,158,117,.2);
}
.lt-note {
  font-size: 9px;
  color: rgba(255,255,255,.25);
  margin-top: 8px;
  line-height: 1.5;
}

/* Trigger styling */
[data-lambda] {
  cursor: pointer;
  border-bottom: 1px dashed currentColor;
  opacity: .85;
  transition: opacity .15s;
}
[data-lambda]:hover { opacity: 1; }

/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img  { height: 40px; background: transparent; }
.footer-logo img { height: 32px; background: transparent; opacity: .75; }
.nav-brand { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.nav-brand em { color: var(--teal); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,.55); transition: .15s; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 7px 16px;
  border-radius: var(--rs);
  font-weight: 600;
  font-size: 13px;
}
.nav-cta:hover { background: var(--teal-d) !important; }
@media (max-width: 640px) { .nav-links .hide-m { display: none; } }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 20px 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 40%; height: 100%;
  background: linear-gradient(135deg, transparent, rgba(29,158,117,.07));
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start; /* was center — caused right column to stretch */
}
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 20px 50px; }
}
.hero-tag {
  display: inline-block;
  background: rgba(29,158,117,.15);
  border: 1px solid rgba(29,158,117,.25);
  color: var(--teal);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800; color: #fff; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -.02em;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  max-width: 460px; margin-bottom: 28px; line-height: 1.65;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: 14px;
  padding: 13px 24px; border-radius: var(--rs);
  border: none; cursor: pointer; font-family: inherit; transition: .15s;
}
.btn-primary:hover { background: var(--teal-d); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  font-weight: 500; font-size: 14px;
  padding: 13px 24px; border-radius: var(--rs);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer; font-family: inherit; transition: .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
}
@media (max-width: 480px) { .hero-stats { grid-template-columns: 1fr 1fr; } }
.hero-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r);
  padding: 18px 14px; text-align: center;
}
.hero-stat-n { font-size: 28px; font-weight: 800; color: var(--teal); }
.hero-stat-l { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 4px; line-height: 1.4; }

.scroll-hint {
  display: flex; align-items: center; gap: 8px;
  margin-top: 32px; font-size: 13px; color: rgba(255,255,255,.3);
}
.scroll-arrow {
  width: 24px; height: 24px;
  border: 1px solid rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}

/* ── SECTIONS ────────────────────────────────────────────────── */
section { padding: 70px 20px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800; color: var(--ink);
  margin-bottom: 12px; letter-spacing: -.02em; line-height: 1.25;
}
.section-sub {
  font-size: 16px; color: var(--inks);
  max-width: 560px; line-height: 1.65;
}

/* ── PROBLEMA ────────────────────────────────────────────────── */
.problem { background: #fff; }
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; margin-top: 48px; align-items: start;
}
@media (max-width: 768px) { .problem-grid { grid-template-columns: 1fr; } }
.flow-card { border-radius: var(--r); overflow: hidden; }
.flow-head {
  padding: 12px 18px; font-size: 11px;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.flow-head.red  { background: var(--red);  color: #fff; }
.flow-head.teal { background: var(--teal); color: #fff; }
.flow-body { padding: 18px; }
.flow-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.flow-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.flow-dot.red  { background: var(--red); }
.flow-dot.teal { background: var(--teal); }
.flow-item p { font-size: 13px; color: var(--ink); line-height: 1.55; }
.flow-arrow { text-align: center; color: var(--inkt); font-size: 12px; margin: 4px 0; }
.callout-box { background: var(--navy); border-radius: var(--r); padding: 20px 22px; margin-top: 28px; }
.callout-box p { font-size: 14px; color: rgba(255,255,255,.8); line-height: 1.7; font-style: italic; }
.callout-box span { color: var(--teal); font-weight: 700; }

/* ── SISTEMA ─────────────────────────────────────────────────── */
.async { background: var(--bg); }
.async-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
@media (max-width: 640px) { .async-grid { grid-template-columns: 1fr; } }
.async-card { background: #fff; border: 1px solid var(--bd); border-radius: var(--r); padding: 22px; }
.async-card.accent { border-color: var(--teal); background: var(--teal-bg); }
.async-card-tag {
  font-size: 10px; font-weight: 700;
  color: var(--inkt); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px;
}
.async-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.async-card ul { list-style: none; padding: 0; }
.async-card ul li {
  font-size: 13px; color: var(--inks);
  padding: 4px 0; border-bottom: 1px solid var(--bd);
  display: flex; gap: 8px;
}
.async-card ul li:last-child { border-bottom: none; }
.async-card ul li::before { content: '✗'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.async-card.accent ul li::before { content: '✓'; color: var(--teal-d); }
.formula {
  background: var(--navy); border-radius: var(--rs);
  padding: 16px 18px; margin-top: 20px;
}
.formula p   { font-size: 12px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.formula-val {
  display: inline-block;
  font-size: 13px; font-weight: 700;
  color: var(--teal); font-family: inherit;
}

/* ── CERTS ───────────────────────────────────────────────────── */
.cert-card {
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 18px;
}
.cert-card.highlight { background: var(--teal-bg); border-color: rgba(29,158,117,.3); }
.cert-card-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.cert-card-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cert-card-body  { font-size: 12px; color: var(--inks); line-height: 1.6; }
.cert-badge {
  background: var(--bg); border: 1px solid var(--bd);
  border-radius: var(--rs); padding: 6px 14px;
  font-size: 11px; font-weight: 700; color: var(--inks); letter-spacing: .04em;
}

/* ── ROI CALCULATOR ──────────────────────────────────────────── */
.roi { background: var(--navy2); padding: 80px 20px; }
.roi-inner { max-width: 800px; margin: 0 auto; }
.roi-hdr { margin-bottom: 40px; }
.roi-hdr .section-tag   { color: var(--teal); }
.roi-hdr .section-title { color: #fff; }
.roi-hdr .section-sub   { color: rgba(255,255,255,.45); }
.roi-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r); padding: 28px;
}
.roi-form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 20px;
}
@media (max-width: 580px) { .roi-form-grid { grid-template-columns: 1fr; } }
.fld { margin-bottom: 0; }
.fld label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 8px;
}
.fld .val { color: var(--teal); float: right; }
.fld input[type=number] {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rs); padding: 11px 14px;
  font-size: 16px; font-weight: 700; color: #fff; font-family: inherit;
}
.fld input[type=number]:focus { outline: none; border-color: var(--teal); }
.fld input[type=range]  { width: 100%; accent-color: var(--teal); }
.fld select {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rs); padding: 11px 14px;
  font-size: 13px; color: #fff; font-family: inherit;
}
.fld select option { background: #1a2b4a; color: #fff; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .results-grid { grid-template-columns: 1fr; } }
.res-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--rs); padding: 16px;
}
.res-label  { font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.res-value  { font-size: 22px; font-weight: 800; color: var(--teal); }
.res-sub    { font-size: 10px; color: rgba(255,255,255,.25); margin-top: 3px; }
.verdict-box {
  background: rgba(29,158,117,.1); border: 1px solid rgba(29,158,117,.2);
  border-radius: var(--rs); padding: 16px; margin-top: 16px; text-align: center;
}
.verdict-text { font-size: 14px; font-weight: 700; color: var(--teal); }
.verdict-sub  { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 4px; }
.bar-wrap { margin: 16px 0; }
.bar-label {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,.55); margin-bottom: 6px;
}
.bar-track { height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.bar-fill  { height: 100%; background: var(--teal); border-radius: 3px; transition: width .4s; }
.breakdown { border-top: 1px solid rgba(255,255,255,.06); padding-top: 16px; margin-top: 4px; }
.brow {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.brow:last-child { border-bottom: none; }
.brow-l { color: rgba(255,255,255,.6); }
.brl     { color: rgba(255,255,255,.6); } /* alias used in HTML */
.brow-v { color: #fff; font-weight: 500; }
.brow-v.accent { color: var(--teal); font-size: 14px; font-weight: 800; }
.no-act {
  background: var(--amber-bg); border: 1px solid rgba(186,117,23,.2);
  border-radius: var(--rs); padding: 16px; margin-top: 16px;
}
.no-act-tag { font-size: 10px; font-weight: 700; color: var(--amber); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.no-act-n   { font-size: 24px; font-weight: 800; color: var(--amber); }
.no-act-s   { font-size: 12px; color: var(--amber); margin-top: 3px; }
.disclaimer { font-size: 10px; color: rgba(255,255,255,.45); line-height: 1.6; margin-top: 16px; }

/* ── CONTACT ─────────────────────────────────────────────────── */
.contact { background: #fff; padding: 80px 20px; }
.contact-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
@media (max-width: 768px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }
.contact-form { background: var(--bg); border-radius: var(--r); padding: 28px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--inks); margin-bottom: 7px;
}
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%; border: 1px solid var(--bd);
  border-radius: var(--rs); padding: 11px 14px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
}
.form-row input:focus,
.form-row textarea:focus { outline: none; border-color: var(--teal); }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-submit {
  width: 100%; background: var(--teal); color: #fff;
  border: none; border-radius: var(--rs); padding: 14px;
  font-size: 15px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: .15s;
}
.form-submit:hover { background: var(--teal-d); }
.wa-cta {
  display: flex; align-items: center; gap: 14px;
  background: var(--navy); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 20px;
  cursor: pointer; transition: .1s;
}
.wa-cta:hover { background: var(--navy3); }
.wa-icon {
  width: 44px; height: 44px; background: #25D366;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
.wa-icon svg { width: 24px; height: 24px; }
.wa-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.wa-text span   { font-size: 12px; color: rgba(255,255,255,.45); }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-info-icon {
  width: 36px; height: 36px; background: var(--teal-bg);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 16px;
}
.contact-info-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.contact-info-text span   { font-size: 12px; color: var(--inks); }

/* ── VENDORS STRIP ───────────────────────────────────────────── */
.vendors { background: var(--navy); padding: 50px 20px; }
.vendors-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.vendors-text strong { display: block; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.vendors-text span   { font-size: 13px; color: rgba(255,255,255,.4); }
.btn-vendor {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15); color: #fff;
  font-size: 13px; font-weight: 600; padding: 11px 20px;
  border-radius: var(--rs); cursor: pointer;
  font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn-vendor:hover { background: rgba(255,255,255,.12); }

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--navy2);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 40px 20px 30px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 30px;
  flex-wrap: wrap; margin-bottom: 32px;
}
.footer-brand { max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-logo-text { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.7); }
.footer-logo-text em { color: var(--teal); font-style: normal; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.6; }
.footer-links h4 {
  font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: 12px;
}
.footer-links a {
  display: block; font-size: 13px;
  color: rgba(255,255,255,.45); margin-bottom: 8px; transition: .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05); padding-top: 20px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p   { font-size: 11px; color: rgba(255,255,255,.2); }
.footer-ats { display: flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.25); }
