/* ==========================================================================
   Assendo — Propuesta 2026
   Sistema de diseño derivado de "Assendo_Presentacion.pdf"
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Marca */
  --navy-950: #0d131c;
  --navy-900: #131b26;
  --navy-850: #18212e;
  --navy-800: #1f2937;
  --navy-750: #253243;
  --navy-700: #2d3c50;
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);

  --amber: #f5a524;
  --amber-400: #ffb648;
  --amber-200: #ffd79a;
  --amber-soft: rgba(245, 165, 36, .12);

  --white: #ffffff;
  --text: #e9eef5;
  --muted: #9dabbf;
  --muted-2: #7b8798;

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

  /* Métrica */
  --wrap: 1180px;
  --wrap-narrow: 880px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --gutter: 24px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .28);
  --shadow-2: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --shadow-3: 0 30px 70px -30px rgba(0, 0, 0, .8);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy-900); }
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Fondo fijo de toda la página ----------
   Dos capas fijas al viewport: la fotografía y su velo de color.
   Al usar position:fixed (y no background-attachment) funciona también en iOS. */
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none;
}
body::before {
  z-index: -2;
  background: url("../img/bg/hero.jpg") center 32% / cover no-repeat;
}
body::after {
  z-index: -1;
  background:
    radial-gradient(1100px 560px at 16% 4%, rgba(245, 165, 36, .13), transparent 60%),
    linear-gradient(100deg, rgba(13, 19, 28, .9) 0%, rgba(16, 23, 33, .76) 44%, rgba(19, 27, 38, .52) 100%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--amber); color: #17202c; }

h1, h2, h3, h4, .h-font {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--white);
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--white); font-weight: 650; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
/* Los fondos de sección son translúcidos para que la fotografía fija
   siga presente como textura a lo largo de toda la página. */
