/**
 * home.css — Home v3.2 (rework anti-slop tras audit taste-skill)
 *
 * Cambios vs v3.1:
 *   - Hero split 50/50 sobre fondo claro (fuera vídeo cinematográfico + overlay).
 *   - Sectores en zig-zag alternado (fuera grid 4×1 uniforme).
 *   - Catálogo asimétrico: 5 cards + Accesorios compacto. Fuera pills-círculo.
 *   - Fabricación split (fuera card oscura flotante).
 *   - Certificaciones con iconos (fuera 01/02/03 y línea superior).
 *   - CTA split 2/3 + 1/3 con contacto real (fuera centered-dark-block).
 *   - Reveal: solo en cards, no en toda la home.
 *
 * Scoped bajo .home-r · prefijo hr- · tokens de style.css :root
 */

/* ==========================================================================
   BASE — contenedor, eyebrows, títulos, botones
   ========================================================================== */

.hr-wrap {
  max-width: var(--container, 1440px);
  margin-inline: auto;
  padding-inline: var(--pad-x, clamp(20px, 4vw, 48px));
}

.hr-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a97a2;
  margin-bottom: 1rem;
}
.hr-eyebrow--accent { color: var(--accent); }

.hr-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--txt-heading, #323946);
  max-width: 24ch;
}

/* Botones rectangulares industriales — radio y alto unificados con el DS
   (radius --r-sm 4px, alto 48px = .btn-lg) para coherencia en toda la web */
