/* Hero extraído de home.css (mismo código que la plantilla). */
:root {
  --ink: var(--mhs-ink);
  --ivory: var(--mhs-ivory);
  --yellow: var(--mhs-yellow);
  --display: var(--mhs-display);
  --sans: var(--mhs-sans);
  --mono: var(--mhs-mono);
  --ease: var(--mhs-ease);
  --container: var(--mhs-container);
}
.hero { position: relative; min-height: min(920px, 100svh); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 76% 44%, rgba(26,45,75,.48), transparent 38%), linear-gradient(90deg, rgba(8,11,18,.98) 0%, rgba(8,11,18,.9) 36%, rgba(18,33,58,.7) 68%, rgba(8,11,18,.84) 100%), var(--hero-slide-image, url('../source/img/hero-industrial.webp')) 68% center / cover no-repeat; background-blend-mode: screen, normal, luminosity; filter: brightness(.72) saturate(.82); }
.hero::after { content: ''; position: absolute; inset: auto 0 0; z-index: -1; height: 32%; background: linear-gradient(0deg, var(--ink), transparent); pointer-events: none; }
.hero.is-distribution::before { background: radial-gradient(circle at 76% 44%, rgba(26,45,75,.5), transparent 38%), linear-gradient(90deg, rgba(8,11,18,.98) 0%, rgba(8,11,18,.9) 36%, rgba(18,33,58,.7) 68%, rgba(8,11,18,.84) 100%), var(--hero-slide-image) 68% center / cover no-repeat; background-blend-mode: screen, normal, luminosity; filter: brightness(.62) saturate(.78) contrast(1.06); }
.hero.is-distribution .hero-stage { background: radial-gradient(ellipse at 50% 48%, rgba(26,45,75,.26), transparent 64%); }
.hero.is-distribution .hero-machine,
    .hero.is-support .hero-machine,
    .hero:not(.is-distribution):not(.is-support) .hero-machine { left: 74px; top: -20px; width: min(100%, 330px); height: 330px; max-height: 330px; object-fit: contain; object-position: center; }
