/* ==========================================================================
   HIDROPEX — Hoja de estilos principal
   Sistema de diseño basado en las maquetas corporativas.
   ========================================================================== */

:root {
  /* Colores corporativos Hidropex */
  --hpx-blue: #466bb1; /* AZUL corporativo (botones, encabezados)    */
  --hpx-blue-600: #3c5d9c;
  --hpx-blue-700: #324f86;
  --hpx-blue-light: #8aa6d6; /* Azul claro (segunda línea de títulos hero) */
  --hpx-navy: #4a4f54; /* PLOMO corporativo (secciones oscuras)      */
  --hpx-navy-700: #3e4246;
  --hpx-navy-900: #313539;
  --hpx-gold: #f4b81c; /* Dorado de acento (emergencia, CTA)         */
  --hpx-gold-600: #e0a90f;
  --hpx-gray: #f4f6f9; /* Fondo claro de secciones                   */
  --hpx-gray-200: #e7ecf2;
  --hpx-border: #e2e8f0;
  --hpx-text: #1f2d3d; /* Texto principal                            */
  --hpx-muted: #5b6b7e; /* Texto secundario                           */
  --hpx-white: #ffffff;

  --hpx-radius: 10px;
  --hpx-radius-lg: 16px;
  --hpx-shadow: 0 10px 30px rgba(22, 36, 63, 0.08);
  --hpx-shadow-sm: 0 4px 14px rgba(22, 36, 63, 0.06);
  --hpx-container: 1200px;
  --hpx-font:
    "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  /* Curvas y tiempos de movimiento (sistema de animación) */
  --hpx-ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* salida suave premium */
  --hpx-ease-soft: cubic-bezier(0.4, 0, 0.2, 1); /* estándar material    */
  --hpx-dur: 0.6s; /* reveals              */
  --hpx-dur-fast: 0.25s; /* hover/micro          */
}

/* --------------------------------------------------------------- Reset/base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Evita scroll horizontal accidental en móvil sin afectar el position:fixed
   del menú (clip no crea un contenedor de scroll como sí lo hace hidden). */
html {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--hpx-font);
  color: var(--hpx-text);
  background: var(--hpx-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--hpx-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--hpx-blue-700);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--hpx-text);
  font-weight: 800;
}
p {
  margin: 0 0 1rem;
}
ul {
  margin: 0;
  padding: 0;
}

.hpx-container {
  width: 100%;
  max-width: var(--hpx-container);
  margin: 0 auto;
  padding: 0 24px;
}
.hpx-section {
  padding: 64px 0;
}
.hpx-section--tight {
  padding: 44px 0;
}
.hpx-bg-gray {
  background: var(--hpx-gray);
}
.hpx-text-center {
  text-align: center;
}
.hpx-mt-0 {
  margin-top: 0;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ Buttons */
.hpx-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--hpx-dur-fast) var(--hpx-ease-soft),
    color var(--hpx-dur-fast) var(--hpx-ease-soft),
    border-color var(--hpx-dur-fast) var(--hpx-ease-soft),
    transform var(--hpx-dur-fast) var(--hpx-ease),
    box-shadow var(--hpx-dur-fast) var(--hpx-ease);
  text-align: center;
}
.hpx-btn .hpx-arrow {
  transition: transform var(--hpx-dur-fast) var(--hpx-ease);
}
.hpx-btn:hover .hpx-arrow {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: no-preference) {
  .hpx-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 36, 63, 0.14);
  }
  .hpx-btn:active {
    transform: translateY(0);
  }
}

.hpx-btn--primary {
  background: var(--hpx-blue);
  color: #fff;
  font-weight:400;
}
.hpx-btn--primary:hover {
  background: var(--hpx-blue-700);
  color: #fff;
}

.hpx-btn--gold {
  background: var(--hpx-gold);
  color: var(--hpx-navy);
}
.hpx-btn--gold:hover {
  background: var(--hpx-gold-600);
  color: var(--hpx-navy);
}

.hpx-btn--dark {
  background: var(--hpx-navy);
  color: #fff;
}
.hpx-btn--dark:hover {
  background: var(--hpx-navy-900);
  color: #fff;
}

.hpx-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.hpx-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hpx-btn--outline-blue {
  background: transparent;
  color: var(--hpx-blue);
  border-color: var(--hpx-blue);
}
.hpx-btn--outline-blue:hover {
  background: var(--hpx-blue);
  color: #fff;
}

.hpx-btn--light {
  background: #fff;
  color: var(--hpx-blue);
}
.hpx-btn--light:hover {
  background: var(--hpx-gray);
  color: var(--hpx-blue-700);
}

.hpx-btn--block {
  width: 100%;
  justify-content: center;
}

/* =========================================================== TOP BAR ===== */
.hpx-topbar {
  background: #fff;
  border-bottom: 1px solid var(--hpx-border);
  font-size: 0.82rem;
  color: var(--hpx-text);
}
.hpx-topbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.hpx-topbar__info {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.hpx-topbar__info a,
.hpx-topbar__info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hpx-text);
}
.hpx-topbar__info svg {
  color: var(--hpx-blue);
  flex: none;
}
.hpx-topbar__actions {
  display: flex;
  align-items: stretch;
}
.hpx-topbar__work {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hpx-border);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 8px 14px;
  font-weight: 600;
  color: var(--hpx-text);
  transition:
    border-color var(--hpx-dur-fast) var(--hpx-ease-soft),
    color var(--hpx-dur-fast) var(--hpx-ease-soft),
    background var(--hpx-dur-fast) var(--hpx-ease-soft);
}
.hpx-topbar__work:hover {
  border-color: var(--hpx-blue);
  color: var(--hpx-blue);
}
.hpx-topbar__emergency {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hpx-navy);
  color: #fff;
  padding: 10px 22px;
  transition: background var(--hpx-dur-fast) var(--hpx-ease-soft);
  font-weight: 400;
}
.hpx-topbar__emergency:hover {
  background: var(--hpx-navy-900);
  color: #fff;
}
.hpx-topbar__emergency strong {
  color: var(--hpx-gold);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  font-weight: 400;
}
.hpx-topbar__emergency small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.8;
  font-weight: 400!important;
}
.hpx-topbar__emergency svg {
  color: var(--hpx-gold);
}

/* =========================================================== HEADER ====== */
.hpx-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--hpx-shadow-sm);
}
.hpx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.hpx-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hpx-logo__mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--hpx-blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -1px;
}
.hpx-logo__text strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--hpx-navy);
  letter-spacing: 1px;
  line-height: 1;
}
.hpx-logo__text small {
  display: block;
  font-size: 0.55rem;
  letter-spacing: 2.5px;
  color: var(--hpx-muted);
  margin-top: 3px;
}
.hpx-logo img {
  max-height: 52px;
  width: auto;
}
.hpx-logo--footer-image {
  max-width: 270px;
}
.hpx-logo__footer-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

/* Logo personalizado subido desde Personalizar → Identidad del sitio */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo {
  max-height: 56px;
  width: auto;
  height: auto;
  transition: opacity var(--hpx-dur-fast) var(--hpx-ease-soft);
}
.custom-logo-link:hover .custom-logo {
  opacity: 0.85;
}

/* ------- Navegación principal ------- */
.hpx-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hpx-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hpx-menu > li {
  position: relative;
}
.hpx-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hpx-text);
  border-bottom: 3px solid transparent;
  transition: color var(--hpx-dur-fast) var(--hpx-ease-soft);
}
.hpx-menu > li > a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -3px;
  height: 3px;
  background: var(--hpx-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hpx-dur-fast) var(--hpx-ease);
}
.hpx-menu > li.current-menu-item > a,
.hpx-menu > li.current-menu-parent > a,
.hpx-menu > li:hover > a {
  color: var(--hpx-blue);
}
.hpx-menu > li.current-menu-item > a::before,
.hpx-menu > li.current-menu-parent > a::before,
.hpx-menu > li:hover > a::before {
  transform: scaleX(1);
}
.hpx-menu .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  margin-top: -3px;
}
/* Submenús */
.hpx-menu .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  box-shadow: var(--hpx-shadow);
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 50;
}
.hpx-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hpx-menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hpx-text);
}
.hpx-menu .sub-menu a:hover {
  background: var(--hpx-gray);
  color: var(--hpx-blue);
}

.hpx-nav__cta {
  display: inline-flex;
}
.hpx-nav__bench {
  display: inline-flex;
  white-space: nowrap;
  padding: 12px 18px;
  font-size: 0.82rem;
}

/* Botón hamburguesa */
.hpx-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hpx-burger span { display: block; width: 26px; height: 3px; background: var(--hpx-navy); border-radius: 1px; margin: 5px 0; transition: .3s; }
.hpx-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hpx-burger.is-open span:nth-child(2) { opacity: 0; }
.hpx-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* .hpx-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px; /* Usar gap en lugar de margin es más moderno y limpio */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px; /* Ampliado ligeramente para mejorar el área táctil en móviles (mínimo 44x44px) */
  border-radius: 6px;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
}

/* Estado Focus para accesibilidad (navegación por teclado) */
.hpx-burger:focus-visible {
  outline: 2px solid var(--hpx-navy);
  outline-offset: 4px;
}

/* Efecto hover sutil para dar feedback al usuario */
.hpx-burger:hover {
  background-color: rgba(0, 0, 0, 0.05); /* Fondo sutil al pasar el mouse */
}

.hpx-burger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--hpx-navy);
  border-radius: 3px; /* Bordes totalmente redondeados (pill-shape) en lugar de 1px */
  /* Uso de cubic-bezier para una animación de "X" mucho más natural y fluida */
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}

/* Animación de apertura */
.hpx-burger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hpx-burger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scale(
    0.5
  ); /* Añade un pequeño encogimiento al desaparecer para mayor suavidad */
}

.hpx-burger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================== HERO ======== */
.hpx-hero {
  position: relative;
  background: linear-gradient(120deg, var(--hpx-blue-700), var(--hpx-blue));
  color: #fff;
  overflow: hidden;
}
.hpx-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 360px;
  padding: 56px 0;
}
.hpx-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  margin-bottom: 12px;
}
.hpx-hero h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 18px;
  font-weight: 400;
}
.hpx-hero h1 .accent {
  color: var(--hpx-blue-light);
  display: block;
}
.hpx-hero p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 46ch;
}
.hpx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.hpx-hero__media {
  position: relative;
}
.hpx-hero__media img {
  border-radius: var(--hpx-radius-lg);
  box-shadow: var(--hpx-shadow);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/11;
}
.hpx-hero--media-bleed .hpx-hero__media {
  align-self: stretch;
}

/* Hero interno con imagen difuminada (fundido al azul) */
.hpx-hero--fade .hpx-hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 0;
  margin: 0;
  transform: translate3d(0, var(--hpx-parallax-media, 0px), 0);
  will-change: transform;
}
.hpx-hero--fade .hpx-hero__media img,
.hpx-hero--fade .hpx-hero__media .hpx-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.hpx-hero--fade .hpx-hero__inner {
  grid-template-columns: 1fr;
}
.hpx-hero--fade .hpx-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* Hero a sangre completa con imagen de fondo + overlay (Inicio) */
.hpx-hero--cover {
  --hpx-hero-cover-opacity: 0.35;
  position: relative;
  overflow: hidden;
}
.hpx-hero--cover::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  right: 0;
  z-index: 0;
  background-image: var(--hpx-hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transform: translate3d(0, var(--hpx-parallax, 0px), 0);
  will-change: transform;
}
.hpx-hero--cover .hpx-container {
  position: relative;
  z-index: 1;
}
.hpx-hero--cover .hpx-hero__inner {
  grid-template-columns: 1fr;
  min-height: 460px;
}
.hpx-hero--cover .hpx-hero__content {
  max-width: 640px;
}
.hpx-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 30px;
}
.hpx-hero__badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.hpx-hero__badge svg {
  color: var(--hpx-blue-light);
  flex: none;
}
.hpx-hero__badge strong {
  display: block;
  font-weight: 800;
}
.hpx-hero__badge span {
  opacity: 0.8;
}

/* Hero compacto (páginas internas) con breadcrumb */
.hpx-hero--page {
  overflow: hidden;
}
.hpx-hero--page .hpx-hero__media {
  transform: translate3d(0, var(--hpx-parallax-media, 0px), 0);
  will-change: transform;
}
.hpx-hero--page .hpx-hero__inner {
  min-height: 280px;
}
.hpx-hero--page h1 {
  font-size: 2.6rem;
}
.hpx-breadcrumb {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hpx-breadcrumb a {
  color: #fff;
}
.hpx-breadcrumb span.sep {
  opacity: 0.6;
}
.hpx-hero__rule {
  width: 64px;
  height: 4px;
  background: var(--hpx-gold);
  border-radius: 4px;
  margin: 0 0 18px;
}

/* Tarjeta "Quiénes somos" superpuesta al hero */
.hpx-intro-card {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  margin-bottom: 8px;
  background: #fff;
  border-radius: var(--hpx-radius-lg);
  box-shadow: var(--hpx-shadow);
  padding: 40px;
}
.hpx-intro-card .eyebrow {
  color: var(--hpx-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.82rem;
}
.hpx-intro-card h2 {
  font-size: 1.9rem;
  margin: 6px 0 16px;
}
.hpx-intro-card p {
  color: var(--hpx-muted);
}
@media (max-width: 768px) {
  .hpx-intro-card {
    margin-top: 0;
    padding: 28px;
  }
}

/* =============================== NOSOTROS · franja de features (hero) === */
.hpx-herostrip {
  background: var(--hpx-navy);
  color: #fff;
}
.hpx-herostrip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 26px 0;
  max-width: 58%;
}
.hpx-herofeat {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hpx-herofeat__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--hpx-blue-light);
  display: grid;
  place-items: center;
}
.hpx-herofeat strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}
.hpx-herofeat span {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =============================== NOSOTROS · quiénes somos (foto + rail) = */
.hpx-about__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: start;
}
.hpx-about__media {
  position: relative;
  padding-left: 64px;
}
.hpx-about__photo img {
  width: 100%;
  border-radius: var(--hpx-radius);
  box-shadow: var(--hpx-shadow);
  object-fit: cover;
  aspect-ratio: 16/11;
}
.hpx-social-rail {
  position: absolute;
  left: 0;
  top: 24px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: var(--hpx-blue);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--hpx-shadow);
}
.hpx-social-rail a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
}
.hpx-social-rail a:hover {
  background: var(--hpx-blue-700);
  color: #fff;
}
.hpx-about__card {
  position: relative;
  z-index: 5;
  margin-top: -120px;
  background: #fff;
  border-radius: var(--hpx-radius-lg);
  box-shadow: var(--hpx-shadow);
  padding: 40px;
}
.hpx-about__card .eyebrow {
  color: var(--hpx-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.82rem;
}
.hpx-about__card h2 {
  font-size: 1.9rem;
  margin: 6px 0 16px;
}
.hpx-about__card p {
  color: var(--hpx-muted);
}

/* =============================== NOSOTROS · mercados + equipo (2 col) === */
.hpx-mq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.hpx-mq__card {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 32px;
}
.hpx-mq__title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hpx-navy);
  margin-bottom: 24px;
}
.hpx-section-title--left {
  text-align: left;
  margin-bottom: 22px;
}
.hpx-section-title--left p {
  margin-left: 0;
}

/* Mercados que atendemos */
.hpx-markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hpx-market {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.hpx-market__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(70, 107, 177, 0.08);
  color: var(--hpx-blue);
  flex: none;
}
.hpx-market strong {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
  color: var(--hpx-navy);
}

/* Nuestro equipo */
.hpx-mq__team {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.hpx-mq__team-body p {
  color: var(--hpx-muted);
  margin-bottom: 22px;
}
.hpx-mq__team-photo {
  align-self: stretch;
}
.hpx-mq__team-photo img,
.hpx-mq__team-photo .hpx-placeholder {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  border-radius: var(--hpx-radius);
}

@media (max-width: 900px) {
  .hpx-about__grid,
  .hpx-mq {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hpx-about__card {
    margin-top: 0;
  }
  .hpx-mq__team {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hpx-herostrip__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .hpx-about__media {
    padding-left: 0;
    padding-top: 60px;
  }
  .hpx-social-rail {
    top: 0;
    left: 0;
    flex-direction: row;
  }
  .hpx-about__card {
    padding: 28px;
  }
}
@media (max-width: 768px) {
  /* Mayor especificidad para ganar al colapso genérico a 1fr de mobile */
  .hpx-mq .hpx-markets {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

/* =================================================== FEATURE STRIP ======= */
.hpx-featurestrip {
  background: #fff;
  border-bottom: 1px solid var(--hpx-border);
}
.hpx-featurestrip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 22px 0;
}
.hpx-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hpx-feature__icon {
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--hpx-blue);
  display: grid;
  place-items: center;
}
.hpx-feature__icon svg {
  width: 30px;
  height: 30px;
}
.hpx-feature strong {
  display: block;
  font-size: 0.92rem;
  color: var(--hpx-text);
}
.hpx-feature span {
  font-size: 0.82rem;
  color: var(--hpx-muted);
}

/* Variante sobre fondo oscuro (hero overlay strip) */
.hpx-darkstrip {
  background: var(--hpx-navy);
  color: #fff;
}
.hpx-darkstrip .hpx-feature__icon {
  color: #fff;
}
.hpx-darkstrip .hpx-feature strong {
  color: #fff;
}
.hpx-darkstrip .hpx-feature span {
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================== SECTION HEADINGS ======== */
.hpx-section-title {
  text-align: center;
  margin-bottom: 40px;
}
.hpx-section-title h2 {
  font-size: 2rem;
  color: var(--hpx-blue);
}
.hpx-section-title--dark h2 {
  color: var(--hpx-text);
}
.hpx-section-title p {
  color: var(--hpx-muted);
  max-width: 60ch;
  margin: 0 auto;
}
.hpx-heading-rule {
  width: 56px;
  height: 4px;
  background: var(--hpx-gold);
  border-radius: 4px;
  margin-bottom: 16px;
}

/* ==================================================== CARDS / GRIDS ===== */
.hpx-grid {
  display: grid;
  gap: 24px;
}
.hpx-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}
.hpx-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.hpx-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
.hpx-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}
.hpx-grid--6 {
  grid-template-columns: repeat(6, 1fr);
}

.hpx-card {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 28px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.hpx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hpx-shadow);
}
.hpx-card__icon {
  width: 56px;
  height: 56px;
  color: var(--hpx-blue);
  margin-bottom: 16px;
}
.hpx-card__icon svg {
  width: 56px;
  height: 56px;
}
.hpx-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hpx-card p {
  color: var(--hpx-muted);
  font-size: 0.92rem;
}
.hpx-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--hpx-blue);
}
.hpx-card__more:hover .hpx-arrow {
  transform: translateX(4px);
}

