/* ==========================================================================
   Portada: titular, llamados a la acción y cinta de película animada.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(calc(100vh - var(--header-h)),880px);
  display: flex;
  align-items: center;
}

.hero .wrap {
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: min(640px,52%);
  padding-block: clamp(48px,9vh,110px);
}

.hero h1 {
  font-size: clamp(2.9rem,6.3vw,6rem);
  font-weight: 850;
  font-stretch: 115%;
  line-height: .94;
  letter-spacing: -.03em;
}

.hero .lead {
  margin-top: 1.75rem;
  font-size: clamp(1.1rem,1.5vw,1.3rem);
  color: var(--muted);
  max-width: 34ch;
}

.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem 2rem;
}

/* Portada siempre blanca (en modo claro y oscuro); la cinta conserva sus colores */
.hero {
  background: #FFFFFF;
}

.hero-copy {
  --ink: #000000;
  --bg: #FFFFFF;
  --muted: #44585C;
  --teal: #019EB5;
  --teal-ink: #006A7A;
  color: #000000;
}

.hero-copy .btn {
  clip-path: none;
  color: #FFFFFF;
  background: linear-gradient(225deg,#019EB5 0 15px,#000000 15px);
}

.hero-copy .btn:hover {
  color: #000000;
  background: linear-gradient(225deg,#000000 0 15px,#019EB5 15px);
}

.hero-copy .btn:focus-visible {
  outline: 3px solid #019EB5;
  outline-offset: 3px;
}

.hero-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 54%;
  overflow: hidden;
  z-index: 1;
}

.strip {
  position: absolute;
  left: 73%;
  top: 50%;
  width: 3000px;
  height: 220px;
  background: var(--teal);
  transform: translate(-50%,-50%) rotate(-48deg);
}

.track {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  width: max-content;
  animation: roll 70s linear infinite;
}

.track::before, .track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 13px;
  background: repeating-linear-gradient(90deg,var(--bg) 0 17px,transparent 17px 38px);
}

.track::before {
  top: 15px;
}

.track::after {
  bottom: 15px;
}

.frame {
  flex: none;
  width: 236px;
  height: 128px;
  margin-right: 22px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 14px;
  font-weight: 750;
  font-stretch: 72%;
  font-size: 1.55rem;
  line-height: 1.05;
  color: #FFFFFF;
}

.frame.f-dark {
  background: var(--frame-dark);
  position: relative;
}

.frame.f-dark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 40px;
  background: #fff;
  transform: translate(-40%,-50%);
  clip-path: polygon(0 0,100% 50%,0 100%);
}

@keyframes roll {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width:860px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-copy {
    max-width: none;
    padding-block: 40px 32px;
  }
  .hero-stage {
    position: relative;
    width: auto;
    height: 300px;
  }
  .strip {
    left: 50%;
    height: 180px;
  }
  .frame {
    width: 190px;
    height: 100px;
    font-size: 1.25rem;
    margin-right: 18px;
  }
  .track::before {
    top: 12px;
  }
  .track::after {
    bottom: 12px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .track {
    animation: none;
    transform: translateX(-30%);
  }
}