.section { padding: clamp(64px, 8vw, 116px) 0; position: relative; background: transparent; }
.section--tight { padding: clamp(48px, 5vw, 72px) 0; }
.section--alt { background: rgba(24, 33, 46, .8); }
.section--deep { background: rgba(11, 16, 24, .86); }
.grid { display: grid; gap: 22px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head);
  font-size: .745rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--amber); border-radius: 2px;
}
.eyebrow--plain::before { display: none; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.19rem); color: var(--muted); line-height: 1.75; }
.lead-lg { font-size: clamp(1.1rem, 1.8vw, 1.34rem); color: #c8d3e2; line-height: 1.66; }
.small { font-size: .875rem; }
.amber { color: var(--amber); }
.mark { color: var(--amber-400); font-weight: 650; }
.section-head { max-width: 760px; margin-bottom: clamp(34px, 4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .87rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .22s var(--ease), background .22s, color .22s, border-color .22s, box-shadow .22s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #16202d; box-shadow: 0 12px 28px -12px rgba(245, 165, 36, .75); }
.btn--primary:hover { background: var(--amber-400); box-shadow: 0 18px 36px -14px rgba(245, 165, 36, .9); }
.btn--ghost { border-color: var(--line-strong); color: var(--white); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.btn--sm { padding: 11px 20px; font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .83rem;
  letter-spacing: .05em; text-transform: uppercase; color: var(--amber);
}
.link-arrow:hover { color: var(--amber-400); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 27, 38, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-stuck {
  background: rgba(13, 19, 28, .93);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .9);
}
.nav { display: flex; align-items: center; gap: 24px; height: 92px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
/* Mismo tamaño que en el sitio actual: 190 × 53 px */
.brand img { height: 53px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links a.nav-a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px;
  font-size: .905rem; font-weight: 500; color: #c3cfdf;
  transition: color .2s, background .2s;
}
.nav-links a.nav-a:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav-links a.nav-a[aria-current="page"] { color: var(--amber); }
.nav-cta { margin-left: 10px; }

.has-sub > .nav-a::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .7;
}
.subnav {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px; box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .9rem; color: #c3cfdf; transition: background .18s, color .18s;
}
.subnav a:hover { background: var(--amber-soft); color: var(--amber); }
.subnav .sub-desc { display: block; font-size: .76rem; color: var(--muted-2); margin-top: 1px; }

.burger {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong);
  width: 44px; height: 44px; border-radius: 12px; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.8px; background: var(--white);
  border-radius: 2px; transition: transform .28s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ----------
   Sin fondo propio: deja ver directamente la fotografía fija de <body>,
   por eso es la zona donde la imagen se aprecia con más nitidez. */
.hero {
  position: relative; overflow: hidden; background: transparent;
  padding: clamp(40px, 5.5vw, 74px) 0 clamp(56px, 7vw, 92px);
}
.hero-inner {
  position: relative; z-index: 1; max-width: 880px;
  text-shadow: 0 2px 18px rgba(9, 13, 19, .55);   /* legibilidad sobre la foto */
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .amber { display: inline; }
.hero .lead-lg { max-width: 640px; margin-bottom: 32px; }

/* Marco decorativo tipo lámina de la presentación */
.frame-mark { position: relative; display: block; }
.frame-mark::before, .frame-mark::after {
  content: ""; position: absolute; width: 46px; height: 46px; border: 2px solid var(--amber); opacity: .5;
}
.frame-mark::before { top: -22px; left: -28px; border-right: 0; border-bottom: 0; }
.frame-mark::after { bottom: -14px; left: -28px; border-right: 0; border-top: 0; }

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin-top: clamp(40px, 6vw, 66px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.hero-stats div { background: rgba(19, 27, 38, .86); padding: 22px 20px; }
.hero-stats dt {
  font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  color: var(--amber); letter-spacing: -.01em;
}
.hero-stats dd { margin: 4px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.5; }

/* ---------- Barra de clientes ---------- */
.trust { padding: 40px 0 46px; background: rgba(11, 16, 24, .85); border-block: 1px solid var(--line); }
.trust-label {
  text-align: center; font-family: var(--font-head); font-size: .74rem; font-weight: 700;
  letter-spacing: .17em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 26px;
}
.logo-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 10px 22px;
}
.logo-grid li {
  flex: 0 0 auto; width: 150px;
  display: flex; align-items: center; justify-content: center; padding: 12px 6px;
}
.logo-grid img {
  max-height: 34px; width: auto; opacity: .58;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.logo-grid li:hover img { opacity: 1; transform: scale(1.05); }

/* ---------- Cards ---------- */
/* Título de tarjeta que es h2 por jerarquía del documento pero se ve como h3 */
.card-title { font-size: clamp(1.1rem, 1.7vw, 1.32rem); font-weight: 700; margin-bottom: 12px; }
.card {
  position: relative; background: rgba(31, 41, 55, .92); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 28px;
  transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.card--hover:hover {
  transform: translateY(-5px); border-color: rgba(245, 165, 36, .45);
  background: var(--navy-750); box-shadow: var(--shadow-2);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card--flush { padding: 26px 24px; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--amber-soft); border: 1px solid rgba(245, 165, 36, .32);
  color: var(--amber); margin-bottom: 18px; flex: 0 0 auto;
}
.icon-badge svg { width: 23px; height: 23px; stroke-width: 1.7; }

.num-badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  background: var(--amber); color: #16202d; margin-bottom: 16px;
}

/* Card de servicio con línea de impacto */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-card .impact {
  margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line-strong);
  font-size: .875rem; color: #bcc9da;
}
.svc-card .impact b { color: var(--amber); font-weight: 700; }
.svc-card .link-arrow { margin-top: 18px; }

/* Lista con check ámbar */
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--muted); font-size: .97rem;
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .58em;
  width: 9px; height: 5px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
.check-list strong { color: var(--white); }
.check-list--tight li { margin-bottom: 9px; font-size: .93rem; }

/* Lista con viñeta de barra */
.bar-list li { padding-left: 20px; border-left: 2px solid var(--line-strong); margin-bottom: 20px; }
.bar-list li:last-child { margin-bottom: 0; }
.bar-list h4 { margin-bottom: 5px; }
.bar-list p { color: var(--muted); font-size: .94rem; }
.bar-list li:hover { border-left-color: var(--amber); }

/* ---------- Comparativa Rediseño vs Assendo ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.compare-col { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--navy-800); }
.compare-col.is-win { border-color: rgba(245, 165, 36, .5); box-shadow: 0 24px 60px -34px rgba(245, 165, 36, .45); }
.compare-head {
  padding: 16px 24px; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  text-align: center; background: rgba(255, 255, 255, .07); color: #cfd9e6;
}
.is-win .compare-head { background: var(--amber); color: #16202d; }
.compare-row { display: flex; gap: 16px; padding: 22px 24px; border-top: 1px solid var(--line); }
.compare-row:first-of-type { border-top: 0; }
.compare-row .ci { flex: 0 0 auto; width: 22px; color: var(--muted-2); }
.is-win .compare-row .ci { color: var(--amber); }
.compare-row p { margin: 0; font-size: .95rem; color: var(--muted); }
.compare-row b { color: var(--white); }

/* ---------- Cita / banda destacada ---------- */
.quote-band {
  border: 1px solid rgba(245, 165, 36, .5); border-radius: var(--r);
  background: linear-gradient(120deg, rgba(245, 165, 36, .1), rgba(245, 165, 36, .02));
  padding: 26px 30px;
}
.quote-band p {
  margin: 0; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.02rem, 1.9vw, 1.32rem); color: var(--white); line-height: 1.4;
}
.pull {
  border-left: 3px solid var(--amber); padding: 6px 0 6px 24px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  line-height: 1.34; color: var(--white);
}

/* ---------- Stack tecnológico ---------- */
.layer { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--navy-800); overflow: hidden; margin-bottom: 20px; }
.layer:last-child { margin-bottom: 0; }
.layer-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 24px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--line);
}
.layer-head h3 { margin: 0; font-size: 1.03rem; }
.layer-head .tag {
  font-family: var(--font-head); font-size: .68rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--amber); background: var(--amber-soft);
  border: 1px solid rgba(245, 165, 36, .3); padding: 4px 10px; border-radius: 999px;
}
/* Rejilla que reparte los chips de forma pareja y evita filas huérfanas */
.tech-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px; padding: 22px 24px;
}
.tech-chip {
  display: grid; place-items: center; width: auto; height: 64px; overflow: hidden;
  background: #fff; border-radius: 12px; padding: 9px 12px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.tech-chip:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .8); }
.tech-chip img {
  max-height: 44px; max-width: 82px; width: auto; height: auto;
  object-fit: contain; mix-blend-mode: multiply;
}
/* Chip con glifo vectorial, para conceptos sin logo de marca */
.tech-chip--glyph { color: #37485e; }
.tech-chip--glyph svg { width: 40px; height: 40px; stroke-width: 1.4; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 62px; padding: 0 18px;
  border-radius: 12px; border: 1px solid rgba(245, 165, 36, .34); background: var(--amber-soft);
  font-family: var(--font-head); font-weight: 700; font-size: .87rem; color: var(--amber-200);
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.pill:hover { transform: translateY(-3px); background: rgba(245, 165, 36, .2); color: var(--white); }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Casos / proyectos ---------- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); gap: 16px; }
.case {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--r);
  background: var(--navy-800); border: 1px solid var(--line);
  transition: border-color .28s, transform .28s var(--ease), background .28s;
}
.case:hover { border-color: rgba(245, 165, 36, .42); transform: translateY(-3px); background: var(--navy-750); }
.case .ci { flex: 0 0 auto; width: 22px; height: 22px; color: var(--amber); margin-top: 3px; }
.case p { margin: 0; font-size: .94rem; color: #c4d0e0; }
.case .cat {
  display: block; font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px;
}

/* ---------- Proceso / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber) 0 26px, var(--line) 26px);
}
.step .n {
  position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber); color: #16202d; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: .66rem;
}
.step h4 { margin-bottom: 7px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Resumen compacto de fases (la versión detallada usa .steps) */
.mini-steps {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px; margin: 0; padding: 0; list-style: none; counter-reset: none;
}
.mini-steps li {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .93rem; color: var(--white);
}
.mini-steps .n {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; font-size: .72rem;
  background: var(--amber); color: #16202d;
}

/* ---------- Bloque imagen + texto ---------- */
.media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-3);
}
.media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; opacity: .97; }
.media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(19, 27, 38, .06), rgba(19, 27, 38, .42));
}
.media--tall img { aspect-ratio: 3 / 4; }
.media--wide img { aspect-ratio: 16 / 9; }
.media--band img { aspect-ratio: 21 / 7; }
.media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 18px 22px; font-size: .86rem; color: #d6e0ec;
  background: linear-gradient(to top, rgba(9, 13, 19, .9), transparent);
}
.media::after { z-index: 0; }

