#cajaImgen{
  float: right;

}

#imgen{
    border-bottom: 1px solid #333;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#imgMostrada{
    border: 2px solid #333;
    width: 75px;
    height: 75px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

}
#exhibidor{
    width: 50%;
    background-color: #595959;
    display: flex;
    width: 900px;
    height: 500px;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border: 2px solid #333;
    overflow: hidden; /*Evita que los cuadros se salgan del exhibidor*/
    box-sizing: border-box;
}
.caja{
    display: flex;
    border: 2px solid #333;
    width: 75px;
    height: 75px;
    /*background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;*/
    position: absolute; /*Te permite mover el cuadro dentro del contenedor*/
    cursor: grab; /* para cambiar la forma del mouse al estar sobre el cuadro*/
    justify-content: center;
    align-items: center;
    color:white;
    user-select: none;/*Evita la seleccion del texto durante el arrastre*/
    box-sizing: border-box;
    overflow: visible;
}
.caja:active{
    cursor: grabbing;
}
.caja:hover .tooltip{/*muestra el tooltip cuando esta el raton sobre el cuadro*/
    visibility: visible;
    opacity: 1;
}

.tooltip{
    visibility: hidden;
    width: auto;
    color: #fff;
    background-color: #333;
    border-radius: 6px;
    position:absolute; /*se va a estar moviendo junto al cuadro*/
    pointer-events: none;
    z-index: 900;
    bottom: 105%;
    left: 50%; 
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none; 
    opacity: 0;
    transition: opaciti 0,3s;
}


.tooltip-izq{
    visibility: hidden;
    width: auto;
    color: #fff;
    background-color: #333;
    border-radius: 6px;
    position:absolute; /*se va a estar moviendo junto al cuadro*/
    pointer-events: none;
    z-index: 900;
    bottom: 10%;
    left: 0%; 
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none; 
    opacity: 0;
    transition: opaciti 0,3s;
}

button{
    padding: 10px 16px;
  margin: 0;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:active {
  transform: translateY(0);
}

.redimensionar{
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid white;
  z-index: 100;

}

.redimensionar.top-left{
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}

.redimensionar.top-right{
  top: -5px;
  right: -5px;
  cursor: nwse-resize;
}

.redimensionar.bottom-right{
  bottom: -5px;
  right: -5px;
  cursor: nwse-resize;
}

.redimensionar.bottom-left{
  bottom: -5px;
  left: -5px;
  cursor: nwse-resize;
}

#formulario{
  
  float: right;

}

#controles{
  width: 50%;
}

.rotalo {
  position: absolute;
  bottom: -20px; /* Un poco más lejos para que sea más fácil de agarrar */
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  background-color: #e74c3c;
  border-radius: 50%;
  cursor: pointer;
}

#onion-skin-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Se hace transparente para no opacar la imagen de fondo del exhibidor */
    z-index: 50; /* Por encima de los productos, debajo de las manijas de la imagen de fondo */
    overflow: hidden;

}

.onion-image {


  
    position: absolute;
    border: 2px dashed #e74c3c;
    cursor: grab;
    background-size: 100% 100%; /* Asegura que la imagen llene el contenedor */
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
    opacity: 0.7; /* Se hace semitransparente para poder ver el fondo y alinear */
    
}

.toggle-info {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  padding: 0;
  margin: 0;
}

.info-content {
  padding: 15px;
  max-height: 300px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.info-content.collapsed {
  max-height: 0;

  padding: 0 15px;
  overflow: hidden;
}

.info-panel {
  position: fixed;
  bottom: 0;
  right: 10px;
  width: 60%;
  background-color: white;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 900;
}


.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;

}

#cSerie{
  text-transform: uppercase;
}

.lista {
    color: blue;              /* Cambia el color del texto a azul */
    text-decoration: underline; /* Añade un subrayado */
    cursor: pointer;          /* Muestra el cursor de mano (importante para indicar que es clickable) */
}

/* Opcional: Estilo al pasar el mouse por encima */
.lista:hover {
    color: darkblue;          /* Oscurece el azul al pasar el mouse */
}