/* Tarjeta de servicio (icono centrado) */
.hpx-service-card {
  text-align: center;
}
.hpx-service-card .hpx-card__icon {
  margin: 0 auto 16px;
}
.hpx-services-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.hpx-services-grid .hpx-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px;
  min-height: 318px;
}
.hpx-services-grid .hpx-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
}
.hpx-services-grid .hpx-card__icon svg {
  width: 48px;
  height: 48px;
}
.hpx-services-grid .hpx-service-card h3 {
  font-size: 0.82rem;
  line-height: 1.18;
  min-height: 2.4em;
  margin-bottom: 10px;
}
.hpx-services-grid .hpx-service-card p {
  font-size: 0.82rem;
  line-height: 1.45;
}
.hpx-services-grid .hpx-card__more {
  margin-top: auto;
}
@media (max-width: 1180px) {
  .hpx-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .hpx-services-grid .hpx-service-card {
    min-height: 300px;
    padding: 26px 20px;
  }
}
@media (max-width: 768px) {
  .hpx-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .hpx-services-grid {
    grid-template-columns: 1fr;
  }
}

/* Tarjeta de producto / noticia / proyecto con imagen */
.hpx-media-card {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.hpx-media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hpx-shadow);
}
.hpx-media-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--hpx-gray-200);
}
.hpx-media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hpx-media-card:hover .hpx-media-card__thumb img {
  transform: scale(1.05);
}
.hpx-media-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hpx-media-card__date {
  font-size: 0.78rem;
  color: var(--hpx-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.hpx-media-card__body h3 {
  font-size: 1rem;
}
.hpx-media-card__body h3 a {
  color: var(--hpx-text);
}
.hpx-media-card__body h3 a:hover {
  color: var(--hpx-blue);
}
.hpx-media-card__body p {
  color: var(--hpx-muted);
  font-size: 0.9rem;
}
.hpx-media-card__body .hpx-card__more {
  margin-top: auto;
}

/* Variante tarjeta de servicio (título azul en mayúsculas, como el mockup) */
.hpx-media-card--service .hpx-media-card__body h3 {
  font-size: 0.95rem;
}
.hpx-media-card--service .hpx-media-card__body h3 a {
  color: var(--hpx-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hpx-media-card--service .hpx-media-card__body h3 a:hover {
  color: var(--hpx-blue-700);
}

/* =========================================== STATS BAND (dark) ========== */
.hpx-stats {
  background: var(--hpx-navy);
  color: #fff;
  border-radius: var(--hpx-radius-lg);
  padding: 36px;
}
.hpx-stats__title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.hpx-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hpx-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hpx-stat__icon {
  color: var(--hpx-blue-light);
  flex: none;
}
.hpx-stat__num {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.hpx-stat__label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: var(--hpx-blue-light);
}
.hpx-stat__sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Stats premium treatment */
.hpx-stats {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(138, 166, 214, 0.24),
      transparent 28%
    ),
    linear-gradient(135deg, #26313b 0%, var(--hpx-navy) 54%, #30363b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 58px rgba(22, 36, 63, 0.18);
}
.hpx-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.38;
}
.hpx-stats::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(244, 184, 28, 0.12);
  filter: blur(6px);
}
.hpx-stats__title,
.hpx-stats__grid {
  position: relative;
  z-index: 1;
}
.hpx-stats__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.6px;
  margin-bottom: 26px;
}
.hpx-stats__title::before {
  content: "";
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--hpx-gold);
}
.hpx-stats__grid {
  gap: 18px;
}
.hpx-stat {
  min-height: 118px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(4px);
  margin-bottom: 6px;
  transition:
    transform var(--hpx-dur-fast) var(--hpx-ease),
    background var(--hpx-dur-fast) var(--hpx-ease),
    border-color var(--hpx-dur-fast) var(--hpx-ease);
}
.hpx-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(138, 166, 214, 0.42);
}
.hpx-stat__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}
.hpx-stat__icon svg {
  width: 30px;
  height: 30px;
}
.hpx-stat__num {
  color: var(--hpx-blue-light);
  letter-spacing: -0.5px;
}
.hpx-stat__label {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.hpx-stat__sub {
  color: rgba(255, 255, 255, 0.76);
}

/* ============================ HERO INICIO — tarjeta asistencia 24/7 ===== */
.hpx-hero--home .hpx-hero__inner {
  grid-template-columns: 1.35fr 0.85fr;
  align-items: end;
  gap: 40px;
}
.hpx-hero--home .hpx-hero__content {
  max-width: 640px;
}
.hpx-hero__assist {
  background: rgba(26, 34, 48, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--hpx-radius);
  padding: 26px;
  max-width: 360px;
  margin-left: auto;
}
.hpx-hero__assist-icon {
  display: inline-grid;
  place-items: center;
  color: var(--hpx-blue-light);
  margin-bottom: 12px;
}
.hpx-hero__assist h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.hpx-hero__assist h3 span {
  color: var(--hpx-gold);
}
.hpx-hero__assist p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 18px;
  max-width: none;
}
.hpx-hero__assist .hpx-btn {
  width: 100%;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .hpx-hero--home .hpx-hero__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hpx-hero__assist {
    margin-left: 0;
    max-width: 100%;
  }
}

/* ====================================================== LEY KARIN ======= */
.hpx-leykarin {
  background: linear-gradient(120deg, var(--hpx-blue-700), var(--hpx-blue));
  border-radius: var(--hpx-radius-lg);
  color: #fff;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hpx-leykarin__shield {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 16px;
}
.hpx-leykarin__intro h2 {
  color: #fff;
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.hpx-leykarin__intro strong {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.95;
}
.hpx-leykarin__intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  margin: 0;
}
.hpx-leykarin__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.hpx-leykarin__item span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-bottom: 10px;
}
.hpx-leykarin__item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.hpx-leykarin__item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  margin: 0;
}
.hpx-leykarin__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hpx-leykarin__actions .hpx-btn {
  width: 100%;
  justify-content: space-between;
}
@media (max-width: 980px) {
  .hpx-leykarin {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hpx-leykarin__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hpx-leykarin__actions .hpx-btn {
    width: auto;
  }
}
@media (max-width: 560px) {
  .hpx-leykarin__items {
    grid-template-columns: 1fr;
  }
}

/* =============================== PRESENCIA NORTE GRANDE + STATS ========= */
.hpx-presencia {
  background: var(--hpx-navy);
  color: #fff;
  padding: 56px 0;
}
.hpx-presencia__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.hpx-presencia__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hpx-presencia__map {
  display: flex;
  align-items: center;
  gap: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 40px;
}
.hpx-presencia__chile {
  width: 70px;
  height: auto;
  flex: none;
}
.hpx-presencia__regions h3 {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 400;
}
.hpx-presencia__regions p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.hpx-presencia__regions ul {
  list-style: none;
  display: grid;
  gap: 6px;
}
.hpx-presencia__regions li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}
.hpx-presencia__regions li svg {
  color: var(--hpx-gold);
  flex: none;
}
@media (max-width: 900px) {
  .hpx-presencia__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hpx-presencia__map {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 28px;
  }
}
@media (max-width: 560px) {
  .hpx-presencia__stats {
    grid-template-columns: 1fr;
  }
}

/* ============================================ QUIENES SOMOS split ======= */
.hpx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hpx-split__media img {
  border-radius: var(--hpx-radius);
  box-shadow: var(--hpx-shadow);
}
.hpx-split h2 {
  font-size: 1.9rem;
}
.hpx-split .eyebrow {
  color: var(--hpx-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  font-size: 0.82rem;
}
.hpx-split p {
  color: var(--hpx-muted);
}

/* ============================================ MISIÓN / VISIÓN / VALORES = */
.hpx-mvv-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(70, 107, 177, 0.08), rgba(244, 184, 28, 0.08)),
    var(--hpx-white);
}
.hpx-mvv-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(70, 107, 177, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(70, 107, 177, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
}
.hpx-mvv-section .hpx-container {
  position: relative;
  z-index: 1;
}
.hpx-mvv-intro {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hpx-mvv-intro h2 {
  margin-bottom: 12px;
}
.hpx-mvv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.hpx-mvv__card {
  position: relative;
  min-height: 100%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--hpx-radius);
  padding: 30px;
  box-shadow: 0 18px 48px rgba(22, 36, 63, 0.08);
  overflow: hidden;
  transition:
    transform var(--hpx-dur-fast) var(--hpx-ease),
    box-shadow var(--hpx-dur-fast) var(--hpx-ease),
    border-color var(--hpx-dur-fast) var(--hpx-ease);
}
.hpx-mvv__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--hpx-blue), var(--hpx-gold));
}
.hpx-mvv__card:hover {
  transform: translateY(-6px);
  border-color: rgba(70, 107, 177, 0.35);
  box-shadow: 0 24px 60px rgba(22, 36, 63, 0.12);
}
.hpx-mvv__icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(70, 107, 177, 0.12),
    rgba(70, 107, 177, 0.04)
  );
  display: grid;
  place-items: center;
  color: var(--hpx-blue);
  margin-bottom: 18px;
}
.hpx-mvv__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hpx-gold);
  box-shadow: 0 0 0 6px rgba(244, 184, 28, 0.18);
}
.hpx-mvv__card h3 {
  font-size: 1.18rem;
  margin-bottom: 12px;
}
.hpx-mvv__card p {
  color: var(--hpx-muted);
  margin-bottom: 0;
}
.hpx-values-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hpx-values-list li {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 9px;
  color: var(--hpx-text);
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--hpx-gray);
  border: 1px solid var(--hpx-border);
  border-radius: 8px;
  padding: 8px 10px;
}
.hpx-values-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(70, 107, 177, 0.12);
  color: var(--hpx-blue);
  font-weight: 900;
  flex: none;
}

/* ==================================================== MERCADOS ========== */
.hpx-markets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.hpx-market {
  text-align: center;
  padding: 18px;
}
.hpx-market__icon {
  color: var(--hpx-blue);
  margin: 0 auto 12px;
}
.hpx-market strong {
  display: block;
  font-size: 0.92rem;
}
.hpx-market span {
  color: var(--hpx-muted);
  font-size: 0.85rem;
}

/* ==================================================== TIMELINE (historia) */
.hpx-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.hpx-timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--hpx-border);
  z-index: 0;
}
.hpx-timeline__item {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hpx-timeline__dot {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--hpx-blue);
  color: var(--hpx-blue);
  display: grid;
  place-items: center;
}
.hpx-timeline__year {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--hpx-text);
}
.hpx-timeline__label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--hpx-blue);
  margin-bottom: 8px;
}
.hpx-timeline__text {
  font-size: 0.82rem;
  color: var(--hpx-muted);
}

/* Hitos (history mini cards) */
.hpx-milestones {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.hpx-milestone {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  overflow: hidden;
}
.hpx-milestone__thumb {
  aspect-ratio: 4/3;
  background: var(--hpx-gray-200);
}
.hpx-milestone__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hpx-milestone__body {
  padding: 14px;
}
.hpx-milestone__year {
  font-weight: 900;
  color: var(--hpx-text);
}
.hpx-milestone__body p {
  font-size: 0.82rem;
  color: var(--hpx-muted);
  margin: 4px 0 0;
}

/* ==================================================== EQUIPO ============ */
.hpx-team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.hpx-member {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 22px;
  text-align: center;
}
.hpx-member__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--hpx-gray-200);
}
.hpx-member h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.hpx-member__role {
  color: var(--hpx-muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.hpx-member__bio {
  font-size: 0.82rem;
  color: var(--hpx-muted);
}
.hpx-member__social a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--hpx-gray);
  color: var(--hpx-blue);
  margin-top: 12px;
}
.hpx-member__social a:hover {
  background: var(--hpx-blue);
  color: #fff;
}

/* Departamentos */
.hpx-depts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.hpx-dept {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 24px;
  text-align: center;
}
.hpx-dept__icon {
  color: var(--hpx-blue);
  margin: 0 auto 14px;
}
.hpx-dept h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hpx-dept p {
  font-size: 0.82rem;
  color: var(--hpx-muted);
}

/* ===================================== PRODUCTOS (catálogo + sidebar) === */
.hpx-catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
.hpx-cat-sidebar {
  background: var(--hpx-navy);
  border-radius: var(--hpx-radius);
  padding: 24px;
  color: #fff;
  position: sticky;
  top: 100px;
}
.hpx-cat-sidebar h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.hpx-cat-list {
  list-style: none;
}
.hpx-cat-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 600;
}
.hpx-cat-list a:hover,
.hpx-cat-list li.is-active a {
  background: var(--hpx-blue);
  color: #fff;
}
.hpx-cat-sidebar .hpx-btn {
  margin-top: 18px;
}

/* =========================================== ACCORDION (FAQ) ============ */
.hpx-faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.hpx-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hpx-accordion__item {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  overflow: hidden;
}
.hpx-accordion__trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--hpx-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hpx-accordion__icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.hpx-accordion__icon::before,
.hpx-accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--hpx-blue);
  transition: transform 0.25s ease;
}
.hpx-accordion__icon::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}
.hpx-accordion__icon::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}
.hpx-accordion__item.is-open .hpx-accordion__icon::after {
  transform: translateX(-50%) scaleY(0);
}
.hpx-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.hpx-accordion__panel-inner {
  padding: 0 24px 22px;
  color: var(--hpx-muted);
  font-size: 0.92rem;
}

/* ====================================== LEGAL (sidebar TOC + content) === */
.hpx-legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: start;
}
.hpx-toc {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.hpx-toc__head {
  background: var(--hpx-blue);
  color: #fff;
  padding: 16px 20px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  font-weight: 800;
}
.hpx-toc ol {
  list-style: none;
}
.hpx-toc li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--hpx-border);
  color: var(--hpx-text);
  font-size: 0.88rem;
}
.hpx-toc li a:hover,
.hpx-toc li a.is-active {
  background: var(--hpx-gray);
  color: var(--hpx-blue);
}
.hpx-toc li:last-child a {
  border-bottom: 0;
}
.hpx-aside-card {
  background: var(--hpx-gray);
  border-radius: var(--hpx-radius);
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}
.hpx-aside-card__icon {
  color: var(--hpx-blue);
  margin: 0 auto 12px;
}

.hpx-legal-article {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hpx-legal-block {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--hpx-border);
}
.hpx-legal-block:last-child {
  border-bottom: 0;
}
.hpx-legal-block__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hpx-gray);
  display: grid;
  place-items: center;
  color: var(--hpx-blue);
}
.hpx-legal-block h3 {
  color: var(--hpx-blue);
  font-size: 1.1rem;
}
.hpx-legal-block p {
  color: var(--hpx-muted);
  margin: 0;
}

.hpx-compliance {
  background: var(--hpx-gray);
  border-radius: var(--hpx-radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
}
.hpx-compliance__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hpx-muted);
  font-size: 0.88rem;
}
.hpx-compliance__item svg {
  color: var(--hpx-blue);
  flex: none;
}

/* ===================================================== CONTACTO ========= */
.hpx-contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}
.hpx-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hpx-contact-card {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.hpx-contact-card__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  background: var(--hpx-blue);
  color: #fff;
  display: grid;
  place-items: center;
}
.hpx-contact-card h4 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--hpx-blue);
  margin-bottom: 4px;
}
.hpx-contact-card p {
  margin: 0;
  color: var(--hpx-text);
  font-size: 0.92rem;
}
.hpx-emergency-card {
  background: var(--hpx-navy);
  color: #fff;
  border-radius: var(--hpx-radius);
  padding: 24px;
}
.hpx-emergency-card h4 {
  color: var(--hpx-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hpx-emergency-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ===================================================== FORMS ============ */
.hpx-form {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 32px;
  box-shadow: var(--hpx-shadow-sm);
}
.hpx-form__lead {
  color: var(--hpx-muted);
  margin-bottom: 24px;
}
.hpx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hpx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.hpx-field--full {
  grid-column: 1 / -1;
}
.hpx-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hpx-text);
}
.hpx-field .req {
  color: var(--hpx-blue);
}
.hpx-field input,
.hpx-field select,
.hpx-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--hpx-text);
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.hpx-field input:focus,
.hpx-field select:focus,
.hpx-field textarea:focus {
  outline: none;
  border-color: var(--hpx-blue);
  box-shadow: 0 0 0 3px rgba(27, 83, 163, 0.12);
}
.hpx-field textarea {
  min-height: 130px;
  resize: vertical;
}
.hpx-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--hpx-muted);
  margin: 8px 0 20px;
}
.hpx-form__consent input {
  margin-top: 3px;
}
.hpx-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* Dropzone CV */
.hpx-dropzone {
  border: 2px dashed var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 28px;
  text-align: center;
  color: var(--hpx-muted);
  background: var(--hpx-gray);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.hpx-dropzone:hover,
.hpx-dropzone.is-dragover {
  border-color: var(--hpx-blue);
  background: #fff;
}
.hpx-dropzone svg {
  color: var(--hpx-blue);
  margin-bottom: 8px;
}
.hpx-dropzone input[type="file"] {
  display: none;
}

.hpx-form-note {
  background: var(--hpx-navy);
  color: #fff;
  border-radius: var(--hpx-radius);
  padding: 22px;
}
.hpx-form-note h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1px;
}
.hpx-form-note p,
.hpx-form-note li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.hpx-form-feedback {
  padding: 14px 16px;
  border-radius: var(--hpx-radius);
  margin-bottom: 18px;
  font-size: 0.9rem;
  display: none;
}
.hpx-form-feedback.is-ok {
  display: block;
  background: #e6f4ea;
  color: #1b7a3d;
  border: 1px solid #b6e0c4;
}
.hpx-form-feedback.is-err {
  display: block;
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f3c2c0;
}