/* Tarjeta de servicio con imagen superior */
.svc-card--media { padding: 0; overflow: hidden; }
.svc-card--media .thumb { position: relative; }
.svc-card--media .thumb img {
  width: 100%; aspect-ratio: 16 / 8; object-fit: cover; opacity: .8;
  transition: transform .5s var(--ease), opacity .35s;
}
.svc-card--media .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--navy-800) 2%, rgba(31, 41, 55, .35) 60%, rgba(31, 41, 55, .1));
}
.svc-card--media:hover .thumb img { transform: scale(1.05); opacity: 1; }
.svc-card--media .body { padding: 4px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.svc-card--media .icon-badge { position: relative; z-index: 1; margin-top: -46px; background: var(--navy-800); }
.svc-card--media:hover .icon-badge { background: var(--navy-750); }

/* Lista compacta de servicios (introducción en la home) */
.svc-list { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); }
.svc-list a {
  display: flex; align-items: center; gap: 16px; padding: 18px 22px;
  background: var(--navy-800); transition: background .25s, padding-left .25s var(--ease);
}
.svc-list a:hover { background: var(--navy-750); padding-left: 26px; }
.svc-list .ib { width: 34px; height: 34px; flex: 0 0 auto; color: var(--amber); }
.svc-list .ib svg { width: 22px; height: 22px; stroke-width: 1.7; }
.svc-list .tx { flex: 1; min-width: 0; }
.svc-list .tx b { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--white); }
.svc-list .tx span { display: block; font-size: .875rem; color: var(--muted); }
.svc-list .go { color: var(--muted-2); flex: 0 0 auto; }
.svc-list a:hover .go { color: var(--amber); }

