/* ============================================================
   Josie — Imagen overlay  |  dual-image.css v1.5
   GDZ Design
   ============================================================ */

/* ── Cargar Poppins si no está en el tema ────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;1,400&display=swap');

/* ── Wrapper ─────────────────────────────────────────────── */
.vcdih-wrap {
  display: inline-block;
  position: relative;
  overflow: hidden;
  cursor: default;
  vertical-align: top;
}
.vcdih-wrap[data-popup="1"] { cursor: zoom-in; }

/* ── Inner ───────────────────────────────────────────────── */
.vcdih-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ── Imágenes base ───────────────────────────────────────── */
.vcdih-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}
.vcdih-inner:not([style*="height"]) .vcdih-img   { position: relative; }
.vcdih-inner:not([style*="height"]) .vcdih-hover { position: absolute; }

/* ── ANIMACIONES ─────────────────────────────────────────── */
.vcdih-wrap[data-animation="fade"] .vcdih-hover {
  opacity: 0; transition: opacity 0.45s ease;
}
.vcdih-wrap[data-animation="fade"]:hover .vcdih-hover { opacity: 1; }

.vcdih-wrap[data-animation="slide-up"] .vcdih-hover {
  opacity: 0; transform: translateY(100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.vcdih-wrap[data-animation="slide-up"]:hover .vcdih-hover {
  opacity: 1; transform: translateY(0);
}

.vcdih-wrap[data-animation="slide-down"] .vcdih-hover {
  opacity: 0; transform: translateY(-100%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.vcdih-wrap[data-animation="slide-down"]:hover .vcdih-hover {
  opacity: 1; transform: translateY(0);
}

.vcdih-wrap[data-animation="zoom"] .vcdih-hover {
  opacity: 0; transform: scale(1.12);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.vcdih-wrap[data-animation="zoom"]:hover .vcdih-hover {
  opacity: 1; transform: scale(1);
}

.vcdih-wrap[data-animation="flip"] { perspective: 800px; }
.vcdih-wrap[data-animation="flip"] .vcdih-primary {
  backface-visibility: hidden; transition: transform 0.5s ease;
}
.vcdih-wrap[data-animation="flip"] .vcdih-hover {
  opacity: 1; backface-visibility: hidden;
  transform: rotateY(180deg); transition: transform 0.5s ease;
}
.vcdih-wrap[data-animation="flip"]:hover .vcdih-primary { transform: rotateY(-180deg); }
.vcdih-wrap[data-animation="flip"]:hover .vcdih-hover   { transform: rotateY(0deg); }

/* ── Auto-height ─────────────────────────────────────────── */
.vcdih-wrap.vcdih-auto-height .vcdih-inner   { height: auto; }
.vcdih-wrap.vcdih-auto-height .vcdih-primary { position: relative; height: auto; }
.vcdih-wrap.vcdih-auto-height .vcdih-hover   { position: absolute; height: 100%; }


/* ============================================================
   LIGHTBOX
   ============================================================ */

#vcdih-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(22, 17, 11, 0.92);
  align-items: center;
  justify-content: center;
  animation: vcdih-fadein 0.28s ease;
}
#vcdih-lightbox.vcdih-open { display: flex; }

@keyframes vcdih-fadein {
  from { opacity: 0; transform: scale(0.984); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Caja: imagen izq + panel der ───────────────────────── */
.vcdih-lb-box {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
}

/* ── Columna izquierda ───────────────────────────────────── */
.vcdih-lb-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.vcdih-lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.vcdih-lb-img {
  display: block;
  max-width: 62vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.28s ease;
}
.vcdih-lb-img.vcdih-img-loading { opacity: 0; }

/* ── Flechas — círculo fino, igual al otro plugin ────────── */
.vcdih-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(240, 236, 228, 0.30);
  background: transparent;
  color: rgba(240, 236, 228, 0.70);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.22s, color 0.22s, background 0.22s;
  z-index: 10;
  user-select: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif !important;
  outline: none;
  -webkit-font-smoothing: antialiased;
  padding: 0;
  line-height: 1;
}
.vcdih-lb-arrow:hover {
  border-color: rgba(240, 236, 228, 0.80);
  color: #f0ece4;
  background: rgba(240, 236, 228, 0.07);
}
.vcdih-lb-prev { left: -62px; }
.vcdih-lb-next { right: -62px; }
.vcdih-lb-arrow.vcdih-hidden { visibility: hidden; pointer-events: none; }

/* ── Puntos ──────────────────────────────────────────────── */
.vcdih-lb-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}
.vcdih-lb-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(240, 236, 228, 0.22);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.22s, transform 0.22s;
}
.vcdih-lb-dot.vcdih-dot-active {
  background: rgba(240, 236, 228, 0.80);
  transform: scale(1.4);
}

/* ── Panel derecho ───────────────────────────────────────── */
.vcdih-lb-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  width: 220px;
  flex-shrink: 0;
  padding: 0 0 22px 40px;
  box-sizing: border-box;
}

.vcdih-lb-panel::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(240, 236, 228, 0.28);
  margin-bottom: 16px;
}

/* ── Tipografía — especificidad máxima para ganar al tema ─── */
#vcdih-lightbox .vcdih-lb-panel .vcdih-lb-nombre,
#vcdih-lightbox .vcdih-lb-nombre {
  font-family: 'Poppins', 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  font-style: italic !important;
  color: #f0ece4 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.38 !important;
  margin: 0 0 8px 0 !important;
}

