:root {
  --navy-950: #061a34;
  --navy-900: #0d326c;
  --blue: #0c4997;
  --blue-bright: #0757a6;
  --blue-soft: #eaf3fc;
  --white: #ffffff;
  --ink: #14243a;
  --muted: #647389;
  --line: #dce5ef;
  --surface: #f6f9fc;
  --green: #147d63;
  --green-soft: #e7f7f1;
  --amber: #956000;
  --amber-soft: #fff4dc;
  --shadow: 0 20px 60px rgba(8, 47, 102, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
}
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; width: 180px; height: 58px; padding: 5px 9px; border-radius: 10px; background: white; overflow: hidden; }
.brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: #35465c; font-size: 13px; font-weight: 700; transition: color .2s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-current { color: var(--blue); }
.nav-links .platform-link { padding: 11px 16px; border-radius: 9px; color: white; background: var(--blue); }
.nav-links .platform-link:hover { color: white; background: var(--navy-900); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--navy-900); }

.hero {
  position: relative;
  min-height: 430px;
  padding: 78px 0 76px;
  background: radial-gradient(circle at 84% 18%, rgba(12,73,151,.12), transparent 28%), linear-gradient(180deg, #fff, #f5faff);
  overflow: hidden;
}
.hero-ring { position: absolute; right: -150px; bottom: -230px; width: 460px; height: 460px; border: 72px solid rgba(12,73,151,.055); border-radius: 50%; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--navy-900); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 2px; background: currentColor; }
.eyebrow-blue { color: var(--blue); }
.hero h1 { max-width: 860px; margin: 0; color: var(--navy-900); font-size: clamp(46px, 6vw, 74px); line-height: 1; letter-spacing: -.055em; }
.hero-intro { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: 19px; line-height: 1.65; }
.hero-points { display: flex; flex-wrap: wrap; gap: 13px 26px; margin-top: 28px; color: #34506f; font-size: 14px; font-weight: 750; }
.hero-points span::before { content: "✓"; margin-right: 8px; color: var(--blue); font-weight: 900; }

.catalog-section { padding: 78px 0 96px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; color: var(--navy-900); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; letter-spacing: -.04em; }
.section-heading p:not(.eyebrow) { max-width: 720px; margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.result-summary { padding-bottom: 4px; color: var(--blue); font-size: 14px; white-space: nowrap; }

.finder { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.finder-grid { display: grid; grid-template-columns: minmax(260px, 1.65fr) 1fr 1fr auto; gap: 12px; align-items: end; }
.field > span { display: block; margin-bottom: 8px; color: #53647a; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #d6e1ed;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  outline: 0;
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12,73,151,.12); }
.clear-button { min-height: 50px; padding: 0 17px; border: 1px solid var(--line); border-radius: 12px; color: #526278; background: white; font-size: 13px; font-weight: 800; }
.clear-button:hover { color: var(--blue); border-color: #b6cbe0; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 26px; }
.stats > div { padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.stats strong { display: block; color: var(--navy-900); font-size: 27px; line-height: 1; }
.stats span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; }

.catalog-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.table-head, .tracker-row { display: grid; grid-template-columns: 1.23fr 1.35fr .88fr .72fr 1.25fr .74fr; gap: 12px; align-items: center; padding: 15px 20px; }
.table-head { color: #6b7b90; background: #f2f6fa; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tracker-row { min-height: 85px; border-bottom: 1px solid var(--line); }
.tracker-row:last-child { border-bottom: 0; }
.tracker-row:hover { background: #fbfdff; }
.maker { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 750; }
.maker-mark { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; border-radius: 11px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 900; }
.model { color: var(--navy-900); font-size: 14px; font-weight: 850; }
.protocol { display: inline-flex; width: max-content; max-width: 100%; padding: 6px 9px; border-radius: 8px; color: var(--navy-900); background: var(--blue-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.protocol.pending { color: #697687; background: #eef1f4; font-family: inherit; }
.port { color: #394b63; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 7px; width: max-content; max-width: 100%; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .03em; }
.status::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.complete { color: var(--green); background: var(--green-soft); }
.status.review { color: var(--amber); background: var(--amber-soft); }
.request-button { justify-self: end; min-height: 40px; padding: 0 13px; border: 0; border-radius: 10px; color: white; background: var(--blue); font-size: 12px; font-weight: 800; }
.request-button:hover { background: var(--navy-900); }
.empty-state { padding: 54px 24px; text-align: center; }
.empty-state strong { display: block; color: var(--navy-900); font-size: 22px; }
.empty-state p { margin: 8px 0 18px; color: var(--muted); }
.empty-state button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; color: white; background: var(--blue); font-weight: 800; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.pagination button { min-width: 41px; min-height: 41px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; color: #44566d; background: white; font-size: 13px; font-weight: 800; }
.pagination button:hover, .pagination button.active { color: white; border-color: var(--blue); background: var(--blue); }
.pagination button:disabled { cursor: default; opacity: .42; }

.verification-note { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 28px; padding: 22px; border: 1px solid #d9e7f5; border-radius: 18px; color: #3b536f; background: #f5f9fd; }
.note-icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #d7e5f2; border-radius: 13px; color: var(--blue); background: white; font-size: 20px; font-weight: 900; }
.verification-note strong { display: block; color: var(--navy-900); font-size: 15px; }
.verification-note p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; }
.verification-note button { min-height: 44px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 10px; color: var(--blue); background: white; font-weight: 800; }

.footer { border-top: 1px solid var(--line); background: #f7fafd; }
.footer-inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { border: 1px solid var(--line); }
.footer-inner p, .footer-inner > span { color: #8290a1; font-size: 11px; }

.floating-actions { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 40; display: grid; justify-items: end; gap: 9px; }
.floating-action { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 148px; min-height: 47px; padding: 0 15px; border-radius: 999px; color: white; box-shadow: 0 12px 30px rgba(5,30,65,.24); font-size: 11px; font-weight: 800; }
.floating-action svg { width: 19px; height: 19px; fill: currentColor; }
.floating-platform { background: var(--blue); }
.floating-platform svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.floating-whatsapp { background: #16a873; }

dialog { width: min(560px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 100px rgba(5,30,65,.34); }
dialog::backdrop { background: rgba(6,26,52,.63); backdrop-filter: blur(4px); }
.dialog-head { position: relative; padding: 26px 28px 22px; color: white; background: var(--navy-900); }
.dialog-head p { margin: 0 0 7px; color: #b8d3ee; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.dialog-head h2 { margin: 0; font-size: 26px; }
.dialog-close { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: white; background: transparent; font-size: 24px; line-height: 1; }
.dialog-body { padding: 25px 28px 28px; }
.dialog-body label { display: block; margin-bottom: 15px; }
.dialog-body label > span { display: block; margin-bottom: 7px; color: #506178; font-size: 12px; font-weight: 800; }
.dialog-body input { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid #d6e1ed; border-radius: 10px; outline: 0; }
.dialog-body input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(12,73,151,.12); }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.dialog-note { margin: 5px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.dialog-actions button { min-height: 45px; padding: 0 17px; border-radius: 10px; font-weight: 800; }
.button-secondary { border: 1px solid var(--line); color: #526278; background: white; }
.button-primary { border: 1px solid var(--blue); color: white; background: var(--blue); }

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; left: 15px; right: 15px; top: 72px; display: grid; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s ease; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a, .nav-links .platform-link { padding: 13px 12px; border-radius: 8px; color: #35465c; background: transparent; }
  .nav-links .platform-link:hover { color: var(--blue); background: var(--blue-soft); }
  .finder-grid { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .clear-button { grid-column: 1 / -1; }
  .table-head { display: none; }
  .tracker-row { position: relative; grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 19px; }
  .tracker-row > *::before { display: block; margin-bottom: 4px; color: #7a899c; font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
  .maker { grid-column: 1 / -1; }
  .maker::before { display: none !important; }
  .model::before { content: "Modelo"; }
  .protocol-wrap::before { content: "Protocolo"; }
  .port::before { content: "Puerto"; }
  .status-wrap::before { content: "Validación"; }
  .request-button { grid-column: 1 / -1; justify-self: stretch; min-height: 45px; }
  .verification-note { grid-template-columns: auto 1fr; }
  .verification-note button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .nav { min-height: 70px; }
  .brand { width: 146px; height: 50px; }
  .hero { min-height: auto; padding: 52px 0 55px; }
  .hero h1 { font-size: 43px; }
  .hero-intro { font-size: 17px; }
  .hero-points { display: grid; gap: 10px; }
  .catalog-section { padding: 54px 0 76px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .finder { padding: 16px; border-radius: 17px; }
  .finder-grid, .stats { grid-template-columns: 1fr; }
  .field-search, .clear-button { grid-column: auto; }
  .stats { gap: 9px; }
  .stats > div { display: flex; align-items: center; justify-content: space-between; padding: 15px 17px; }
  .stats strong { font-size: 22px; }
  .stats span { margin-top: 0; }
  .catalog-shell { border-radius: 17px; }
  .tracker-row { grid-template-columns: 1fr; }
  .maker, .request-button { grid-column: auto; }
  .status { font-size: 9px; }
  .verification-note { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; justify-content: center; padding: 28px 0; text-align: center; }
  .footer-inner p { margin: 0; }
  .floating-actions { right: 13px; bottom: max(13px, env(safe-area-inset-bottom)); }
  .floating-action { min-width: 49px; width: 49px; height: 49px; min-height: 49px; padding: 0; }
  .floating-action span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .dialog-grid { grid-template-columns: 1fr; gap: 0; }
  .dialog-body { padding: 22px 20px 24px; }
  .dialog-actions { display: grid; }
}

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