/* =================================================================
   TRADEUP · main.css
   00. Tokens  01. Base  02. Componentes  10. Header  11. Hero
   ================================================================= */

/* ---------- 00. TOKENS (fuente única de verdad) ---------- */
:root {
  /* Color */
  --blue: #0074ff;      /* azul oficial del logo */
  --blue-600: #005fd6;
  --navy: #001b42;      /* azul marino oficial del logo */
  --blue-50: #eaf1ff;
  --blue-100: #d6e4ff;
  --ink: #0b1220;
  --ink-2: #1c2433;
  --muted: #4b5567;
  --muted-2: #8a93a3;
  --line: #e4e8f0;
  --bg: #f6f8fc;
  --white: #ffffff;
  --peach: #ffd9c4;
  /* Acentos de numeración (servicios / proceso) */
  --acc-blue: #dce8ff;
  --acc-mint: #d3f1e6;
  --acc-yellow: #ffe58a;
  --acc-pink: #ffd6d6;

  /* Tipografía */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", cursive;

  /* Layout */
  --container: 1440px;
  --gutter: clamp(16px, 3.5vw, 56px);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(15, 30, 70, .06);
  --shadow: 0 12px 40px rgba(15, 30, 70, .08);
  --shadow-blue: 0 10px 24px rgba(0, 116, 255, .28);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 01. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* evita scroll horizontal por halos decorativos sin romper sticky */
}
img { display: block; max-width: 100%; height: auto; color: transparent; font-size: 0; } /* oculta alt-text mientras no haya imagen */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, p { margin: 0; }