.hr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out;
}
.hr-btn--primary { background: var(--accent); color: #fff; }
.hr-btn--primary:hover { background: var(--accent-hover, #008DD4); }
.hr-btn--ghost {
  background: var(--bg-alt, #F2F5F8);
  color: var(--dark, #323946);
  border: none;
}
.hr-btn--ghost:hover { background: #fff; }

/* Link textual con flecha */
.hr-textlink {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--txt-heading, #323946);
  text-decoration: none;
  transition: color 200ms ease-out;
}
.hr-textlink .hr-arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 200ms ease-out;
}
.hr-textlink:hover { color: var(--accent); }
.hr-textlink:hover .hr-arrow { transform: translateX(4px); }

/* ==========================================================================
   REVEAL — restringido a elementos específicos, no toda la home
   ========================================================================== */

.hr-js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hr-js [data-reveal-fade] { transform: none; }
.hr-js [data-reveal].in { opacity: 1; transform: none; }

/* ==========================================================================
   1 · HERO — cinematic (ref: theme/_design/hero-cinematic/)
   Vídeo full-viewport · overlay de blur inferior enmascarado (sin sábana
   oscura) · contenido anclado al bottom · CTAs redondeados: primario sólido
   accent + secundario liquid-glass · animación blur-fade-up en cadena.
   ========================================================================== */

.hr-hero {
  position: relative;
  /* 100vh menos la altura del marquee superior (30px) para que el hero
     encaje exacto en el viewport inicial sin generar scroll extra. */
  min-height: calc(100vh - 30px);
  min-height: calc(100svh - 30px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0D0D0D;
  color: #FFFFFF;
  isolation: isolate;
}

/* Dos capas de vídeo superpuestas. Cross-fade con opacity; .is-active
   se aplica al que debe verse. La otra capa queda invisible pero
   preparada (JS carga el siguiente src antes del intercambio). */
.hr-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 800ms ease-out;
}
.hr-hero__media.is-active { opacity: 1; }

/* Overlay de blur inferior enmascarado.
   El blur crece hacia abajo, dando profundidad y legibilidad
   sobre el vídeo sin oscurecerlo (sin degradado). */
.hr-hero__blur {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 45%);
          mask-image: linear-gradient(to top, #000 0%, transparent 45%);
}
/* ≥768: además del blur, oscurecido suave desde abajo para que sub, CTA y
   métricas se lean sobre vídeos claros. Mismo negro y alpha que el overlay de
   .nos-hero--filter (0.45); la máscara del blur lo convierte en degradado
   (0.45 en el borde inferior → 0 al 45 % del alto). En móvil ya hay un
   overlay plano (0.5) y no se suma. */
@media (min-width: 768px) {
  .hr-hero__blur { background: rgba(13, 13, 13, 0.45); }
}

/* Móvil: overlay negro plano sobre el vídeo del hero para asegurar
   contraste del titular. El blur sigue actuando por debajo. */
/* Móvil: hero al 85 % de la pantalla (antes 100 % − marquee) para que asome
   la sección siguiente e invite al scroll. svh: alto estable aunque se
   muestre u oculte la barra del navegador. Si el contenido no cabe (móviles
   bajos o apaisados), el hero crece. */
@media (max-width: 767px) {
  .hr-hero { min-height: 85vh; min-height: 85svh; }
  .hr-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(13, 13, 13, 0.5);
    pointer-events: none;
  }
  .hr-hero__in { z-index: 1; }
}

.hr-hero__in {
  position: relative;
  width: 100%;
  padding-top: 8rem;
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 900px) {
  .hr-hero__in {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

.hr-hero__content { max-width: 780px; }

/* Eyebrow — texto plano en mayúsculas sobre el hero. */
.hr-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  /* 1rem: misma separación que .hr-eyebrow de sección (antes 1.5rem). */
  margin-bottom: 1rem;
  opacity: 0;
  animation: hr-blur-fade-up 1s ease-out 0.3s forwards;
}

/* Columna derecha: grid 2 filas (spacer + stats).
   - Fila 1 (1fr): crece para ocupar toda la altura sobrante; las tabs
     se centran verticalmente en ella con align-self: center.
   - Fila 2 (auto): las métricas se sitúan al bottom natural.
   .hr-hero__in fuerza align-self: stretch para que la columna ocupe
   toda la altura de la fila (por defecto sería 'end'). */
.hr-hero__right {
  display: grid;
  grid-template-rows: 1fr auto;
  align-self: stretch;
  justify-items: flex-start;
  gap: 2rem;
}
@media (min-width: 900px) {
  .hr-hero__right { justify-items: flex-end; }
}

/* Selector de escenas — 3 barritas horizontales apiladas EN LA MISMA
   COLUMNA (stack vertical, centradas entre sí). Activas más largas,
   inactivas más cortas. Ref: paginadores tipo Function Health / Airbnb.
   align-self: start → el bloque se pega arriba de su fila spacer. */
.hr-hero__tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  align-self: center; /* centradas verticalmente en el alto del hero */
  padding-top: 0;
  opacity: 0;
  animation: hr-blur-fade-up 1s ease-out 0.7s forwards;
}
.hr-hero__tab {
  position: relative;
  width: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.32);
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: background 220ms ease-out, width 220ms ease-out;
}
.hr-hero__tab::before {
  content: "";
  position: absolute;
  inset: -3px -14px; /* hitzone amplia sin cambiar el tamaño visual */
}
.hr-hero__tab:hover { background: rgba(255, 255, 255, 0.68); }
.hr-hero__tab.is-active {
  background: #FFFFFF;
  width: 40px;
}

/* Tablet táctil (≥768): cada barrita ocupa 48×24 px de zona táctil
   (WCAG 2.5.8). Mismo patrón que en móvil: botón transparente y la barrita
   pintada en ::after. Con ratón se mantiene el selector compacto. */
@media (pointer: coarse) and (min-width: 768px) {
  .hr-hero__tabs { gap: 0; }
  .hr-hero__tab,
  .hr-hero__tab:hover,
  .hr-hero__tab.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 24px;
    background: transparent;
  }
  .hr-hero__tab::before { inset: 0; }
  .hr-hero__tab::after {
    content: "";
    display: block;
    width: 20px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: background 220ms ease-out, width 220ms ease-out;
  }
  .hr-hero__tab:hover::after { background: rgba(255, 255, 255, 0.68); }
  .hr-hero__tab.is-active::after { width: 40px; background: #FFFFFF; }
}

/* Métricas (mismo bloque de antes, sin animación propia — la anima el
   contenedor .hr-hero__tabs; y ya no necesita padding-bottom). */
.hr-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
  align-items: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0;
  animation: hr-blur-fade-up 1s ease-out 0.8s forwards;
}

/* Móvil: ocultar las 2 métricas del hero (35+ años · 20-150 L) para
   dejar más aire y foco en titular + CTA.
   Además, se mueve .hr-hero__right (contenedor de las tabs) POR ENCIMA
   del eyebrow/titular usando order:-1 en el grid vertical, para que el
   selector de escenas sea lo primero visible en móvil. */
@media (max-width: 767px) {
  .hr-hero__stats { display: none; }
  .hr-hero__right {
    order: -1;
    justify-items: flex-start;
    gap: 0;
  }
  .hr-hero__tabs {
    flex-direction: row;
    align-self: flex-start;
    gap: 8px;
  }
  /* Móvil: barritas inactivas más pequeñas para reforzar la jerarquía
     visual con la activa (que se mantiene a 40px). */
  /* Área táctil: el botón es transparente, 24 px de alto, y la barrita
     (10 px / 32 px activa) se pinta en ::after. Padding 4 px por lado →
     8 px visibles entre barritas (el gap original del diseño); cada zona
     táctil mide 18–40 × 24 px. Los márgenes negativos del contenedor
     mantienen la posición visual. */
  .hr-hero__tabs { gap: 0; margin: -10.5px -4px; }
  .hr-hero__tab,
  .hr-hero__tab:hover,
  .hr-hero__tab.is-active { width: auto; height: 24px; padding: 0 4px; background: transparent; }
  .hr-hero__tab::before { inset: 0; }
  .hr-hero__tab::after {
    content: "";
    display: block;
    width: 10px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    transition: background 220ms ease-out, width 220ms ease-out;
  }
  .hr-hero__tab:hover::after { background: rgba(255, 255, 255, 0.68); }
  .hr-hero__tab.is-active::after { width: 32px; background: #FFFFFF; }
}

.hr-hero__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
}
.hr-hero__stat:first-child { padding-left: 0; }
.hr-hero__stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.hr-hero__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hr-hero__stat-label {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

/* Título y sub: animación de entrada (hr-blur-fade-up) + transitions
   para el swap entre slides. JS retira la 'animation' tras la entrada
   inicial y usa .is-swap para el fade-out/fade-in. */
.hr-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0 0 1.25rem;
  opacity: 0;
  animation: hr-blur-fade-up 1s ease-out 0.4s forwards;
  transition: opacity 400ms ease-out, filter 400ms ease-out, transform 400ms ease-out;
}
.hr-hero__title.is-swap {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
}

.hr-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
  max-width: 42rem;
  margin: 0 0 2rem;
  opacity: 0;
  animation: hr-blur-fade-up 1s ease-out 0.5s forwards;
  transition: opacity 400ms ease-out, filter 400ms ease-out, transform 400ms ease-out;
}
.hr-hero__sub.is-swap {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
}

.hr-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hr-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 200ms ease-out, transform 200ms ease-out;
  opacity: 0;
}

