/* ===========================================================   1. ESTRUCTURA GLOBAL   =========================================================== */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ===========================================================   2. SISTEMA TOKU (ESTILO ORIGINAL RECUPERADO)   =========================================================== */

/* El fondo oscuro del Lightbox */

#lightbox-overlay {
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(4px);
}

/* La imagen de TOKU en tamaño original con marco blanco */

#lightbox-img {
  max-width: 95%;
  max-height: 90%;
  width: auto;
  height: auto;
  border: 6px solid white !important;
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  transform: scale(0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox-overlay.active #lightbox-img {
  transform: scale(1);
}

/* ===========================================================   3. FOOTER Y OTROS ESTILOS   =========================================================== */

.aba-footer-modern {
  background-color: #1a4a3a;
  position: relative;
  color: white;
  padding: 60px 0 0 0;
}

.aba-sub-footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
}

/* ===========================================================   4. SMART ZOOM PRO (SOLO PARA WISDOM/PHQ)   =========================================================== */

.modal-content {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Esta clase NO afecta a TOKU */

.smart-zoom {
  transition: transform 0.1s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
  will-change: transform;
  transform: translateZ(0);
  touch-action: none !important;
  object-fit: contain !important;
}

@media (max-width: 991px) {
  .modal-dialog {
    margin: 0 auto !important;
    min-height: 100vh !important;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 991px) {
  .smart-zoom {
    max-width: 95vw !important;
    max-height: 85vh !important;
  }
}

@media (min-width: 992px) {
  .smart-zoom {
    max-width: 100% !important;
    max-height: 80vh !important;
  }
}

