/* Carruseles de fotos/vídeos (home "Ellos ya lo están viviendo." y /eventos)
   y su lightbox. Compartido por las páginas de marketing. */

.car-eventos {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.car-eventos::-webkit-scrollbar {
  display: none;
}
.car-eventos img {
  cursor: pointer;
}

.car-flecha {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.car-flecha:hover {
  opacity: 1;
}

.car-item video {
  cursor: pointer;
}
.car-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s;
}
.car-play svg {
  margin-left: 3px;
}
.car-item.is-playing .car-play {
  opacity: 0;
}

.car-credito {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  /* Subrayado grueso tipo rotulador: la franja amarilla cubre el tercio
     inferior del texto; al pasar el ratón se rellena entera. */
  background-image: linear-gradient(transparent 62%, #ffe713 62%);
  background-color: transparent;
  padding: 0 4px;
  transition: background-color 0.3s;
}
.car-credito:hover {
  background-color: #ffe713;
}

/* ─── Lightbox ─── */
/* Es un <dialog> abierto con showModal(): vive en la top layer del navegador,
   por encima de cualquier capa compuesta (los vídeos acelerados por GPU
   incluidos, que en algunos Chrome se pintaban sobre un overlay normal). */
.car-lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  z-index: 99999;
  background: rgba(17, 17, 17, 0.96);
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
}
dialog.car-lb[open] {
  display: block;
}
.car-lb::backdrop {
  background: transparent;
}
.car-lb.visible {
  opacity: 1;
}
.car-lb-escenario {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 84px 72px;
}
.car-lb-media {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius--small, 12px);
  display: block;
}
.car-lb-cerrar {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}
.car-lb-prev {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.car-lb-next {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.car-lb-pie {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  z-index: 2;
}
.car-lb-contador {
  opacity: 0.5;
}
.car-lb-credito a {
  color: #ffe713; /* sobre el fondo oscuro del lightbox, el nombre va en amarillo */
  text-decoration: none;
}
.car-lb-credito a:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .car-flecha[data-dir] {
    display: none; /* en móvil las tiras se mueven deslizando */
  }
  .car-lb-escenario {
    padding: 56px 12px 64px;
  }
  .car-lb-prev,
  .car-lb-next {
    display: none; /* en móvil se navega con swipe */
  }
}