.hr-hero__btn svg { flex: 0 0 auto; }

/* Versión BLANCA del botón: mismo shape que el resto (radio 4px, alto 48px,
   paddings heredados de .hr-hero__btn); solo cambian los tokens de color. */
.hr-hero__btn--primary {
  background: #FFFFFF;
  color: var(--txt-heading, #323946);
  animation: hr-blur-fade-up 1s ease-out 0.6s forwards;
}
.hr-hero__btn--primary:hover {
  background: rgba(255, 255, 255, 0.88);
  color: var(--txt-heading, #323946);
}
.hr-hero__btn--primary svg { transition: transform 200ms ease-out; }
.hr-hero__btn--primary:hover svg { transform: translateY(2px); }

/* Liquid glass — pastilla translúcida con borde de luz reflejada.
   El pseudo-elemento pinta un anillo con máscara XOR. */
.hr-hero__btn--glass {
  position: relative;
  overflow: hidden;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  animation: hr-blur-fade-up 1s ease-out 0.7s forwards;
}
.hr-hero__btn--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0)    40%,
    rgba(255, 255, 255, 0)    60%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.hr-hero__btn--glass:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

@keyframes hr-blur-fade-up {
  from { opacity: 0; filter: blur(20px); transform: translateY(40px); }
  to   { opacity: 1; filter: blur(0);    transform: translateY(0); }
}

/* Móvil: el subtítulo del hero es el LCP. Sin blur (animación no compuesta
   en GPU) y con la cascada comprimida, el texto se pinta ~0,5 s antes. */
@keyframes hr-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767px) {
  .hr-hero__tabs,
  .hr-hero__eyebrow,
  .hr-hero__title        { animation: hr-fade-up .6s ease-out 0s forwards; }
  .hr-hero__sub          { animation: hr-fade-up .6s ease-out .1s forwards; }
  .hr-hero__btn--primary,
  .hr-hero__btn--glass   { animation: hr-fade-up .6s ease-out .2s forwards; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-hero__eyebrow,
  .hr-hero__title,
  .hr-hero__sub,
  .hr-hero__btn,
  .hr-hero__stats,
  .hr-hero__tabs {
    animation: none;
    opacity: 1;
    filter: none;
    transform: none;
  }
  .hr-hero__media { transition: none; }
}

/* ==========================================================================
   2 · SECTORES / APLICACIONES — 4 paneles expandibles (rediseño 2a)
   Fila horizontal. Panel activo flex 3.1, inactivos flex 1.
   Hover / focus → activo; mouseleave → vuelve al panel 0.
   ========================================================================== */

.hr-sectors {
  background: var(--bg-dark, #323946);
  padding-block: clamp(4rem, 7vw, 6.5rem);
  color: #FFFFFF;
}

/* Header alineado a la izquierda (como el resto de secciones). */
.hr-sectors__head {
  margin-bottom: clamp(2rem, 3vw, 2.5rem);
  text-align: left;
}
.hr-sectors__head .hr-eyebrow { display: block; }
.hr-sectors__title {
  margin: 0.5rem 0 0;
  color: #FFFFFF;
  max-width: none;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hr-sectors__title { white-space: normal; }
}
.hr-sectors .hr-eyebrow--accent {
  color: rgba(255, 255, 255, 0.72);
}

/* Fila de paneles */
.hr-sectors__panels {
  display: flex;
  gap: 14px;
  height: clamp(360px, 45vw, 460px);
}
@media (max-width: 700px) {
  .hr-sectors__panels {
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
}

.hr-sector-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  color: #fff;
  background: transparent;
  text-align: left;
  transition: flex .55s cubic-bezier(.4, 0, .2, 1);
}
.hr-sector-panel.is-active { flex: 3.1; }

.hr-sector-panel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.22,.61,.36,1);
}
.hr-sector-panel.is-active .hr-sector-panel__img { transform: scale(1.04); }