.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.text-blue { color: var(--blue); }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 02. COMPONENTES ---------- */
.i-arrow { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 28px;
  border-radius: var(--pill);
  font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover .i-arrow { transform: translateX(3px); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { border: 1.5px solid var(--blue); color: var(--blue); background: transparent; }
.btn--outline:hover { background: var(--blue-50); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.burger { display: grid; gap: 4px; width: 14px; }
.burger span { height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 10. HEADER ---------- */
.logo { display: inline-flex; }
.logo__img { width: auto; height: 60px; }
.site-footer .logo__img { height: 52px; }
@media (max-width: 860px) { .logo__img { height: 52px; } }

.site-header { position: relative; z-index: 20; padding-top: 22px; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav { display: flex; gap: 48px; margin-left: 40px; margin-right: auto; }
.nav__link { position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 22px; height: 2px; border-radius: 2px; background: var(--blue);
  transform: translateX(-50%) scaleX(0); transition: transform .25s var(--ease);
}
.nav__link.is-active::after, .nav__link:hover::after { transform: translateX(-50%) scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }

/* ---------- 11. HERO ---------- */
.hero { position: relative; padding: 40px 0 72px; }

.hero__glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: 0; }
.hero__glow--peach {
  width: 420px; height: 420px; left: -220px; bottom: -120px;
  background: radial-gradient(circle, var(--peach) 0%, rgba(255, 217, 196, 0) 70%);
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: 40px;
}

.hero__content { padding-top: 48px; }
.hero__title {
  margin: 18px 0 24px;
  font-size: clamp(44px, 5.6vw, 78px);
  font-weight: 700; line-height: 1.02; letter-spacing: -.04em;
}
.hero__lead { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 470px; margin-bottom: 36px; }

.social-proof { display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.avatars { display: flex; }
.avatars img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--white); margin-left: -12px;
  background: linear-gradient(135deg, #c9d6ee, #8ea6d4);
}
.avatars img:first-child { margin-left: 0; }
.social-proof__text { font-size: 13px; line-height: 1.35; display: grid; }
.social-proof__text strong { font-weight: 600; color: var(--ink); }
.social-proof__text span { color: var(--muted); }

/* Media */
.hero__media { position: relative; aspect-ratio: 1 / 1.04; }
.hero__shape {
  position: absolute; inset: -6% -14% 4% -4%;
  background: linear-gradient(160deg, var(--blue-100) 0%, var(--blue-50) 60%, rgba(234, 241, 255, 0) 100%);
  clip-path: url(#blob-hero);
  z-index: 0;
}
.hero__figure {
  position: absolute; inset: 0 4% 0 0; margin: 0;
  clip-path: url(#blob-hero);
  background: linear-gradient(160deg, #6f8fc8, #1e3a74);
  z-index: 1;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; } /* ver 20. slider */

.hero__script {
  position: absolute; right: -4%; top: 42%; z-index: 2;
  font-family: var(--font-script); font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px); line-height: .95;
  color: var(--ink);
  transform: rotate(-14deg);
}

.hero__pager {
  position: absolute; right: 0; bottom: 6%; z-index: 2;
  display: flex; align-items: center; gap: 22px;
  font-size: 14px; color: var(--muted-2);
}
.hero__count strong { color: var(--ink); font-weight: 600; }
.pager-btn { display: grid; place-items: center; width: 40px; height: 24px; color: var(--ink); }
.pager-btn svg { width: 28px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.pager-btn:hover svg { transform: translateX(4px); }

/* ---------- 12. FRANJA DE MARCAS ---------- */
.brands { position: relative; z-index: 2; padding: 0 0 72px; }
.brands__bar {
  display: flex; align-items: center; gap: 40px;
  min-height: 112px; padding: 20px 44px;
  margin-inline: -40px; /* en el diseño la franja sobresale del contenedor */
  background: var(--white);
  border-radius: var(--pill);
  box-shadow: var(--shadow);
}
.brands__label {
  flex: none;
  font-size: 12px; font-weight: 600; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
}
.brands__list {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin: 0; padding: 0; list-style: none;
}
.brand { flex: none; display: grid; place-items: center; height: 44px; }
.brand img {
  max-height: 40px; max-width: 96px; width: auto;
  filter: grayscale(1) brightness(.15);
  opacity: .9;
  transition: filter .25s var(--ease), opacity .25s var(--ease);
}
.brand:hover img { filter: none; opacity: 1; }
/* Fallback mientras no estén los SVG */
.brand__name { display: none; font-size: 15px; font-weight: 700; color: var(--muted-2); letter-spacing: -.01em; }
.brand.is-missing img { display: none; }
.brand.is-missing .brand__name { display: block; }

.brands__more {
  flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
.brands__more:hover .i-arrow { transform: translateX(3px); }

@media (max-width: 1100px) {
  .brands__bar { gap: 28px; padding: 20px 32px; margin-inline: 0; }
  .brands__list { gap: 24px; }
  .brand img { max-width: 80px; }
}
@media (max-width: 860px) {
  .brands { padding-bottom: 56px; }
  .brands__bar {
    flex-wrap: wrap; justify-content: space-between;
    border-radius: var(--radius-lg); padding: 24px;
    row-gap: 20px;
  }
  .brands__label br { display: none; }
  .brands__list {
    order: 3; flex-basis: 100%;
    justify-content: flex-start; gap: 36px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
    padding-right: 40px;
  }
  .brands__list::-webkit-scrollbar { display: none; }
  .brand { scroll-snap-align: start; }
}

/* ---------- 03. COMPONENTES COMPARTIDOS DE SECCIÓN ---------- */
.btn--xs { height: 38px; padding: 0 18px; font-size: 13px; gap: 8px; }
.btn--outline.btn--xs { border-width: 1.2px; }

.section-title {
  margin-top: 10px;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.035em;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-bottom: 40px;
}
.section-head__aside { max-width: 380px; display: grid; gap: 18px; justify-items: start; }
.section-head__aside p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--blue);
}
.link-arrow:hover .i-arrow { transform: translateX(3px); }

/* Badge numerado (servicios / proceso) */
.num-badge {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--acc, var(--acc-blue));
  border: 5px solid var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.num-badge--blue   { --acc: var(--acc-blue); color: var(--blue); }
.num-badge--mint   { --acc: var(--acc-mint); }
.num-badge--yellow { --acc: var(--acc-yellow); }
.num-badge--pink   { --acc: var(--acc-pink); }

/* ---------- 13. SERVICIOS ---------- */
.services { padding: 24px 0 96px; }
.services .section-head { padding-inline: 20px; }

.services__list {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.svc-card {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(15, 30, 70, .12); }

.svc-card__media {
  margin: 0; aspect-ratio: 1 / 1.04;
  border-radius: var(--radius) var(--radius) var(--radius-sm) var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(160deg, #6f8fc8, #1e3a74);
}
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.svc-card:hover .svc-card__media img { transform: scale(1.05); }

.svc-card .num-badge { position: relative; margin: -28px 0 0 14px; } /* monta el badge sobre el borde de la imagen */

.svc-card__body { flex: 1; display: flex; flex-direction: column; padding: 14px 22px 24px; }
.svc-card__title {
  font-size: 18px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 12px;
}
.svc-card__text { font-size: 13px; line-height: 1.55; color: var(--muted); margin-bottom: 20px; }
.svc-card .link-arrow { margin-top: auto; }

@media (max-width: 1100px) {
  .services__track {
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 8px var(--gutter) 32px;
  }
  .services__track::-webkit-scrollbar { display: none; }
  .services__list { grid-template-columns: repeat(5, 240px); }
  .services__list > li { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
}
@media (max-width: 860px) {
  .services { padding-bottom: 64px; }
  .services .section-head { padding-inline: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 24px; }
  .services__list { grid-template-columns: repeat(5, 74vw); gap: 16px; }
  .svc-card__media { aspect-ratio: 4 / 3; }
}

/* ---------- 14. IMPACTO + STATS ---------- */
.impact { position: relative; padding: 40px 0 96px; }
.impact__glow {
  position: absolute; left: 22%; top: -40px; z-index: 0;
  width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(170, 200, 255, .55) 0%, rgba(214, 228, 255, 0) 70%);
  filter: blur(30px); pointer-events: none;
}
.impact__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.55fr) minmax(0, .62fr);
  align-items: center; gap: 24px;
}

.impact__title { font-size: clamp(34px, 3.6vw, 50px); margin: 14px 0 20px; }
.impact__lead { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 300px; margin-bottom: 28px; }

.impact__media { position: relative; aspect-ratio: 1.12 / 1; }
.impact__shape {
  position: absolute; inset: -6% 2% 6% -6%;
  background: linear-gradient(140deg, var(--blue-100), rgba(234, 241, 255, 0) 75%);
  clip-path: url(#blob-impact); z-index: 0;
}
.impact__figure {
  position: absolute; inset: 0; margin: 0; z-index: 1;
  clip-path: url(#blob-impact);
  background: linear-gradient(160deg, #8ea6d4, #2a4a86);
}
.impact__figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.impact__script {
  position: absolute; right: -2%; bottom: -2%; z-index: 2;
  font-family: var(--font-script); font-weight: 500;
  font-size: clamp(24px, 2.3vw, 34px); line-height: .95; text-align: center;
  color: var(--ink); transform: rotate(-14deg);
}

.impact__stats {
  display: grid; gap: 26px;
  margin: 0; padding: 32px 28px;
  list-style: none;
  background: rgba(244, 248, 255, .78);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stat { display: grid; gap: 4px; }
.stat__value { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: var(--blue); }
.stat__label { font-size: 12.5px; line-height: 1.4; color: var(--muted); }

@media (max-width: 1100px) {
  .impact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .impact__stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .impact { padding-bottom: 64px; }
  .impact__glow { left: -20%; width: 380px; }
  .impact__grid { grid-template-columns: 1fr; gap: 32px; }
  .impact__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .impact__script { right: 0; font-size: 24px; }
  .impact__stats { grid-template-columns: repeat(2, 1fr); padding: 24px; gap: 24px 16px; }
  .stat__label br { display: none; }
}

/* ---------- 15. CASOS DE ÉXITO ---------- */
.btn--light { background: var(--white); color: var(--ink); box-shadow: var(--shadow); padding-right: 8px; gap: 14px; }
.btn--light:hover { transform: translateY(-1px); }
.btn__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); }
.btn--ghost-light { border: 1.2px solid rgba(255, 255, 255, .85); color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border-radius: var(--pill); background: var(--white); color: var(--ink);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.cases { position: relative; padding: 24px 0 96px; }
.cases__glow {
  position: absolute; right: -120px; top: -40px; z-index: 0;
  width: 380px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 217, 196, .8) 0%, rgba(255, 217, 196, 0) 70%);
  filter: blur(30px); pointer-events: none;
}
.cases .container { position: relative; z-index: 1; }
.cases__head { align-items: center; margin-bottom: 28px; }

.cases__track { position: relative; }
.cases__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
.case-card {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #3b5a96, #0d1a33);
  box-shadow: var(--shadow);
}
.case-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.case-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(5, 12, 28, 0) 38%, rgba(5, 12, 28, .55) 65%, rgba(5, 12, 28, .9) 100%);
}
.case-card:hover .case-card__img { transform: scale(1.05); }
.case-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; justify-items: start; gap: 12px;
  padding: 0 24px 24px;
}
.case-card__title { color: var(--white); font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.case-card .btn--xs { height: 32px; margin-top: 6px; }

.cases__dots { position: absolute; right: 24px; bottom: 30px; z-index: 2; display: flex; gap: 6px; }
.cases__dots span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); }
.cases__dots .is-active { background: var(--white); }

@media (max-width: 1100px) {
  .cases__track {
    margin-inline: calc(var(--gutter) * -1);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 8px var(--gutter) 32px;
  }
  .cases__track::-webkit-scrollbar { display: none; }
  .cases__list { grid-template-columns: repeat(3, 340px); }
  .cases__list > li { scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .cases__dots { display: none; }
}
@media (max-width: 860px) {
  .cases { padding-bottom: 56px; }
  .cases__head { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .cases__list { grid-template-columns: repeat(3, 80vw); gap: 16px; }
}

/* ---------- 16. PROCESO ---------- */
.num-badge--sm { width: 44px; height: 44px; border-width: 4px; font-size: 13px; }
.num-badge--outline { --acc: var(--white); color: var(--blue); border-color: var(--white); box-shadow: 0 0 0 2px var(--blue), var(--shadow-sm); }

.process { position: relative; padding: 24px 0 96px; }
.process__head { align-items: flex-start; margin-bottom: 36px; }
.process__head .section-head__aside { max-width: 470px; padding-top: 22px; margin-right: auto; margin-left: 12%; }

.process__blob { position: absolute; z-index: 0; pointer-events: none; border-radius: 48% 52% 44% 56% / 55% 45% 55% 45%; }
.process__blob--yellow { width: 120px; height: 110px; right: -38px; top: 26px; background: var(--acc-yellow); transform: rotate(-18deg); }
.process__blob--sage   { width: 110px; height: 120px; right: -52px; bottom: -20px; background: #c9dcb8; transform: rotate(24deg); }

.steps {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin: 0; padding: 0; list-style: none;
}
/* Línea de tiempo */
.steps::before {
  content: ""; position: absolute; left: 22px; right: -6vw; top: 21px; height: 2px; z-index: -1;
  background: linear-gradient(90deg, #a9c3f5 0%, #f2a7a7 28%, #9fd3bc 58%, #a9c3f5 85%, rgba(169, 195, 245, 0) 100%);
}
.step { display: grid; gap: 14px; }
.step__title { padding-left: 30px; font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }

@media (max-width: 860px) {
  .process { padding-bottom: 64px; }
  .process__head .section-head__aside { margin-left: 0; padding-top: 0; }
  .process__blob--yellow { right: -60px; top: 0; }
  .process__blob--sage { display: none; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto;
    background: linear-gradient(180deg, #a9c3f5, #f2a7a7 35%, #9fd3bc 70%, #a9c3f5); }
  .step { grid-template-columns: 44px 1fr; align-items: center; gap: 16px; }
  .step__title { padding-left: 0; }
  .step__title br { display: none; }
}

/* ---------- 17. FAQ ---------- */
.btn--white { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--white:hover { box-shadow: var(--shadow); }

.faq { position: relative; z-index: 1; padding: 0 0 72px; }
.faq__panel {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: 48px;
  padding: 48px 40px 48px 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #edf3ea 0%, #f1f5f1 55%, #eef2f5 100%);
  margin-inline: -16px;
}
.faq__intro .section-title { margin: 12px 0 18px; }
.faq__lead { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 330px; margin-bottom: 26px; }

.faq__list { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 3px rgba(15, 30, 70, .05);
  transition: box-shadow .25s var(--ease);
}
.faq-item:hover, .faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--radius-sm); }
.faq-item__icon { position: relative; flex: none; width: 12px; height: 12px; }
.faq-item__icon::before, .faq-item__icon::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1.6px; margin-top: -.8px;
  background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__icon::after { transform: rotate(0deg); }
.faq-item__a { padding: 0 20px 18px; }
.faq-item__a p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 560px; }

@media (max-width: 1100px) {
  .faq__panel { margin-inline: 0; padding: 40px 32px; gap: 32px; }
}
@media (max-width: 860px) {
  .faq { padding-bottom: 56px; }
  .faq__panel { grid-template-columns: 1fr; padding: 32px 20px; }
  .faq-item__q { padding: 12px 16px; }
  .faq-item__a { padding: 0 16px 16px; }
}

/* ---------- 18. CONTACTO ---------- */
.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; }
.eyebrow--light { color: rgba(255, 255, 255, .8); }

.contact { padding: 0 0 72px; }
.contact__panel {
  position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr); /* 3.ª columna reservada para la imagen */
  align-items: center; gap: 36px;
  padding: 52px 32px 52px 56px;
  margin-inline: -16px;
  border-radius: 40px;
  /* Base: azul saturado a la izquierda que se aclara hacia la derecha */
  background:
    radial-gradient(40% 70% at 100% 50%, rgba(214, 230, 255, .75) 0%, rgba(214, 230, 255, 0) 70%),
    linear-gradient(100deg, #2a63e6 0%, #3a74ee 38%, #5a8ef3 62%, #85acf6 84%, #b4cdfb 100%);
  color: var(--white);
}
.contact__panel > :not(.contact__deco):not(.contact__media) { position: relative; z-index: 1; }
.contact__panel > .contact__media { z-index: 1; }

/* Capas decorativas */
.contact__deco { position: absolute; pointer-events: none; z-index: 0; }
/* Placa translúcida diagonal detrás del texto */
.contact__deco--slab {
  left: -12%; top: -38%; width: 52%; height: 150%;
  border-radius: 90px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .06) 60%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(255, 255, 255, .12);
  transform: rotate(-16deg);
}
/* Luz cian suave arriba al centro y abajo a la izquierda */
.contact__deco--glow {
  inset: 0;
  background:
    radial-gradient(28% 40% at 48% 0%, rgba(140, 200, 255, .45) 0%, rgba(140, 200, 255, 0) 100%),
    radial-gradient(30% 45% at 8% 100%, rgba(20, 70, 200, .45) 0%, rgba(20, 70, 200, 0) 100%);
}
/* Marca de agua del logo, desenfocada */
.contact__deco--ghost {
  left: 22%; bottom: 6%;
  font-size: 180px; font-weight: 800; line-height: 1; letter-spacing: -.06em;
  color: rgba(255, 255, 255, .07);
  filter: blur(3px);
  transform: rotate(-8deg);
}
/* Anillo tenue detrás del formulario */
.contact__deco--ring {
  right: 18%; top: -30%; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
}

.contact__title { color: var(--white); margin: 12px 0 18px; font-size: clamp(30px, 3vw, 42px); }
.contact__lead { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .95); max-width: 340px; margin-bottom: 36px; }

.contact__channels { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.channel { display: flex; align-items: center; gap: 14px; }
.channel__icon {
  flex: none; display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 8px 20px rgba(6, 20, 60, .3);
}
.channel__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channel__text { display: grid; font-size: 13px; line-height: 1.35; }
.channel__text strong { font-size: 14px; font-weight: 600; }
.channel__text span { color: rgba(255, 255, 255, .8); }
.channel:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* Formulario */
.contact-form {
  position: relative; z-index: 1;
  padding: 30px 26px 22px;
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(6, 30, 90, .18);
}
.contact-form__title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.field { display: block; }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 42px; padding: 10px 14px;
  font: inherit; font-size: 13px; color: var(--ink);
  background: #f5f7fb;
  border: 1px solid #eef1f6; border-radius: 8px;
  outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 76px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.field--select select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a93a3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px;
}
.field--select select:invalid { color: var(--muted-2); }
.contact-form__submit { width: 100%; justify-content: center; height: 44px; border-radius: 8px; font-size: 14px; }

.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; margin-bottom: 12px; font-size: 11.5px; color: var(--muted); cursor: pointer; }
.check input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }

/* Imagen */
.contact__media {
  position: absolute; top: 18px; bottom: 18px; right: 14px;
  width: 26%; margin: 0;
  border-radius: 58% 30% 30% 52% / 34% 18% 22% 40%;
  overflow: hidden;
  background: linear-gradient(160deg, #6f8fc8, #1e3a74);
  box-shadow: -18px 0 50px rgba(255, 255, 255, .55);
}
.contact__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
  .contact__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); margin-inline: 0; padding: 40px 32px; border-radius: var(--radius-lg);
    background: radial-gradient(50% 60% at 100% 0%, rgba(201, 220, 255, .8) 0%, rgba(201, 220, 255, 0) 70%), linear-gradient(110deg, #2a63e6 0%, #3a74ee 45%, #6a9af5 100%); }
  .contact__media { display: none; }
}
@media (max-width: 860px) {
  .contact { padding-bottom: 56px; }
  .contact__panel { grid-template-columns: 1fr; padding: 32px 20px 20px; gap: 32px; }
  .contact__deco--slab { width: 120%; height: 70%; top: -20%; left: -40%; }
  .contact__deco--ghost { font-size: 140px; left: auto; right: -10%; bottom: auto; top: 30%; }
  .contact__deco--ring { width: 300px; height: 300px; right: -30%; top: auto; bottom: -10%; }
  .contact__lead { margin-bottom: 28px; }
}
@media (max-width: 480px) {
  .contact-form { padding: 22px 16px 18px; }
  .contact-form__grid { grid-template-columns: 1fr; }
}

/* ---------- 19. FOOTER ---------- */
.site-footer { padding: 8px 0 40px; }
.footer__inner { display: flex; align-items: center; gap: 48px; }

.footer__nav { display: flex; gap: 36px; margin-right: auto; }
.footer__nav a { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.footer__nav a:hover { color: var(--blue); }

.footer__social { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer__social a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink); transition: color .2s var(--ease), transform .2s var(--ease); }
.footer__social a:hover { color: var(--blue); transform: translateY(-2px); }
.footer__social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.footer__social svg .fill { fill: currentColor; stroke: none; }
.footer__social svg .fill-bg { fill: var(--bg); stroke: none; }

.footer__legal { font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.footer__top { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.footer__top svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.footer__top:hover svg { transform: translateY(-3px); }

@media (max-width: 1100px) {
  .footer__inner { flex-wrap: wrap; gap: 24px 32px; }
  .footer__nav { order: 5; flex-basis: 100%; margin-right: 0; }
}
@media (max-width: 600px) {
  .footer__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .footer__nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 14px 24px; order: 0; }
  .footer__social { grid-column: 1; }
  .footer__legal { grid-column: 1 / -1; }
  .footer__top { grid-column: 2; grid-row: 1; }
}

/* ---------- 20. INTERACCIÓN (menú, slider, dots, formulario) ---------- */
/* Menú desplegable */
.site-header { position: relative; }
.menu-panel {
  position: absolute; right: var(--gutter); top: calc(100% + 12px); z-index: 30;
  width: min(320px, calc(100vw - var(--gutter) * 2));
  padding: 18px; display: grid; gap: 14px;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15, 30, 70, .16);
  transform-origin: top right; animation: menu-in .25s var(--ease);
}
@media (min-width: 1300px) { .menu-panel { right: calc((100vw - var(--container)) / 2 + var(--gutter)); } }
.menu-panel[hidden] { display: none; }
.menu-panel__nav { display: grid; }
.menu-panel__link { padding: 12px 10px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.menu-panel__link:hover { background: var(--bg); color: var(--blue); }
.menu-panel__cta { justify-content: center; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

.burger span { transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .burger span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* Slider del hero */
.hero__figure .hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  opacity: 0; transition: opacity .8s var(--ease);
}
.hero__figure .hero__slide.is-active { opacity: 1; }

/* Dots de casos (generados por JS) */
.cases__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); background: transparent; pointer-events: auto; }
.cases__dots button.is-active { background: var(--white); }
.cases__dots:empty { display: none; }
@media (max-width: 1100px) {
  .cases__dots { position: static; display: flex; justify-content: center; margin-top: -12px; }
  .cases__dots button { border-color: var(--muted-2); }
  .cases__dots button.is-active { background: var(--blue); border-color: var(--blue); }
}

/* Validación del formulario */
.contact-form.was-validated .field :invalid { border-color: #e5484d; background: #fff7f7; }
.contact-form.was-validated .check input:invalid + span { color: #e5484d; }
.form-status { margin-top: 10px; font-size: 12.5px; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-error { color: #e5484d; }
.form-status.is-ok { color: #15803d; }

/* Accesibilidad: foco visible y movimiento reducido */
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 21. AJUSTES BRIEF DE CONTENIDOS ---------- */
/* Título del hero más largo (brief) */
.hero__title--long { font-size: clamp(34px, 3.7vw, 54px); line-height: 1.08; max-width: 560px; text-wrap: balance; }

/* ¿Quiénes somos? con texto institucional más largo */
.impact__lead { max-width: 340px; margin-bottom: 14px; }
.impact__lead + .btn { margin-top: 14px; }

/* Botón WhatsApp (canal principal según brief) */
.btn--whatsapp { background: #25d366; color: #06301a; box-shadow: 0 10px 24px rgba(6, 40, 20, .25); gap: 10px; }
.btn--whatsapp:hover { background: #1fbe5b; transform: translateY(-1px); }
.btn--whatsapp__icon { display: grid; place-items: center; width: 22px; height: 22px; }
.btn--whatsapp svg, .wa-float svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact__wa { margin-bottom: 32px; }

/* Línea alternativa bajo el formulario */
.contact-form__alt { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.contact-form__alt a { color: var(--blue); font-weight: 600; }
.contact-form__alt a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 14px;
  border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 12px 30px rgba(6, 40, 20, .3);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }

/* Secciones opcionales (no incluidas en el brief): añadir la clase "is-hidden" para ocultarlas */
.is-hidden { display: none !important; }

@media (max-width: 860px) {
  .impact__lead { max-width: none; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ---------- RESPONSIVE (header + hero) ---------- */
@media (max-width: 1024px) {
  .nav { gap: 28px; margin-left: 24px; }
  .hero__script { right: 0; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header__actions .btn { display: none; }
  .hero { padding-top: 16px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__content { padding-top: 16px; }
  .br-desk { display: none; }
  .hero__media { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero__shape { inset: -4% -6% 4% -4%; }
  .hero__script { right: 2%; font-size: 26px; }
}
@media (max-width: 480px) {
  .btn:not(.btn--xs) { height: 48px; padding: 0 22px; }
  .hero__lead { font-size: 15px; }
}
