/* Partner banner: teslarios.com — vídeo clickeable */

.home__teslarios-promo-mount:not([hidden]) {
  margin: var(--space-lg) 0 var(--space-xl);
}

.home__teslarios-promo-mount--carousel .hub-carousel {
  box-shadow:
    0 0 0 1px rgba(232, 33, 39, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.18);
}

.home__teslarios-promo-mount--carousel .teslarios-promo {
  animation: none;
}

.home__teslarios-promo-mount--carousel .hub-carousel__nav {
  background: rgba(0, 0, 0, 0.52);
}

.teslarios-promo {
  --teslarios-red: #e82127;
  --teslarios-bg: #0b0b0c;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 33, 39, 0.42);
  background: var(--teslarios-bg);
  cursor: pointer;
  min-height: clamp(300px, 48vw, 430px);
  box-shadow:
    0 0 0 1px rgba(232, 33, 39, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: teslarios-border-pulse 3.2s ease-in-out infinite;
}

.teslarios-promo:hover,
.teslarios-promo:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(232, 33, 39, 0.72);
  box-shadow:
    0 0 0 1px rgba(232, 33, 39, 0.22),
    0 18px 48px rgba(0, 0, 0, 0.28),
    0 0 32px rgba(232, 33, 39, 0.12);
}

.teslarios-promo:focus-visible {
  outline: 2px solid var(--teslarios-red);
  outline-offset: 3px;
}

.teslarios-promo__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.teslarios-promo__video,
.banner-media__poster.teslarios-promo__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-media__video--hidden {
  display: none !important;
}

.banner-media__poster--hidden {
  display: none !important;
}

@keyframes teslarios-border-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(232, 33, 39, 0.08), 0 12px 40px rgba(0, 0, 0, 0.22); }
  50% { box-shadow: 0 0 0 1px rgba(232, 33, 39, 0.18), 0 12px 40px rgba(0, 0, 0, 0.22), 0 0 24px rgba(232, 33, 39, 0.08); }
}

@media (max-width: 640px) {
  .teslarios-promo__video {
    object-position: center 40%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teslarios-promo {
    animation: none;
  }
}

[data-theme="light"] .teslarios-promo {
  --teslarios-bg: #111113;
}