.hr-sector-panel__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18,21,27,.28) 0%, rgba(18,21,27,0) 26%, rgba(14,17,22,.55) 60%, rgba(12,15,20,.94) 100%);
}

.hr-sector-panel__icon {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  border-radius: 11px;
  background: rgba(20, 24, 30, 0.4);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  color: #FFFFFF;
}
.hr-sector-panel__icon svg { display: block; width: 22px; height: 22px; }

.hr-sector-panel__text {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  /* En el panel activo el texto puede ensancharse (max 560px, o el ancho
     útil del panel si es mayor). En los inactivos queda oculto. */
  max-width: 560px;
  display: block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .15s ease, transform 0s;
}
.hr-sector-panel.is-active .hr-sector-panel__text {
  opacity: 1;
  transform: none;
  transition: opacity .4s ease .28s, transform .55s cubic-bezier(.2,.7,.2,1) .28s;
}
.hr-sector-panel__label {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8FD0FF;
  margin-bottom: 9px;
}
.hr-sector-panel__title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.hr-sector-panel__desc {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: #C6CBD3;
}
@media (prefers-reduced-motion: reduce) {
  .hr-sector-panel,
  .hr-sector-panel__img,
  .hr-sector-panel__text,
  .hr-sector-panel.is-active .hr-sector-panel__text { transition: none; }
}