#vcdih-lightbox .vcdih-lb-panel .vcdih-lb-tecnica,
#vcdih-lightbox .vcdih-lb-tecnica {
  font-family: 'Poppins', 'Poppins', sans-serif !important;
  font-size: 10px !important;
  font-weight: 300 !important;
  font-style: normal !important;
  color: rgba(240, 236, 228, 0.45) !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  line-height: 1.7 !important;
  margin: 0 0 24px 0 !important;
}

/* ── Botón ───────────────────────────────────────────────── */
#vcdih-lightbox .vcdih-lb-panel .vcdih-lb-btn,
#vcdih-lightbox .vcdih-lb-btn {
  display: inline-block !important;
  font-family: 'Poppins', 'Poppins', sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(240, 236, 228, 0.75) !important;
  border: 1px solid rgba(240, 236, 228, 0.28) !important;
  background: transparent !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: color 0.22s, border-color 0.22s, background 0.22s !important;
  white-space: nowrap !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#vcdih-lightbox .vcdih-lb-panel .vcdih-lb-btn:hover,
#vcdih-lightbox .vcdih-lb-btn:hover {
  color: #1a140e !important;
  background: rgba(240, 236, 228, 0.88) !important;
  border-color: rgba(240, 236, 228, 0.88) !important;
  text-decoration: none !important;
}
.vcdih-lb-btn-hidden { display: none !important; }

/* ── Cruz cerrar — igual al plugin de galería ────────────── */
.vcdih-lb-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* círculo igual que las flechas */
  border: 1px solid rgba(240, 236, 228, 0.30);
  border-radius: 50%;
  background: transparent;
  color: rgba(240, 236, 228, 0.65);
  font-size: 20px;
  line-height: 1;
  font-family: 'Poppins', sans-serif !important;
  transition: border-color 0.22s, color 0.22s, background 0.22s;
  z-index: 10;
}
.vcdih-lb-close:hover {
  border-color: rgba(240, 236, 228, 0.80);
  color: #f0ece4;
  background: rgba(240, 236, 228, 0.07);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 750px) {
  .vcdih-lb-box     { flex-direction: column; align-items: center; max-width: 92vw; }
  .vcdih-lb-img     { max-width: 88vw; max-height: 55vh; }
  .vcdih-lb-panel   { width: 100%; padding: 20px 0 0 0; }
  .vcdih-lb-panel::before { margin-bottom: 12px; }
  .vcdih-lb-prev    { left: 4px; }
  .vcdih-lb-next    { right: 4px; }
  .vcdih-lb-nombre  { font-size: 14px !important; }
  .vcdih-lb-tecnica { font-size: 9.5px !important; }
}
