/* ===== Tríptico integrado en la tarjeta de nuevo ingreso ===== */
.promo-ingreso__triptico {
  grid-column: 1 / -1;
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  text-align: center;
}

/* Cuando el tríptico va solo en su tarjeta, sin separador */
.promo-ingreso__triptico--solo {
  padding-bottom: 0;
  border-bottom: 0;
}

.promo-ingreso__triptico-header { margin-bottom: 18px; }

.promo-ingreso__triptico .promo-ingreso__triptico-titulo {
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  line-height: 1.2;
}

.promo-ingreso__triptico-header p {
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.5;
}

/* Evita que la imagen ensanche la columna de la tarjeta */
@media (max-width: 860px) {
  .promo-ingreso__card { grid-template-columns: minmax(0, 1fr); }
}

/* Carrusel */
.trip-carousel {
  position: relative;
  border-radius: 18px;
  background: var(--surface, #fff);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.trip-track {
  display: flex;
  transition: transform .45s ease;
  touch-action: pan-y;
}

.trip-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 16px 16px 8px;
  box-sizing: border-box;
}

.trip-slide__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.trip-slide__btn img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1056 / 816;
  object-fit: contain;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}

.trip-slide__hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: .85rem;
  pointer-events: none;
}

.trip-slide figcaption {
  text-align: center;
  font-weight: 600;
  color: var(--text-main, #0f172a);
  padding: 10px 0 4px;
}

.trip-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--brand, #18988b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  z-index: 2;
  transition: background .2s;
}

.trip-nav:hover,
.trip-nav:focus-visible { background: var(--brand-strong, #11786f); }
.trip-nav--prev { left: 10px; }
.trip-nav--next { right: 10px; }

.trip-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 16px;
}

.trip-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.trip-dots button[aria-current="true"] {
  background: var(--brand, #18988b);
  transform: scale(1.25);
}

/* Visor con zoom */
.trip-viewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 15, 25, .94);
  display: none;
  flex-direction: column;
}

.trip-viewer.is-open { display: flex; }

.trip-viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  color: #fff;
  flex-wrap: wrap;
}

.trip-viewer__title { font-weight: 600; font-size: 1rem; }

.trip-viewer__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trip-viewer__tools button {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.trip-viewer__tools button:hover,
.trip-viewer__tools button:focus-visible { background: rgba(255, 255, 255, .28); }

.trip-viewer__level {
  min-width: 52px;
  text-align: center;
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.trip-viewer__stage {
  position: relative;
  flex: 1;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.trip-viewer__stage.is-dragging { cursor: grabbing; }

.trip-viewer__stage img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  max-width: none;
  user-select: none;
  -webkit-user-drag: none;
  background: #fff;
  will-change: transform;
}

.trip-viewer__help {
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: .85rem;
  padding: 8px 12px 12px;
}

body.trip-viewer-open { overflow: hidden; }

@media (max-width: 600px) {
  .promo-ingreso__triptico { padding-bottom: 22px; }
  .promo-ingreso__triptico--solo { padding-bottom: 0; }
  .promo-ingreso__triptico-header p { font-size: 14px; }
  .trip-slide { padding: 10px 10px 4px; }
  .trip-nav { width: 36px; height: 36px; }
  .trip-nav--prev { left: 4px; }
  .trip-nav--next { right: 4px; }
  .trip-slide__hint { font-size: .75rem; padding: 4px 10px; }
  .trip-viewer__title { width: 100%; text-align: center; }
  .trip-viewer__bar { justify-content: center; }
}