/* Móvil: los 4 sectores en 1x4 (columna). Cada panel muestra TODO el
   contenido (label + título + desc), sin gate en :is-active porque en
   táctil no hay hover. */
@media (max-width: 700px) {
  .hr-sector-panel {
    flex: 1 1 auto !important;
    height: auto;
    min-height: 220px;
    padding: 24px 20px 22px;
  }
  .hr-sector-panel.is-active { flex: 1 1 auto !important; }
  .hr-sector-panel__text,
  .hr-sector-panel.is-active .hr-sector-panel__text {
    position: relative;
    left: auto; right: auto; bottom: auto;
    opacity: 1;
    transform: none;
    transition: none;
    margin-top: 56px;
  }
  .hr-sector-panel__label { color: #fff; }
  .hr-sector-panel__title { font-size: 20px; }
  .hr-sector-panel__desc  { font-size: 14.5px; }
  /* Scrim con más peso arriba para que el texto (label+título+desc,
     que en móvil vive en la mitad superior del panel) tenga fondo
     suficiente para leerse sin dominar la foto. */
  .hr-sector-panel__scrim {
    background: linear-gradient(180deg,
      rgba(12, 15, 20, 0.65) 0%,
      rgba(12, 15, 20, 0.5) 45%,
      rgba(12, 15, 20, 0.55) 75%,
      rgba(12, 15, 20, 0.9) 100%);
  }
}

/* ==========================================================================
   3 · CATÁLOGO — grid 3×2 con cards elevadas (ref: arteriorshome.com)
   Sección con tinte gris para que los cards blancos destaquen; sombra
   suave por card; productos alineados al bottom (todos pisan el mismo
   suelo) para máxima consistencia visual.
   ========================================================================== */

.hr-catalog {
  background: #FFFFFF;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.hr-catalog__head {
  display: flex;
  align-items: flex-end;   /* CTA alineado con la baseline del H2 */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: clamp(3rem, 5vw, 4rem);
}
.hr-catalog__head .hr-section-title { margin: 0; white-space: nowrap; }
.hr-catalog__head-text { min-width: 0; }
/* En pantallas estrechas se permite que el título vuelva a partir en varias
   líneas para evitar desbordes horizontales. */
@media (max-width: 760px) {
  .hr-catalog__head .hr-section-title { white-space: normal; }
}

/* CTA del catálogo: usa el .btn-outline estándar del DS (accent) para
   coherencia con el resto de botones outline de la web (p. ej. "Ver otros
   modelos" en ficha de producto). Sin override de color propio. */
.btn.hr-catalog__cta svg { transition: transform 200ms ease-out; }
.btn.hr-catalog__cta:hover svg { transform: translateX(3px); }

.hr-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 cols en movil por defecto */
  gap: 12px;
}
@media (min-width: 640px) {
  .hr-catalog__grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 2vw, 2rem); }
}
@media (min-width: 900px) {
  .hr-catalog__grid { grid-template-columns: repeat(3, 1fr); }
}


