/* El botón estará oculto por defecto */
.floating-container {
    display: none;
  }
  
  /* Mostrar el botón solo en pantallas de tamaño tablet o móvil */
  @media (max-width: 1024px) {
    .floating-container {
      display: block;
    }
  }
  
  /* Restante de tu código CSS */
  @import url("https://fonts.googleapis.com/css?family=Roboto");
  /* (El resto del código CSS que ya tienes) */
  
@-webkit-keyframes come-in {
  0% {
    -webkit-transform: translatey(100px);
            transform: translatey(100px);
    opacity: 0;
  }
  30% {
    -webkit-transform: translateX(-50px) scale(0.4);
            transform: translateX(-50px) scale(0.4);
  }
  70% {
    -webkit-transform: translateX(0px) scale(1.2);
            transform: translateX(0px) scale(1.2);
  }
  100% {
    -webkit-transform: translatey(0px) scale(1);
            transform: translatey(0px) scale(1);
    opacity: 1;
  }
}
@keyframes come-in {
  0% {
    -webkit-transform: translatey(100px);
            transform: translatey(100px);
    opacity: 0;
  }
  30% {
    -webkit-transform: translateX(-50px) scale(0.4);
            transform: translateX(-50px) scale(0.4);
  }
  70% {
    -webkit-transform: translateX(0px) scale(1.2);
            transform: translateX(0px) scale(1.2);
  }
  100% {
    -webkit-transform: translatey(0px) scale(1);
            transform: translatey(0px) scale(1);
    opacity: 1;
  }
}
* {
  margin: 0;
  padding: 0;
}
/* Mantener el contenedor flotante en una posición fija */
.floating-container {
  position: fixed;
  width: 100px;
  height: 100px;
  bottom: 0;
  right: 0;
  margin: 15px 0px;
  z-index: 9999;
  transition: width 0.3s ease; /* Transición suave para el ancho */
}
.btn-pedido-credito{
  visibility: none;
}
/* Botón flotante separado del contenedor */
.floating-button {
  position: fixed; /* Fijo en la pantalla */
  width: 65px;
  height: 65px;
  background: #2cb3f0;
  bottom: 15px; /* Ajuste para que esté en la esquina inferior derecha */
  right: 15px;
  border-radius: 50%;
  color: white;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  z-index: 10000;
  box-shadow: 0 10px 25px -5px rgba(44, 179, 240, 0.6);
  cursor: pointer;
  transition: background 0.3s ease; /* Solo animar el color de fondo */
}

/* Cambiar el icono de + a - cuando esté abierto */
.floating-button.open {
  background: #e53935; /* Color del botón cuando esté abierto */
}
/* Ajustar el contenedor al hacer clic */
.floating-container.open {
  width: 400px; /* Ajustar según el tamaño necesario */
  margin-bottom: 50px;
}

/* Botón + y - */
.floating-container .floating-button {
  position: absolute;
  width: 65px;
  height: 65px;
  background: #2cb3f0;
  bottom: 0;
  border-radius: 50%;
  left: 0;
  right: 0;
  margin: auto;
  color: white;
  line-height: 65px;
  text-align: center;
  font-size: 23px;
  z-index: 10000;
  box-shadow: 0 10px 25px -5px rgba(44, 179, 240, 0.6);
  cursor: pointer;
  transition: background 0.3s ease; /* Solo animar el color de fondo */
}


/* Botones flotantes */
.floating-container .element-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 10px;
 
}

/* Estilos predeterminados para pantallas grandes */
.floating-container .float-element {
  position: relative;
  display: block;
  border-radius: 20%;
  width: 150px;
  height: 75px;
  margin: 0 10px;
  color: white;
  font-weight: 500;
  text-align: center;
  line-height: 50px;
  z-index: 9998;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.3s ease;
}

/* Estilos para pantallas medianas */
@media (max-width: 768px) {
  .floating-container .float-element {
    width: 120px;    /* Reducir el ancho del botón */
    height: 60px;   /* Reducir la altura del botón */
    margin: 0 5px;  /* Reducir los márgenes */
    line-height: 40px; /* Ajustar el line-height */
  }
}

/* Estilos para pantallas pequeñas */
@media (max-width: 480px) {
  .floating-container .float-element {
    width: 80px;    /* Reducir aún más el ancho del botón */
    height: 40px;   /* Reducir aún más la altura del botón */
    margin: 0 2px;  /* Reducir los márgenes aún más */
    line-height: 30px; /* Ajustar el line-height */
  }
}


.floating-container.open .float-element {
  opacity: 1;
  transform: translateX(0);
}
.element-container-inputs {
  position: absolute;
  top: -200px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 9999;
}

.floating-container.open .float-input {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.floating-container .float-input {
  width: 230px;
  height: 30px;
  margin-bottom: 10px;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  color: #555;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.float-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Media Queries para dispositivos móviles */
@media (max-width: 767px) {
  .element-container-inputs {
    top: -200px;
  }
}

@media (max-width: 767px) {
  .floating-container .float-input {
    width: 250px; /* Ajusta el tamaño del input en móviles */
    height: 28px;
    font-size: 14px; /* Tamaño de fuente más pequeño para pantallas pequeñas */
  }
}
/* Media Queries para tablets */
@media (min-width: 768px) and (max-width: 1024px) {
  .floating-container .float-input {
    width: 300px; /* Ajusta el tamaño del input en tablets */
    height: 60px;
    margin-right: 15px;
    font-size: 15px; /* Tamaño de fuente ligeramente más pequeño para tablets */
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .element-container-inputs {
    top: -400px;
  }
}

/* Personalización de los botones */
.floating-container .float-element:nth-child(1) {
  background: #42A5F5;
  box-shadow: 0 10px 15px -5px rgba(66, 165, 245, 0.5);
}

.floating-container .float-element:nth-child(2) {
  background: #4CAF50;
  box-shadow: 0 10px 15px -5px rgba(76, 175, 80, 0.5);
}

.floating-container .float-element:nth-child(3) {
  background: #1e4879;
  box-shadow: 0 10px 15px -5px rgba(37, 36, 70, 0.5);
}

