/* ============================================
   CILINDROS HIDRÁULICOS — HERO SLIDER
   ============================================ */

.ch-hero {
  position: relative;
  height: calc(100vh - var(--header-h) - var(--topbar-h));
  min-height: 580px; max-height: 820px;
  overflow: hidden;
  background: var(--color-blue-deep);
}
.ch-hero__slides { position: absolute; inset: 0; }
.ch-hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
  pointer-events: none;
  transform: scale(1.05);
}
.ch-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  animation: ch-kenburns 8s linear forwards;
}
@keyframes ch-kenburns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}
.ch-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(14,31,63,.92) 0%, rgba(14,31,63,.65) 45%, rgba(14,31,63,.35) 100%),
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5) 100%);
}
.ch-hero__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  color: white;
  max-width: 820px;
}
.ch-hero__slide.is-active .ch-hero__eyebrow,
.ch-hero__slide.is-active .ch-hero__title,
.ch-hero__slide.is-active .ch-hero__lead,
.ch-hero__slide.is-active .ch-hero__actions {
  animation: ch-fade-up .9s cubic-bezier(.2,.7,.2,1) backwards;
}
.ch-hero__slide.is-active .ch-hero__eyebrow { animation-delay: .15s; }
.ch-hero__slide.is-active .ch-hero__title   { animation-delay: .3s; }
.ch-hero__slide.is-active .ch-hero__lead    { animation-delay: .5s; }
.ch-hero__slide.is-active .ch-hero__actions { animation-delay: .7s; }
@keyframes ch-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ch-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: white; text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.ch-hero__line {
  display: inline-block; width: 56px; height: 2px;
  background: var(--color-orange);
}
.ch-hero__eyebrow--dot {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 8px 16px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
}
.ch-hero__eyebrow--dot::before {
  content: '';
  display: inline-block; width: 8px; height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.ch-hero__title {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 24px;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0,0,0,.45);
}
.ch-hero__highlight { color: var(--color-orange); }
.ch-hero__lead {
  font-size: clamp(16px, 1.4vw, 20px);
  color: rgba(255,255,255,.92);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.ch-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Progress bars (no puntos genéricos) */
.ch-hero__nav {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 16px;
  z-index: 5;
  padding: 0 24px;
}
.ch-hero__bar {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer;
  padding: 12px 0;
  color: rgba(255,255,255,.6);
  font-family: inherit;
  transition: color .25s ease;
}
.ch-hero__bar::before {
  content: '';
  display: block;
  width: 64px; height: 2px;
  background: rgba(255,255,255,.3);
  transition: background .25s;
}
.ch-hero__bar-fill {
  position: absolute; left: 0; top: 50%;
  width: 0; height: 2px;
  background: var(--color-orange);
  transition: width .25s;
}
.ch-hero__bar.is-active { color: white; }
.ch-hero__bar.is-active .ch-hero__bar-fill { animation: ch-progress 7s linear forwards; }
@keyframes ch-progress {
  from { width: 0; }
  to   { width: 64px; }
}
.ch-hero__bar-num { font-size: 12px; font-weight: 700; letter-spacing: .12em; }

/* Arrows */
.ch-hero__arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.3);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s ease;
  z-index: 5;
  backdrop-filter: blur(8px);
  border-radius: 50%;
}
.ch-hero__arrow:hover { background: var(--color-orange); border-color: var(--color-orange); transform: translateY(-50%) scale(1.05); }
.ch-hero__arrow--prev { left: 24px; }
.ch-hero__arrow--next { right: 24px; }

@media (max-width: 768px) {
  .ch-hero { height: auto; min-height: 520px; padding: 80px 0; }
  .ch-hero__nav { bottom: 16px; gap: 10px; }
  .ch-hero__bar::before, .ch-hero__bar.is-active .ch-hero__bar-fill { width: 36px; }
  @keyframes ch-progress { to { width: 36px; } }
  .ch-hero__arrow { width: 42px; height: 42px; }
  .ch-hero__arrow--prev { left: 12px; }
  .ch-hero__arrow--next { right: 12px; }
}
