:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #13315c;
  --teal: #5fb3c9;
  --gold: #e0a526;
  --gold-600: #c78f17;
  --ink: #142033;
  --muted: #5a6678;
  --line: #e3e8ef;
  --tint: #f4f7fb;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.container--narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-600); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px;
}
.eyebrow--light { color: var(--gold); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 1.15rem; letter-spacing: .16em; color: var(--navy-800); }
.brand__text small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand--light .brand__text strong { color: var(--white); }
.brand--light .brand__text small { color: rgba(255,255,255,.6); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink); }
.nav a:not(.btn):hover { color: var(--gold-600); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; background: var(--navy-900); }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(95,179,201,.28), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(224,165,38,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
}
.hero__bg::after {
  /* patrón de contenedores apilados */
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image:
    repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, #fff 0 2px, transparent 2px 32px);
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
}
.hero__inner {
  position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px;
  align-items: center; padding-top: 96px; padding-bottom: 104px;
}
.accent { color: var(--gold); }
.lead { font-size: 1.12rem; color: rgba(255,255,255,.82); max-width: 620px; margin: 22px 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li {
  font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px; padding: 10px 28px; backdrop-filter: blur(6px);
}
.stat { display: flex; align-items: center; gap: 20px; padding: 22px 0; }
.stat + .stat { border-top: 1px solid rgba(255,255,255,.12); }
.stat__num { font-size: 2.3rem; font-weight: 800; color: var(--gold); min-width: 108px; }
.stat__label { color: rgba(255,255,255,.8); font-size: .98rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy-800); color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--light p { color: rgba(255,255,255,.75); }

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Flow (qué es) ---------- */
.flow { display: grid; grid-template-columns: 1fr 40px 1fr 40px 1.4fr; align-items: stretch; }
.flow__step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.flow__step p { color: var(--muted); margin: 0; }
.flow__icon, .card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-800); margin-bottom: 18px;
}
.flow__icon svg, .card__icon svg, .contact__list svg {
  width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.flow__arrow { align-self: center; height: 2px; background: var(--line); position: relative; margin: 0 6px; }
.flow__arrow::after {
  content: ""; position: absolute; right: -2px; top: -5px;
  border: 6px solid transparent; border-left-color: #c3ccd8; border-right: 0;
}
.flow__step--split { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.flow__step--split .flow__icon { background: rgba(255,255,255,.1); }
.flow__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.flow__options div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 14px; }
.flow__options strong { display: block; color: var(--gold); margin-bottom: 4px; }
.flow__options span { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ---------- Benefits ---------- */
.benefit { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.benefit__k { font-weight: 800; color: var(--teal); font-size: .9rem; letter-spacing: .1em; }
.benefit h3 { margin-top: 10px; }
.benefit p { color: var(--muted); margin: 0; }

/* ---------- Service cards ---------- */
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.steps__n {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); color: var(--navy-900); font-weight: 800; margin-bottom: 18px;
}
.steps p { color: rgba(255,255,255,.75); margin: 0; }

/* ---------- Industries / why ---------- */
.tags { list-style: none; padding: 0; margin: 0 0 88px; display: flex; flex-wrap: wrap; gap: 12px; }
.tags li {
  padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 600; background: var(--tint);
}
.why { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.why__text p { color: var(--muted); font-size: 1.08rem; }
.why__pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 26px; border-radius: var(--radius); border-top: 4px solid var(--gold); background: var(--tint); }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 24px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; font-weight: 700; padding: 20px 32px 20px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--gold-600); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact__info > p { color: var(--muted); font-size: 1.08rem; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list svg { stroke: var(--navy-800); flex: none; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { color: var(--gold-600); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--tint); color: var(--ink); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 3px rgba(95,179,201,.25);
}
.form .invalid { border-color: #d9534f; }
.form__note { margin: 0; font-size: .9rem; color: var(--muted); min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a { text-decoration: none; font-weight: 600; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { margin: 0; font-size: .88rem; width: 100%; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  transition: transform .2s;
}
.whatsapp:hover { transform: scale(1.07); }
.whatsapp svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__arrow { width: 2px; height: 28px; margin: 0 auto; }
  .flow__arrow::after { right: -5px; top: auto; bottom: -2px; border: 6px solid transparent; border-top-color: #c3ccd8; border-bottom: 0; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .why__pillars { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .flow__options, .form__row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .stat__num { font-size: 1.9rem; min-width: 84px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .tags { margin-bottom: 64px; }
}
