/* ==========================================================
   RESET Y BASE
========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    height: 100vh;
    /* overflow: hidden; */
    background-color: #01426A;
    color: #e6f1ff;
}
body.modal-open{
  overflow: hidden;
}
/*APAGAR LUPA CON MODAL DE BIENVENIDA*/
body.modal-open canvas,
body.modal-open .drift-zoom-pane,
body.modal-open .drift-bounding-box,
body.modal-open #drift-image
 {
  pointer-events: none !important;

}


/* Fondo azul cuando hay un modal activo */
body.modal-blue-bg {
  background-color: #01426A;
  transition: background-color 0.25s ease;
}

/* Backdrop azul translúcido */
/* body.modal-blue-bg .sp-modal__backdrop {
  background:#01426A;
} */

/* ==========================================================
   CONTENEDORES PRINCIPALES
========================================================== */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper{ 
    position:relative !important;
    width: 100%;
    height: 100%;
}

/*codigo de cuadros para coordinadas*/

.hotspot-overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.hotspot-box{
  position: absolute;
  box-sizing: border-box;
  border: 2px solid red;
  background: rgba(255,0,0,0.15);
  border-radius: 6px;
}

.hotspot-label{
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font: 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
#hotspotOverlay{
  outline: 3px solid lime !important;
  background: rgba(0,255,0,0.06) !important;
}


#hotspotOverlay{
  position:absolute !important;
  inset:0 !important;
  z-index:999999 !important;
  pointer-events:none !important;
  outline:3px solid lime !important;          /* TEST */
  background:rgba(0,255,0,.05) !important;    /* TEST */
}
.hero-image{ display:block !important; }

.hotspot-box{ position:absolute; }




/* ==========================================================
   IMAGEN PRINCIPAL
========================================================== */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: crosshair;
}


/* ==========================================================
   DRIFT - LUPA
========================================================== */
.drift-zoom-pane {
    width: 120px;
    height: 120px;

    border-radius: 50% !important;
    border: 3px solid rgba(255, 255, 255, 0.7) !important;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8) !important;
}


/* ==========================================================
   CONTROLES DE ZOOM
========================================================== */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-slider {
    width: 150px;
    cursor: pointer;
}

.zoom-value {
    min-width: 40px;
    font-weight: bold;
    color: #64ffda;
}


/* ==========================================================
   INFO BOX
========================================================== */
.info-box {
    margin-top: 15px;
    padding: 10px;

    font-size: 0.85rem;
    color: #a8b2d1;

    background-color: rgba(100, 255, 218, 0.1);
    border: 1px solid #64ffda;
    border-radius: 5px;
}


/* ==========================================================
   FOOTER
========================================================== */
.footer {
    position: absolute;
    bottom: 20px;
    right: 30px;

    font-size: 0.9rem;
    color: #a8b2d1;
    z-index: 5;
}


#mobileMarker{
  position: absolute;
  width: 36px;
  height: 36px;
  border: 3px solid #ff2d2d;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
  z-index: 999999;
  box-shadow: 0 0 0 6px rgba(255,45,45,.15);
}



#confirmBtn{ opacity:0; pointer-events:none; transform:translateX(-50%) translateY(20px); }
#confirmBtn.is-visible{ opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.imagen-descarga-fija {
    position: fixed;
    left:0;
    top: 90%;
    transform: translateY(-50%);
    z-index: 2147483647;
    display: block !important; /* Asegura que se muestre */
}

.imagen-descarga-fija img {
    display: block;
    max-width: 320px; /* Ajusta según el tamaño de tu imagen */
    height: auto;
}


@media (max-width: 768px) {
  .zoom-slider { width: 120px; }

  .image-wrapper{
    overflow: hidden;
    touch-action: none;
  }

  #drift-image.hero-image{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: 0 0;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
  }

  #mobileMarker{
    width: 28px;
    height: 28px;
    z-index: 999999;
  }
  .imagen-descarga-fija img{
    display: none;
  }
}



