.laive-grid-hn {
  width: 100%;
}

.laive-grid-hn--empty {
  padding: 32px;
  text-align: center;
  background: #f4f6f8;
  color: #5c6670;
  border-radius: 12px;
}

.laive-grid-hn__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.laive-grid-hn__filter {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.laive-grid-hn__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.laive-grid-hn__item {
  margin: 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.laive-grid-hn__item.is-hidden,
.laive-grid-hn__item.is-page-hidden {
  display: none;
}

.laive-grid-hn[data-items-anim="yes"] .laive-grid-hn__item.texto-zoom-in .laive-grid-hn__card {
  transform-origin: center center;
  will-change: transform, opacity;
}

.laive-grid-hn[data-items-anim="yes"] .laive-grid-hn__item.texto-zoom-in.laive-grid-hn__item--anim-wait .laive-grid-hn__card {
  opacity: 0;
  transform: scale(var(--laive-hn-anim-scale-min, 0.78));
  transition: none;
}

.laive-grid-hn[data-items-anim="yes"] .laive-grid-hn__item.texto-zoom-in.laive-grid-hn__item--anim-visible .laive-grid-hn__card {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.elementor-editor-active .laive-grid-hn[data-items-anim="yes"] .laive-grid-hn__item.texto-zoom-in .laive-grid-hn__card {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .laive-grid-hn[data-items-anim="yes"] .laive-grid-hn__item.texto-zoom-in .laive-grid-hn__card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.laive-grid-hn__card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 280px;
  padding: 0;
  margin: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: transparent;
  background-color: transparent;
  color: inherit;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  box-shadow: none;
}

.laive-grid-hn__card:hover,
.laive-grid-hn__card:focus,
.laive-grid-hn__card:focus-visible,
.laive-grid-hn__card:active {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: inherit;
}

.laive-grid-hn__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.laive-grid-hn__cover--placeholder {
  display: block;
  background: #2a3138;
}

.laive-grid-hn__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
}

.laive-grid-hn__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.laive-grid-hn__icon--video {
  background-image: url("data:image/svg+xml,<svg width='72' height='72' viewBox='0 0 72 72' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='36' cy='36' r='34' stroke='white' stroke-width='2'/><path d='M30 24L50 36L30 48V24Z' fill='white'/></svg>");
}

.laive-grid-hn__icon--imagen {
  background-image: url("data:image/svg+xml,<svg width='72' height='72' viewBox='0 0 72 72' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='36' cy='36' r='34' stroke='white' stroke-width='2'/><rect x='22' y='26' width='28' height='20' rx='2' stroke='white' stroke-width='2'/><circle cx='29' cy='33' r='3' fill='white'/><path d='M24 42L32 34L40 40L48 32V44H24V42Z' fill='white'/></svg>");
}

.laive-grid-hn__icon--archivo {
  background-image: url("data:image/svg+xml,<svg width='72' height='72' viewBox='0 0 72 72' fill='none' xmlns='http://www.w3.org/2000/svg'><circle cx='36' cy='36' r='34' stroke='white' stroke-width='2'/><path d='M36 22V46M36 46L28 38M36 46L44 38' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M24 50H48' stroke='white' stroke-width='2.5' stroke-linecap='round'/></svg>");
}

.laive-grid-hn__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  line-height: 1;
}

.laive-grid-hn__label {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.laive-grid-hn--hover-zoom {
  --laive-hn-item-scale: 1.06;
  --laive-hn-cover-scale: 1.1;
  --laive-hn-item-duration: 0.28s;
  --laive-hn-cover-duration: 0.55s;
  overflow: visible;
}

.laive-grid-hn--hover-zoom .laive-grid-hn__grid {
  overflow: visible;
}

.laive-grid-hn--hover-zoom .laive-grid-hn__item {
  overflow: visible;
  content-visibility: visible;
  contain-intrinsic-size: none;
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--laive-hn-item-duration, 0.28s) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.laive-grid-hn--hover-zoom .laive-grid-hn__item:hover,
.laive-grid-hn--hover-zoom .laive-grid-hn__item:focus-within {
  transform: scale(var(--laive-hn-item-scale, 1.06));
  z-index: 2;
  position: relative;
}

.laive-grid-hn--hover-zoom .laive-grid-hn__card {
  overflow: hidden;
}

.laive-grid-hn--hover-zoom .laive-grid-hn__cover {
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--laive-hn-cover-duration) cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.05s;
  will-change: transform;
}

.laive-grid-hn--hover-zoom .laive-grid-hn__item:hover .laive-grid-hn__cover,
.laive-grid-hn--hover-zoom .laive-grid-hn__item:focus-within .laive-grid-hn__cover {
  transform: scale(var(--laive-hn-cover-scale));
}

.laive-grid-hn__load-more-wrap {
  display: flex;
  justify-content: center;
}

.laive-grid-hn__load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 0;
  cursor: pointer;
  line-height: 1.2;
}

.laive-grid-hn__load-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
  color: inherit;
}

.laive-grid-hn__load-more-text {
  display: inline-block;
}

.laive-grid-hn__load-more[hidden] {
  display: none;
}

@media (max-width: 767px) {
  .laive-grid-hn__filters {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
    row-gap: 10px;
  }

  .laive-grid-hn__filter {
    flex: 0 1 auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .laive-grid-hn__filter,
  .laive-grid-hn__load-more {
    transition: none;
  }

  .laive-grid-hn--hover-zoom .laive-grid-hn__item,
  .laive-grid-hn--hover-zoom .laive-grid-hn__cover {
    transition: none;
  }

  .laive-grid-hn--hover-zoom .laive-grid-hn__item:hover,
  .laive-grid-hn--hover-zoom .laive-grid-hn__item:focus-within,
  .laive-grid-hn--hover-zoom .laive-grid-hn__item:hover .laive-grid-hn__cover,
  .laive-grid-hn--hover-zoom .laive-grid-hn__item:focus-within .laive-grid-hn__cover {
    transform: none;
  }
}

.laive-grid-hn-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.laive-grid-hn-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.laive-grid-hn-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 31, 36, 0.88);
}

.laive-grid-hn-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.laive-grid-hn-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #6b7280;
  cursor: pointer;
  transition: background 0.2s ease;
}

.laive-grid-hn-lightbox__close:hover,
.laive-grid-hn-lightbox__close:focus-visible {
  background: #4b5563;
}

.laive-grid-hn-lightbox__close::before,
.laive-grid-hn-lightbox__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.laive-grid-hn-lightbox__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.laive-grid-hn-lightbox__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.laive-grid-hn-lightbox__player.laive-nh-video {
  width: 100%;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.laive-grid-hn-lightbox__player .laive-nh-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.laive-grid-hn-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: #000000;
}

body.laive-grid-hn-lightbox-open {
  overflow: hidden;
}
