/* Página "Qué hacemos" (diseño 2026) */
.qh_hero, .qh_sec {
  --navy: #0b2545; --navy2: #123a66; --blue: #40a8e5; --deep: #1f78b4; --cyan: #6cc7f2; --red: #ef5350;
  --text: #5a6b82; --line: #e6edf5; --soft: #f3f7fb;
  font-family: "Regular", system-ui, sans-serif;
}
.qh_wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; position: relative; }
.qh_sec { padding: 80px 0; position: relative; }
.qh_sec.qh_pt0 { padding-top: 0; }
.qh_soft { background: linear-gradient(160deg, #eaf6fc 0%, #ffffff 70%); }
.qh_kicker { font-family: "SemiBold", sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--deep); margin: 0 0 14px; }
.qh_kicker.light { color: var(--cyan); }
.qh_sec h2 { font-family: "Bold", sans-serif; font-size: 40px; line-height: 1.12; letter-spacing: -.01em; color: var(--navy); margin: 0 0 18px; }
.qh_head { margin-bottom: 40px; max-width: 760px; }
.qh_head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.qh_head.split > p { font-size: 16px; line-height: 1.75; color: var(--text); margin: 0 0 8px; }

/* Botones */
.qh_btns { display: flex; flex-wrap: wrap; gap: 12px; }
.qh_btn {
  display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: "SemiBold", sans-serif; font-size: 15px; background: var(--navy); color: #fff; border: 1px solid var(--navy);
  transition: transform .2s ease, background .2s ease;
}
.qh_btn:hover { transform: translateY(-2px); background: var(--navy2); color: #fff; }
.qh_btn.ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.qh_btn.ghost:hover { border-color: var(--blue); color: var(--deep); background: #fff; }

/* Hero */
.qh_hero { position: relative; overflow: hidden; padding: 12px 0 72px; background: #fff; }
.qh_hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(64,168,229,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(64,168,229,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 80% at 75% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(60% 80% at 75% 40%, #000 30%, transparent 80%);
}
.qh_hero_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.qh_hero_grid > div:first-child { align-self: start; padding-top: 8px; } /* mismo nivel que Nuestras marcas */
.qh_crumbs { display: flex; gap: 8px; font-family: "Medium", sans-serif; font-size: 12px; color: #8ea2bb; margin-bottom: 36px; }
.qh_crumbs a { color: #8ea2bb; }
.qh_crumbs span:last-child { color: var(--text); }
.qh_hero h1 { font-family: "Bold", sans-serif; font-size: 68px; line-height: 1; letter-spacing: -.02em; color: var(--navy); margin: 0 0 24px; }
.qh_hero h1 span { color: var(--blue); }
.qh_lead { font-size: 17.5px; line-height: 1.75; color: var(--text); margin: 0 0 32px; max-width: 560px; }
.qh_visual { position: relative; }
.qh_img_main { border-radius: 30px; overflow: hidden; aspect-ratio: 1 / 1.02; box-shadow: 0 30px 70px rgba(11,37,69,.16); }
.qh_img_main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qh_badge {
  position: absolute; right: -14px; top: 28px; display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 20px 44px rgba(11,37,69,.14);
}
.qh_badge strong { font-family: "Bold", sans-serif; font-size: 34px; line-height: 1; color: var(--red); }
.qh_badge span { font-size: 12.5px; line-height: 1.35; color: var(--text); }

/* Servicios */
.qh_svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qh_svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px 28px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.qh_svc::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.qh_svc:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(11,37,69,.09); border-color: rgba(239,83,80,.25); }
.qh_svc:hover::after { transform: scaleX(1); }
.qh_svc_top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.qh_svc_ic { width: 60px; height: 60px; border-radius: 18px; background: #fff3f2; display: grid; place-items: center; }
.qh_svc_ic img { width: 32px; height: 32px; }
.qh_svc_top b { font-family: "Bold", sans-serif; font-weight: normal; font-size: 15px; letter-spacing: .08em; color: #c3cfdd; }
.qh_svc h3 { font-family: "Bold", sans-serif; font-size: 18.5px; line-height: 1.25; color: var(--navy); margin: 0 0 10px; }
.qh_svc p { font-size: 14.5px; line-height: 1.65; color: var(--text); margin: 0; }

/* Industrias */
.qh_ind {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 52px;
  border-radius: 32px; background: linear-gradient(135deg, var(--navy), var(--navy2)); position: relative; overflow: hidden;
}
.qh_ind::before { content: ""; position: absolute; width: 560px; height: 560px; left: -200px; bottom: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(64,168,229,.25), transparent 70%); }
.qh_ind_txt { position: relative; }
.qh_ind_txt h2 { color: #fff; }
.qh_ind_txt p { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,.72); margin: 0 0 14px; }
.qh_ind_txt .qh_btn { margin-top: 12px; background: #fff; color: var(--navy); border-color: #fff; }
.qh_ind_txt .qh_btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.qh_ind_side { position: relative; }
.qh_ind_img { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: 14px; }
.qh_ind_img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qh_ind_list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qh_ind_list li {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; font-family: "Medium", sans-serif; font-size: 15px;
  transition: background .2s ease, transform .2s ease;
}
.qh_ind_list li:hover { background: rgba(255,255,255,.12); transform: translateX(4px); }
.qh_ind_list svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(108,199,242,.18); fill: none; stroke: var(--cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Proceso */
.qh_steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; counter-reset: none; }
.qh_steps::before { content: ""; position: absolute; left: 34px; right: calc(33.33% - 34px); top: 34px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue)); opacity: .45; }
.qh_steps li { position: relative; }
.qh_step_n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 22px;
  background: #fff; border: 2px solid var(--blue); font-family: "Bold", sans-serif; font-size: 20px; color: var(--navy);
  box-shadow: 0 14px 32px rgba(64,168,229,.18);
}
.qh_steps li:first-child .qh_step_n { border-color: var(--red); }
.qh_steps h3 { font-family: "Bold", sans-serif; font-size: 20px; color: var(--navy); margin: 0 0 8px; }
.qh_steps p { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0; max-width: 300px; }

/* Responsive */
@media (max-width: 1100px) {
  .qh_svcs { grid-template-columns: 1fr 1fr; }
  .qh_hero h1 { font-size: 56px; }
}
@media (max-width: 900px) {
  .qh_hero_grid, .qh_ind, .qh_head.split { grid-template-columns: 1fr; gap: 32px; }
  .qh_ind { padding: 36px 28px; }
  .qh_steps { grid-template-columns: 1fr; gap: 24px; }
  .qh_steps::before { left: 34px; right: auto; top: 34px; bottom: 34px; width: 2px; height: auto; }
  .qh_steps li { display: grid; grid-template-columns: 68px 1fr; column-gap: 20px; }
  .qh_step_n { grid-row: span 2; margin: 0; }
  .qh_badge { right: 8px; }
}
@media (max-width: 600px) {
  .qh_wrap { padding: 0 20px; }
  .qh_sec { padding: 56px 0; }
  .qh_hero { padding: 8px 0 56px; }
  .qh_hero h1 { font-size: 44px; }
  .qh_lead { font-size: 15.5px; }
  .qh_sec h2 { font-size: 30px; }
  .qh_svcs { grid-template-columns: 1fr; }
}

/* Proceso animado con el scroll: solo el paso activo se ve nítido */
.qh_proc { padding: 0; }
.qh_proc_track { position: relative; height: 540vh; }
.qh_proc_sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: 70px; box-sizing: border-box; }
.qh_proc_sticky > .qh_wrap { width: 100%; }
.qh_steps_wrap { position: relative; }
.qh_steps::before { background: #d5dde7; opacity: 1; z-index: 0; }
.qh_steps_fill {
  position: absolute; z-index: 1; left: 34px; top: 34px; height: 2px; width: calc(66.667% * var(--f, 0)); pointer-events: none;
  background: linear-gradient(90deg, var(--red), var(--blue)); transition: width .12s linear;
}
.qh_steps li { z-index: 2; transition: transform .6s ease; }
.qh_steps li h3, .qh_steps li p { opacity: .32; filter: blur(1.4px); transition: opacity .6s ease, filter .6s ease, color .5s ease; }
.qh_steps li .qh_step_n { background: #fff; filter: blur(.6px); }
.qh_steps li.is-active h3, .qh_steps li.is-active p, .qh_steps li.is-active .qh_step_n { opacity: 1; filter: none; }
.qh_steps li .qh_step_n { z-index: 2; border-color: #c3ccd8; color: #8d99a8; box-shadow: none; transition: border-color .5s ease, color .5s ease, box-shadow .5s ease, transform .5s ease, filter .5s ease; }
.qh_steps li h3 { color: #4a5568; }
.qh_steps li.is-active { transform: translateY(-4px); }
.qh_steps li.is-active .qh_step_n { border-color: var(--blue); color: var(--navy); box-shadow: 0 14px 32px rgba(64,168,229,.25); transform: scale(1.08); }
.qh_steps li.is-active:first-child .qh_step_n { border-color: var(--red); box-shadow: 0 14px 32px rgba(239,83,80,.22); }
.qh_steps li.is-active h3 { color: var(--navy); }
.qh_steps li.is-done .qh_step_n { border-color: #9fb3c8; }
@media (max-width: 900px) {
  .qh_proc { padding: 56px 0; }
  .qh_proc_track { height: auto; }
  .qh_proc_sticky { position: static; height: auto; display: block; padding-top: 0; }
  .qh_steps_fill { left: 34px; top: 34px; width: 2px; height: calc((100% - 68px) * var(--f, 0)); transition: height .12s linear; background: linear-gradient(180deg, var(--red), var(--blue)); }
}
@media (prefers-reduced-motion: reduce) {
  .qh_proc_track { height: auto; }
  .qh_proc_sticky { position: static; height: auto; padding: 80px 0; }
  .qh_steps li h3, .qh_steps li p, .qh_steps li .qh_step_n { opacity: 1; filter: none; }
  .qh_steps_fill { width: 66.667%; }
}
/* el contenedor <main> del sitio tiene overflow:hidden, que impide el efecto fijo (sticky); clip recorta igual sin bloquearlo */
main { overflow: clip !important; }