/* Mapa */
.hpx-map {
  border-radius: var(--hpx-radius);
  overflow: hidden;
  border: 1px solid var(--hpx-border);
  position: relative;
  min-height: 320px;
  background: var(--hpx-gray-200);
}
.hpx-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.hpx-map__card {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #fff;
  border-radius: var(--hpx-radius);
  box-shadow: var(--hpx-shadow);
  padding: 16px 18px;
  max-width: 240px;
}
.hpx-map__card strong {
  display: block;
}
.hpx-map__card p {
  font-size: 0.85rem;
  color: var(--hpx-muted);
  margin: 6px 0;
}

/* ================================================= COTIZACION ========= */
.hpx-quote-section {
  background: linear-gradient(180deg, var(--hpx-gray), #fff);
}
.hpx-quote-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}
.hpx-quote-sidebar h2,
.hpx-quote-form h2 {
  color: var(--hpx-blue);
  font-size: 1.45rem;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}
.hpx-quote-solutions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.hpx-quote-solution {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 16px;
  box-shadow: var(--hpx-shadow-sm);
}
.hpx-quote-solution > span {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--hpx-blue);
}
.hpx-quote-solution strong {
  display: block;
  color: var(--hpx-blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hpx-quote-solution p {
  margin: 4px 0 0;
  color: var(--hpx-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
.hpx-quote-help {
  margin-top: 20px;
  background: var(--hpx-navy);
  color: #fff;
  border-radius: var(--hpx-radius);
  padding: 24px;
}
.hpx-quote-help h3 {
  color: var(--hpx-gold);
  text-transform: uppercase;
  font-size: 1.05rem;
}
.hpx-quote-help p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}
.hpx-quote-help a:not(.hpx-btn) {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 9px 0;
}
.hpx-quote-help .hpx-btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
}
.hpx-quote-form {
  box-shadow: var(--hpx-shadow);
}
.hpx-quote-form__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}
.hpx-quote-form .hpx-form__lead {
  margin-bottom: 18px;
}
.hpx-quote-file-note {
  font-size: 0.82rem;
  color: var(--hpx-muted);
  margin-bottom: 8px;
}
.hpx-dropzone small {
  display: block;
  color: var(--hpx-muted);
  margin-top: 4px;
}
.hpx-quote-process {
  background: #fff;
  border-top: 1px solid var(--hpx-border);
  border-bottom: 1px solid var(--hpx-border);
  padding: 34px 0;
}
.hpx-quote-process .hpx-section-title {
  margin-bottom: 28px;
}
.hpx-quote-process .hpx-section-title h2 {
  color: var(--hpx-blue);
  font-size: 1.25rem;
  text-transform: uppercase;
}
.hpx-quote-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hpx-quote-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}
.hpx-quote-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -16px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--hpx-blue);
  border-right: 2px solid var(--hpx-blue);
  transform: rotate(45deg);
}
.hpx-quote-step__icon {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--hpx-blue);
}
.hpx-quote-step__icon em {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--hpx-blue);
  color: var(--hpx-blue);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 900;
}
.hpx-quote-step strong {
  display: block;
  color: var(--hpx-blue);
  text-transform: uppercase;
  line-height: 1.2;
  font-size: 0.9rem;
}
.hpx-quote-step p {
  margin: 6px 0 0;
  color: var(--hpx-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ================================================= ACTUALIDAD ========= */
.hpx-news-page {
  background: #fff;
  padding-top: 54px;
}
.hpx-news-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.hpx-news-heading h2,
.hpx-news-block-title {
  color: var(--hpx-blue);
  font-size: 1.22rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}
.hpx-news-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hpx-blue);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.hpx-news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.hpx-news-card,
.hpx-news-featured,
.hpx-event-card,
.hpx-project-highlight {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  overflow: hidden;
  box-shadow: var(--hpx-shadow-sm);
}
.hpx-news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.hpx-news-card__thumb,
.hpx-news-featured__thumb,
.hpx-project-highlight__thumb {
  display: block;
  overflow: hidden;
  background: var(--hpx-gray-200);
}
.hpx-news-card__thumb img,
.hpx-news-featured__thumb img,
.hpx-project-highlight__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hpx-news-card__thumb {
  aspect-ratio: 16 / 10;
}
.hpx-news-card__body,
.hpx-news-featured__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hpx-news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--hpx-muted);
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.hpx-news-card__date svg {
  color: var(--hpx-blue);
  flex: none;
}
.hpx-news-card h3,
.hpx-news-featured h3,
.hpx-event-card h3,
.hpx-project-highlight h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 10px;
}
.hpx-news-card h3 a,
.hpx-news-featured h3 a {
  color: var(--hpx-text);
}
.hpx-news-card p,
.hpx-news-featured p,
.hpx-event-card p,
.hpx-project-highlight p {
  color: var(--hpx-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}
.hpx-news-card .hpx-card__more,
.hpx-news-featured .hpx-card__more {
  margin-top: auto;
}
.hpx-news-lower {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 22px;
  margin-top: 22px;
  align-items: stretch;
}
.hpx-news-cats {
  background: var(--hpx-navy);
  border-radius: var(--hpx-radius);
  padding: 22px;
  color: #fff;
}
.hpx-news-cats h3,
.hpx-news-subscribe h3 {
  color: #fff;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.hpx-news-cats ul {
  list-style: none;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}
.hpx-news-cats a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  border-radius: 6px;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 0.88rem;
}
.hpx-news-cats li.is-active a,
.hpx-news-cats a:hover {
  background: var(--hpx-blue);
  color: #fff;
}
.hpx-news-cats .hpx-btn {
  width: 100%;
  justify-content: space-between;
}
.hpx-news-featured {
  display: flex;
  flex-direction: column;
}
.hpx-news-featured .hpx-news-block-title {
  padding: 18px 18px 12px;
}
.hpx-news-featured__thumb {
  position: relative;
  aspect-ratio: 21 / 7;
}
.hpx-news-featured__thumb span {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--hpx-blue);
  color: #fff;
  border-radius: 4px;
  padding: 7px 10px;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 900;
}
.hpx-news-subscribe {
  background: var(--hpx-blue);
  color: #fff;
  border-radius: var(--hpx-radius);
  padding: 24px;
}
.hpx-news-subscribe p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}
.hpx-news-subscribe form {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.hpx-news-subscribe input {
  width: 100%;
  border: 0;
  border-radius: 7px;
  padding: 13px 14px;
  font: inherit;
}
.hpx-news-subscribe button {
  border: 0;
  border-radius: 7px;
  padding: 13px 14px;
  background: var(--hpx-navy);
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  cursor: pointer;
}
.hpx-news-subscribe__privacy {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}
.hpx-news-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 28px;
}
.hpx-news-heading--compact {
  margin-bottom: 14px;
  gap: 12px;
}
.hpx-news-heading--compact h2 {
  font-size: 1.05rem;
  min-width: 0;
}
.hpx-news-heading--compact > a {
  white-space: nowrap;
  flex: none;
}
.hpx-event-card,
.hpx-project-highlight {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: stretch;
}
.hpx-event-card__visual {
  min-height: 138px;
  display: grid;
  align-content: center;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(50, 79, 134, 0.96), rgba(70, 107, 177, 0.88)),
    var(--hpx-blue);
}
.hpx-event-card__visual strong,
.hpx-event-card__visual span {
  display: block;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 900;
}
.hpx-event-card__body,
.hpx-project-highlight > div {
  padding: 18px;
  min-width: 0;
}
.hpx-project-highlight__thumb {
  aspect-ratio: 16 / 10;
  align-self: stretch;
  min-width: 0;
}
.hpx-project-highlight__thumb img {
  min-height: 100%;
}
.hpx-project-highlight h3,
.hpx-project-highlight p {
  overflow-wrap: anywhere;
}

/* ============ PRODUCTOS · noticias + eventos + proyectos (3 col) ======== */
.hpx-prodnews {
  background: #fff;
}
.hpx-prodnews__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.hpx-prodnews__news .hpx-news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
/* En columnas estrechas, eventos y proyectos como tarjeta vertical */
.hpx-prodnews .hpx-event-card,
.hpx-prodnews .hpx-project-highlight {
  grid-template-columns: 1fr;
}
.hpx-prodnews .hpx-event-card__visual {
  min-height: 104px;
}

@media (max-width: 1024px) {
  .hpx-prodnews__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}
@media (max-width: 560px) {
  .hpx-prodnews__news .hpx-news-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================ BRANDS / CLIENTES ===== */
.hpx-brands {
}
.hpx-brands__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hpx-blue);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.hpx-brands__track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.hpx-brands__track img,
.hpx-brands__logo {
  max-height: 46px;
  opacity: 0.8;
  filter: grayscale(20%);
  transition: opacity 0.2s ease;
}
.hpx-brands__logo {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--hpx-navy);
}
.hpx-brands__track img:hover {
  opacity: 1;
}

/* ====================================================== CTA BANDS ======= */
.hpx-cta {
  background: linear-gradient(120deg, var(--hpx-blue-700), var(--hpx-blue));
  color: #fff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.hpx-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 0;
  flex-wrap: wrap;
}
.hpx-cta__text {
  display: flex;
  align-items: center;
  gap: 18px;
}
.hpx-cta__text h2 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0;
}
.hpx-cta__text p {
  margin: 6px 0 0;
  opacity: 0.9;
}
.hpx-cta__icon {
  flex: none;
  color: rgba(255, 255, 255, 0.9);
}
.hpx-cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hpx-cta--inset .hpx-cta__inner {
  padding: 36px 40px;
}
.hpx-cta--inset {
  border-radius: var(--hpx-radius-lg);
}

/* ====================================================== FOOTER ========== */
.hpx-footer {
  background: var(--hpx-navy);
  color: rgba(255, 255, 255, 0.78);
}
.hpx-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding: 56px 0 40px;
}
.hpx-footer__brand .hpx-logo__text strong {
  color: #fff;
}
.hpx-footer__brand .hpx-logo__text small {
  color: rgba(255, 255, 255, 0.6);
}
.hpx-footer__about {
  font-size: 0.9rem;
  margin: 16px 0;
  max-width: 30ch;
}
.hpx-footer h4 {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hpx-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hpx-footer ul a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  transition:
    color var(--hpx-dur-fast) var(--hpx-ease-soft),
    transform var(--hpx-dur-fast) var(--hpx-ease);
}
.hpx-footer ul a:hover {
  color: #fff;
  transform: translateX(4px);
}
.hpx-footer__contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.hpx-footer__contact svg {
  color: var(--hpx-blue-light);
  flex: none;
  margin-top: 2px;
}
.hpx-footer__map {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.hpx-footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.18) contrast(1.02);
}
.hpx-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.hpx-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: grid;
  place-items: center;
  transition:
    background var(--hpx-dur-fast) var(--hpx-ease-soft),
    color var(--hpx-dur-fast) var(--hpx-ease-soft),
    transform var(--hpx-dur-fast) var(--hpx-ease);
}
.hpx-social a:hover {
  background: var(--hpx-blue);
  color: #fff;
  transform: translateY(-3px);
}
.hpx-iso {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}
.hpx-iso__badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  text-align: center;
  line-height: 1.1;
  font-weight: 700;
}
.hpx-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}
.hpx-footer__bottom nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hpx-footer__bottom a {
  color: rgba(255, 255, 255, 0.78);
}

/* ====================================================== POST / BLOG ===== */
.hpx-post {
  max-width: 800px;
  margin: 0 auto;
}
.hpx-post__meta {
  color: var(--hpx-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.hpx-post__content {
  font-size: 1.02rem;
}
.hpx-post__content img {
  border-radius: var(--hpx-radius);
  margin: 24px 0;
}
.hpx-gutenberg-page .hpx-post {
  max-width: none;
}
.hpx-gutenberg-page .hpx-post__content > * {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hpx-gutenberg-page .hpx-post__content > .alignwide,
.hpx-gutenberg-page .hpx-post__content > .wp-block-cover,
.hpx-gutenberg-page .hpx-post__content > .wp-block-columns,
.hpx-gutenberg-page .hpx-post__content > .wp-block-group {
  max-width: var(--hpx-container);
}
.hpx-gutenberg-page .hpx-post__content > .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.hpx-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}
.hpx-pagination a,
.hpx-pagination span {
  padding: 8px 14px;
  border: 1px solid var(--hpx-border);
  border-radius: 8px;
  color: var(--hpx-text);
}
.hpx-pagination .current {
  background: var(--hpx-blue);
  color: #fff;
  border-color: var(--hpx-blue);
}

/* Subscribe box */
.hpx-subscribe {
  background: var(--hpx-blue);
  color: #fff;
  border-radius: var(--hpx-radius);
  padding: 28px;
}
.hpx-subscribe h3 {
  color: #fff;
}
.hpx-subscribe p {
  opacity: 0.9;
  font-size: 0.9rem;
}
.hpx-subscribe form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hpx-subscribe input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 0;
}

/* Sidebar generic */
.hpx-side-box {
  background: var(--hpx-gray);
  border-radius: var(--hpx-radius);
  padding: 24px;
  margin-bottom: 20px;
}
.hpx-side-box h3 {
  font-size: 1rem;
}
.hpx-side-list {
  list-style: none;
}
.hpx-side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--hpx-text);
  font-size: 0.9rem;
}
.hpx-side-list a:hover,
.hpx-side-list li.is-active a {
  background: var(--hpx-blue);
  color: #fff;
}

/* ==================================== CLIENTES (corredera logos) ======== */
.hpx-clients__title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--hpx-blue);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 32px;
}

/* Corredera continua (marquee). El track duplicado se desplaza -50% en bucle. */
.hpx-clients__carousel {
  position: relative;
  overflow: hidden;
  /* Difuminado lateral para que los logos entren y salgan con suavidad. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
}
.hpx-clients__marquee {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  padding: 8px 32px;
  animation: hpx-marquee 38s linear infinite;
  will-change: transform;
}
.hpx-clients__carousel:hover .hpx-clients__marquee {
  animation-play-state: paused;
}
@keyframes hpx-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}
.hpx-clients__logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}
.hpx-clients__logo img {
  max-height: 56px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(15%);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}
.hpx-clients__logo:hover img {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.06);
}
.hpx-clients__name {
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--hpx-navy);
  letter-spacing: 0.5px;
}
.hpx-clients {
  padding-bottom: 64px;
}

@media (prefers-reduced-motion: reduce) {
  .hpx-clients__carousel {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hpx-clients__carousel::-webkit-scrollbar {
    display: none;
  }
  .hpx-clients__marquee {
    animation: none;
  }
}

/* ====================================================== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .hpx-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hpx-hero h1 {
    font-size: 2.4rem;
  }
  .hpx-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hpx-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hpx-team,
  .hpx-depts {
    grid-template-columns: repeat(3, 1fr);
  }
  .hpx-timeline,
  .hpx-milestones {
    grid-template-columns: repeat(3, 1fr);
  }
  .hpx-timeline::before {
    display: none;
  }
  .hpx-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hpx-news-lower {
    grid-template-columns: 1fr;
  }
  .hpx-news-mini {
    grid-template-columns: 1fr;
  }
  .hpx-catalog,
  .hpx-faq-layout,
  .hpx-legal-layout,
  .hpx-contact-grid,
  .hpx-quote-layout {
    grid-template-columns: 1fr;
  }
  .hpx-quote-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .hpx-quote-step::after {
    display: none;
  }
  .hpx-cat-sidebar,
  .hpx-toc {
    position: static;
  }
  .hpx-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hpx-compliance {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .hpx-topbar__info {
    gap: 16px;
    font-size: 0.76rem;
  }
  .hpx-topbar__work {
    display: none;
  }
  /* El menú es hijo del header; elevamos el contexto del header por encima
     del overlay (150) para que sus clics no queden bloqueados por esa capa. */
  .hpx-header,
  body.home .hpx-header {
    z-index: 160;
  }
  .hpx-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 85vw);
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 200;
  }
  .hpx-nav,
  body.home .hpx-nav {
    display: none;
    left: auto;
    right: calc(-1 * min(320px, 85vw));
    transform: none;
    transition: right 0.3s ease;
  }
  .hpx-nav.is-open,
  body.home .hpx-nav.is-open {
    display: flex;
  }
  .hpx-nav.is-open {
    right: 0;
    transform: none;
  }
  .hpx-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .hpx-menu > li > a {
    padding: 14px 6px;
    border-bottom: 1px solid var(--hpx-border);
  }
  .hpx-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 14px;
  }
  .hpx-menu .menu-item-has-children > a::after {
    margin-left: auto;
  }
  .hpx-nav__bench,
  .hpx-nav__cta {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  .hpx-burger {
    display: block;
    z-index: 210;
  }
  .hpx-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 150;
  }
  .hpx-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 768px) {
  .hpx-section {
    padding: 44px 0;
  }
  .hpx-hero__inner {
    grid-template-columns: 1fr;
  }
  .hpx-hero__media {
    display: none;
  }
  .hpx-hero h1 {
    font-size: 2rem;
  }
  .hpx-grid--5,
  .hpx-grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hpx-featurestrip__grid,
  .hpx-grid--2,
  .hpx-grid--3,
  .hpx-grid--4,
  .hpx-grid--5,
  .hpx-mvv,
  .hpx-markets,
  .hpx-team,
  .hpx-depts,
  .hpx-timeline,
  .hpx-milestones,
  .hpx-stats__grid,
  .hpx-form-grid,
  .hpx-compliance,
  .hpx-footer__top,
  .hpx-quote-steps {
    grid-template-columns: 1fr;
  }
  .hpx-news-grid {
    grid-template-columns: 1fr;
  }
  .hpx-news-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .hpx-event-card,
  .hpx-project-highlight {
    grid-template-columns: 1fr;
  }
  .hpx-split {
    grid-template-columns: 1fr;
  }
  .hpx-values-list {
    grid-template-columns: 1fr;
  }
  .hpx-quote-form {
    padding: 24px;
  }
  .hpx-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .hpx-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hpx-legal-block {
    grid-template-columns: 1fr;
  }
  .hpx-legal-block__icon {
    display: none;
  }
}