/* ---------- Acordeón ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--navy-800); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; color: var(--white); text-align: left;
  padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  transition: color .2s, background .2s;
}
.acc-btn:hover { color: var(--amber); background: rgba(255, 255, 255, .03); }
.acc-btn .ind { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.acc-btn .ind::before, .acc-btn .ind::after {
  content: ""; position: absolute; background: var(--amber); border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s;
}
.acc-btn .ind::before { top: 6px; left: 0; width: 14px; height: 2px; }
.acc-btn .ind::after { left: 6px; top: 0; width: 2px; height: 14px; }
.acc-item.open .acc-btn .ind::after { transform: rotate(90deg); opacity: 0; }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p, .acc-panel ul { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; margin: 0; }
.acc-panel .check-list { padding-bottom: 22px; }

/* ---------- CTA final ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid rgba(245, 165, 36, .34);
  background:
    radial-gradient(700px 320px at 82% 12%, rgba(245, 165, 36, .2), transparent 66%),
    linear-gradient(120deg, var(--navy-800), var(--navy-950));
  padding: clamp(36px, 5vw, 62px);
}
.cta h2 { max-width: 620px; }
.cta .lead { max-width: 560px; }
.contact-lines { display: grid; gap: 14px; }
.contact-lines a, .contact-lines span { display: flex; align-items: center; gap: 12px; font-size: .98rem; color: #c8d3e2; }
.contact-lines a:hover { color: var(--amber); }
.contact-lines svg { width: 18px; height: 18px; color: var(--amber); flex: 0 0 auto; }

/* ---------- Formulario ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-size: .77rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--navy-900); border: 1px solid var(--line-strong); color: var(--text);
  font-family: var(--font-body); font-size: .97rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .16);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--amber) 50%), linear-gradient(135deg, var(--amber) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.form-note { font-size: .83rem; color: var(--muted-2); }

/* ---------- Cabecera de página interna ----------
   Sin fondo propio, igual que el hero de la home: la fotografía fija de
   <body> se ve con la misma nitidez en todas las páginas. La legibilidad
   la sostiene el text-shadow, no un velo opaco. */
.page-head {
  position: relative; overflow: hidden;
  padding: clamp(32px, 4vw, 52px) 0 clamp(44px, 5vw, 64px);
  background: transparent;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 340px at 12% 0%, rgba(245, 165, 36, .16), transparent 64%);
}
.page-head .wrap {
  position: relative;
  text-shadow: 0 2px 18px rgba(9, 13, 19, .55);
}
.page-head h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); max-width: 860px; }
.page-head .lead { max-width: 700px; }
.crumbs { display: flex; gap: 9px; align-items: center; font-size: .82rem; color: var(--muted-2); margin-bottom: 18px; }
.crumbs a:hover { color: var(--amber); }
.crumbs span { opacity: .5; }

/* ---------- Contacto ----------
   Dos columnas —mensaje y "qué pasa después" a la izquierda; formulario a la
   derecha— dimensionadas para que la página entre completa en la pantalla de un
   notebook (≈900 px de alto) sin scroll. De ahí que los tamaños de texto y los
   espacios sean menores que los del resto del sitio: todo se mide contra el
   alto disponible, no contra el ritmo vertical habitual. */
.contact-page {
  position: relative;
  padding: clamp(24px, 3vw, 38px) 0 clamp(28px, 3.5vw, 44px);
  text-shadow: 0 2px 18px rgba(9, 13, 19, .55);
}
.contact-page .crumbs { margin-bottom: 12px; }
.contact-page .split { gap: clamp(28px, 4vw, 54px); }
.contact-page h1 { font-size: clamp(1.85rem, 3.1vw, 2.5rem); margin-bottom: .4em; }
.contact-page .lead { font-size: clamp(.95rem, 1.1vw, 1.04rem); margin-bottom: .8em; }
.contact-page .card { padding: 20px 22px; text-shadow: none; }
.contact-page .c-next { margin-top: 22px; }

