/* ===================================
   CATEGORY SLIDER
   =================================== */
.articles-sliders-articles {
  position: relative;
  overflow: hidden;
}
.slider-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  will-change: transform;
  transition: transform 0.5s ease;
}
.articles-sliders-article {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 2px;
  box-sizing: border-box;
}

/* ===================================
   LOADERS & PAGINATION
   =================================== */
.btn-more.is-loading { opacity: .75; pointer-events: none; }
.btn-more .fi-rr-loading { display: inline-block; animation: spin 1s linear infinite; margin-left: 6px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Paginación con estilo de botones */
.all-articles-more { display: flex; justify-content: center; margin-top: 16px; }
.all-articles-more .nav-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.all-articles-more .page-numbers {
  border: 3px solid var(--color-principal);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--color-principal);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease-in-out;
  background: transparent;
}
.all-articles-more .page-numbers:hover,
.all-articles-more .page-numbers:active {
  color: var(--color-novedad);
  border-color: var(--color-novedad);
}
.all-articles-more .page-numbers.current {
  background: var(--color-principal);
  color: #fff;
  border-color: var(--color-principal);
}
.all-articles-more .page-numbers.prev,
.all-articles-more .page-numbers.next {
  padding-inline: 14px;
}
.all-articles-more .page-numbers.dots {
  border: 0;
  padding: 0 4px;
}

/* ===================================
   SUPERZOO TV GRID
   =================================== */
.tv-grid,
.video-grid {
  display: grid;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.short-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


.supertv-title {
  font-weight: 800;
  font-size: 40px;
  margin-bottom: 32px;
}
.tv-zoo-title {
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 32px;
  margin-top: 48px;
}

/* ===================================
   VIDEO CARDS & MODAL
   =================================== */
.video-card {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
} 
.video-card-title {
  font-size: 18px;
  margin: 0;
  padding: 0 8px;
  font-weight: 600;
}
.video-card-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #0b0b0b;
  position: relative;
}
.video-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card-thumb::before {
  content: "";
  width: 40px;
  height: 40px;
  background-image: url('../assets/play.png');
  background-size: contain;
  position: absolute;
  left: 16px;
  bottom: 16px;
}


.short-ratio {
  aspect-ratio: 9 / 16;
}
.wide-ratio {
  aspect-ratio: 16 / 9;
}
.video-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.45) 100%);
  opacity: 0;
  transition: opacity .2s ease-in-out;
}
.video-card:hover .video-card-play,
.video-card:focus-visible .video-card-play {
  opacity: 1;
}

.video-card-thumb__placeholder {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.video-card-meta {
  font-size: .875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-principal);
}
.video-grid-empty {
  font-weight: 600;
  text-align: center;
  margin-top: 24px;
}
.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.video-modal.is-open {
  display: flex;
}
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
}
.video-modal__dialog {
  position: relative;
  background: transparent;
  border-radius: 24px;
  padding: 48px;
  width: min(960px, calc(100% - 32px)); 
  z-index: 1;
}
.video-modal__body {
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.video-modal__body iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-modal__title {
  margin-top: 16px;
  color: #fff;
}

.video-modal__close {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 0px;
  right: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: 1px solid white;
  border-radius: 50%;  
}

.video-modal__close > .fi {
  font-size: 12px;
}

/* ===================================
   RESPONSIVE GRID HELPERS
   =================================== */
@media (max-width: 1280px) {
  .short-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ===================================
   EVENT CARDS & MODAL
   =================================== */

form label {
  font-weight: 500; 
}

.pets-card.event {
  cursor: pointer; 
} 

body.modal-open { overflow: hidden; }

.event-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 999;
}
.event-modal.is-open { display: flex; }
.event-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}
.event-modal__dialog { 
  width: min(1164px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,.35);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: auto;
}
.event-modal__close__wrap {
  text-align: right;
  margin-top: 30px;
}
.event-modal__close {   
  border: 0;
  background: #f2f2f2;
  width: 36px;
  height: 36px;
  border-radius: 50%;  
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.event-modal__layout {
  display: flex;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.event-modal__main {
  flex: 0 0 60%;
  max-height: 100%;
  padding-right: 6px;
}
.event-modal__main h3 {
  margin-top: 0;
  color: var(--color-principal);
  font-weight: 500;
  font-size: 28px;
}
.event-modal-content-text {
  margin-bottom: 4rem;
}
.event-modal__main .event-modal-meta {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.event-modal__aside { 
  align-self: flex-start;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 100%;
  padding-right: 6px;
}
.event-modal__image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.event-modal__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.event-modal__form .wpcf7-submit { width: 100%; }

/* ===================================
   NOVEDADES FEATURE
   =================================== */
.novedades-feature--spaced { margin-bottom: 40px; }
.novedades-feature__title { margin-bottom: 2rem; font-size: 40px; font-weight: 800; color: var(--color-novedad);}

@media (max-width: 640px) {
  .event-modal__layout {
    flex-direction: column;
  }
  .event-modal__main,
  .event-modal__aside {
    flex: 1 1 auto;
    position: static;
    max-height: none;
  }
  .event-modal__aside {
    display: contents;
    padding-right: 0;
  }
  .event-modal__image {
    order: -1;
    width: 100%;
    margin-bottom: 16px;
  }
  .event-modal__form {
    order: 1;
    width: 100%;
  }
}
/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */
@media (max-width: 1024px) {
  .short-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .short-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .video-modal__dialog {
    padding: 20px;
  }
}
