:root {
  --navy: #17365f;
  --navy-2: #244a7c;
  --navy-3: #0e243f;
  --orange: #f4a51c;
  --orange-2: #d87a19;
  --ink: #182338;
  --muted: #5a667a;
  --soft: #f4f7fb;
  --soft-2: #eef3f8;
  --line: #d8e1ec;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 36, 63, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.15rem; }
li { margin: .35rem 0; }
strong { color: var(--navy); }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--white);
  z-index: 999;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 225, 236, .9);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 188px;
}
.brand img { height: 64px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  color: #26364f;
}
.nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(244, 165, 28, .12);
  color: var(--navy);
}
.header-cta {
  padding: 10px 16px !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  box-shadow: 0 8px 20px rgba(23, 54, 95, .18);
}
.menu-button {
  display: none;
  appearance: none;
  border: 0;
  background: var(--soft);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  background: var(--navy);
  border-radius: 99px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-button span { margin: 5px 0; }
body.menu-open .menu-button::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-button span { opacity: 0; }
body.menu-open .menu-button::after { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(14,36,63,.94), rgba(23,54,95,.84) 52%, rgba(244,165,28,.34)),
    url('../img/hero-sectors.png') center bottom / cover no-repeat;
  color: var(--white);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 15%, rgba(255,255,255,.18), transparent 35%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .78fr);
  align-items: center;
  gap: 56px;
  padding: 70px 0 78px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffd586;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--orange);
  border-radius: 99px;
}
h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  color: var(--navy);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 5.8vw, 5.8rem);
  letter-spacing: -.055em;
  max-width: 760px;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  max-width: 720px;
  color: rgba(255,255,255,.88);
  margin: 24px 0 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 760;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--navy-3);
  box-shadow: 0 16px 34px rgba(244,165,28,.28);
}
.btn-primary:hover { background: #ffb734; }
.btn-secondary {
  background: rgba(255,255,255,.11);
  color: var(--white);
  border-color: rgba(255,255,255,.24);
}
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-light {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(14,36,63,.12);
}
.hero-card {
  background: rgba(255,255,255,.94);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  border: 1px solid rgba(255,255,255,.8);
}
.hero-card h2 { font-size: 1.35rem; margin-bottom: 12px; }
.hero-card p { color: var(--muted); }
.hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: var(--soft);
}
.metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--orange-2);
}
.metric span {
  display: block;
  font-size: .84rem;
  color: var(--muted);
  margin-top: 7px;
}

.section { padding: 92px 0; }
.section.soft { background: var(--soft); }
.section.navy {
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: var(--white);
}
.section.navy h2,
.section.navy h3 { color: var(--white); }
.section.navy p,
.section.navy li { color: rgba(255,255,255,.82); }
.section-header {
  max-width: 820px;
  margin-bottom: 42px;
}
.section-header.center {
  text-align: center;
  margin-inline: auto;
}
.section-header h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  letter-spacing: -.045em;
  margin-bottom: 15px;
}
.section-header p {
  font-size: 1.08rem;
  color: var(--muted);
}
.section.navy .section-header p { color: rgba(255,255,255,.77); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 40px rgba(14,36,63,.06);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--navy-2));
  opacity: .9;
}
.card h3 { font-size: 1.28rem; margin: 4px 0 12px; }
.card p, .card li { color: var(--muted); }
.icon {
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(244,165,28,.12);
  color: var(--orange-2);
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.problem-card {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(23,54,95,.06);
}
.problem-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.problem-card p { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 42px;
  align-items: center;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.panel h3 { margin-bottom: 14px; }
.panel p { color: var(--muted); }
.panel-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.panel-list div {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-3);
  display: inline-grid;
  place-items: center;
  font-size: .82rem;
  font-weight: 900;
}

.method-diagram {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
}
.method-card {
  min-height: 286px;
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
}
.method-card h3 { margin-bottom: 15px; }
.method-card p { color: rgba(255,255,255,.78); }
.method-card .tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(244,165,28,.18);
  color: #ffd586;
  font-size: .82rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.control-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(244,165,28,.2), rgba(255,255,255,.08));
  font-size: 1.25rem;
  font-weight: 820;
  color: var(--white);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-item {
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}
.feature-item strong { display: block; margin-bottom: 6px; }
.feature-item span { color: var(--muted); font-size: .96rem; }

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
}
.service-card .meta {
  margin-top: auto;
  padding-top: 16px;
  color: var(--navy);
  font-weight: 760;
  font-size: .92rem;
}

.logos-note {
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(23,54,95,.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: var(--white);
  padding: 80px 0 72px;
  overflow: hidden;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(244,165,28,.18);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  color: #ffd586;
  font-size: .9rem;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 4.3vw, 4.8rem);
  max-width: 920px;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}
.page-hero p {
  max-width: 760px;
  font-size: 1.14rem;
  color: rgba(255,255,255,.82);
}
.product-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-weight: 700;
  font-size: .9rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  counter-reset: step;
}
.timeline-item {
  position: relative;
  padding: 20px 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 150px;
}
.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy-3);
  font-weight: 900;
  margin-bottom: 12px;
}
.timeline-item strong { display: block; line-height: 1.25; }
.timeline-item span { display: block; color: var(--muted); font-size: .9rem; margin-top: 7px; }