/* ---- Campos con etiqueta flotante ----
   La etiqueta vive dentro de la caja y sube al enfocar o cuando el campo tiene
   contenido, lo que ahorra la línea que antes ocupaba cada rótulo. Depende de
   que el <input> preceda al <label> en el HTML y de un placeholder=" ", que es
   lo que permite a :placeholder-shown distinguir vacío de lleno. */
.contact-page .form { gap: 12px; text-shadow: none; }
.contact-page .field { position: relative; display: block; }
.contact-page .field input,
.contact-page .field select,
.contact-page .field textarea { padding: 21px 14px 7px; }
.contact-page .field textarea { min-height: clamp(84px, 12vh, 116px); padding-top: 24px; }
.contact-page .field label {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: .95rem; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--muted-2);
  pointer-events: none;
  transition: top .16s ease, transform .16s ease, font-size .16s ease, color .16s ease, letter-spacing .16s ease;
}
.contact-page .field--area label { top: 18px; transform: none; }
/* Estado flotado. El select siempre tiene valor, por eso va flotado de entrada. */
.contact-page .field input:focus + label,
.contact-page .field input:not(:placeholder-shown) + label,
.contact-page .field textarea:focus + label,
.contact-page .field textarea:not(:placeholder-shown) + label,
.contact-page .field--select label {
  top: 7px; transform: none;
  font-family: var(--font-head); font-size: .64rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.contact-page .field input:focus + label,
.contact-page .field textarea:focus + label,
.contact-page .field--select select:focus + label { color: var(--amber); }

/* Trampa antispam de Netlify Forms. Va oculta con display:none —no con
   type="hidden"— para que en el HTML siga pareciendo un campo normal: es
   justamente lo que hace que un bot lo rellene y delate el envío. */
.honeypot { display: none; }

/* Pantallas de poco alto (1366×768 y similares): el formulario es la columna
   que manda, así que se comprime lo justo para que el botón no quede cortado.
   Solo aplica mientras haya dos columnas. */
@media (min-width: 901px) and (max-height: 820px) {
  .contact-page { padding-top: 20px; }
  .contact-page .form { gap: 9px; }
  .contact-page .field textarea { min-height: 78px; }
  .contact-page .c-next { margin-top: 16px; }
  .contact-page .card { padding: 15px 20px; }
  .contact-page .card-title { margin-bottom: 8px; }
  .contact-page .check-list--tight li { margin-bottom: 6px; font-size: .89rem; }
}

/* Bajo 900 px `.split` ya cae a una sola columna. Las dos columnas se disuelven
   con display:contents para que sus tres bloques pasen a ser hijos directos de
   la grilla y `order` pueda intercalarlos: sin esto la tarjeta quedaría sobre el
   formulario, porque comparte columna con el texto. */
@media (max-width: 900px) {
  .contact-page .col { display: contents; }
  .contact-page .c-text { order: 1; }
  .contact-page .c-form { order: 2; }
  .contact-page .c-next { order: 3; margin-top: 0; }
}

/* ---------- Footer ---------- */
.site-footer { background: rgba(10, 15, 22, .9); border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; }
.footer-grid h4 {
  font-size: .77rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px;
}
.site-footer img.f-logo { height: 46px; margin-bottom: 18px; }
.site-footer p, .site-footer a { font-size: .92rem; color: var(--muted); }
.site-footer a:hover { color: var(--amber); }
.site-footer li { margin-bottom: 10px; }
.footer-bottom {
  margin-top: clamp(36px, 4vw, 52px); padding: 22px 0; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--muted-2); }
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: border-color .2s, color .2s, background .2s;
}
.social a:hover { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }
.social svg { width: 17px; height: 17px; }

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 84px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--navy-950); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 26px;
    max-height: calc(100vh - 84px); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  body.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a.nav-a { padding: 14px 12px; font-size: 1rem; border-radius: var(--r-sm); }
  .nav-cta { margin: 12px 0 0; }
  .nav-cta .btn { width: 100%; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255, 255, 255, .04); margin: 4px 0 8px; border-color: var(--line);
  }
  .split, .g-2, .g-3, .compare { grid-template-columns: minmax(0, 1fr); }
  .split .media { order: -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .nav { height: 84px; }
  .brand img { height: 44px; }
  .g-4, .steps, .footer-grid, .hero-stats { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 24px 21px; }
  .frame-mark::before, .frame-mark::after { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .tech-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; }
  .tech-chip { height: 58px; }
  .tech-chip img { max-height: 38px; max-width: 68px; }
}