@media (max-width: 520px) {
  .hpx-topbar__info span:not(:first-child),
  .hpx-topbar__info a:not(:first-child) {
    display: none;
  }
}

/* ====================================================== MEJORAS UX ====== */

/* Aparición al hacer scroll (progressive enhancement: el atributo lo añade JS) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity var(--hpx-dur) var(--hpx-ease),
      transform var(--hpx-dur) var(--hpx-ease);
    will-change: opacity, transform;
  }
  [data-reveal="left"] {
    transform: translateX(-24px);
  }
  [data-reveal="right"] {
    transform: translateX(24px);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  [data-reveal][data-reveal-delay="1"] {
    transition-delay: 0.08s;
  }
  [data-reveal][data-reveal-delay="2"] {
    transition-delay: 0.16s;
  }
  [data-reveal][data-reveal-delay="3"] {
    transition-delay: 0.24s;
  }
  [data-reveal][data-reveal-delay="4"] {
    transition-delay: 0.32s;
  }
  [data-reveal][data-reveal-delay="5"] {
    transition-delay: 0.4s;
  }
}

/* Entrada escalonada del hero al cargar la página */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hpx-hero-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes hpx-hero-visual-in {
    from {
      opacity: 0;
      transform: scale(1.045);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes hpx-hero-cover-in {
    from {
      opacity: 0;
      transform: translate3d(0, var(--hpx-parallax, 0px), 0) scale(1.045);
    }
    to {
      opacity: var(--hpx-hero-cover-opacity);
      transform: translate3d(0, var(--hpx-parallax, 0px), 0) scale(1);
    }
  }
  .hpx-hero__content > *,
  .hpx-hero__assist {
    animation: hpx-hero-in 0.7s var(--hpx-ease) both;
  }
  .hpx-hero__media > img,
  .hpx-hero__media > .hpx-placeholder,
  .hpx-testbench-hero__slide.is-active img {
    animation: hpx-hero-visual-in 0.95s var(--hpx-ease) both;
    transform-origin: center;
  }
  .hpx-hero--cover::before {
    animation: hpx-hero-cover-in 1s var(--hpx-ease) both;
    transform-origin: center;
  }
  .hpx-hero__content > *:nth-child(1) {
    animation-delay: 0.05s;
  }
  .hpx-hero__content > *:nth-child(2) {
    animation-delay: 0.14s;
  }
  .hpx-hero__content > *:nth-child(3) {
    animation-delay: 0.23s;
  }
  .hpx-hero__content > *:nth-child(4) {
    animation-delay: 0.32s;
  }
  .hpx-hero__content > *:nth-child(5) {
    animation-delay: 0.41s;
  }
  .hpx-hero__assist {
    animation-delay: 0.5s;
  }
  .hpx-hero__badges {
    animation: none;
  }
  .hpx-hero__badge {
    animation: hpx-hero-in 0.7s var(--hpx-ease) both;
  }
  .hpx-hero__badge:nth-child(1) {
    animation-delay: 0.38s;
  }
  .hpx-hero__badge:nth-child(2) {
    animation-delay: 0.46s;
  }
  .hpx-hero__badge:nth-child(3) {
    animation-delay: 0.54s;
  }
  .hpx-hero__badge:nth-child(4) {
    animation-delay: 0.62s;
  }
  .hpx-testbench-hero__panel > *,
  .hpx-testbench-hero__dots {
    animation: hpx-hero-in 0.72s var(--hpx-ease) both;
  }
  .hpx-testbench-hero__panel > *:nth-child(1) {
    animation-delay: 0.06s;
  }
  .hpx-testbench-hero__panel > *:nth-child(2) {
    animation-delay: 0.14s;
  }
  .hpx-testbench-hero__panel > *:nth-child(3) {
    animation-delay: 0.22s;
  }
  .hpx-testbench-hero__panel > *:nth-child(4) {
    animation-delay: 0.3s;
  }
  .hpx-testbench-hero__features {
    animation: none;
  }
  .hpx-testbench-hero__features > div {
    animation: hpx-hero-in 0.68s var(--hpx-ease) both;
  }
  .hpx-testbench-hero__features > div:nth-child(1) {
    animation-delay: 0.38s;
  }
  .hpx-testbench-hero__features > div:nth-child(2) {
    animation-delay: 0.46s;
  }
  .hpx-testbench-hero__features > div:nth-child(3) {
    animation-delay: 0.54s;
  }
  .hpx-testbench-hero__features > div:nth-child(4) {
    animation-delay: 0.62s;
  }
  .hpx-testbench-hero__dots {
    animation-delay: 0.7s;
  }
}

/* Transición sutil entre páginas (fade-in al cargar, fade-out al navegar) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hpx-page-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  /* Sin fill-mode: tras el fade-in la animación deja de fijar la opacidad,
     así el fade-out de .hpx-leaving (transición) no queda anulado. */
  body.hpx-pagefx {
    animation: hpx-page-in 0.4s var(--hpx-ease-soft);
  }
  body.hpx-leaving {
    opacity: 0;
    transition: opacity 0.2s var(--hpx-ease-soft);
  }
}

/* Header con sombra reforzada al hacer scroll */
.hpx-header.is-scrolled {
  box-shadow: 0 8px 28px rgba(22, 36, 63, 0.14);
}

/* Acento superior en tarjetas al pasar el cursor */
.hpx-card,
.hpx-media-card {
  position: relative;
}
.hpx-card::after,
.hpx-media-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--hpx-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: var(--hpx-radius) var(--hpx-radius) 0 0;
}
.hpx-card:hover::after,
.hpx-media-card:hover::after {
  transform: scaleX(1);
}

/* Botones flotantes (WhatsApp + volver arriba) */
.hpx-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 120;
}
.hpx-fab a,
.hpx-fab button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  box-shadow: var(--hpx-shadow);
  color: #fff;
  transition:
    transform 0.2s ease,
    opacity 0.3s ease,
    visibility 0.3s ease,
    background 0.2s ease;
}
.hpx-fab__wa {
  background: #25d366;
  width: 64px !important;
  height: 64px !important;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.34);
}
.hpx-fab__wa:hover {
  background: #1ebe5a;
  color: #fff;
  transform: translateY(-3px);
}
.hpx-fab__top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: var(--hpx-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}
.hpx-fab__top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.hpx-fab__top:hover {
  background: var(--hpx-blue-700);
  transform: translateY(-3px);
}
@media (max-width: 520px) {
  .hpx-fab {
    left: 14px;
    bottom: 14px;
  }
  .hpx-fab__top {
    right: 14px;
    bottom: 14px;
  }
  .hpx-fab a,
  .hpx-fab button {
    width: 48px;
    height: 48px;
  }
  .hpx-fab__wa {
    width: 56px !important;
    height: 56px !important;
  }
}

/* Estado de carga en formularios */
.hpx-btn[disabled] {
  opacity: 0.75;
  cursor: progress;
}
.hpx-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: hpx-spin 0.7s linear infinite;
}
@keyframes hpx-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Foco visible accesible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(70, 107, 177, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respeto a usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lightbox */
.hpx-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.hpx-lightbox.is-open {
  display: flex;
}
.hpx-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.hpx-lightbox__close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Carrusel automático de marcas (marquee) */
.hpx-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.hpx-marquee__track {
  display: flex;
  gap: 60px;
  align-items: center;
  width: max-content;
  animation: hpx-marquee 32s linear infinite;
}
.hpx-marquee:hover .hpx-marquee__track {
  animation-play-state: paused;
}
@keyframes hpx-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hpx-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
}

/* Testimonios */
.hpx-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hpx-testimonial {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.hpx-testimonial__mark {
  color: var(--hpx-blue);
  opacity: 0.25;
  font-size: 3.2rem;
  line-height: 0.6;
  font-weight: 900;
  font-family: Georgia, serif;
}
.hpx-testimonial__quote {
  color: var(--hpx-text);
  font-size: 0.95rem;
  margin: 10px 0 0;
  flex: 1;
}
.hpx-testimonial__stars {
  color: var(--hpx-gold);
  margin-top: 14px;
  letter-spacing: 2px;
}
.hpx-testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--hpx-border);
  padding-top: 16px;
}
.hpx-testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--hpx-gray-200);
  display: grid;
  place-items: center;
  color: var(--hpx-blue);
  flex: none;
}
.hpx-testimonial__name {
  font-weight: 800;
  font-size: 0.92rem;
}
.hpx-testimonial__role {
  color: var(--hpx-muted);
  font-size: 0.8rem;
}
@media (max-width: 768px) {
  .hpx-testimonials {
    grid-template-columns: 1fr;
  }
}

/* Estilos de impresión (páginas legales y contenido) */
@media print {
  .hpx-topbar,
  .hpx-header,
  .hpx-nav-overlay,
  .hpx-fab,
  .hpx-cta,
  .hpx-footer,
  .hpx-compliance,
  .hpx-aside-card,
  .hpx-toc,
  .hpx-featurestrip,
  .hpx-brands {
    display: none !important;
  }
  .hpx-hero {
    background: none !important;
    color: #000 !important;
    padding: 12px 0 !important;
  }
  .hpx-hero::before {
    display: none !important;
  }
  .hpx-hero h1,
  .hpx-hero .accent,
  .hpx-hero p {
    color: #000 !important;
  }
  .hpx-legal-layout,
  .hpx-contact-grid {
    display: block !important;
  }
  .hpx-legal-block {
    break-inside: avoid;
    border-color: #ccc;
  }
  .hpx-section {
    padding: 8px 0 !important;
  }
  body {
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: none;
  }
}

/* ==========================================================================
   HOME HIDROPEX - ajuste fiel a maqueta corporativa
   ========================================================================== */
body.home {
  background: #fff;
  font-size: 14px;
}

body.home .hpx-container {
  max-width: 1210px;
  padding: 0 18px;
}

body.home .hpx-topbar {
  background: #466bb1;
  border-bottom: 0;
  color: #fff;
}

body.home .hpx-topbar__inner {
  min-height: 46px;
}

