:root {
  --navy: #10233F;
  --navy-2: #1B3252;
  --teal: #1F8A80;
  --teal-soft: #E6F3F1;
  --ink: #10233F;
  --text: #3A4657;
  --muted: #6A7586;
  --line: #E2E6EC;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --high: #B3412F;
  --mid: #B7791F;
  --low: #1F8A80;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
img { display: block; }
a { color: inherit; }

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

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 38px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 23px; color: var(--navy); letter-spacing: -0.02em; }
.brand-tag {
  display: flex; align-items: center; gap: 6px; margin-top: 5px;
  font-size: 9px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy);
}
.brand-tag i, .eyebrow i {
  display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--teal);
}
.brand--light .brand-name, .brand--light .brand-tag { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 8px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--teal-soft); }
.btn:focus-visible, .tablist button:focus-visible, .panel:focus-visible, .main-nav a:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--navy); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.lead { margin-top: 24px; font-size: 19px; color: var(--text); max-width: 34em; }
.lead-strong { margin-top: 12px; font-size: 19px; font-weight: 600; color: var(--navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 28px 0 0; margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 22px; color: var(--navy); }
.hero-facts span { font-size: 14px; color: var(--muted); }

.report-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(16,35,63,.25); padding: 24px;
}
.report-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-title { display: block; font-weight: 700; color: var(--navy); }
.report-sub { display: block; font-size: 13px; color: var(--muted); }
.findings { list-style: none; margin: 0; padding: 0; }
.findings li {
  display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.findings strong { display: block; font-size: 15px; color: var(--ink); }
.findings div span { font-size: 13px; color: var(--muted); }
.findings code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; font-weight: 600;
  color: var(--navy); background: var(--bg-soft); padding: 4px 8px; border-radius: 6px; white-space: nowrap;
}
.sev { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 3px 0; border-radius: 4px; }
.sev-high { color: var(--high); background: #F8E9E6; }
.sev-mid { color: var(--mid); background: #FBF1E1; }
.sev-low { color: var(--low); background: var(--teal-soft); }
.report-card figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Solapas ---------- */
.tabs-section { padding: 88px 0; }
.tablist {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line); margin-bottom: 56px;
}
.tablist button {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  padding: 18px 8px 16px; font: inherit; font-size: 16px; font-weight: 600; color: var(--muted);
  cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 2px;
}
.tab-num { font-size: 12px; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.tablist button:hover { color: var(--navy); }
.tablist button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tablist button[aria-selected="true"] .tab-num { color: var(--teal); }

.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 88px; }
.js .panel + .panel { margin-top: 0; }
.panel:focus { outline: none; }

.panel-intro { max-width: 720px; margin-bottom: 48px; }
.panel-intro h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.panel-intro p { margin-top: 14px; font-size: 18px; }

/* Workflow */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before {
  content: ""; position: absolute; top: 20px; left: 48px; right: 8px; height: 1px; background: var(--line);
}
.step:last-child::before { display: none; }
.step-num {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700;
}
.step h3 { margin-top: 20px; font-size: 19px; }
.step p { margin-top: 10px; font-size: 16px; }
.step strong { color: var(--navy); }

.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.delivery-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg-soft); }
.delivery-card strong { display: block; font-size: 30px; color: var(--navy); margin: 6px 0 8px; letter-spacing: -0.02em; }
.delivery-card p { font-size: 16px; }
.delivery-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.delivery-card--accent { background: var(--navy); border-color: var(--navy); color: #C9D3E1; }
.delivery-card--accent strong { color: #fff; }
.delivery-card--accent .delivery-label { color: #7FD0C6; }

/* Método */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar h3 { font-size: 19px; }
.pillar > p { margin-top: 10px; font-size: 16px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { position: relative; padding-left: 26px; font-size: 15.5px; margin-top: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.scope { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.scope h3 { font-size: 17px; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-size: 15px; padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy); }

/* Instrumentos */
.instruments { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.instrument { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.instrument h3 { font-size: 17px; }
.instrument > p { margin-top: 8px; font-size: 15.5px; }
.instrument .example {
  margin-top: auto; padding-top: 16px; font-size: 14.5px; color: var(--muted);
}
.instrument .example span {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px;
  padding-top: 14px; border-top: 1px dashed var(--line);
}

.traceability {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; margin-top: 64px;
  padding: 48px; background: var(--bg-soft); border-radius: 14px;
}
.trace-copy h3 { font-size: 26px; margin-bottom: 16px; }
.trace-copy p + p { margin-top: 14px; }
.trace-copy strong { color: var(--navy); }
.chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; align-self: center; }
.chain li {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px;
}
.chain li::after {
  content: ""; position: absolute; left: 50%; bottom: -19px; width: 2px; height: 16px; background: var(--teal);
  transform: translateX(-50%);
}
.chain li:last-child::after { display: none; }
.chain strong { display: block; font-size: 15px; color: var(--navy); }
.chain span { font-size: 13.5px; color: var(--muted); }
.chain .chain-end { background: var(--navy); border-color: var(--navy); }
.chain .chain-end strong { color: #fff; }
.chain .chain-end span { color: #B8C4D6; }

/* Quiénes somos */
.mission { border-left: 3px solid var(--teal); padding: 4px 0 4px 28px; max-width: 820px; }
.mission-label { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.mission p { margin-top: 8px; font-size: 24px; line-height: 1.4; color: var(--navy); font-weight: 500; letter-spacing: -0.01em; }
.worlds { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; margin-top: 56px; }
.world { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; height: 100%; }
.world h3 { font-size: 20px; margin-bottom: 12px; }
.world-join {
  width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.world-join img { width: 40px; height: auto; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.values h4 { font-size: 17px; margin-bottom: 6px; }
.values p { font-size: 15.5px; }

/* ---------- Contacto y footer ---------- */
.contact { background: var(--navy); color: #C9D3E1; padding: 72px 0; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.contact h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.contact p { margin-top: 10px; font-size: 18px; }
.contact-actions { flex-shrink: 0; }

.site-footer { background: #0B1A30; padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { font-size: 14px; color: #8C9AB0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .step::before { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .traceability { grid-template-columns: 1fr; padding: 32px; gap: 40px; }
  .worlds { grid-template-columns: 1fr; }
  .world-join { justify-self: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; gap: 12px; }
  .brand-tag { display: none; }
  .brand-icon { width: 32px; }
  .brand-name { font-size: 21px; }
  .btn-install span { display: none; }
  .btn-install { padding: 9px 11px; }
  .tabs-section { padding: 56px 0; }
  .tablist { grid-template-columns: 1fr 1fr; margin-bottom: 40px; }
  .tablist button { font-size: 15px; padding: 14px 6px 12px; }
  .steps, .delivery, .values { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .findings li { grid-template-columns: 48px 1fr; }
  .findings code { grid-column: 2; justify-self: start; }
  .traceability { padding: 24px 20px; }
  .mission p { font-size: 20px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .hero-facts { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Instalar app (PWA) ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-install { gap: 8px; background: #fff; cursor: pointer; font-family: inherit; }
.btn-install[hidden] { display: none; }
.btn-install svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.install-dialog {
  width: min(440px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 14px;
  color: var(--text); box-shadow: 0 32px 64px -24px rgba(16,35,63,.45);
}
.install-dialog::backdrop { background: rgba(11,26,48,.55); }
.install-dialog-head { display: flex; gap: 16px; align-items: center; }
.install-dialog-head img { border-radius: 11px; flex-shrink: 0; }
.install-dialog h2 { font-size: 20px; }
.install-dialog-head p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.install-steps { margin: 22px 0 24px; padding-left: 22px; }
.install-steps li { margin-top: 10px; font-size: 16px; }
.install-steps strong { color: var(--navy); }
.install-steps svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-dialog form { display: flex; justify-content: flex-end; }
.install-dialog .btn { cursor: pointer; font-family: inherit; }
