/* ==========================================================================
   Pacific Bridge & Support LLC — Hoja de estilos base
   Minimalista, industrial, optimizada para lectura en español (LatAm)
   ========================================================================== */

:root {
  /* Color */
  --ink: #0f1720;
  --ink-2: #26313c;
  --muted: #6a7683;
  --line: #e3e7eb;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --bg-soft: #f6f8f9;
  --navy: #0f2739;
  --navy-2: #16394f;
  --copper: #b9663a;
  --copper-soft: #f6ece6;
  --wa: #25d366;
  --wa-dark: #1da851;

  /* Tipografía */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Métrica */
  --wrap: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 32, .05), 0 8px 24px rgba(15, 23, 32, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 32, .12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--copper); }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 650;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Utilidades ---------- */
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper);
  margin-bottom: 14px;
}
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--navy); color: #cdd8e1; }
.bg-dark h2, .bg-dark h3 { color: #fff; }

hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #06301a; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--copper); }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.wa-ico { width: 18px; height: 18px; flex: none; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  height: 36px; width: auto; flex: none;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 680; font-size: 1rem; letter-spacing: -.02em; }
.brand-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 520;
  color: var(--ink-2);
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a.active { color: var(--copper); }
.header-cta { margin-left: 8px; }

/* ---------- Selector de idioma ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
}
.lang-switch button {
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: .74rem;
  font-weight: 620;
  letter-spacing: .06em;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.on { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .header-cta { margin: 8px 0 0; justify-content: center; }
  .lang-switch { margin: 10px 0 0; align-self: center; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 92px 0 78px;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(185, 102, 58, .10), transparent 60%),
    radial-gradient(760px 420px at 4% 0%, rgba(15, 39, 57, .07), transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 60ch; font-size: 1.16rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 1.02rem; margin-bottom: 4px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: .96rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--copper-soft);
  border: 1.5px solid var(--copper);
}

/* ---------- Rejillas y tarjetas ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; }
a.card:hover { border-color: #c9d2da; box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }

.card-num {
  font-size: .72rem;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--copper);
  text-transform: uppercase;
}
.card-link { font-weight: 600; font-size: .92rem; color: var(--navy-2); }
a.card:hover .card-link { color: var(--copper); }

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  margin: 0 6px 6px 0;
}
.tag-copper { background: var(--copper-soft); border-color: #ecd8cc; color: #8c4a26; }

.brandbar {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  align-items: center;
  font-size: .88rem; color: var(--muted);
}
.brandbar strong { color: var(--ink); font-weight: 600; }

/* ---------- Tablas ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; min-width: 640px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th {
  background: var(--bg-soft);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 620;
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfd; }
td strong { color: var(--ink); }

/* ---------- Página interna: encabezado ---------- */
.page-head {
  padding: 62px 0 46px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), #fff);
}
.breadcrumb { font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--copper); }

/* ---------- Acordeón / detalle de norma ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.spec + .spec { margin-top: 14px; }
.spec > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 620;
  color: var(--ink);
}
.spec > summary::-webkit-details-marker { display: none; }
.spec > summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.35rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}
.spec[open] > summary::after { content: "\2212"; }
.spec > summary:hover { background: var(--bg-soft); }
.spec-body { padding: 4px 24px 26px; border-top: 1px solid var(--line-2); }
.spec-body h4 { margin: 22px 0 10px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.summary-meta { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* Cadena de equipos */
.chain { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.chain li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
  font-size: .95rem;
}
.chain li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: .78rem; font-weight: 640;
}
.chain li::after {
  content: "";
  position: absolute; left: 13px; top: 30px; bottom: 4px;
  width: 1px; background: var(--line);
}
.chain li:last-child { padding-bottom: 0; }
.chain li:last-child::after { display: none; }
.chain b { color: var(--ink); font-weight: 620; }

/* ---------- Selector de cable (comercialización) ---------- */
.selector {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
/* Solo la etiqueta principal del campo: no las de color ni las de checkbox. */
.field > label:not(.check-line) {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 620;
  color: var(--muted);
  margin-bottom: 7px;
}
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgba(22, 57, 79, .1);
}
textarea { min-height: 92px; resize: vertical; }

.swatches { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: .86rem;
  transition: border-color .15s ease, background .15s ease;
}
.swatch:hover { border-color: #c2ccd4; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch .dot {
  width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid rgba(15, 23, 32, .18);
  flex: none;
}
.swatch.on { border-color: var(--navy); background: var(--bg-soft); font-weight: 600; }

.result {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.result dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .93rem; }
.result dt { color: var(--muted); }
.result dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.result .moq {
  margin: 20px 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.result .moq b { display: block; font-size: 1.5rem; color: var(--navy); letter-spacing: -.02em; }
.result .moq span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 900px) { .result { position: static; } }

/* ---------- Formulario WhatsApp ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; margin-bottom: 10px; }
.check-line input { margin-top: 5px; flex: none; width: 16px; height: 16px; accent-color: var(--navy); }

/* ---------- CTA final ---------- */
.cta-band {
  background: var(--navy);
  color: #cfdae3;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { max-width: 62ch; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
@media (max-width: 680px) { .cta-band { padding: 34px 22px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b1a26; color: #92a4b2; padding: 62px 0 30px; font-size: .92rem; }
.site-footer a { color: #c6d3dd; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .84rem;
}
.footer-brand .brand-mark { background: #fff; padding: 5px 9px; border-radius: 6px; height: 30px; }
.footer-brand .brand-name { color: #fff; }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #06301a;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 640; font-size: .92rem;
  box-shadow: var(--shadow-lg);
  transition: transform .15s ease, background .15s ease;
}
.wa-float:hover { transform: translateY(-2px); background: var(--wa-dark); color: #fff; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 15px; } }

/* ---------- Impresión ---------- */
@media print {
  .site-header, .wa-float, .cta-band, .site-footer { display: none; }
  section { padding: 20px 0; }
}
