/* ══════════════════════════════════════════════════
   URDIMBRE — GALERÍA ESTILO VOGUE
   Completamente responsive, sin márgenes negativos
══════════════════════════════════════════════════ */

.urd-vogue-gallery {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 48px;
  border-top: 2px solid #111;
  font-family: 'Inter', sans-serif;
}

/* ── Header ────────────────────────────────────── */
.urd-vg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
  border-bottom: 1px solid #e0e0e0;
}
.urd-vg-header-left { display: flex; align-items: baseline; gap: 10px; }
.urd-vg-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #111;
  background: #FFE600;
  padding: 3px 8px;
}
.urd-vg-title {
  font-size: 12px;
  color: #666;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}
.urd-vg-counter {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
}
.urd-vg-current { font-size: 22px; font-weight: 900; color: #111; line-height: 1; }
.urd-vg-sep     { color: #ccc; }
.urd-vg-total   { }

/* ── Stage ─────────────────────────────────────── */
.urd-vg-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  user-select: none;
}

/* ── Slides ─────────────────────────────────────── */
.urd-vg-slide {
  display: none;
  flex-direction: column;
}
.urd-vg-slide.active {
  display: flex;
  animation: urdFadeIn 0.35s ease forwards;
}
@keyframes urdFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Imagen principal ────────────────────────────── */
.urd-vg-img-wrap {
  width: 100%;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 75vh;
}
.urd-vg-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

/* ── Caption ─────────────────────────────────────── */
.urd-vg-caption {
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
}
.urd-vg-look {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #111;
  flex-shrink: 0;
  border-right: 1px solid #ddd;
  padding-right: 12px;
}
.urd-vg-caption-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

/* ── Flechas ─────────────────────────────────────── */
.urd-vg-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: 1px solid #e0e0e0;
  color: #111;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.urd-vg-arrow:hover { background: #111; color: #fff; border-color: #111; }
.urd-vg-prev { left: 12px; }
.urd-vg-next { right: 12px; }
.urd-vogue-gallery[data-total="1"] .urd-vg-arrow { display: none; }

/* Flechas: ocultas hasta hover en desktop */
.urd-vg-stage .urd-vg-arrow { opacity: 0; transition: opacity 0.2s, background 0.2s; }
.urd-vg-stage:hover .urd-vg-arrow { opacity: 1; }

/* ── Filmstrip ───────────────────────────────────── */
.urd-vg-filmstrip-wrap {
  display: flex;
  align-items: center;
  background: #111;
  padding: 8px 0;
}
.urd-vg-film-arrow {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  padding: 0 10px;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.urd-vg-film-arrow:hover { opacity: 1; }
.urd-vg-filmstrip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  flex: 1;
  padding: 0 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.urd-vg-filmstrip::-webkit-scrollbar { display: none; }

/* ── Miniaturas ──────────────────────────────────── */
.urd-vg-thumb {
  position: relative;
  flex-shrink: 0;
  width: 68px;
  height: 90px;
  padding: 0;
  border: 2px solid transparent;
  background: #222;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.55;
  transition: border-color 0.2s, opacity 0.2s;
}
.urd-vg-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.urd-vg-thumb:hover { opacity: 0.85; }
.urd-vg-thumb.active { border-color: #FFE600; opacity: 1; }

.urd-vg-thumb-num {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
}
.urd-vg-thumb.active .urd-vg-thumb-num { background: #FFE600; color: #000; }

/* ── Contador ────────────────────────────────────── */
.urd-vg-counter-wrap {
  position: absolute;
  bottom: 50px;
  left: 16px;
  z-index: 10;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

/* ── Botón fullscreen ────────────────────────────── */
.urd-vg-fullscreen-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 14px;
}
.urd-vg-stage:hover .urd-vg-fullscreen-btn { opacity: 1; }

/* ── Overlay (pantalla completa) ─────────────────── */
.urd-vg-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 99999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.urd-vg-overlay.open { display: flex; }
.urd-vg-overlay-img {
  max-width: 90vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.urd-vg-overlay-close {
  position: fixed;
  top: 20px; right: 24px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 20px;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.urd-vg-overlay-caption {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  margin-top: 14px;
  text-align: center;
  max-width: 500px;
  padding: 0 20px;
}
.urd-vg-overlay .urd-vg-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
  opacity: 1;
}
.urd-vg-overlay .urd-vg-prev { left: 16px; }
.urd-vg-overlay .urd-vg-next { right: 16px; }

/* ── Swipe hint ──────────────────────────────────── */
.urd-vg-swipe-hint {
  display: none;
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  padding: 6px 16px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  animation: urdHint 2.8s ease forwards;
}
@keyframes urdHint {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ══════════════════════════════════════════════════
   GALERÍA RESPONSIVE — 768px
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .urd-vogue-gallery { margin-top: 32px; }

  .urd-vg-title   { display: none; }
  .urd-vg-current { font-size: 18px; }

  .urd-vg-img-wrap { max-height: 65vw; }
  .urd-vg-img      { max-height: 65vw; }

  .urd-vg-caption  { padding: 8px 14px; flex-wrap: wrap; gap: 6px; }
  .urd-vg-look     { border-right: none; padding-right: 0; width: 100%; border-bottom: 1px solid #eee; padding-bottom: 3px; }
  .urd-vg-caption-text { font-size: 12px; }

  .urd-vg-arrow    { width: 36px; height: 36px; opacity: 1; }
  .urd-vg-prev     { left: 6px; }
  .urd-vg-next     { right: 6px; }

  .urd-vg-thumb    { width: 54px; height: 72px; }
  .urd-vg-film-arrow { padding: 0 6px; font-size: 18px; }
  .urd-vg-swipe-hint { display: block; }

  .urd-vg-overlay-img { max-width: 96vw; max-height: 70vh; }
}

/* ══════════════════════════════════════════════════
   GALERÍA RESPONSIVE — 480px
══════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .urd-vogue-gallery {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 24px;
  }

  .urd-vg-header   { padding: 8px 0 6px; }
  .urd-vg-label    { font-size: 9px; padding: 2px 6px; }
  .urd-vg-current  { font-size: 16px; }
  .urd-vg-counter  { font-size: 11px; }

  .urd-vg-img-wrap { max-height: 72vw; }
  .urd-vg-img      {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 72vw;
    object-fit: contain;
  }

  .urd-vg-caption  { padding: 7px 10px; min-height: 32px; }
  .urd-vg-look     { font-size: 9px; }
  .urd-vg-caption-text { font-size: 11px; }

  /* Flechas siempre visibles */
  .urd-vg-arrow {
    width: 32px;
    height: 32px;
    opacity: 1 !important;
    background: rgba(0,0,0,0.55);
    border-color: transparent;
    color: #fff;
  }
  .urd-vg-arrow:hover { background: rgba(0,0,0,0.8); color: #FFE600; }
  .urd-vg-prev { left: 4px; }
  .urd-vg-next { right: 4px; }

  /* Filmstrip */
  .urd-vg-thumb      { width: 48px; height: 64px; }
  .urd-vg-thumb-num  { font-size: 8px; }
  .urd-vg-film-arrow { display: none; }
  .urd-vg-filmstrip  { padding: 0 6px; gap: 3px; }

  /* Ocultar fullscreen en móvil */
  .urd-vg-fullscreen-btn { display: none; }

  /* Overlay */
  .urd-vg-overlay-img    { max-width: 100vw; max-height: 76vh; }
  .urd-vg-overlay-caption { font-size: 11px; padding: 0 12px; }
}

/* ══════════════════════════════════════════════════
   GALERÍA RESPONSIVE — 360px
══════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .urd-vg-img-wrap { max-height: 80vw; }
  .urd-vg-img      { max-height: 80vw; }
  .urd-vg-thumb    { width: 42px; height: 56px; }
  .urd-vg-arrow    { width: 28px; height: 28px; }
}
