/* ======================================================
BLOQUE: DUO IMÁGENES – GASEX (FIX REAL)
====================================================== */

.gx-duo-imagenes {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
}

/* ======================================================
GRID
====================================================== */

.gx-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ======================================================
ITEM (CONTEXTO BASE)
====================================================== */

.gx-duo-item {
  position: relative;
  overflow: visible; /* 🔥 permite tooltip */
  border-radius: 10px;
  height: 420px;
  background: #f3f4f6;
}

/* ======================================================
IMAGE WRAP (🔥 CLAVE REAL)
====================================================== */

.gx-duo-imagenes .gx-image-wrap {
  position: absolute;   /* 🔥 CAMBIO CRÍTICO */
  inset: 0;             /* 🔥 CAMBIO CRÍTICO */
  overflow: hidden;
  border-radius: 10px;
}

/* link ocupa todo */
.gx-image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
}

/* ======================================================
IMÁGENES
====================================================== */

.gx-duo-imagenes img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gx-duo-item:hover img {
  transform: scale(1.04);
}

/* ======================================================
LABEL
====================================================== */

.gx-duo-label {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #1C244B;
  color: #fff;
  padding: 10px 18px;
  font-weight: 600;
  border-radius: 0 6px 0 0;
  z-index: 5;
}

/* ======================================================
TITLE
====================================================== */

.gx-duo-title {
  position: absolute;
  left: 1rem;
  right: 1rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 4px 12px rgba(0,0,0,.6);
  z-index: 5;
}

.gx-duo-title.is-top {
  top: 1.5rem;
}

.gx-duo-title.is-bottom {
  bottom: 3.5rem;
}

/* ======================================================
HOTSPOTS
====================================================== */

.gx-hotspot-item {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 30;
}

/* botón */

.gx-p-trigger {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #1C244B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.gx-p-icon {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* pulso */

.gx-p-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  animation: gxPulse 1.8s infinite;
}

@keyframes gxPulse {
  0% { transform: scale(.7); opacity: 1; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

/* ======================================================
TOOLTIP DESKTOP (PERFECTO)
====================================================== */

.gx-desktop-tooltip {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: #fff;
  padding: 24px 22px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all .3s ease;
  z-index: 999;
  text-align: center;
}

.gx-hotspot-item:hover .gx-desktop-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* contenido */

.gx-tooltip-title {
  font-weight: 800;
  color: #1C244B;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.gx-tooltip-desc {
  font-size: .9rem;
  color: #555;
  margin-bottom: 14px;
}

.gx-tooltip-price-original,
.gx-sheet-price-original {
  font-size: .95rem;
  color: #6B7280;
  text-decoration: line-through;
  margin-bottom: 6px;
  font-weight: 600;
}

.gx-tooltip-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #E63946;
  margin-bottom: 10px;
  line-height: 1.2;
}

.gx-tooltip-badge,
.gx-sheet-badge {
  background: #1C244B;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  display: inline-block;
  margin: 6px 0 18px;
  line-height: 1.4;
}

.gx-tooltip-btn {
  display: inline-block;
  background: #1C244B;
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .8rem;
  text-decoration: none;
}

/* ======================================================
MOBILE OVERLAY
====================================================== */

.gx-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 999;
}

.gx-mobile-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ======================================================
BOTTOM SHEET
====================================================== */

.gx-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 24px;
  transition: bottom .35s ease;
  z-index: 1000;
  max-width: 640px;
  margin: auto;
}

.gx-bottom-sheet.is-active {
  bottom: 0;
}

/* header */

.gx-sheet-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 18px;
}

.gx-sheet-pill {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 4px;
}

.gx-sheet-close {
  position: absolute;
  right: 0;
  top: -4px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

/* contenido */

.gx-sheet-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gx-sheet-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1C244B;
  margin-bottom: 10px;
}

.gx-sheet-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
}

.gx-sheet-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #E63946;
  margin-bottom: 12px;
}

.gx-sheet-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #1C244B;
  color: #fff;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ======================================================
RESPONSIVE
====================================================== */

@media (max-width: 1024px) {
  .gx-duo-item {
    height: 320px;
  }
}

@media (max-width: 768px) {

  .gx-duo-grid {
    grid-template-columns: 1fr;
  }

  .gx-duo-item {
    height: auto;
    aspect-ratio: 16/9;
  }

  .gx-desktop-tooltip {
    display: none;
  }

}