body.home .hpx-topbar__info {
  gap: 24px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

body.home .hpx-topbar__info a,
body.home .hpx-topbar__info span {
  color: #fff;
}

body.home .hpx-topbar__info svg {
  color: #fff;
  stroke-width: 2.5;
}

body.home .hpx-topbar__actions {
  gap: 10px;
}

body.home .hpx-topbar__work {
  align-self: center;
  min-height: 36px;
  margin: 0;
  padding: 0 18px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  color: #466bb1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

body.home .hpx-topbar__emergency {
  min-width: 190px;
  padding: 0 18px;
  background: #4a4f54;
  gap: 12px;
}

body.home .hpx-topbar__emergency strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.05;
}

body.home .hpx-topbar__emergency small {
  color: #fff;
  opacity: 1;
  font-size: 10px;
  font-weight: 800;
}

body.home .hpx-topbar__emergency svg {
  color: #fff;
  width: 31px;
  height: 31px;
}

body.home .hpx-header {
  position: relative;
  top: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.home .hpx-header__inner {
  min-height: 83px;
  padding: 0 20px;
  gap: 20px;
}

body.home .hpx-logo__mark {
  width: 58px;
  height: 58px;
  background: #466bb1;
  font-size: 18px;
}

body.home .hpx-logo__text strong {
  color: #466bb1;
  font-size: 27px;
  letter-spacing: 0.5px;
}

body.home .hpx-logo__text small {
  color: #1f2d3d;
  font-size: 8px;
  letter-spacing: 0.9px;
  font-weight: 700;
}

body.home .custom-logo {
  max-height: 64px;
}

body.home .hpx-nav {
  gap: 18px;
}

body.home .hpx-menu {
  gap: 8px;
}

body.home .hpx-menu > li > a {
  padding: 31px 7px 27px;
  color: #1f2d3d;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

body.home .hpx-menu > li > a::before {
  left: 7px;
  right: 7px;
  bottom: 18px;
  height: 2px;
  background: #466bb1;
  
}

body.home .hpx-nav__cta {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 3px;
  font-size: 11px;
  box-shadow: 0 5px 12px rgba(21, 84, 159, 0.22);
}

body.home .hpx-hero--home {
  --hpx-hero-cover-opacity: 1;
  min-height: 610px;
  background:
    linear-gradient(
      90deg,
      rgba(1, 12, 25, 0.99) 0%,
      rgba(2, 19, 39, 0.94) 34%,
      rgba(3, 19, 37, 0.68) 58%,
      rgba(2, 14, 27, 0.62) 100%
    ),
    radial-gradient(
      circle at 58% 47%,
      rgba(40, 129, 216, 0.38) 0 8%,
      transparent 25%
    ),
    linear-gradient(115deg, #071727 0%, #0a1f37 45%, #121820 100%);
}

body.home .hpx-hero--home::before {
  opacity: 1;
  background-image:
    var(--hpx-hero-img, none),
    radial-gradient(
      circle at 56% 50%,
      rgba(0, 91, 171, 0.7) 0 7%,
      transparent 7.4%
    ),
    radial-gradient(
      circle at 59% 50%,
      transparent 0 11%,
      rgba(220, 232, 244, 0.72) 11.2% 11.8%,
      transparent 12%
    ),
    radial-gradient(
      circle at 50% 50%,
      transparent 0 16%,
      rgba(31, 97, 169, 0.82) 16.3% 20%,
      transparent 20.3%
    ),
    linear-gradient(
      90deg,
      transparent 0 38%,
      rgba(60, 125, 200, 0.55) 38% 73%,
      transparent 73%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 70px
    );
  background-size:
    cover,
    580px 360px,
    580px 360px,
    680px 420px,
    760px 35px,
    100% 100%;
  background-position:
    center,
    65% 48%,
    65% 48%,
    64% 48%,
    61% 45%,
    center;
  background-repeat: no-repeat;
  transform: none;
}

body.home .hpx-hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 10, 22, 0.96) 0%,
      rgba(0, 14, 31, 0.9) 31%,
      rgba(0, 16, 34, 0.52) 57%,
      rgba(0, 10, 20, 0.34) 100%
    ),
    linear-gradient(
      0deg,
      rgba(0, 9, 19, 0.88) 0%,
      rgba(0, 9, 19, 0.42) 28%,
      rgba(0, 0, 0, 0.08) 100%
    );
  pointer-events: none;
}

body.home .hpx-hero--home .hpx-container {
  position: relative;
  z-index: 2;
}

body.home .hpx-hero--home .hpx-container::after {
  display: none;
}

body.home .hpx-hero--home .hpx-hero__inner {
  min-height: 610px;
  grid-template-columns: minmax(0, 650px) 1fr;
  gap: 34px;
  align-items: end;
  padding: 60px 0 0;
}

body.home .hpx-hero--home .hpx-hero__content {
  max-width: 650px;
  padding-bottom: 30px;
}

body.home .hpx-hero h1 {
  max-width: 620px;
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(28px, 5.6vw, 45px);
  line-height: 1.06;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.home .hpx-hero h1 .accent {
  color: #fff;
  display: inline;
}

body.home .hpx-hero p {
  max-width: 560px;
  color: #fff;
  opacity: 1;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.78;
  font-weight: 500;
}

body.home .hpx-hero__actions {
  gap: 16px;
  margin-top: 27px;
}

body.home .hpx-hero__actions .hpx-btn {
  min-width: 260px;
  min-height: 49px;
  justify-content: space-between;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

body.home .hpx-hero__actions .hpx-btn--gold {
  background: #466bb1;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

body.home .hpx-hero__badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 18px;
  margin-top: 37px;
  padding-right: 8px;
}

body.home .hpx-hero__badge {
  min-height: 44px;
  gap: 12px;
  color: #fff;
  text-transform: uppercase;
}

body.home .hpx-hero__badge + .hpx-hero__badge {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 16px;
}

body.home .hpx-hero__badge svg {
  width: 38px;
  height: 38px;
  color: #fff;
  stroke-width: 1.6;
}

body.home .hpx-hero__badge strong,
body.home .hpx-hero__badge span {
  color: #fff;
  opacity: 1;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 900;
}

body.home .hpx-hero__assist {
  width: 445px;
  max-width: 100%;
  min-height: 135px;
  margin: 0 8px 0 auto;
  padding: 29px 35px 25px;
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 20px;
  align-items: center;
  background: rgba(31, 37, 45, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0px 0px 0 0;
  box-shadow: 0 -3px 24px rgba(0, 0, 0, 0.22);
}

body.home .hpx-hero__assist-icon {
  grid-row: 1 / span 3;
  margin: 0;
  color: #466bb1;
}

body.home .hpx-hero__assist-icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 1.7;
}

body.home .hpx-hero__assist h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

body.home .hpx-hero__assist p {
  display: none;
}

body.home .hpx-hero__assist .hpx-btn {
  width: max-content;
  min-width: 180px;
  min-height: 42px;
  margin-top: 15px;
  padding: 0 18px;
  justify-content: space-between;
  border-radius: 4px;
  background: #466bb1;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 400;
}

body.home .hpx-home-services,
body.home .hpx-home-products {
  padding: 22px 0 0;
  background: #fff;
}

body.home .hpx-home-products {
  padding-top: 18px;
}

body.home .hpx-section-title {
  margin-bottom: 18px;
}

body.home .hpx-section-title h2,
body.home .hpx-clients__title {
  position: relative;
  margin: 0;
  color: #466bb1;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

body.home .hpx-section-title h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin: 8px auto 0;
  background: #466bb1;
}

body.home .hpx-section-title p {
  display: none;
}

body.home .hpx-grid {
  gap: 18px;
}

body.home .hpx-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

body.home .hpx-media-card {
  min-height: 304px;
  border-radius: 10px;
  border-color: #e1e7ef;
  box-shadow: 0 1px 2px rgba(15, 34, 66, 0.04);
  transition:
    transform 0.3s var(--hpx-ease, ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

body.home .hpx-media-card:hover {
  transform: translateY(-6px);
  border-color: #c3d2ea;
  box-shadow: 0 18px 38px -16px rgba(21, 84, 159, 0.38);
}

body.home .hpx-media-card::after {
  display: none;
}

body.home .hpx-media-card__thumb {
  position: relative;
  aspect-ratio: 1.75 / 1;
  background:
    linear-gradient(rgba(3, 14, 27, 0.1), rgba(3, 14, 27, 0.46)),
    radial-gradient(
      circle at 35% 55%,
      rgba(45, 135, 218, 0.75) 0 11%,
      transparent 12%
    ),
    linear-gradient(120deg, #0b1d32, #748697);
}

/* Brillo sutil que recorre la miniatura al pasar el cursor. */
body.home .hpx-media-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

body.home .hpx-media-card:hover .hpx-media-card__thumb::before {
  transform: translateX(120%);
}

body.home .hpx-media-card:nth-child(2) .hpx-media-card__thumb {
  background:
    linear-gradient(rgba(3, 14, 27, 0.18), rgba(3, 14, 27, 0.52)),
    linear-gradient(
      90deg,
      transparent 0 15%,
      #f0f2f1 15% 42%,
      transparent 42% 100%
    ),
    linear-gradient(135deg, #8a8d8f, #263548);
}

body.home .hpx-media-card:nth-child(4) .hpx-media-card__thumb,
body.home .hpx-media-card:nth-child(5) .hpx-media-card__thumb {
  background:
    linear-gradient(rgba(6, 20, 38, 0.22), rgba(6, 20, 38, 0.45)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.24) 0 2px,
      transparent 2px 42px
    ),
    linear-gradient(120deg, #d8dde2, #607188);
}

body.home .hpx-media-card__icon {
  position: absolute;
  left: 14px;
  top: -24px;
  bottom: auto;
  z-index: 2;
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #466bb1, #3c5d9c);
  color: #fff;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(21, 84, 159, 0.22);
  transition:
    transform 0.3s var(--hpx-ease, ease),
    box-shadow 0.3s ease;
}

body.home .hpx-media-card:hover .hpx-media-card__icon {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 18px rgba(21, 84, 159, 0.34);
}

body.home .hpx-media-card__icon svg {
  width: 24px;
  height: 24px;
}

body.home .hpx-media-card__body {
  position: relative;
  padding: 33px 14px 16px;
}

body.home .hpx-media-card__body h3 {
  min-height: 34px;
  margin-bottom: 9px;
  font-size: 14px;
  line-height: 1.25;
}

body.home .hpx-media-card__body h3 a {
  color: #466bb1;
  letter-spacing: 0;
  font-weight: 900;
}

body.home .hpx-media-card__body p {
  margin-bottom: 12px;
  color: #0f1722;
  font-size: 11px;
  line-height: 1.65;
}

body.home .hpx-card__more {
  color: #466bb1;
  font-size: 11px;
  font-weight: 900;
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}

body.home .hpx-card__more .hpx-arrow {
  transition: transform 0.25s var(--hpx-ease, ease);
}

body.home .hpx-media-card:hover .hpx-card__more {
  gap: 11px;
  color: #3c5d9c;
}

body.home .hpx-media-card:hover .hpx-card__more .hpx-arrow {
  transform: translateX(5px);
}

body.home .hpx-home-services .hpx-text-center,
body.home .hpx-home-products .hpx-text-center {
  margin-top: 12px !important;
}

body.home .hpx-home-services .hpx-text-center .hpx-btn,
body.home .hpx-home-products .hpx-text-center .hpx-btn {
  min-width: 245px;
  min-height: 35px;
  justify-content: space-between;
  padding: 0 22px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #466bb1;
  color: #466bb1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

body.home .hpx-home-products .hpx-container {
  padding-top: 12px;
  border-top: 1px solid #dce3eb;
}

body.home .hpx-home-products .hpx-section-title {
  margin-bottom: 8px;
}

body.home .hpx-home-imports {
  padding: 14px 0 18px;
}

body.home .hpx-home-imports .hpx-container {
  padding-top: 0;
  border-top: 0;
}

body.home .hpx-imports-ribbon {
  display: grid;
  grid-template-columns: 1.22fr 1.55fr 1.55fr 0.96fr;
  min-height: 174px;
  background: #f3f7fd;
  border: 1px solid #9db7d8;
  border-radius: 3px;
  box-shadow: 0 7px 18px rgba(19, 54, 101, 0.08);
  overflow: hidden;
}

body.home .hpx-imports-ribbon__intro,
body.home .hpx-imports-ribbon__brands {
  padding: 22px 16px;
}

body.home .hpx-imports-ribbon h3 {
  margin: 0 0 8px;
  color: #174f99;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

body.home .hpx-imports-ribbon__intro h3 {
  font-size: 20px;
  line-height: 1.22;
}

body.home .hpx-imports-ribbon p {
  margin: 0;
  color: #1a2737;
  font-size: 11px;
  line-height: 1.55;
}

body.home .hpx-imports-ribbon__route {
  display: grid;
  grid-template-columns: 78px minmax(100px, 1fr) 112px;
  min-width: 0;
  align-items: stretch;
}

body.home .hpx-imports-ribbon__route-icon {
  align-self: center;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-left: 4px;
  border: 1px solid #d6e1ef;
  border-radius: 50%;
  background: #fff;
  color: #0754a6;
}

body.home .hpx-imports-ribbon__route-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

body.home .hpx-imports-ribbon__route-copy {
  min-width: 0;
  padding: 22px 10px 14px 8px;
}

body.home .hpx-imports-ribbon__route-copy strong {
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  min-height: 54px;
  margin-top: 14px;
  padding: 7px 11px;
  background: #0754a6;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

body.home .hpx-imports-ribbon__photo {
  min-width: 0;
  min-height: 174px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(20, 36, 56, 0.04), rgba(20, 36, 56, 0.12)),
    linear-gradient(135deg, #e8eef5, #a9b9c9);
  color: #0754a6;
}

body.home .hpx-imports-ribbon__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home .hpx-imports-ribbon__brands {
  display: flex;
  flex-direction: column;
}

body.home .hpx-imports-ribbon__brand-icons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  color: #2865ae;
}

body.home .hpx-imports-ribbon__brand-icons span {
  height: 32px;
  display: grid;
  place-items: center;
}

body.home .hpx-imports-ribbon__brand-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

body.home .hpx-grid--6 {
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

body.home .hpx-prod-card {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 12px 18px;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 10px;
  color: #466bb1;
  overflow: hidden;
  transition:
    transform 0.3s var(--hpx-ease, ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Barra superior de acento que aparece al pasar el cursor. */
body.home .hpx-prod-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #466bb1, #1b75c9);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

body.home .hpx-prod-card:hover {
  transform: translateY(-5px);
  border-color: #c3d2ea;
  box-shadow: 0 16px 30px -14px rgba(21, 84, 159, 0.4);
}

body.home .hpx-prod-card:hover::before {
  transform: scaleX(1);
}

body.home .hpx-prod-card__thumb {
  height: 73px;
  display: grid;
  place-items: center;
}

body.home .hpx-prod-card h3{
  font-weight: 600!important;
}

body.home .hpx-prod-card__thumb img {
  max-height: 74px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s var(--hpx-ease, ease);
}

body.home .hpx-prod-card:hover .hpx-prod-card__thumb img,
body.home .hpx-prod-card:hover .hpx-prod-card__ico {
  transform: scale(1.07);
}

body.home .hpx-prod-card__ico,
body.home .hpx-prod-card__thumb .hpx-placeholder {
  width: 92px;
  height: 55px;
  display: grid;
  place-items: center;
  color: #466bb1;
  background:
    radial-gradient(circle at 32% 50%, #0f559c 0 18%, transparent 19%),
    radial-gradient(circle at 68% 50%, #0f559c 0 18%, transparent 19%),
    linear-gradient(90deg, #1b75c9 0 24%, #064278 24% 78%, #1b75c9 78% 100%);
  border-radius: 22px;
  transition: transform 0.3s var(--hpx-ease, ease);
}

body.home .hpx-prod-card__ico svg {
  display: none;
}

body.home .hpx-prod-card h3 {
  margin: 16px 0 0;
  color: #466bb1;
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 900;
  transition: color 0.25s ease;
}

body.home .hpx-prod-card:hover h3 {
  color: #3c5d9c;
}

body.home .hpx-presencia {
  margin-top: 0;
  padding: 22px 0;
  background: linear-gradient(90deg, #1c252c, #30373d);
}

body.home .hpx-presencia__inner {
  grid-template-columns: 1.25fr minmax(230px, 0.82fr) minmax(250px, 0.82fr);
  gap: 18px;
}

body.home .hpx-presencia__stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

body.home .hpx-stat {
  min-height: 86px;
  gap: 17px;
  margin:4px;
  padding: 10px 27px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  font-weight:600;
}

body.home .hpx-stat__icon {
  color: #fff;
}

body.home .hpx-stat__icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 1.5;
  font-weight: 400;
}

body.home .hpx-stat__num {
  color: white;
  font-size: 32px;
  font-weight: 400;
}

body.home .hpx-stat__label {
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
}

body.home .hpx-presencia__map {
  gap: 18px;
  padding-left: 0;
  border-left: 0;
  justify-content: center;
}

body.home .hpx-presencia__chile {
  width: 90px;
  height: 250px;
  max-height: none;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.1));
}

body.home .hpx-presencia__chile-img {
  width: auto;
  height: 280px;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

body.home .hpx-presencia__regions h3 {
  max-width: 320px;
  margin-bottom: 6px;
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 400;
}

body.home .hpx-presencia__regions p,
body.home .hpx-presencia__regions li {
  font-size: 13px;
  line-height: 1.55;
}

body.home .hpx-presencia__regions p {
  color: #c4ccd6;
}

body.home .hpx-presencia__regions li svg {
  display: none;
}

body.home .hpx-presencia__regions li {
  display: list-item;
  margin-left: 16px;
  list-style: disc;
  color: #fff;
}

body.home .hpx-presencia__video {
  position: relative;
  align-self: stretch;
  min-height: 168px;
  overflow: hidden;
  background:
    linear-gradient(rgba(5, 13, 23, 0.22), rgba(5, 13, 23, 0.5)),
    linear-gradient(135deg, #0f1722, #566779);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

body.home .hpx-presencia__video iframe,
body.home .hpx-presencia__video video {
  width: 100%;
  height: 100%;
  min-height: 168px;
  border: 0;
  display: block;
  object-fit: cover;
}

body.home .hpx-clients {
  padding: 31px 0 44px;
}

body.home .hpx-clients__title {
  margin-bottom: 22px;
  font-size: 20px;
}

body.home .hpx-clients__marquee {
  gap: 70px;
  padding: 4px 35px 18px;
}

body.home .hpx-clients__name {
  color: #3f464e;
  font-size: 31px;
  line-height: 1;
}

body.home .hpx-clients__logo:first-child .hpx-clients__name {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #858b91;
  color: #fff;
  font-size: 17px;
}

body.home .hpx-cta {
  background: linear-gradient(90deg, #466bb1 0%, #466bb1 55%, #3c5d9c 100%);
}

body.home .hpx-cta::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -8px;
  width: 360px;
  height: 100px;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 20px,
      rgba(255, 255, 255, 0.2) 20px 23px,
      transparent 23px 42px
    ),
    linear-gradient(90deg, #313539 0 72%, #dfe6ef 72% 76%, #313539 76% 100%);
  border-radius: 60px;
  opacity: 0.9;
  transform: rotate(-8deg);
}

body.home .hpx-cta--has-image::after {
  display: none;
}

body.home .hpx-cta__inner {
  position: relative;
  z-index: 1;
  min-height: 170px;
  padding: 0;
  gap: 48px;
  justify-content: flex-start;
}

body.home .hpx-cta__text {
  width: 390px;
  gap: 18px;
}

body.home .hpx-cta__icon svg {
  width: 58px;
  height: 58px;
}

body.home .hpx-cta__text h2 {
  max-width: 320px;
  font-size: 20px;
  line-height: 1.2;
}

body.home .hpx-cta__text p {
  font-size: 12px;
  line-height: 1.45;
}

body.home .hpx-cta__actions {
  width: 275px;
  flex-direction: column;
  gap: 10px;
}

body.home .hpx-cta__image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 28vw);
  height: 100%;
  object-fit: contain;
  object-position: right center;
  pointer-events: none;
}

body.home .hpx-cta__actions .hpx-btn {
  width: 100%;
  min-height: 35px;
  justify-content: space-between;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
}

body.home .hpx-cta__actions .hpx-btn--gold {
  background: #fff;
  color: #466bb1;
}

body.home .hpx-cta__actions .hpx-btn--outline {
  background: #4a4f54;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

body.home .hpx-footer {
  background: #4a4f54;
}

body.home .hpx-footer__top {
  grid-template-columns: 1.65fr 0.9fr 1.05fr 1.05fr 1.35fr;
  gap: 38px;
  padding: 26px 0 15px;
  align-items: start;
}

body.home .hpx-footer .hpx-logo__mark {
  width: 53px;
  height: 53px;
  background: #f5f7fa;
  color: #4a4f54;
}

body.home .hpx-footer .hpx-logo__text strong {
  color: #fff;
  font-size: 25px;
}

body.home .hpx-footer .hpx-logo--footer-image {
  max-width: 275px;
}

body.home .hpx-footer .hpx-logo__footer-img {
  max-height: 62px;
}

body.home .hpx-footer .hpx-logo__text small,
body.home .hpx-footer__about,
body.home .hpx-footer ul a,
body.home .hpx-footer__contact li,
body.home .hpx-footer__bottom {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

body.home .hpx-footer__about {
  max-width: 230px;
  margin: 11px 0 14px;
  line-height: 1.35;
}

body.home .hpx-footer h4 {
  margin-bottom: 9px;
  font-size: 12px;
  letter-spacing: 0;
}

body.home .hpx-footer ul {
  gap: 3px;
}

body.home .hpx-footer ul a {
  line-height: 1.25;
}

body.home .hpx-footer__contact {
  gap: 8px;
}

body.home .hpx-footer__contact li {
  margin: 0;
  gap: 9px;
  line-height: 1.35;
}

body.home .hpx-footer__contact svg {
  width: 17px;
  height: 17px;
  color: #fff;
  stroke-width: 2;
}

body.home .hpx-social {
  gap: 12px;
  margin-top: 0;
}

body.home .hpx-social a {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

body.home .hpx-social a:hover {
  background: #466bb1;
}

body.home .hpx-footer__bottom {
  padding: 9px 0 10px;
  border-top-color: rgba(255, 255, 255, 0.14);
}

body.home .hpx-footer__bottom nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.home .hpx-footer__bottom nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.home .hpx-footer__bottom nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1;
}

body.home .hpx-footer__bottom nav a:first-child {
  border-left: 0;
}

body.home .hpx-fab__wa {
  background: #466bb1;
}

@media (max-width: 1180px) {
  body.home .hpx-menu > li > a {
    font-size: 11px;
    padding-left: 4px;
    padding-right: 4px;
    font-weight: 500;
  }

  body.home .hpx-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }

  body.home .hpx-grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  body.home .hpx-imports-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .hpx-imports-ribbon__intro,
  body.home .hpx-imports-ribbon__brands {
    min-height: 174px;
  }
}

@media (max-width: 900px) {
  body.home .hpx-topbar__inner,
  body.home .hpx-header__inner {
    min-height: auto;
    padding: 10px 10px;
  }

  body.home .hpx-menu > li > a {
    padding: 14px 6px;
    font-size: 12px;
  }

  body.home .hpx-hero--home,
  body.home .hpx-hero--home .hpx-hero__inner {
    min-height: auto;
  }

  body.home .hpx-hero--home .hpx-hero__inner {
    grid-template-columns: 1fr;
    padding: 42px 0 0;
  }

  body.home .hpx-hero--home .hpx-hero__content {
    padding-bottom: 22px;
  }

  body.home .hpx-hero h1 {
    font-size: 34px;
  }

  body.home .hpx-hero__badges {
    grid-template-columns: repeat(2, 1fr);
  }

  body.home .hpx-hero__badge + .hpx-hero__badge {
    border-left: 0;
    padding-left: 0;
  }

  body.home .hpx-hero__assist {
    width: 100%;
    margin: 0;
    border-radius: 5px 5px 0 0;
  }

  body.home .hpx-presencia__inner,
  body.home .hpx-presencia__stats {
    grid-template-columns: 1fr;
  }

  body.home .hpx-stat {
    text-align: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  body.home .hpx-stat__icon {
    margin: 0 auto;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.6);
  }

  body.home .hpx-cta::after {
    display: none;
  }

  body.home .hpx-cta__inner {
    flex-wrap: wrap;
    gap: 22px 40px;
    min-height: 0;
    padding: 26px 0;
  }

  body.home .hpx-cta__image {
    position: static;
    order: 3;
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 150px;
    object-position: center;
    margin: 4px auto 0;
  }
}

@media (max-width: 640px) {
  body.home .hpx-container {
    padding: 0 14px;
  }

  body.home .hpx-topbar__actions,
  body.home .hpx-topbar__info span,
  body.home .hpx-topbar__info a:nth-child(2) {
    display: none;
  }

  body.home .hpx-hero h1 {
    font-size: 28px;
  }

  body.home .hpx-hero p {
    font-size: 14px;
  }

  body.home .hpx-hero__actions .hpx-btn {
    width: 100%;
    min-width: 0;
  }

  body.home .hpx-hero__badges,
  body.home .hpx-grid--5,
  body.home .hpx-grid--6,
  body.home .hpx-imports-ribbon {
    grid-template-columns: 1fr;
  }

  body.home .hpx-imports-ribbon__intro,
  body.home .hpx-imports-ribbon__brands {
    min-height: 0;
  }

  body.home .hpx-imports-ribbon__route {
    grid-template-columns: 76px minmax(0, 1fr) 108px;
  }

  body.home .hpx-imports-ribbon__photo {
    min-height: 160px;
  }

  body.home .hpx-hero__assist {
    grid-template-columns: 1fr;
    text-align: left;
  }

  body.home .hpx-hero__assist-icon {
    grid-row: auto;
  }

  body.home .hpx-cta__text,
  body.home .hpx-cta__actions {
    width: 100%;
  }

  body.home .hpx-cta__image {
    display: none;
  }
}

/* ==========================================================================
   HEADER / FOOTER COMPARTIDOS EN TODO EL SITIO
   ========================================================================== */
.hpx-topbar {
  background: #466bb1;
  border-bottom: 0;
  color: #fff;
}

.hpx-topbar__inner {
  min-height: 46px;
}

.hpx-topbar__info {
  gap: 24px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
}

.hpx-topbar__info a,
.hpx-topbar__info span {
  color: #fff;
}

.hpx-topbar__info svg {
  color: #fff;
  stroke-width: 2.5;
}

.hpx-topbar__actions {
  gap: 10px;
}

.hpx-topbar__work {
  align-self: center;
  min-height: 36px;
  margin: 0;
  padding: 0 18px;
  background: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  color: #466bb1;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
}

.hpx-topbar__emergency {
  min-width: 190px;
  padding: 0 18px;
  background: #4a4f54;
  gap: 12px;
}

.hpx-topbar__emergency strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.05;
}

.hpx-topbar__emergency small {
  color: #fff;
  opacity: 1;
  font-size: 10px;
  font-weight: 800;
}

.hpx-topbar__emergency svg {
  color: #fff;
  width: 31px;
  height: 31px;
}

.hpx-header {
  position: relative;
  top: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hpx-header__inner {
  min-height: 83px;
  padding: 0;
  gap: 20px;
}

.hpx-logo__mark {
  width: 58px;
  height: 58px;
  background: #466bb1;
  font-size: 18px;
}

.hpx-logo__text strong {
  color: #466bb1;
  font-size: 27px;
  letter-spacing: 0.5px;
}

.hpx-logo__text small {
  color: #1f2d3d;
  font-size: 8px;
  letter-spacing: 0.9px;
  font-weight: 700;
}

.custom-logo {
  max-height: 64px;
}

.hpx-nav {
  gap: 18px;
}

.hpx-menu {
  gap: 8px;
}

.hpx-menu > li > a {
  padding: 31px 7px 27px;
  color: #1f2d3d;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.hpx-menu > li > a::before {
  left: 7px;
  right: 7px;
  bottom: 18px;
  height: 2px;
  background: #466bb1;
}

.hpx-nav__cta {
  min-height: 38px;
  padding: 0 17px;
  border-radius: 3px;
  font-size: 11px;
  box-shadow: 0 5px 12px rgba(21, 84, 159, 0.22);
}

.hpx-cta {
  background: linear-gradient(90deg, #466bb1 0%, #466bb1 55%, #3c5d9c 100%);
}

.hpx-cta::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -8px;
  width: 360px;
  height: 100px;
  background:
    repeating-linear-gradient(
      -18deg,
      transparent 0 20px,
      rgba(255, 255, 255, 0.2) 20px 23px,
      transparent 23px 42px
    ),
    linear-gradient(90deg, #313539 0 72%, #dfe6ef 72% 76%, #313539 76% 100%);
  border-radius: 60px;
  opacity: 0.9;
  transform: rotate(-8deg);
}

.hpx-cta--has-image::after {
  display: none;
}

.hpx-cta__inner {
  position: relative;
  z-index: 1;
  min-height: 104px;
  padding: 20px 0;
  justify-content: flex-start;
}

.hpx-cta__text {
  width: 390px;
  gap: 18px;
}

.hpx-cta__icon svg {
  width: 58px;
  height: 58px;
}

.hpx-cta__text h2 {
  max-width: 320px;
  font-size: 20px;
  line-height: 1.2;
}

.hpx-cta__text p {
  font-size: 12px;
  line-height: 1.45;
}

.hpx-cta__actions {
  width: 275px;
  flex-direction: column;
  gap: 10px;
}

.hpx-cta__image {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: min(430px, 34vw);
  height: 104px;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.hpx-cta__actions .hpx-btn {
  width: 100%;
  min-height: 35px;
  justify-content: space-between;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hpx-cta__actions .hpx-btn--gold {
  background: #fff;
  color: #466bb1;
}

.hpx-cta__actions .hpx-btn--outline {
  background: #4a4f54;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hpx-footer {
  background: #4a4f54;
}

.hpx-footer__top {
  grid-template-columns: 1.65fr 0.9fr 1.05fr 1.05fr 1.35fr;
  gap: 38px;
  padding: 26px 0 15px;
  align-items: start;
}

.hpx-footer .hpx-logo__mark {
  width: 53px;
  height: 53px;
  background: #f5f7fa;
  color: #4a4f54;
}

.hpx-footer .hpx-logo__text strong {
  color: #fff;
  font-size: 25px;
}

.hpx-footer .hpx-logo--footer-image {
  max-width: 275px;
}

.hpx-footer .hpx-logo__footer-img {
  max-height: 62px;
}

.hpx-footer .hpx-logo__text small,
.hpx-footer__about,
.hpx-footer ul a,
.hpx-footer__contact li,
.hpx-footer__bottom {
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.hpx-footer__about {
  max-width: 230px;
  margin: 11px 0 14px;
  line-height: 1.35;
}

.hpx-footer h4 {
  margin-bottom: 9px;
  font-size: 12px;
  letter-spacing: 0;
}

.hpx-footer ul {
  gap: 3px;
}

.hpx-footer ul a {
  line-height: 1.25;
}

.hpx-footer__contact {
  gap: 8px;
}

.hpx-footer__contact li {
  margin: 0;
  gap: 9px;
  line-height: 1.35;
}

.hpx-footer__contact svg {
  width: 17px;
  height: 17px;
  color: #fff;
  stroke-width: 2;
}

.hpx-social {
  gap: 12px;
  margin-top: 0;
}

.hpx-social a {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}

.hpx-social a:hover {
  background: #466bb1;
}

.hpx-footer__bottom {
  padding: 9px 0 10px;
  border-top-color: rgba(255, 255, 255, 0.14);
}

.hpx-footer__bottom nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hpx-footer__bottom nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hpx-footer__bottom nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1;
}

.hpx-footer__bottom nav a:first-child {
  border-left: 0;
}

.hpx-fab__wa {
  background: #466bb1;
}

@media (max-width: 1180px) {
  .hpx-menu > li > a {
    font-size: 11px;
    padding-left: 4px;
    padding-right: 4px;
  }
}

@media (max-width: 900px) {
  .hpx-topbar__inner,
  .hpx-header__inner {
    min-height: auto;
    padding: 10px 0;
  }

  .hpx-menu > li > a {
    padding: 14px 6px;
    font-size: 12px;
  }

  .hpx-cta::after {
    display: none;
  }

  /* Footer: evita que las 5 columnas se desborden en tablet (641-900px) */
  .hpx-footer__top,
  body.home .hpx-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }

  .hpx-footer__brand,
  body.home .hpx-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hpx-topbar__actions,
  .hpx-topbar__info span,
  .hpx-topbar__info a:nth-child(2) {
    display: none;
  }

  .hpx-cta__text,
  .hpx-cta__actions {
    width: 100%;
  }
}

/* ================================================= MOBILE POLISH ======= */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overflow-x: clip;
  }

  body {
    font-size: 15px;
    line-height: 1.55;
  }

  .hpx-container,
  body.home .hpx-container {
    max-width: none;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hpx-section {
    padding: 38px 0;
  }

  .hpx-topbar,
  body.home .hpx-topbar {
    min-height: 22px;
    background: var(--hpx-blue);
  }

  .hpx-topbar__inner,
  body.home .hpx-topbar__inner {
    min-height: 22px;
    padding: 0;
    justify-content: flex-start;
  }

  .hpx-topbar__info,
  body.home .hpx-topbar__info {
    width: 100%;
    padding: 3px 0;
    gap: 0;
  }

  .hpx-topbar__info a:first-child,
  body.home .hpx-topbar__info a:first-child {
    display: inline-flex;
    color: #fff;
    font-size: 0;
    gap: 0;
    padding: 0;
  }

  .hpx-topbar__info a:first-child svg,
  body.home .hpx-topbar__info a:first-child svg {
    width: 16px;
    height: 16px;
    color: #fff;
  }

  .hpx-header,
  body.home .hpx-header {
    position: sticky;
    top: 0;
    z-index: 170;
    background: #fff;
  }

  .hpx-header__inner,
  body.home .hpx-header__inner {
    min-height: 64px;
    padding: 8px 0;
    gap: 12px;
  }

  .custom-logo,
  body.home .custom-logo {
    max-width: min(218px, calc(100vw - 96px));
    max-height: 56px;
    object-fit: contain;
  }

  .hpx-logo img,
  body.home .hpx-logo img {
    max-width: min(218px, calc(100vw - 96px));
    max-height: 56px;
  }

  .hpx-logo__mark,
  body.home .hpx-logo__mark {
    width: 46px;
    height: 46px;
  }

  .hpx-logo__text strong,
  body.home .hpx-logo__text strong {
    font-size: 1.1rem;
  }

  .hpx-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin-left: auto;
    border-radius: 8px;
  }

  .hpx-burger span {
    width: 26px;
    height: 3px;
    margin: 3px 0;
  }

  .hpx-nav,
  body.home .hpx-nav {
    width: min(340px, 88vw);
    padding: 74px 18px 22px;
  }

  .hpx-nav__cta,
  body.home .hpx-nav__cta {
    width: 100%;
    justify-content: space-between;
    min-height: 46px;
  }

  .hpx-hero,
  body.home .hpx-hero--home {
    min-height: auto;
  }

  .hpx-hero__inner,
  .hpx-hero--page .hpx-hero__inner,
  .hpx-hero--cover .hpx-hero__inner,
  body.home .hpx-hero--home .hpx-hero__inner {
    min-height: 0;
    padding: 42px 0;
    gap: 22px;
  }

  body.home .hpx-hero--home .hpx-hero__inner {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .hpx-hero--fade .hpx-hero__media {
    display: block;
    width: 100%;
    opacity: 0.28;
  }

  .hpx-hero--fade .hpx-hero__media img,
  .hpx-hero--fade .hpx-hero__media .hpx-placeholder {
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.45), #000);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.45), #000);
  }

  .hpx-hero__content,
  .hpx-hero--fade .hpx-hero__content,
  body.home .hpx-hero--home .hpx-hero__content {
    max-width: none;
    width: 100%;
  }

  .hpx-hero h1,
  .hpx-hero--page h1,
  body.home .hpx-hero h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    line-height: 1.05;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
  }

  .hpx-hero h1 .accent {
    display: block;
  }

  .hpx-hero p,
  body.home .hpx-hero p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hpx-hero__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 1.3px;
  }

  .hpx-breadcrumb {
    font-size: 0.78rem;
    row-gap: 5px;
  }

  .hpx-hero__actions,
  body.home .hpx-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .hpx-btn,
  body.home .hpx-hero__actions .hpx-btn,
  body.home .hpx-cta__actions .hpx-btn {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    padding: 13px 18px;
    border-radius: 7px;
    font-size: 0.86rem;
    line-height: 1.15;
    white-space: normal;
    font-weight: 400;
  }

  .hpx-hero__badges,
  body.home .hpx-hero__badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 30px;
  }

  .hpx-hero__badge,
  body.home .hpx-hero__badge {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 44px;
  }

  .hpx-hero__badge svg,
  body.home .hpx-hero__badge svg {
    width: 34px;
    height: 34px;
  }

  .hpx-hero__assist,
  body.home .hpx-hero__assist {
    width: 100%;
    max-width: none;
    margin: 24px 0 0;
    padding: 24px 20px;
    border-radius: 8px;
    text-align: left;
  }

  .hpx-hero__assist-icon,
  body.home .hpx-hero__assist-icon {
    margin-bottom: 12px;
  }

  .hpx-hero__assist h3,
  body.home .hpx-hero__assist h3 {
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 400;
  }

  .hpx-featurestrip__grid,
  .hpx-herostrip__grid,
  body.home .hpx-featurestrip__grid {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 14px;
    padding: 18px 0;
  }

  .hpx-feature,
  .hpx-herofeat {
    align-items: center;
    padding: 4px 0;
  }

  .hpx-section-title,
  body.home .hpx-section-title {
    margin-bottom: 24px;
  }

  .hpx-section-title h2,
  body.home .hpx-section-title h2,
  .hpx-news-heading h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
    line-height: 1.14;
    text-align: left;
    font-weight: 400;
  }

  .hpx-grid,
  .hpx-grid--2,
  .hpx-grid--3,
  .hpx-grid--4,
  .hpx-grid--5,
  .hpx-grid--6,
  .hpx-services-grid,
  body.home .hpx-grid,
  body.home .hpx-grid--5,
  body.home .hpx-grid--6 {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .hpx-card,
  .hpx-media-card,
  .hpx-prod-card,
  .hpx-mvv__card,
  .hpx-member,
  .hpx-milestone,
  .hpx-news-card,
  .hpx-news-featured,
  .hpx-event-card,
  .hpx-project-highlight,
  .hpx-quote-solution {
    border-radius: 8px;
  }

  .hpx-card,
  .hpx-services-grid .hpx-service-card,
  .hpx-mvv__card {
    min-height: 0;
    padding: 22px;
  }

  .hpx-services-grid .hpx-service-card h3 {
    min-height: 0;
    font-size: 0.95rem;
  }

  .hpx-about__media {
    padding: 54px 0 0;
  }

  .hpx-about__card {
    padding: 24px;
    border-radius: 8px;
  }

  .hpx-stats {
    padding: 24px;
    border-radius: 8px;
  }

  .hpx-stat {
    align-items: flex-start;
  }

  .hpx-mvv-section::before {
    background-size: 48px 48px;
  }

  .hpx-values-list {
    grid-template-columns: 1fr;
  }

  .hpx-contact-grid,
  .hpx-catalog,
  .hpx-faq-layout,
  .hpx-legal-layout,
  .hpx-quote-layout {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .hpx-form,
  .hpx-quote-form {
    padding: 22px;
    border-radius: 8px;
  }

  .hpx-form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hpx-field input,
  .hpx-field select,
  .hpx-field textarea,
  .hpx-news-subscribe input {
    min-height: 46px;
    font-size: 16px;
  }

  .hpx-dropzone {
    padding: 22px 16px;
  }

  .hpx-form__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hpx-news-page {
    padding-top: 34px;
  }

  .hpx-news-heading,
  .hpx-news-heading--compact {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .hpx-news-grid,
  .hpx-news-lower,
  .hpx-news-mini {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hpx-news-featured__thumb {
    aspect-ratio: 16 / 9;
  }

  .hpx-event-card,
  .hpx-project-highlight {
    grid-template-columns: 1fr;
  }

  .hpx-news-cats,
  .hpx-news-subscribe,
  .hpx-quote-help {
    padding: 22px;
    border-radius: 8px;
  }

  .hpx-quote-steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hpx-quote-step::after {
    display: none;
  }

  .hpx-clients {
    padding: 34px 0;
  }

  .hpx-clients__title {
    font-size: 0.95rem;
    text-align: left;
  }

  .hpx-clients__marquee {
    gap: 36px;
    padding: 6px 0;
  }

  .hpx-clients__name {
    font-size: 1.25rem;
  }

  .hpx-cta,
  body.home .hpx-cta {
    border-radius: 0;
  }

  .hpx-cta__inner,
  body.home .hpx-cta__inner {
    min-height: 0;
    padding: 32px 0;
    gap: 20px;
  }

  .hpx-cta__text,
  body.home .hpx-cta__text {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hpx-cta__icon {
    display: none;
  }

  .hpx-cta__text h2,
  body.home .hpx-cta__text h2 {
    max-width: none;
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .hpx-cta__text p,
  body.home .hpx-cta__text p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .hpx-cta__actions,
  body.home .hpx-cta__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hpx-cta__image,
  body.home .hpx-cta__image {
    display: none;
  }

  .hpx-footer,
  body.home .hpx-footer {
    text-align: left;
  }

  .hpx-footer__top,
  body.home .hpx-footer__top {
    grid-template-columns: 1fr !important;
    gap: 24px;
    padding: 34px 0 24px;
  }

  .hpx-footer .hpx-logo--footer-image,
  body.home .hpx-footer .hpx-logo--footer-image {
    max-width: 230px;
  }

  .hpx-footer__about,
  body.home .hpx-footer__about {
    max-width: none;
    font-size: 0.9rem;
  }

  .hpx-footer h4,
  body.home .hpx-footer h4 {
    margin-bottom: 10px;
  }

  .hpx-footer ul,
  body.home .hpx-footer ul {
    gap: 7px;
  }

  .hpx-footer__bottom,
  body.home .hpx-footer__bottom {
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
  }

  .hpx-footer__bottom nav,
  .hpx-footer__bottom nav ul,
  body.home .hpx-footer__bottom nav,
  body.home .hpx-footer__bottom nav ul {
    justify-content: flex-start;
    gap: 10px 0;
  }

  .hpx-footer__bottom nav a,
  body.home .hpx-footer__bottom nav a {
    padding: 0 12px 0 0;
    margin-right: 12px;
    border-left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.32);
  }
}

@media (max-width: 380px) {
  .hpx-hero h1,
  .hpx-hero--page h1,
  body.home .hpx-hero h1 {
    font-size: 1.82rem;
  }

  .custom-logo,
  .hpx-logo img,
  body.home .custom-logo,
  body.home .hpx-logo img {
    max-width: calc(100vw - 92px);
  }
}

/* Mobile header refinement */
@media (max-width: 640px) {
  .hpx-topbar,
  body.home .hpx-topbar {
    height: 18px;
    min-height: 18px;
    border: 0;
    overflow: hidden;
  }

  .hpx-topbar__inner,
  body.home .hpx-topbar__inner {
    min-height: 18px;
  }

  .hpx-topbar__info,
  body.home .hpx-topbar__info {
    padding: 1px 0;
    min-height: 18px;
  }

  .hpx-topbar__info a:first-child svg,
  body.home .hpx-topbar__info a:first-child svg {
    width: 14px;
    height: 14px;
  }

  .hpx-header,
  body.home .hpx-header {
    box-shadow: 0 6px 18px rgba(22, 36, 63, 0.08);
  }

  .hpx-header__inner,
  body.home .hpx-header__inner {
    min-height: 72px;
    padding: 10px 0;
  }

  .custom-logo-link,
  .hpx-logo,
  body.home .custom-logo-link,
  body.home .hpx-logo {
    min-width: 0;
  }

  .custom-logo,
  .hpx-logo img,
  body.home .custom-logo,
  body.home .hpx-logo img {
    width: auto;
    max-width: min(240px, calc(100vw - 102px));
    max-height: 62px;
  }

  .hpx-burger,
  body.home .hpx-burger {
    width: 46px;
    height: 46px;
    margin-right: 2px;
    padding: 0; /* Reseteamos el padding del diseño general para respetar tus 46x46px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px; /* Reemplaza el margin: 4px 0 de los span */
    background-color: transparent;
  }

  .hpx-burger span,
  body.home .hpx-burger span {
    width: 27px;
    height: 3px;
    margin: 0; /* Reseteamos el margin porque ahora usamos el gap del contenedor padre */
    background-color: var(--hpx-navy);
    border-radius: 3px; /* Mantenemos el estilo de "píldora" */
  }

  /* Corrección matemática para la "X" basada en el nuevo gap de 4px */
  .hpx-burger.is-open span:nth-child(1),
  body.home .hpx-burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hpx-burger.is-open span:nth-child(3),
  body.home .hpx-burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body.home .hpx-hero--home .hpx-hero__inner {
    padding-top: 38px;
  }
}

@media (max-width: 380px) {
  .custom-logo,
  .hpx-logo img,
  body.home .custom-logo,
  body.home .hpx-logo img {
    max-width: calc(100vw - 98px);
    max-height: 58px;
  }

  .hpx-header__inner,
  body.home .hpx-header__inner {
    min-height: 68px;
  }
}

/* Mobile header premium pass */
@media (max-width: 640px) {
  .hpx-topbar,
  body.home .hpx-topbar {
    display: none;
  }

  .hpx-header,
  body.home .hpx-header {
    top: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 26px rgba(22, 36, 63, 0.1);
  }

  .hpx-header__inner,
  body.home .hpx-header__inner {
    min-height: 78px;
    padding: 11px 0;
  }

  .custom-logo-link,
  .hpx-logo,
  body.home .custom-logo-link,
  body.home .hpx-logo {
    display: inline-flex;
    align-items: center;
    max-width: calc(100vw - 94px);
  }

  .custom-logo,
  .hpx-logo img,
  body.home .custom-logo,
  body.home .hpx-logo img {
    max-width: min(246px, calc(100vw - 102px));
    max-height: 60px;
  }

  .hpx-burger,
  body.home .hpx-burger {
    width: 46px;
    height: 46px;
    border-radius: 0px;
    background: #fff;
  }

  .hpx-burger span,
  body.home .hpx-burger span {
    width: 24px;
    height: 1px;
    margin: 1px 0;
    background: var(--hpx-navy);
  }

  .hpx-nav.is-open + .hpx-burger,
  .hpx-burger.is-open {
    background: var(--hpx-blue);
    border-color: var(--hpx-blue);
  }

  .hpx-burger.is-open span {
    background: #fff;
  }

  body.home .hpx-hero--home .hpx-hero__inner,
  .hpx-hero__inner,
  .hpx-hero--page .hpx-hero__inner {
    padding-top: 44px;
  }

  body.home .hpx-menu > li > a {
    padding: 14px 6px;
    font-size: 12px;
    text-decoration: none;
  }
}

@media (max-width: 380px) {
  .hpx-header__inner,
  body.home .hpx-header__inner {
    min-height: 72px;
  }

  .custom-logo,
  .hpx-logo img,
  body.home .custom-logo,
  body.home .hpx-logo img {
    max-width: calc(100vw - 94px);
    max-height: 56px;
  }
}

/* Mobile stats upgrade */
@media (max-width: 640px) {
  .hpx-section--tight:has(.hpx-stats) {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hpx-stats {
    padding: 22px;
    border-radius: 14px;
  }

  .hpx-stats::before {
    background-size: 48px 48px;
    opacity: 0.24;
  }

  .hpx-stats::after {
    width: 180px;
    height: 180px;
    right: -80px;
    bottom: -80px;
  }

  .hpx-stats__title {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .hpx-stats__title::before {
    width: 34px;
  }

  .hpx-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .hpx-stat {
    display: grid;
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    min-height: 164px;
    padding: 16px;
  }

  .hpx-stat__icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .hpx-stat__icon svg {
    width: 27px;
    height: 27px;
  }

  .hpx-stat__num {
    font-size: 2rem;
  }

  .hpx-stat__num[style] {
    font-size: 1.15rem !important;
    line-height: 1.15;
    letter-spacing: 0;
  }

  .hpx-stat__label {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .hpx-stat__sub {
    font-size: 0.78rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .hpx-stats {
    padding: 18px;
  }

  .hpx-stats__grid {
    grid-template-columns: 1fr !important;
  }

  .hpx-stat {
    grid-template-columns: 52px 1fr;
    min-height: 0;
    align-items: center;
  }

  .hpx-stat__num {
    font-size: 2.05rem;
  }
}

/* ============ TRABAJA CON NOSOTROS · vacantes (listado + detalle) ======= */
.hpx-why {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.hpx-why__item {
  text-align: center;
}
.hpx-why__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(70, 107, 177, 0.08);
  color: var(--hpx-blue);
}
.hpx-why__item strong {
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--hpx-navy);
  margin-bottom: 8px;
}
.hpx-why__item p {
  color: var(--hpx-muted);
  font-size: 0.88rem;
}

/* Listado de ofertas laborales */
.hpx-jobs {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  overflow: hidden;
}
.hpx-job {
  display: grid;
  grid-template-columns: 44px minmax(160px, 1.3fr) minmax(180px, 1.7fr) minmax(120px, 0.9fr) minmax(110px, 0.8fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  border-top: 1px solid var(--hpx-border);
  color: var(--hpx-text);
  transition: background var(--hpx-dur-fast) var(--hpx-ease-soft);
}
.hpx-job:first-child {
  border-top: 0;
}
.hpx-job:hover {
  background: #f5f7fa;
}
.hpx-job__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--hpx-blue);
  color: #fff;
}
.hpx-job__head strong {
  display: block;
  color: var(--hpx-blue);
  font-size: 0.98rem;
}
.hpx-job__head span {
  font-size: 0.8rem;
  color: var(--hpx-muted);
}
.hpx-job__desc {
  font-size: 0.86rem;
  color: var(--hpx-muted);
}
.hpx-job__loc,
.hpx-job__type {
  font-size: 0.84rem;
  color: var(--hpx-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hpx-job__loc svg {
  color: var(--hpx-blue);
  flex: none;
}
.hpx-job__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--hpx-blue);
  border: 1px solid var(--hpx-blue);
  border-radius: 6px;
  padding: 9px 14px;
  transition: background var(--hpx-dur-fast), color var(--hpx-dur-fast);
}
.hpx-job:hover .hpx-job__cta {
  background: var(--hpx-blue);
  color: #fff;
}

/* Banner "Envía tu CV" */
.hpx-cvbanner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: linear-gradient(120deg, var(--hpx-blue-700), var(--hpx-blue));
  color: #fff;
  border-radius: var(--hpx-radius-lg);
  padding: 32px 38px;
}
.hpx-cvbanner--soft {
  background: #eef2f7;
  color: var(--hpx-text);
}
.hpx-cvbanner__icon {
  color: rgba(255, 255, 255, 0.92);
  flex: none;
}
.hpx-cvbanner--soft .hpx-cvbanner__icon {
  color: var(--hpx-blue);
}
.hpx-cvbanner__text h3 {
  color: inherit;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.hpx-cvbanner__text p {
  color: inherit;
  opacity: 0.9;
  max-width: 60ch;
}
.hpx-cvbanner__action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.hpx-cvbanner__note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Detalle de vacante */
.hpx-vacante-hero__badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-left: 8px;
}
.hpx-vacante-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 18px;
}
.hpx-vacante-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.hpx-vacante-hero__meta svg {
  color: var(--hpx-blue-light);
  flex: none;
}
.hpx-vacante-back {
  display: inline-flex;
  margin-bottom: 24px;
}
.hpx-arrow--back {
  transform: rotate(180deg);
}
.hpx-vacante {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
.hpx-vacante__body h2 {
  font-size: 1.4rem;
  color: var(--hpx-navy);
  margin: 32px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hpx-border);
}
.hpx-vacante__body h2:first-child {
  margin-top: 0;
}
.hpx-vacante__checklist {
  list-style: none;
  display: grid;
  gap: 12px;
}
.hpx-vacante__checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hpx-vacante__checklist svg {
  color: var(--hpx-blue);
  flex: none;
  margin-top: 2px;
}
.hpx-vacante__bullets {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.hpx-vacante__bullets li {
  color: var(--hpx-text);
}
.hpx-vacante__side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 90px;
}
.hpx-vacante__summary,
.hpx-vacante__share {
  background: #fff;
  border: 1px solid var(--hpx-border);
  border-radius: var(--hpx-radius);
  padding: 26px;
}
.hpx-vacante__summary h3,
.hpx-vacante__share h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hpx-navy);
  margin-bottom: 18px;
}
.hpx-vacante__sumrow {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.hpx-vacante__sumrow:last-child {
  margin-bottom: 0;
}
.hpx-vacante__sumicon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(70, 107, 177, 0.08);
  color: var(--hpx-blue);
}
.hpx-vacante__sumlabel {
  display: block;
  font-size: 0.78rem;
  color: var(--hpx-muted);
}
.hpx-vacante__sumrow strong {
  color: var(--hpx-navy);
  font-size: 0.92rem;
}
.hpx-vacante__apply {
  background: linear-gradient(135deg, var(--hpx-blue-700), var(--hpx-blue));
  color: #fff;
  border-radius: var(--hpx-radius);
  padding: 26px;
}
.hpx-vacante__apply h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.hpx-vacante__apply p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.hpx-vacante__apply .hpx-btn {
  width: 100%;
  justify-content: center;
}
.hpx-vacante__note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 12px;
}
.hpx-vacante__share p {
  color: var(--hpx-muted);
  font-size: 0.86rem;
  margin-bottom: 16px;
}
.hpx-vacante__sharelinks {
  display: flex;
  gap: 12px;
}
.hpx-vacante__sharelinks a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--hpx-border);
  color: var(--hpx-blue);
  transition: background var(--hpx-dur-fast), color var(--hpx-dur-fast);
}
.hpx-vacante__sharelinks a:hover {
  background: var(--hpx-blue);
  color: #fff;
}

@media (max-width: 1024px) {
  .hpx-why {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 30px;
  }
  .hpx-vacante {
    grid-template-columns: 1fr;
  }
  .hpx-vacante__side {
    position: static;
  }
}
@media (max-width: 760px) {
  .hpx-why {
    grid-template-columns: 1fr 1fr;
  }
  .hpx-job {
    grid-template-columns: 44px 1fr;
    gap: 8px 16px;
  }
  .hpx-job__head,
  .hpx-job__desc,
  .hpx-job__loc,
  .hpx-job__type,
  .hpx-job__cta {
    grid-column: 2;
  }
  .hpx-job__cta {
    justify-self: start;
    margin-top: 6px;
  }
  .hpx-cvbanner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
@media (max-width: 480px) {
  .hpx-why {
    grid-template-columns: 1fr;
  }
}

/* Header sticky con animacion de scroll */
body.hpx-fixed-header-ready {
  padding-top: 0;
}

body.hpx-fixed-header-ready .hpx-header,
body.home.hpx-fixed-header-ready .hpx-header {
  position: sticky !important;
  top: 0;
  width: 100%;
  z-index: 180;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: 0 5px 18px rgba(22, 36, 63, 0.08);
  transform: translateY(0);
  transition:
    background var(--hpx-dur-fast) var(--hpx-ease-soft),
    border-color var(--hpx-dur-fast) var(--hpx-ease-soft),
    box-shadow var(--hpx-dur-fast) var(--hpx-ease-soft),
    transform var(--hpx-dur-fast) var(--hpx-ease);
}

body.hpx-fixed-header-ready .hpx-header__inner,
body.home.hpx-fixed-header-ready .hpx-header__inner,
body.hpx-fixed-header-ready .custom-logo,
body.home.hpx-fixed-header-ready .custom-logo,
body.hpx-fixed-header-ready .hpx-logo img,
body.home.hpx-fixed-header-ready .hpx-logo img,
body.hpx-fixed-header-ready .hpx-menu > li > a,
body.home.hpx-fixed-header-ready .hpx-menu > li > a {
  transition:
    min-height var(--hpx-dur-fast) var(--hpx-ease),
    max-height var(--hpx-dur-fast) var(--hpx-ease),
    padding var(--hpx-dur-fast) var(--hpx-ease),
    box-shadow var(--hpx-dur-fast) var(--hpx-ease),
    color var(--hpx-dur-fast) var(--hpx-ease-soft);
}

body.hpx-fixed-header-ready .hpx-header.is-scrolled,
body.home.hpx-fixed-header-ready .hpx-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(226, 232, 240, 1);
  box-shadow: 0 14px 34px rgba(22, 36, 63, 0.16);
}

body.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-header__inner,
body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-header__inner {
  min-height: 68px;
  padding-top: 6px;
  padding-bottom: 6px;
}

body.hpx-fixed-header-ready .hpx-header.is-scrolled .custom-logo,
body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .custom-logo,
body.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-logo img,
body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-logo img {
  max-height: 52px;
}

body.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-menu > li > a,
body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-menu > li > a {
  padding-top: 22px;
  padding-bottom: 22px;
}

body.admin-bar.hpx-fixed-header-ready .hpx-header,
body.admin-bar.home.hpx-fixed-header-ready .hpx-header {
  top: 32px;
}

/* En móvil el menú (.hpx-nav) es un panel position:fixed e hijo del header.
   Cualquier transform en el header lo convierte en bloque contenedor de los
   descendientes fixed, recortando el panel a la altura del header. Quitamos el
   transform/animación en móvil para que el panel se posicione respecto al
   viewport y ocupe toda la altura. */
@media (max-width: 980px) {
  body.hpx-fixed-header-ready .hpx-header,
  body.home.hpx-fixed-header-ready .hpx-header {
    transform: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.hpx-fixed-header-ready .hpx-header {
    animation: hpx-fixed-header-in 0.42s var(--hpx-ease);
  }

  @keyframes hpx-fixed-header-in {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 782px) {
  body.admin-bar.hpx-fixed-header-ready .hpx-header,
  body.admin-bar.home.hpx-fixed-header-ready .hpx-header {
    top: 46px;
  }
}

@media (max-width: 980px) {
  body.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-header__inner,
  body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-header__inner {
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  body.hpx-fixed-header-ready .hpx-header.is-scrolled .custom-logo,
  body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .custom-logo,
  body.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-logo img,
  body.home.hpx-fixed-header-ready .hpx-header.is-scrolled .hpx-logo img {
    max-height: 56px;
  }

  body.hpx-fixed-header-ready .hpx-nav,
  body.home.hpx-fixed-header-ready .hpx-nav {
    top: 0;
  }
}

/* WhatsApp flotante configurable */
.hpx-fab {
  left: 22px;
  right: auto;
}
.hpx-fab__wa,
body.home .hpx-fab__wa {
  width: 68px !important;
  height: 68px !important;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.34);
}
.hpx-fab__wa img,
body.home .hpx-fab__wa img {
  display: block;
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hpx-fab__wa:hover,
body.home .hpx-fab__wa:hover {
  background: #1ebe5a;
}
.hpx-fab__top {
  position: fixed;
  right: 22px;
  bottom: 22px;
}

@media (max-width: 520px) {
  .hpx-fab {
    left: 14px;
  }
  .hpx-fab__wa,
  body.home .hpx-fab__wa {
    width: 62px !important;
    height: 62px !important;
  }
}

/* =============================== BANCO DE PRUEBAS ======================= */
.hpx-testbench-hero {
  position: relative;
  min-height: clamp(600px, 36vw, 680px);
  overflow: hidden;
  background: #061c3a;
  color: #fff;
}
.hpx-testbench-hero__slides,
.hpx-testbench-hero__slide {
  position: absolute;
  inset: 0;
}
.hpx-testbench-hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.hpx-testbench-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hpx-testbench-hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hpx-testbench-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(54vw, 920px);
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(15, 72, 145, 0.45) 42% 47%, transparent 47% 53%, rgba(15, 72, 145, 0.3) 53% 58%, transparent 58%),
    linear-gradient(90deg, #051f43 0%, #062956 78%, #07336c 100%);
  clip-path: polygon(0 0, 90% 0, 72% 100%, 0 100%);
  filter: drop-shadow(2px 0 0 rgba(255, 255, 255, 0.72));
}
.hpx-testbench-hero__panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: min(47vw, 780px);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  align-content: stretch;
  padding: clamp(34px, 3vw, 52px) 36px clamp(30px, 2.6vw, 46px) clamp(48px, 6vw, 112px);
}
.hpx-testbench-hero__eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hpx-testbench-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(2.7rem, 3.5vw, 3.65rem);
  line-height: 0.98;
  text-transform: uppercase;
}
.hpx-testbench-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.18;
  text-transform: uppercase;
}
.hpx-testbench-hero p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 0;
}
.hpx-testbench-hero__features {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  margin-top: clamp(18px, 2vw, 30px);
  padding-right: clamp(20px, 4vw, 72px);
}
.hpx-testbench-hero__features div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 1px 12px;
  align-items: center;
  align-content: center;
  min-height: 0;
}
.hpx-testbench-hero__features span {
  grid-row: span 2;
  color: #fff;
}
.hpx-testbench-hero__features strong {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}
.hpx-testbench-hero__features small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.73rem;
  line-height: 1.25;
}
.hpx-testbench-hero__dots {
  position: absolute;
  z-index: 3;
  left: 72%;
  bottom: 24px;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}
.hpx-testbench-hero__dot {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.hpx-testbench-hero__dot.is-active {
  border-color: #087bf1;
  background: #087bf1;
}
.hpx-testbench-hero__dot:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.hpx-testbench-intro {
  padding: 34px 0 28px;
}
.hpx-testbench-intro > .hpx-container,
.hpx-testbench-mid,
.hpx-testbench-services,
.hpx-testbench-cta__inner {
  max-width: 1640px;
  padding-right: clamp(24px, 3vw, 48px);
  padding-left: clamp(24px, 3vw, 48px);
}
.hpx-testbench-intro__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.55fr);
  gap: 26px;
  align-items: stretch;
}
.hpx-testbench-copy {
  padding: 8px 8px 0 0;
}
.hpx-testbench-copy__head {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.hpx-testbench-copy__head span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hpx-blue);
  color: #fff;
}
.hpx-testbench-copy h2,
.hpx-testbench-equipment h2,
.hpx-testbench-cap h2,
.hpx-testbench-video h2,
.hpx-testbench-services h2,
.hpx-testbench-benefits h2,
.hpx-testbench-cta h2 {
  color: var(--hpx-blue);
  text-transform: uppercase;
}
.hpx-testbench-copy h2,
.hpx-testbench-equipment h2,
.hpx-testbench-cap h2,
.hpx-testbench-video h2,
.hpx-testbench-services h2,
.hpx-testbench-benefits h2 {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.15;
}
.hpx-testbench-copy > p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
}
.hpx-section-title--compact {
  margin-bottom: 12px;
  text-align: left;
}
.hpx-section-title--compact h2 {
  color: var(--hpx-blue);
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  text-transform: uppercase;
}
.hpx-testbench-tech {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hpx-testbench-tech__box,
.hpx-testbench-equipment__grid article,
.hpx-testbench-cardbox {
  min-width: 0;
  border: 1px solid var(--hpx-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--hpx-shadow-sm);
}
.hpx-testbench-tech__card {
  min-width: 0;
  text-align: center;
}
.hpx-testbench-tech__box {
  min-height: 100%;
  display: grid;
  grid-template-rows: 48px auto auto 1fr;
  align-content: start;
  justify-items: center;
  padding: 18px 12px 16px;
}
.hpx-testbench-tech__box > span {
  color: var(--hpx-blue);
}
.hpx-testbench-tech__box h3 {
  margin: 8px 0 0;
  color: var(--hpx-blue);
  font-size: 0.76rem;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hpx-testbench-tech__box strong {
  display: block;
  margin: 10px auto 8px;
  color: var(--hpx-blue);
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  line-height: 1.12;
  max-width: 100%;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}
.hpx-testbench-tech__box p,
.hpx-testbench-service-grid p,
.hpx-testbench-benefits p {
  margin: 8px 0 0;
  color: var(--hpx-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-align: center;
}
.hpx-testbench-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(220px, 0.62fr) minmax(270px, 0.78fr);
  gap: 18px;
  align-items: stretch;
}
.hpx-testbench-details,
.hpx-testbench-lower {
  padding: 26px 0;
}
.hpx-testbench-equipment,
.hpx-testbench-cap,
.hpx-testbench-video {
  min-width: 0;
}
.hpx-testbench-equipment__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.hpx-testbench-equipment__grid article {
  min-height: 180px;
  padding: 10px 8px 14px;
  display: grid;
  grid-template-rows: 120px auto;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.hpx-testbench-equipment__media {
  width: 100%;
  height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hpx-testbench-equipment__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hpx-testbench-equipment__media span {
  color: var(--hpx-blue);
}
.hpx-testbench-equipment__grid strong,
.hpx-testbench-service-grid h3,
.hpx-testbench-benefits h3 {
  color: var(--hpx-blue);
  font-size: 0.78rem;
  line-height: 1.25;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.hpx-testbench-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--hpx-border);
  border-radius: 8px;
  background: #fff;
  color: var(--hpx-text);
  font-size: 0.82rem;
}
.hpx-testbench-note svg {
  flex: none;
  color: var(--hpx-blue);
}
.hpx-testbench-cap__item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 9px;
}
.hpx-testbench-cap__item > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(70, 107, 177, 0.28);
  border-radius: 50%;
  color: var(--hpx-blue);
}
.hpx-testbench-cap__item strong,
.hpx-testbench-cap__item small {
  display: block;
}
.hpx-testbench-cap__item strong {
  color: var(--hpx-blue);
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
}
.hpx-testbench-cap__item small {
  color: var(--hpx-text);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
}
.hpx-testbench-video {
  padding: 18px;
  border-radius: 8px;
  background: #052b5a;
  color: #fff;
}
.hpx-testbench-video h2 {
  color: #fff;
  font-size: 1rem;
}
.hpx-testbench-video__frame {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.hpx-testbench-video__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hpx-testbench-video__frame iframe,
.hpx-testbench-video__frame video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.hpx-testbench-video__frame span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 64, 145, 0.24);
}
.hpx-testbench-video p {
  margin: 10px 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
}
.hpx-testbench-services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: stretch;
}
.hpx-testbench-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.hpx-testbench-service-grid article {
  text-align: center;
}
.hpx-testbench-cardbox {
  min-height: 210px;
  display: grid;
  grid-template-rows: 48px auto 1fr;
  align-content: start;
  justify-items: center;
  gap: 9px;
  padding: 18px 10px 14px;
}
.hpx-testbench-service-grid span {
  color: var(--hpx-blue);
}
.hpx-testbench-benefits {
  padding: 18px 18px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #06366f, var(--hpx-blue));
  color: #fff;
}
.hpx-testbench-benefits h2 {
  color: #fff;
}
.hpx-testbench-benefits__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.hpx-testbench-benefits article {
  min-width: 0;
  text-align: center;
  padding: 8px 12px 4px;
}
.hpx-testbench-benefits__grid article + article {
  border-left: 1px solid rgba(255, 255, 255, 0.26);
}
.hpx-testbench-benefits span,
.hpx-testbench-benefits h3,
.hpx-testbench-benefits p {
  color: #fff;
}
.hpx-testbench-benefits p {
  opacity: 0.82;
  font-size: 0.7rem;
}
.hpx-testbench-benefits h3 {
  margin: 8px 0 0;
  font-size: 0.7rem;
}
.hpx-testbench-cta {
  padding: 30px 0;
  background:
    linear-gradient(90deg, #fff 0%, #fff 62%, rgba(255, 255, 255, 0.65) 78%, rgba(255, 255, 255, 0) 100%),
    var(--hpx-testbench-img, none) right 58% / 40% auto no-repeat,
    #f5f7fb;
}
.hpx-testbench-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}
.hpx-testbench-cta h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}
.hpx-testbench-cta p {
  margin: 0;
  max-width: 64ch;
}
.hpx-testbench-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .hpx-testbench-hero::before {
    width: 68vw;
  }
  .hpx-testbench-hero__panel {
    width: min(63vw, 650px);
    padding-left: clamp(36px, 5vw, 64px);
    padding-right: 30px;
  }
  .hpx-testbench-hero h1 {
    font-size: clamp(2.45rem, 5vw, 3.35rem);
  }
}

@media (max-width: 980px) {
  .hpx-testbench-intro__grid,
  .hpx-testbench-mid,
  .hpx-testbench-services {
    grid-template-columns: 1fr;
  }
  .hpx-testbench-tech,
  .hpx-testbench-equipment__grid,
  .hpx-testbench-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hpx-testbench-equipment__grid article {
    min-height: 200px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hpx-testbench-details {
    padding: 32px 0;
  }
  .hpx-testbench-mid {
    gap: 24px;
  }
  .hpx-testbench-cap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    padding: 22px 24px 24px;
    border: 1px solid var(--hpx-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--hpx-shadow-sm);
  }
  .hpx-testbench-cap h2 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
  .hpx-testbench-cap__item {
    min-width: 0;
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f6f8fc;
  }
  .hpx-testbench-cap__item strong {
    font-size: 0.76rem;
  }
  .hpx-testbench-cap__item small {
    font-size: 0.82rem;
  }
  .hpx-testbench-video {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.75fr);
    grid-template-rows: auto 1fr auto;
    gap: 10px 22px;
    align-items: start;
    padding: 20px;
    border-radius: 12px;
  }
  .hpx-testbench-video h2 {
    grid-column: 2;
    margin: 4px 0 0;
    font-size: 1.08rem;
  }
  .hpx-testbench-video__frame {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 100%;
    align-self: center;
  }
  .hpx-testbench-video p {
    grid-column: 2;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .hpx-testbench-video .hpx-btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .hpx-testbench-hero {
    min-height: 650px;
  }
  .hpx-testbench-hero::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(5, 31, 67, 0.98) 0%, rgba(6, 41, 86, 0.94) 68%, rgba(6, 41, 86, 0.46) 100%);
    clip-path: none;
    filter: none;
  }
  .hpx-testbench-hero__slide img {
    object-position: 66% center;
  }
  .hpx-testbench-hero__panel {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 650px;
    padding: 32px 24px 68px;
  }
  .hpx-testbench-hero h1 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }
  .hpx-testbench-hero p {
    font-size: 0.9rem;
  }
  .hpx-testbench-hero__features {
    gap: 8px;
    margin-top: 20px;
    padding-right: 0;
  }
  .hpx-testbench-hero__dots {
    left: 50%;
    bottom: 22px;
  }
  .hpx-testbench-intro > .hpx-container,
  .hpx-testbench-mid,
  .hpx-testbench-services,
  .hpx-testbench-cta__inner {
    padding-right: 20px;
    padding-left: 20px;
  }
  .hpx-testbench-intro__grid,
  .hpx-testbench-cta__inner {
    grid-template-columns: 1fr;
  }
  .hpx-testbench-tech,
  .hpx-testbench-equipment__grid,
  .hpx-testbench-service-grid,
  .hpx-testbench-benefits__grid {
    grid-template-columns: 1fr;
  }
  .hpx-testbench-benefits article {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 16px 0 0;
  }
  .hpx-testbench-benefits article:first-child {
    border-top: 0;
    padding-top: 0;
  }
  .hpx-testbench-cta {
    background: #f5f7fb;
  }
  .hpx-testbench-cta__actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpx-testbench-hero__slide {
    transition: none;
  }
}

