/* 🔮 Estilos generales de lightbox */
.yey-lightbox {
  display: none;
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.yey-lightbox.active {
  display: flex;
}

.yey-lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: opacity 0.3s ease;
}

/* Loader */
.yey-lb-loader {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.yey-lb-loader.active {
  display: flex;
}

.yey-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.yey-lightbox .yey-lb-caption {
  margin-top: 10px;
  color: #fff;
  font-size: 16px;
}

.yey-lb-controls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.yey-lb-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.yey-lb-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.yey-lb-btn .btn-icon {
  font-size: 16px;
}

.yey-lb-btn .btn-text {
  font-size: 13px;
}

.yey-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.yey-lb-nav:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.yey-lb-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.yey-lb-prev {
  left: 20px;
}

.yey-lb-next {
  right: 20px;
}

/* Menú de compartir */
.yey-share-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.yey-share-menu.active {
  display: flex;
}

.yey-share-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  transition: background 0.2s ease;
  text-align: left;
}

.yey-share-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.yey-share-btn .whatsapp-icon {
  color: #25d366;
}

.yey-share-btn .facebook-icon {
  color: #1877f2;
}

.yey-share-btn .instagram-icon {
  color: #e4405f;
}

.yey-share-btn .copy-icon {
  color: #666;
}

/* Responsive - Mobile optimizations */
@media (max-width: 768px) {
  .yey-lightbox img {
    max-width: 95%;
    max-height: 85vh;
  }

  .yey-lb-controls {
    top: 15px;
    right: 15px;
    gap: 8px;
  }

  .yey-lb-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .yey-lb-btn .btn-text {
    font-size: 11px;
  }

  .yey-share-menu {
    top: 50px;
    right: 15px;
    min-width: 140px;
  }

  .yey-lb-nav {
    font-size: 28px;
    width: 50px;
    height: 50px;
    padding: 15px;
  }

  .yey-lb-prev {
    left: 10px;
  }

  .yey-lb-next {
    right: 10px;
  }

  .yey-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
  }
}

@media (max-width: 480px) {
  .yey-lightbox img {
    max-width: 98%;
    max-height: 80vh;
  }

  .yey-lb-controls {
    top: 10px;
    right: 10px;
    flex-direction: column;
    gap: 5px;
  }

  .yey-lb-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .yey-lb-btn .btn-text {
    display: none;
  }

  .yey-lb-btn .btn-icon {
    font-size: 14px;
  }

  .yey-lb-nav {
    font-size: 24px;
    width: 45px;
    height: 45px;
    padding: 12px;
  }

  .yey-lb-prev {
    left: 5px;
  }

  .yey-lb-next {
    right: 5px;
  }

  .yey-spinner {
    width: 35px;
    height: 35px;
    border-width: 3px;
  }
}
