/* ========================================
   PAGINACIÓN - Estilos Generales
   ======================================== */

.pagination-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.pagination-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.pagination-dot.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  width: 16px;
  height: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ========================================
   VIDEOS ESPIRITUALES - Paginación
   ======================================== */

.videos-pagination-container {
  width: 100%;
}

.videos-grid-content {
  position: relative;
  min-height: 400px;
}

.videos-page {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  animation: fadeIn 0.5s ease;
  max-width: 1400px;
  margin: 0 auto;
}

.videos-page.active {
  display: grid;
}

.video-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  background: white;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-wrapper {
  width: 100%;
  height: 350px;
  position: relative;
  background: #000;
  overflow: hidden;
}

.video-card video,
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  pointer-events: none;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(to top, rgba(102, 126, 234, 0.95), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.video-card:hover .video-info {
  transform: translateY(0);
}

.video-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.video-info p {
  margin: 0;
  opacity: 0.95;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Icono de play para videos */
.video-card .video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(102, 126, 234, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(102, 126, 234, 1);
}

/* ========================================
   BOLETINES - Paginación
   ======================================== */

/* Sobrescribir estilos del .press-gallery original */
#pressGallery {
  display: block !important;
  grid-template-columns: unset !important;
  gap: unset !important;
  margin-top: unset !important;
}

.press-pagination-container {
  width: 100%;
}

.press-grid-content {
  position: relative;
  min-height: 900px;
}

.press-page {
  display: none !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
  animation: fadeIn 0.5s ease;
  max-width: 1400px;
  margin: 0 auto;
}

.press-page.active {
  display: grid !important;
}

.press-page .press-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  cursor: pointer;
  background: var(--gray-light);
  width: 100% !important;
}

.press-page .press-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.press-page .press-item img,
.press-page .press-item video {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

.press-page .press-item:hover img,
.press-page .press-item:hover video {
  transform: scale(1.05);
}

/* Overlay con efecto gradiente */
.press-page .press-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(107, 28, 35, 0.95), transparent);
  padding: var(--spacing-md);
  color: var(--white);
  transform: translateY(100%);
  transition: var(--transition-normal);
}

.press-page .press-item:hover .press-overlay {
  transform: translateY(0);
}

.press-page .press-overlay h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.press-page .press-overlay p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* Icono de play para videos */
.press-page .press-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(212, 175, 55, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--merlot);
  font-size: 1.5rem;
  pointer-events: none;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.press-page .press-item:hover .press-play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--gold);
}

/* ========================================
   ANIMACIONES
   ======================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .press-page {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .videos-page,
  .press-page {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .videos-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .press-page {
    grid-template-columns: repeat(2, 1fr);
  }

  .press-item img,
  .press-item video {
    height: 350px;
  }

  .video-wrapper {
    height: 300px;
  }

  .pagination-dots {
    gap: 10px;
    margin-top: 30px;
  }

  .pagination-dot {
    width: 12px;
    height: 12px;
  }

  .pagination-dot.active {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .videos-page,
  .press-page {
    grid-template-columns: 1fr !important;
  }

  .press-item img,
  .press-item video {
    height: 300px;
  }

  .video-info {
    padding: 20px;
  }

  .video-info h3 {
    font-size: 1.3rem;
  }
}