/* Evita que la tarjeta de ultimos proyectos invada la imagen */
.hpx-news-mini > section,
.hpx-news-mini .hpx-project-highlight {
  min-width: 0;
}
.hpx-news-mini .hpx-project-highlight {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}
.hpx-news-mini .hpx-project-highlight__thumb {
  width: 100%;
  height: 100%;
  max-width: 240px;
}
.hpx-news-mini .hpx-project-highlight__thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}
.hpx-news-mini .hpx-project-highlight > div {
  min-width: 0;
  overflow: hidden;
  background: #fff;
}
.hpx-news-mini .hpx-project-highlight h3,
.hpx-news-mini .hpx-project-highlight p {
  max-width: 100%;
  overflow-wrap: break-word;
}

@media (max-width: 700px) {
  .hpx-news-mini .hpx-project-highlight {
    grid-template-columns: 1fr;
  }
  .hpx-news-mini .hpx-project-highlight__thumb {
    max-width: none;
    height: auto;
  }
}

/* Bloques editables para pagina Nosotros */
.hpx-gutenberg-page--nosotros {
  padding-top: 0;
}
.hpx-nosotros-block {
  max-width: var(--hpx-container) !important;
  margin-left: auto;
  margin-right: auto;
}
.hpx-nosotros-about {
  padding: 64px 0 44px;
}
.hpx-nosotros-about__grid {
  gap: 56px;
  align-items: center;
}
.hpx-nosotros-about__image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(22, 36, 63, 0.12);
}
.hpx-nosotros-about .eyebrow {
  margin-bottom: 10px;
  color: var(--hpx-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.hpx-nosotros-about h2 {
  max-width: 11ch;
  color: var(--hpx-text);
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.08;
}
.hpx-nosotros-about p:not(.eyebrow) {
  color: var(--hpx-muted);
  font-size: 1.04rem;
  line-height: 1.68;
}
.hpx-wp-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 6px;
  background: var(--hpx-blue);
  color: #fff;
  font-weight: 700;
}
.hpx-nosotros-stats {
  margin-top: 0;
  margin-bottom: 64px;
  padding: 28px 38px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 55%, rgba(244, 184, 28, 0.2), transparent 20%),
    linear-gradient(135deg, #34414e, var(--hpx-navy));
  color: #fff;
}
.hpx-nosotros-stats .hpx-stats__title {
  color: rgba(255, 255, 255, 0.86);
}
.hpx-nosotros-stats__grid {
  gap: 18px;
}
.hpx-nosotros-stats__grid .wp-block-column {
  min-height: 124px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}
.hpx-nosotros-stats h3 {
  margin: 0 0 4px;
  color: var(--hpx-blue-light);
  font-size: 2.1rem;
  line-height: 1;
}
.hpx-nosotros-stats p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}
.hpx-nosotros-stats strong {
  color: #fff;
  text-transform: uppercase;
}
.hpx-nosotros-mvv {
  padding: 64px 0;
}
.hpx-nosotros-mvv > h2 {
  font-size: clamp(2rem, 4vw, 2.65rem);
}
.hpx-nosotros-mvv > p {
  max-width: 760px !important;
  color: var(--hpx-muted);
  font-size: 1.05rem;
}
.hpx-nosotros-mvv__grid {
  gap: 26px;
  margin-top: 38px;
}
.hpx-nosotros-mvv__card {
  height: 100%;
  padding: 30px;
  border-top: 4px solid var(--hpx-gold);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--hpx-shadow-sm);
}
.hpx-nosotros-mvv__card h3 {
  color: var(--hpx-text);
  font-size: 1.25rem;
}
.hpx-nosotros-mvv__card p,
.hpx-nosotros-mvv__card li {
  color: var(--hpx-muted);
  font-size: 1rem;
  line-height: 1.62;
}
.hpx-nosotros-mvv__card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}
.hpx-nosotros-mvv__card li {
  padding: 10px 12px;
  border: 1px solid var(--hpx-border);
  border-radius: 8px;
  background: #f5f7fb;
  font-weight: 700;
}

@media (max-width: 780px) {
  .hpx-nosotros-about,
  .hpx-nosotros-mvv {
    padding: 42px 0;
  }
  .hpx-nosotros-about__grid,
  .hpx-nosotros-stats__grid,
  .hpx-nosotros-mvv__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .hpx-nosotros-about h2 {
    max-width: none;
  }
  .hpx-nosotros-stats {
    padding: 24px;
  }
  .hpx-nosotros-mvv__card ul {
    grid-template-columns: 1fr;
  }
}