.variable-grid {
  columns: 2;
  column-gap: 20px;
}
.variable-grid li {
  break-inside: avoid;
  margin: 0 0 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  list-style-position: inside;
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 16px;
}
.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.step-number {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--white);
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.18rem;
}
.process-step h3 { margin: 0 0 8px; font-size: 1.18rem; }
.process-step p { color: var(--muted); }

.cta-band {
  border-radius: 32px;
  padding: 42px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 770px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 35px rgba(14,36,63,.06);
}
.contact-card h3 { margin-bottom: 6px; }
.contact-card .role { color: var(--orange-2); font-weight: 800; margin-bottom: 16px; }
.contact-card a { color: var(--navy); font-weight: 750; display: block; margin: 8px 0; }
.contact-card a:hover { color: var(--orange-2); }

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--navy); font-size: .92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 132px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(244,165,28,.25);
  border-color: var(--orange);
}
.form-note { color: var(--muted); font-size: .92rem; margin-top: 12px; }

.site-footer {
  background: #0b1b31;
  color: rgba(255,255,255,.78);
  padding: 52px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .8fr .8fr;
  gap: 34px;
  align-items: start;
}
.footer-logo {
  width: 190px;
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 18px;
}
.footer h3 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: #ffd586; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 36px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: .9rem;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 650px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-button { display: inline-grid; }
  .nav {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 88px;
    display: grid;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
  }
  body.menu-open .nav { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { border-radius: 12px; }
  .header-cta { text-align: center; }
  .grid-3, .grid-2, .split, .method-diagram, .footer-grid, .cta-band { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand img { height: 54px; width: auto; }
  .header-inner { min-height: 74px; }
  .hero-inner { padding: 60px 0 70px; gap: 30px; }
  .hero-actions, .cta-band { align-items: stretch; }
  .btn { width: 100%; }
  .hero-metrics, .grid-4, .feature-list, .timeline, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .variable-grid { columns: 1; }
  .process-step { grid-template-columns: 1fr; }
  .page-hero { padding: 58px 0 54px; }
  .card, .panel, .form-card, .cta-band { padding: 22px; }
}


/* Revisión comercial v2: énfasis técnico sin cambiar el concepto */
.eyebrow.dark { color: var(--orange-2); margin-bottom: 12px; }
.eyebrow.dark::before { background: var(--navy); }
.hero-navigation { padding: 24px; }
.hero-navigation h2 { font-size: 1.5rem; margin-bottom: 10px; }
.hero-link-list { display: grid; gap: 12px; margin-top: 18px; }
.hero-link-list a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-link-list a:hover { transform: translateY(-1px); border-color: rgba(244,165,28,.65); box-shadow: 0 12px 28px rgba(14,36,63,.10); }
.hero-link-list a span {
  width: 34px; height: 34px; border-radius: 12px;
  display: inline-grid; place-items: center;
  background: rgba(23,54,95,.08); color: var(--navy); font-weight: 900; font-size: .82rem;
}
.hero-link-list a strong { display: block; font-size: .98rem; line-height: 1.22; }
.hero-link-list a small { display: block; grid-column: 2; color: var(--muted); line-height: 1.35; margin-top: -4px; }
.hero-link-list a.is-featured { background: linear-gradient(135deg, rgba(244,165,28,.18), rgba(23,54,95,.06)); border-color: rgba(244,165,28,.75); }
.hero-link-list a.is-featured span { background: var(--orange); color: var(--navy-3); }
.specialization-section { position: relative; }
.specialization-section::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 7px;
  background: linear-gradient(90deg, var(--orange), var(--navy));
}
.layer-section .section-header { margin-bottom: 30px; }
.layer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.layer-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(14,36,63,.06);
}
.layer-card span {
  display: inline-flex; margin-bottom: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(244,165,28,.15); color: var(--orange-2); font-weight: 850; font-size: .82rem;
}
.layer-card h3 { margin-bottom: 10px; }
.layer-card p { color: var(--muted); }
.layer-stack { display: grid; gap: 14px; }
.layer-stack div {
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(14,36,63,.06);
}
.layer-stack strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.layer-stack span { color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.btn-whatsapp { background: #128C7E; color: #fff; box-shadow: 0 14px 30px rgba(18,140,126,.20); }
.btn-whatsapp:hover { background: #0f7a6e; }

@media (max-width: 920px) {
  .layer-grid { grid-template-columns: 1fr; }
  .hero-link-list a { grid-template-columns: 38px 1fr; }
}

/* Ajustes solicitados: enfoque técnico y riesgo por capas integrado */
.enfoque-tecnico { align-items: start; }
.inline-layer-note {
  margin-top: 26px;
  padding: 24px 26px;
  border-left: 4px solid var(--orange);
  background: linear-gradient(135deg, rgba(244,165,28,.10), rgba(23,54,95,.045));
  border-radius: 0 22px 22px 0;
}
.inline-layer-note .eyebrow { margin-bottom: 8px; }
.inline-layer-note h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--navy);
}
.inline-layer-note p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}
