:root {
  --navy: #0a1628;
  --navy-2: #10264a;
  --blue: #0b63ce;
  --cyan: #06b6d4;
  --ink: #132033;
  --muted: #5d6d83;
  --line: #dbe5f0;
  --soft: #f4f8fc;
  --white: #fff;
  --shadow: 0 18px 60px rgba(10, 22, 40, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219,229,240,.9);
  box-shadow: 0 10px 34px rgba(10, 22, 40, .06);
}
.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
}
.brand img { width: 44px; height: 44px; object-fit: contain; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.navlinks a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 9px;
}
.navlinks a:hover { color: var(--blue); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-weight: 800;
  line-height: 1.1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), #064fa8); border-color: transparent; box-shadow: 0 12px 28px rgba(11,99,206,.24); }
.btn-secondary { color: var(--navy); background: #fff; }
.promo-pop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(460px, calc(100vw - 28px));
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(219,229,240,.92);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(10,22,40,.22);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}
.promo-pop.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.promo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.promo-close:hover { color: var(--navy); border-color: rgba(11,99,206,.35); }
.promo-image {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff, #edf4fb);
}
.promo-image img {
  width: 100%;
  height: 132px;
  object-fit: contain;
}
.promo-content {
  min-width: 0;
  padding-right: 30px;
}
.promo-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #075985;
  background: #e6f7fb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.promo-content h2 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.15;
}
.promo-content p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.promo-content ul {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
}
.promo-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.promo-bottom strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}
.promo-bottom .btn {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
}
.promo-content small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10,22,40,.92), rgba(10,22,40,.72), rgba(10,22,40,.36)),
    var(--hero-image, url("../img/tecnico-instalacion.webp")) center / cover no-repeat;
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(10,22,40,.26));
  z-index: -1;
}
.hero .container {
  min-height: 540px;
  display: grid;
  align-items: center;
  padding: 76px 0 96px;
}
.hero-content {
  max-width: 680px;
  padding: 8px 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: #9eeaff;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}
.lead {
  margin: 0 0 28px;
  max-width: 650px;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -46px;
  position: relative;
  z-index: 2;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: 0 14px 42px rgba(10,22,40,.10);
}
.trust-card strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.trust-card span { color: var(--muted); font-size: 13px; }
.scope-note {
  margin: 20px auto 0;
  padding: 18px 20px;
  border: 1px solid #f1d3aa;
  border-radius: 10px;
  background: #fffaf1;
  color: #654414;
  font-size: 14px;
  line-height: 1.55;
}
.scope-note strong { display: block; color: #3d2a0b; margin-bottom: 5px; }
.section { padding: 86px 0; }
.section.alt { background: var(--soft); }
.section.compact { padding: 34px 0; }
.section.no-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}
.section p { color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(10,22,40,.06);
}
.card h3 { margin: 0 0 10px; color: var(--navy); line-height: 1.22; }
.card p { margin: 0; }
.answer-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(6,182,212,.10), transparent 42%),
    #fff;
  box-shadow: 0 16px 46px rgba(10,22,40,.08);
}
.answer-box .eyebrow { margin-bottom: 12px; color: #0891b2; }
.answer-box h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}
.answer-box p { margin: 0; max-width: 820px; }
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(10,22,40,.05);
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.category-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(11,99,206,.35);
  color: var(--blue);
}
.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.product-detail-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(10,22,40,.07);
}
.product-detail-image {
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 22px;
  background: linear-gradient(180deg, #f7fbff, #edf4fb);
  border-bottom: 1px solid var(--line);
}
.product-detail-image img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}
.product-detail-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}
.product-brand {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #075985;
  background: #e6f7fb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-detail-body h3 {
  margin: 0;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.2;
}
.product-detail-body p { margin: 0; color: var(--muted); }
.product-specs {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.product-specs li {
  color: #334155;
  font-size: 14px;
  line-height: 1.42;
}
.product-specs li strong { color: var(--navy); }
.quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.quote-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10,22,40,.06);
}
.quote-step strong {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font-size: 18px;
  line-height: 1;
}
.quote-step span {
  color: #334155;
  font-weight: 700;
  line-height: 1.45;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10,22,40,.06);
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}
.compare-table th,
.compare-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  color: var(--navy);
  background: #f8fbff;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.compare-table td:first-child {
  color: var(--navy);
  font-weight: 900;
}
.compare-table tr:last-child td { border-bottom: 0; }
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.step::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}
.step h3 { margin: 0 0 4px; color: var(--navy); }
.step p { margin: 0; }
.faq { display: grid; gap: 12px; }
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
summary { cursor: pointer; font-weight: 900; color: var(--navy); }
details p { margin: 12px 0 0; }
.cta {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 18px;
  padding: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { color: #fff; margin: 0 0 10px; }
.cta p { color: rgba(255,255,255,.76); margin: 0; }
.footer {
  padding: 34px 0;
  background: var(--navy);
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.footer a { color: #fff; font-weight: 800; }

@media (max-width: 860px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav {
    min-height: 68px;
    align-items: center;
    flex-direction: row;
    padding: 10px 0;
  }
  .brand { font-size: 15px; }
  .brand img { width: 38px; height: 38px; }
  .navlinks { gap: 4px; font-size: 13px; }
  .navlinks a { padding: 7px 8px; }
  .hero .container { min-height: 500px; padding: 58px 0 76px; }
  h1 { font-size: clamp(34px, 9vw, 48px); line-height: 1.05; }
  .lead { font-size: 16px; }
  .trust-row, .grid-3, .grid-2, .product-detail-grid, .quote-steps, .answer-box { grid-template-columns: 1fr; }
  .trust-row { margin-top: 20px; }
  .section { padding: 64px 0; }
  .section.compact { padding: 28px 0; }
  .answer-box { padding: 24px; }
  .answer-box .btn { width: 100%; }
  .promo-pop {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .promo-image { min-height: 122px; padding: 10px; }
  .promo-image img { height: 98px; }
  .promo-content { padding-right: 28px; }
  .promo-content h2 { font-size: 17px; }
  .promo-content p,
  .promo-content ul { font-size: 12px; }
  .promo-bottom strong { font-size: 20px; }
  .cta { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .navlinks a:not([href^="tel:"]) { display: none; }
  .hero-actions .btn { width: 100%; }
  .promo-pop { grid-template-columns: 1fr; }
  .promo-image { display: none; }
  .promo-bottom .btn { width: 100%; }
}