/* Card elevada: fondo gris claro homogéneo (#F5F5F5) — mismo tono
   que combina con el fondo blanco del PNG del producto sin costuras,
   gracias al mix-blend-mode: multiply en la imagen (más abajo). */
.hr-fcard {
  display: block;
  text-decoration: none;
  color: inherit;
  transition:
    transform 300ms cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 6px 18px rgba(0, 0, 0, 0.06);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #FAFAFA;
}
.hr-fcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.14);
}

/* Placeholder blanco con overlay gris muy sutil (multiply) por encima
   de la imagen — evita que el card quede totalmente en blanco sobre
   fondo blanco de la sección. Imagen contenida con padding para que
   el producto se vea completo (object-fit: contain). */
.hr-fcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: transparent;    /* hereda el overlay gris del .hr-fcard */
  overflow: hidden;
  display: flex;
  align-items: flex-end;      /* productos anclados al mismo suelo */
  justify-content: center;
}
/* Imagen: mix-blend-mode: multiply funde el fondo blanco del PNG
   con el gris del card → no se ve la 'ventana blanca' alrededor
   del producto y el card queda visualmente homogéneo. */
.hr-fcard__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: scale(1.2);
  transform-origin: center bottom;
  transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
  mix-blend-mode: multiply;
}
.hr-fcard:hover .hr-fcard__media img { transform: scale(1.28); }

/* Body: dentro del card (fondo transparente, hereda overlay del card). */
.hr-fcard__body {
  padding: 1.25rem 1.5rem 1.5rem;
  background: transparent;
}
.hr-fcard__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--txt-heading, #323946);
  margin: 0;
}
.hr-fcard__sub {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--txt-secondary);
  margin: 4px 0 0;
}
.hr-fcard__desc {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--txt-body, #52525B);
  margin: 0.6rem 0 0;
  max-width: 42ch;
}

/* ==========================================================================
   3b · GARANTÍAS — modo claro (ref: markopolo) — dark cards → light cards
   Cada card con fondo blanco + border sutil gris. Icono accent al lado
   del título; descripción debajo, alineada a la izquierda.
   ========================================================================== */

.hr-values {
  background: #FFFFFF;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.hr-values__head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
}
.hr-values__head .hr-eyebrow { display: inline-block; }
.hr-values__title {
  margin: 0.5rem auto 0;
}

.hr-values__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .hr-values__grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .hr-values__grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.hr-value {
  padding: 1.5rem 1.5rem 1.75rem;
  border: 1px solid var(--border, #E4E4E7);
  border-radius: var(--r-md);
  background: #FFFFFF;
  transition: border-color 250ms ease-out, box-shadow 250ms ease-out;
}
.hr-value:hover {
  border-color: rgba(0, 157, 226, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.hr-value__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.hr-value__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.hr-value__icon svg { width: 20px; height: 20px; }

.hr-value__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--txt-heading, #323946);
  margin: 0;
}
.hr-value__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--txt-body, #52525B);
  margin: 0;
}

/* ==========================================================================
   4 · FABRICACIÓN — split neutro (rework anti-slop, fuera card flotante)
   ========================================================================== */

/* Soluciones / Visión — layout 2 columnas: izquierda título + CTA +
   acordeón auto-avance, derecha imagen de altura fija. */
.hr-manuf {
  background: #FFFFFF;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}
.hr-manuf__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hr-manuf__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hr-manuf__left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 900px) {
  .hr-manuf__left { min-height: 520px; }
}

.hr-manuf__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--txt-heading, #323946);
  margin: 0;
}
.hr-manuf__cta { align-self: flex-start; }

.hr-manuf__media {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-alt, #F2F5F8);
  height: clamp(320px, 42vw, 520px);
}
.hr-manuf__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.hr-manuf__media:hover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .hr-manuf__media img,
  .hr-manuf__media:hover img { transition: none; transform: none; }
}

