/* Fondo del modal */
#popupFondo {
  width: 100%;
  height: 100vh;
  background-color: rgba(47, 42, 42, 0.9); 
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 10px;
  box-sizing: border-box;
}


.popup {
  width: 90%; 
  max-width: 700px;
  height: auto;
  max-height: 90vh;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background-color: #000;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}


/* Botón cerrar */
#btnCerrarContainer {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

#btnCerrar {
  background-color: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

    #btnCerrar svg {
      width: 100%;
      height: 100%;
    }

#popupContainer {
  flex: 1;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.imgPopup {
  width: 100%;
}

.imgPopup img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain; 
}

.infoPopup {
  position: absolute;
  bottom: 30px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none; 
}

/* Posiciones botones */

#buttons.abajo-izquierda {
  position: absolute;
  bottom: 10%;      
  left: 10%;
  justify-content: center;
}

#buttons.abajo-derecha {
  position: absolute;
  bottom: 10%;      
  right: 5%;
  justify-content: center;
}


#buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}


#buttons a.buttonPre {
  display: block;
  width: 100%; /* Ocupa todo el ancho del contenedor */
  background: linear-gradient(90deg, #004894 0%, #4841af 100%); /* Degradado azul claro a celeste */
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
  padding: 20px 30px;
  border-radius: 40px;
  transition:  0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

#buttons a.buttonPre:hover {
  transform: scale(1.03);
  background: linear-gradient(90deg, #0056b3 0%, #009acb 100%);
}

 #buttons a.button2 {
  display: block;
  width: 100%; 
  background: linear-gradient(90deg, #202220 0%, #000000 100%); 
  color: white;
  text-align: center;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
  padding: 20px 30px;
  border-radius: 40px;
  transition: 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

#buttons a.button2:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  background: linear-gradient(90deg, #202320 0%, #373f42 100%);
}


@media (max-width: 430px) {
  .popup {
    width: 95%;
    max-height: 95vh;
    border-radius: 10px;
  }

  #btnCerrar {
    width: 28px;
    height: 28px;
  }

  .imgPopup {
    max-height: 50vh; 
  }

  /* Botones dentro del contenedor #buttons */
  #buttons a.buttonPre,
  #buttons a.button2 {
    font-size: 14px;       
    padding: 10px 14px;    
    border-radius: 20px;   
  }

  
  #buttons {
    gap: 8px;              
  }

  #buttons a svg {
    width: 16px;
    height: 16px;
  }
}

