/* ===================== PESTAÑAS ===================== */
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,.4);
  padding: .6rem 1.2rem;
  font-size: .9rem;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  margin-bottom: -1px;
}
.tab-btn:hover { color: #fff; }
.tab-btn.active {
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #fff;
}

/* ===================== GRID DE CARDS ===================== */
.ro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ===================== CARD ===================== */
.ro-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s, background .15s;
}
.ro-card:hover {
  border-color: rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  text-decoration: none;
  color: inherit;
}
.ro-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.05);
  min-height: 110px;
}
.ro-card-body { padding: .85rem 1rem; }
.ro-card-title { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.ro-card-desc  { color: rgba(255,255,255,.4); font-size: .8rem; }

/* ===================== TABLA CONFIGURACIÓN ===================== */
.ro-tabla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.ro-tabla-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .85rem;
}
.ro-tabla-fila-label { color: rgba(255,255,255,.45); }
.ro-tabla-fila-valor { font-weight: 600; color: #e5e7eb; }

/* ===================== GALERÍA IMÁGENES (slider lateral) ===================== */
.galeria-outer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.galeria-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.galeria-arrow:hover { background: rgba(255,255,255,.15); transform: scale(1.08); }
.galeria-arrow:disabled { opacity: .25; cursor: default; transform: none; }

.galeria-strip-wrap {
  overflow: hidden;
  flex: 1;
}

.galeria-strip {
  display: flex;
  gap: 10px;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Imagen 9:16 tipo portada vertical */
.galeria-item {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.galeria-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.05);
}

.galeria-item-titulo {
  padding: .45rem .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* Dots galería */
.galeria-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: .75rem;
}
.galeria-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: background .15s, width .2s;
}
.galeria-dot.active { background: #fff; width: 18px; }

/* ===================== GALERÍA VIDEOS (slider lateral) ===================== */
.videos-outer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.videos-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.videos-arrow:hover { background: rgba(255,255,255,.15); transform: scale(1.08); }
.videos-arrow:disabled { opacity: .25; cursor: default; transform: none; }

.videos-strip-wrap {
  overflow: hidden;
  flex: 1;
}

.videos-strip {
  display: flex;
  gap: 10px;
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.video-item {
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.video-item-ratio {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-item-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-titulo {
  padding: .5rem .85rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  text-align: center;
}

/* Dots videos */
.videos-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: .75rem;
}
.videos-dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: background .15s, width .2s;
}
.videos-dot.active { background: #fff; width: 18px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px) {
  .ro-tabla { grid-template-columns: 1fr; }
  .ro-grid  { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ===================== LIGHTBOX ===================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: lbFadeIn .15s ease;
}
@keyframes lbFadeIn { from { opacity:0; } to { opacity:1; } }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.65);
  border-radius: 8px;
  padding: .4rem 1rem;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}