/* Acordeón auto-avance — anclado al bottom de la columna izquierda para
   que su borde inferior coincida con el de la imagen. */
.hr-accordion {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: auto;
}
.hr-accordion__item {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.hr-accordion__track {
  position: relative;
  flex: 0 0 2px;
  align-self: stretch;
  background: var(--border, #E4E4E7);
  overflow: hidden;
  border-radius: 2px;
}
.hr-accordion__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  background: var(--accent, #009DE2);
  transition: height 40ms linear;
}
.hr-accordion__body { flex: 1; min-width: 0; }
.hr-accordion__btn,
.hr-accordion__btn:hover,
.hr-accordion__btn:focus,
.hr-accordion__btn:active {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  color: #9a9a9a;
  cursor: pointer;
  transition: color .35s ease;
}
/* Área táctil ≥ 44 px sin mover el diseño: el título mide ~23 px en móvil
   y la zona de clic se amplía 11 px arriba y abajo (entre ítems hay 32 px
   y el texto del panel arranca 12 px por debajo). z-index: el panel cerrado
   (opacity 0 → capa propia) taparía la mitad inferior de la zona. */
.hr-accordion__btn { position: relative; z-index: 1; }
.hr-accordion__btn::before {
  content: "";
  position: absolute;
  inset: -11px 0;
}
.hr-accordion__btn:focus { outline: none; }
.hr-accordion__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}
.hr-accordion__btn:hover { color: var(--txt-heading, #323946); }
.hr-accordion__item.is-active .hr-accordion__btn,
.hr-accordion__item.is-active .hr-accordion__btn:hover { color: var(--txt-heading, #323946); }
.hr-accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows .4s ease, opacity .3s ease;
}
.hr-accordion__panel > p {
  min-height: 0;
  overflow: hidden;
  padding-top: 12px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--txt-body, #52525B);
  max-width: none;
}
.hr-accordion__item.is-active .hr-accordion__panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .hr-accordion__fill,
  .hr-accordion__btn,
  .hr-accordion__panel { transition: none; }
}

/* ==========================================================================
   5 · CERTIFICACIONES — iconos, no números (rework anti-slop)
   ========================================================================== */

/* Calidad y homologación — sección con imagen de fondo (cta-bg-2) +
   overlay vertical al azul oscuro corporativo (transparente arriba →
   opaco abajo). Card interior con --bg-dark. Split 50/50 con vídeo
   360 a la derecha. Sin auto-rotación: items iluminan solo al :hover. */
.hr-certs {
  position: relative;
  background:
    url('../images/cta-bg-2.webp') center/cover no-repeat,
    var(--bg-dark, #323946);
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  isolation: isolate;
}
.hr-certs::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(50, 57, 70, 0) 0%,
    rgba(50, 57, 70, 1) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.hr-certs > .hr-wrap { position: relative; z-index: 1; }

.hr-certs__card {
  position: relative;
  background: #FFFCFF;
  border-radius: var(--r-md);
  color: var(--txt-heading, #323946);
  overflow: hidden;
  /* 44px por lado (Figma). Se reduce sólo en móvil. */
  padding: 44px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}
@media (max-width: 700px) {
  .hr-certs__card { padding: 28px; }
}

/* Animación de entrada específica del card: fade + subida + blur.
   Override del [data-reveal] genérico para un recorrido más marcado. */
.hr-js .hr-certs__card[data-reveal] {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  filter: blur(6px);
  transition:
    opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hr-js .hr-certs__card[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: none;
}

.hr-certs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .hr-certs__grid {
    /* Figma: columna izquierda 512, gap 80, columna derecha 664. */
    grid-template-columns: minmax(0, 512fr) minmax(0, 664fr);
    gap: 80px;
    align-items: start;
  }
}

.hr-certs__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.hr-certs__title {
  font-family: var(--font-display);
  /* Igual que .hr-section-title del resto de secciones */
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--txt-heading, #323946);
  max-width: none;
  margin: 0 0 1.25rem;
}

.hr-certs__left {
  display: flex;
  flex-direction: column;
}
.hr-certs__title { margin-bottom: 1.25rem; }
.hr-certs__intro {
  font-size: clamp(1rem, 1.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--txt-body, #52525B);
  max-width: 42ch;
  margin: 0;
}
/* (regla antigua de .hr-certs__list eliminada — la nueva vive más abajo,
   ya no cap de 560px y sin flex vertical) */

/* Cada bullet en su propio contenedor: borde suave que se enciende al hover.
   Sin background — solo el borde diferencia el box. */
.hr-cert {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border, #E4E4E7);
  border-radius: var(--r-md);
  background: transparent;
  transition: border-color 250ms ease-out, box-shadow 250ms ease-out;
}
.hr-cert:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.hr-cert__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.hr-cert__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--txt-heading, #323946);
  margin: 0 0 0.4rem;
}
.hr-cert__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--txt-body, #52525B);
  margin: 0;
}

/* Lista de garantías (sin grid ni divisores). Icono a la izquierda,
   título + descripción a la derecha. Se apilan en 2 columnas en
   pantallas anchas para aprovechar el espacio horizontal. */
.hr-certs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* <480: 1 columna (en 2 los textos quedaban a ~150 px de ancho). */
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 16px;
}
@media (min-width: 480px) {
  .hr-certs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .hr-certs__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 33px 50px; }
}

.hr-guarantee {
  display: grid;
  /* Figma: icono 22px + gap 12px + texto (273px). */
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0;
  transition: transform 220ms ease-out;
}
.hr-guarantee:hover { transform: translateY(-2px); }

/* Icono sin chip: transparente, sólo el trazo en accent. Más pequeño. */
.hr-guarantee__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-top: 2px;
  transition: transform 220ms ease-out;
}
.hr-guarantee__icon svg { width: 22px; height: 22px; }
.hr-guarantee:hover .hr-guarantee__icon { transform: scale(1.1); }
.hr-guarantee__title {
  font-family: var(--font-display);
  /* Figma H3: 15px / lh 21 */
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  color: var(--txt-heading, #323946);
  margin: 0 0 0.35rem;
}
.hr-guarantee__desc {
  /* Figma paragraph: 15px con lh ~22px. */
  font-size: 15px;
  line-height: 22px;
  color: var(--txt-body, #52525B);
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .hr-guarantee,
  .hr-guarantee:hover,
  .hr-guarantee__icon,
  .hr-guarantee:hover .hr-guarantee__icon { transition: none; transform: none; }
}

/* ==========================================================================
   6 · CTA FINAL — split editorial (rework anti-slop)
   ========================================================================== */

.hr-cta {
  background: var(--bg-dark, #323946);
  color: #F0F0F0;
  padding-block: clamp(4rem, 6.5vw, 5.5rem);
}

.hr-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .hr-cta__grid {
    grid-template-columns: 2fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }
}

.hr-cta__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  max-width: 22ch;
}

.hr-cta__sub {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--txt-on-dark, #DFE6EC);
  max-width: 52ch;
}

.hr-cta__text .hr-btn { margin-top: 2rem; }

.hr-cta__contact dl {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0;
}
.hr-cta__contact div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hr-cta__contact div:first-child { border-top: 0; padding-top: 0; }
.hr-cta__contact dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hr-cta__contact dd {
  font-size: 15px;
  font-weight: 500;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.5;
}
.hr-cta__contact a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease-out;
}
.hr-cta__contact a:hover { color: var(--accent); }
.hr-cta__addr {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--txt-on-dark, #DFE6EC);
  font-size: 14px;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hr-js [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .hr-sector__media img,
  a.hr-sector:hover .hr-sector__media img,
  .hr-fcard,
  .hr-fcard:hover { transform: none; transition: none; }
}