.hero.is-support::before { background: radial-gradient(circle at 76% 44%, rgba(26,45,75,.3), transparent 42%), linear-gradient(90deg, rgba(8,11,18,1) 0%, rgba(8,11,18,.97) 30%, rgba(8,11,18,.82) 56%, rgba(8,11,18,.66) 80%, rgba(8,11,18,.78) 100%), url('../source/img/hero-stock-racks.webp?v=2') center / cover no-repeat; background-color: var(--ink); background-blend-mode: normal, normal, luminosity; filter: brightness(.72) saturate(.82) contrast(1.02); }
.hero-shell { flex: 1; display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr); align-items: center; gap: clamp(28px, 5vw, 64px); padding-top: 52px; padding-bottom: 24px; }
.hero-copy { position: relative; z-index: 2; max-width: 650px; transform: translateY(-52px); }
.kicker, .section-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--yellow); font: 500 11px/1.2 var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.kicker::before, .section-kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.hero h1 { max-width: 700px; margin: 20px 0 20px; color: var(--ivory); font: 400 clamp(48px, 5.2vw, 78px)/.93 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.hero-title-line { display: block; white-space: nowrap; }
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-lead { max-width: 500px; margin: 0; min-height: 86px; color: #c0c7d0; font-size: 17px; line-height: 1.7; text-wrap: balance; }
.hero-stage { position: relative; min-height: 360px; display: grid; place-items: center; overflow: visible; background: radial-gradient(ellipse at 50% 48%, rgba(26,45,75,.42), transparent 48%); }
.hero-stage::before { content: none; }
.hero-stage::after { content: none; }
.hero-machine { position: relative; z-index: 2; width: min(100%, 410px); height: 410px; max-height: 410px; object-fit: contain; filter: drop-shadow(0 26px 28px rgba(0,0,0,.6)); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.hero-machine.is-changing { opacity: 0; transform: none; }
.hero-bottom { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 18px; transform: translate(0, -120px); }
.hero-stats { display: flex; align-items: stretch; width: 100%; max-width: 680px; height: 84px; }
.hero-stat { position: relative; min-width: 0; min-height: 84px; height: 84px; display: flex; flex: 1; flex-direction: column; justify-content: flex-start; padding: 14px 24px 8px; border-right: 1px solid rgba(243,179,1,.34); overflow: hidden; text-align: center; }
.hero-stat::after { content: ''; position: absolute; right: 20px; bottom: 0; left: 0; height: 1px; background: rgba(243,179,1,.22); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.hero-stat:hover::after { transform: scaleX(1); }
.hero-stat::before { content: none; }
.hero-stat + .hero-stat { padding-left: 24px; }
.hero-stat:last-child { border-right: 0; }
.hero-stat strong { display: block; flex: 0 0 auto; margin-top: 5px; color: var(--yellow); font: 400 clamp(22px, 2.4vw, 30px)/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; will-change: transform, opacity; }
.hero-stat strong.is-updating { opacity: 0; transform: translateY(12px); }
.hero-stat span { display: block; margin-top: 7px; color: rgba(243,240,232,.76); font: 500 9px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.hero-tabs { display: none; }
.hero-controls { position: absolute; right: 3%; top: 7px; z-index: 4; display: flex; flex-direction: row; align-items: center; gap: 10px; color: var(--yellow); font: 500 11px/1.2 var(--mono); letter-spacing: .17em; }
.hero-control { padding: 2px 4px; border: 0; background: transparent; color: var(--yellow); font: 19px/1 var(--sans); cursor: pointer; }
.hero-control:hover { color: var(--yellow); }
.hero-tab { width: 9px; height: 9px; min-width: 9px; min-height: 9px; padding: 0; border: 1px solid rgba(243,240,232,.48); border-radius: 50%; background: transparent; color: transparent; font-size: 0; transition: background .22s var(--ease), border-color .22s var(--ease); }
.hero-tab:hover, .hero-tab[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); transform: none; }
.hero-machine, .hero-tab, .process-step { transition-timing-function: var(--ease); }
@media (max-width: 940px) {
  .hero-shell { grid-template-columns: 1fr; gap: 20px; padding-top: 128px; }
  .hero-copy { max-width: 720px; }
  .hero-stage { min-height: 370px; }
  .hero-controls { top: auto; right: 50%; bottom: -4px; flex-direction: row; transform: translateX(50%); }
  .hero-machine,
      .hero.is-distribution .hero-machine,
      .hero.is-support .hero-machine { width: min(86%, 410px); height: 390px; max-height: 390px; left: 0; top: 0; }
}
@media (min-width: 941px) and (max-height: 820px) {
  .hero-shell { padding-top: 92px; padding-bottom: 12px; }
  .hero-stage { min-height: 360px; }
  .hero-machine { max-height: 370px; }
  .hero-copy { transform: translateY(-44px); }
  .hero-bottom { padding-bottom: 10px; transform: translate(0, -92px); }
}
@media (max-width: 700px) {
  .hero-shell, .hero-copy, .hero-stage { min-width: 0; }
  .hero h1, .hero-lead { max-width: 100%; overflow-wrap: anywhere; }
  .hero { min-height: auto; }
  .hero-shell { padding-bottom: 28px; }
  .hero-copy { transform: translateY(-28px); }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-title-line { white-space: normal; }
  .hero-lead { font-size: 16px; }
  .hero-stage { min-height: 315px; }
  .hero-controls { bottom: -2px; }
  .hero-machine,
      .hero.is-distribution .hero-machine,
      .hero.is-support .hero-machine { width: min(86%, 340px); height: 340px; max-height: 340px; left: 0; top: 0; }
  .hero-stage::before { right: 0; left: 0; }
  .hero-bottom { grid-template-columns: 1fr; gap: 18px; transform: translateY(-50px); }
  .hero-tabs { justify-content: flex-start; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, auto); }
  .hero-stat strong { font-size: clamp(16px, 4.3vw, 23px); letter-spacing: -.04em; }
  .hero-stat span { margin-top: 8px; font-size: 8px; letter-spacing: .08em; }
  .hero-stat + .hero-stat { padding-left: 12px; }
  .hero-stat { min-height: 78px; padding: 10px 12px 8px; }
  .hero-stat::after { right: 12px; }
}
.kicker, .section-kicker { gap: 8px; }
.kicker::before, .section-kicker::before { width: 5px; height: 5px; flex: 0 0 5px; background: currentColor; transform: rotate(45deg); }
.hero-bottom { grid-template-columns: 1fr; }
.hero-scroll-cue { position: absolute; z-index: 5; right: max(18px, calc((100% - var(--container)) / 2)); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--yellow); transform: translateY(-50%); pointer-events: none; }
.hero-scroll-cue span { writing-mode: vertical-rl; font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; }
.hero-scroll-cue i { position: relative; display: block; width: 1px; height: 46px; background: linear-gradient(180deg, transparent, var(--yellow)); overflow: hidden; }
.hero-scroll-cue i::after { content: ''; position: absolute; top: -18px; left: -2px; width: 5px; height: 18px; border-radius: 99px; background: var(--yellow); box-shadow: 0 0 10px rgba(243,179,1,.8); animation: scrollCue 2.2s ease-in-out infinite; }
@media (max-width: 700px) {
  .hero-scroll-cue { right: 12px; }
  .hero-scroll-cue span { font-size: 9px; }
}
.hero-machine { top: 32px; }
.hero.is-distribution .hero-machine, .hero.is-support .hero-machine, .hero:not(.is-distribution):not(.is-support) .hero-machine { top: 32px; }
@media (max-width: 979px) {
  .hero-machine, .hero.is-distribution .hero-machine, .hero.is-support .hero-machine { top: 24px; }
}
@media (max-width: 700px) {
  .hero-machine, .hero.is-distribution .hero-machine, .hero.is-support .hero-machine { top: 18px; }
}
/* v57 — hero surfaces: deeper, directional gradients for the machine fiches */
    .hero { background: #03060b; }
.hero::before { background: radial-gradient(circle at 78% 34%, rgba(42,91,139,.62), transparent 34%), radial-gradient(circle at 18% 88%, rgba(243,179,1,.16), transparent 28%), linear-gradient(116deg, #03050a 0%, #081321 38%, #143252 71%, #04070d 100%), var(--hero-slide-image, url('../source/img/hero-industrial.webp')) 68% center / cover no-repeat; background-blend-mode: screen, screen, normal, luminosity; filter: brightness(.58) saturate(.92) contrast(1.12); }
.hero::after { height: 42%; background: linear-gradient(0deg, rgba(3,6,11,.98) 0%, rgba(3,6,11,.72) 34%, transparent 100%); }
.hero.is-distribution::before { background: radial-gradient(circle at 80% 30%, rgba(43,111,161,.72), transparent 35%), radial-gradient(circle at 18% 78%, rgba(243,179,1,.13), transparent 25%), linear-gradient(122deg, #03060b 0%, #091a2d 40%, #1c4c6f 76%, #050910 100%), var(--hero-slide-image) 68% center / cover no-repeat; background-blend-mode: screen, screen, normal, luminosity; filter: brightness(.54) saturate(.95) contrast(1.14); }
.hero.is-support::before { background: radial-gradient(circle at 82% 24%, rgba(31,76,125,.62), transparent 32%), radial-gradient(circle at 22% 86%, rgba(243,179,1,.17), transparent 27%), linear-gradient(120deg, #02050a 0%, #071321 38%, #122c4b 72%, #03060c 100%), url('../source/img/hero-stock-racks.webp?v=2') center / cover no-repeat; background-blend-mode: screen, screen, normal, luminosity; filter: brightness(.5) saturate(.94) contrast(1.14); }
.hero-stage { background: radial-gradient(ellipse at 54% 42%, rgba(38,87,132,.42), transparent 42%), linear-gradient(145deg, rgba(3,6,11,.05), rgba(8,20,35,.62)); }
.hero.is-distribution .hero-stage { background: radial-gradient(ellipse at 54% 42%, rgba(35,108,157,.48), transparent 44%), linear-gradient(145deg, rgba(3,6,11,.08), rgba(10,38,61,.64)); }
.hero.is-support .hero-stage { background: radial-gradient(ellipse at 54% 42%, rgba(30,75,125,.46), transparent 44%), linear-gradient(145deg, rgba(3,6,11,.08), rgba(8,26,46,.68)); }
.hero-machine { filter: drop-shadow(0 30px 34px rgba(0,0,0,.78)) drop-shadow(0 0 24px rgba(27,79,126,.16)); }
.hero-stats { padding: 1px; border: 1px solid rgba(243,179,1,.32); background: linear-gradient(112deg, rgba(3,6,11,.96), rgba(9,24,42,.94) 56%, rgba(18,49,78,.78)); box-shadow: 0 22px 48px rgba(0,0,0,.28); }
.hero-stat { background: linear-gradient(145deg, rgba(5,10,18,.66), rgba(15,40,65,.52)); }
/* hero-background-blur — restaurado: cada slide su foto con el degradado acordado */
    .hero::before { background: radial-gradient(circle at 76% 44%, rgba(42,91,139,.34), transparent 38%), linear-gradient(90deg, rgba(3,6,11,.94) 0%, rgba(3,6,11,.76) 38%, rgba(3,6,11,.38) 72%, rgba(3,6,11,.62) 100%), var(--hero-slide-image, url('../source/img/hero-industrial.webp')) 68% center / cover no-repeat; background-blend-mode: screen, normal, normal; transform: scale(1.06); filter: blur(13px) brightness(.58) saturate(.78) contrast(1.06); }
.hero.is-distribution::before { background: radial-gradient(circle at 76% 44%, rgba(43,111,161,.42), transparent 38%), linear-gradient(90deg, rgba(3,6,11,.92) 0%, rgba(3,6,11,.68) 38%, rgba(3,6,11,.32) 72%, rgba(3,6,11,.58) 100%), var(--hero-slide-image, url('../source/img/hero-distribution-crop.webp?v=3')) 68% center / cover no-repeat; background-blend-mode: screen, normal, normal; transform: scale(1.06); filter: blur(13px) brightness(.52) saturate(.86) contrast(1.08); }
.hero.is-support::before { background: radial-gradient(circle at 76% 44%, rgba(31,76,125,.36), transparent 42%), linear-gradient(90deg, rgba(3,6,11,.94) 0%, rgba(3,6,11,.72) 38%, rgba(3,6,11,.34) 72%, rgba(3,6,11,.62) 100%), url('../source/img/hero-stock-racks.webp?v=2') center / cover no-repeat; background-blend-mode: screen, normal, normal; transform: scale(1.06); filter: blur(13px) brightness(.58) saturate(.82) contrast(1.04); }
/* v55-hero-reference-gradient — degrade definitivo de la v56 (anula el blur anterior) */
    .hero::before { background: radial-gradient(circle at 76% 44%, rgba(26,45,75,.48), transparent 38%), linear-gradient(90deg, rgba(8,11,18,.98) 0%, rgba(8,11,18,.9) 36%, rgba(18,33,58,.7) 68%, rgba(8,11,18,.84) 100%), var(--hero-slide-image, url('../source/img/hero-industrial.webp')) 68% center / cover no-repeat; background-blend-mode: screen, normal, luminosity; transform: none; filter: brightness(.72) saturate(.82); }
.hero::after { height: 32%; background: linear-gradient(0deg, var(--ink), transparent); }
.hero.is-distribution::before { background: radial-gradient(circle at 76% 44%, rgba(26,45,75,.5), transparent 38%), linear-gradient(90deg, rgba(8,11,18,.98) 0%, rgba(8,11,18,.9) 36%, rgba(18,33,58,.7) 68%, rgba(8,11,18,.84) 100%), var(--hero-slide-image, url('../source/img/hero-distribution-crop.webp?v=3')) 68% center / cover no-repeat; background-blend-mode: screen, normal, luminosity; transform: none; filter: brightness(.62) saturate(.78) contrast(1.06); }
.hero.is-support::before { background: radial-gradient(circle at 76% 44%, rgba(26,45,75,.3), transparent 42%), linear-gradient(90deg, rgba(8,11,18,1) 0%, rgba(8,11,18,.97) 30%, rgba(8,11,18,.82) 56%, rgba(8,11,18,.66) 80%, rgba(8,11,18,.78) 100%), url('../source/img/hero-stock-racks.webp?v=2') center / cover no-repeat; background-color: var(--ink); background-blend-mode: normal, normal, luminosity; transform: none; filter: brightness(.72) saturate(.82) contrast(1.02); }
/* hero-stats — tarjetas sin fondo, sutiles */
    .hero-stats { counter-reset: heroStat; display: grid; grid-template-columns: repeat(3, auto); align-items: stretch; justify-self: start; width: max-content; max-width: 100%; height: auto; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
.hero-stat { position: relative; counter-increment: heroStat; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px; min-height: 84px; height: auto; padding: 18px 20px 14px; border: 0; border-left: 1px solid rgba(243,240,232,.16); background: none; text-align: center; overflow: hidden; }
.hero-stat:first-child { border-left: 0; padding-left: 0; }
.hero-stat::after { content: ''; position: absolute; right: 20px; bottom: 0; left: 20px; height: 1px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.hero-stat:first-child::after { left: 0; }
.hero-stat strong { display: block; margin: 0; color: var(--yellow); font: 400 clamp(27px, 2.7vw, 35px)/1 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stat span { display: block; margin: 0; color: rgba(243,240,232,.6); font: 500 9.5px/1.25 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.hero-stat:hover::after { transform: scaleX(1); }
@media (max-width: 640px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { min-height: 0; padding: 14px 0; border-left: 0; border-top: 1px solid rgba(243,240,232,.12); }
  .hero-stat:first-child { border-top: 0; }
  .hero-stat::after { right: 0; left: 0; }
  .hero-stat strong { font-size: 30px; }
}

/* Compensación: header sticky del catálogo ocupa ~77px (la plantilla usa header fijo). */
.hero { padding: 0; align-items: normal; border-bottom: 0; }

/* Variante foto (páginas con imagen de aplicación en lugar de máquina recortada). */
@media (max-width: 640px) {
  }

/* Variante panel: máquinas sin recorte, mostradas sobre una placa clara. */


/* Sin "ventana" detrás de la máquina: el degradado del hero es uniforme en todos los slides */
.hero-stage,
.hero.is-distribution .hero-stage,
.hero.is-support .hero-stage { background: none; }
