@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


body{
    display: grid;
    padding: 20px;
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);    
    justify-content: center;
    background-repeat: no-repeat;
    font-family: Poppins;
    background-size: cover;
    background-attachment: fixed;
}

#lista-carrito{
    background-color: #ffffff;
    padding: 20px;
    width: auto;
    border-radius: 16px;
}

.title{
    text-align: center;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0.1em 0.1em;
}

.menu-anime{
    display: flex;
    gap: 20px;
}

.top-bar a{
    text-decoration: none;
    color: black;
}

.top-bar {
    font-family: Poppins;
    border: 2px solid;
    background-color: #ffd8ae;
    border-radius: 10px;
    padding: 1px 10px;
    top: 10px;
    margin: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

button {
  background: #fbca1f;
  font-family: inherit;
  padding: 0.6em 1.3em;
  font-weight: 900;
  font-size: 18px;
  border: 3px solid black;
  border-radius: 0.4em;
  box-shadow: 0.1em 0.1em;
  cursor: pointer;
  margin-top: 10px;
}

.icono-carrito{
    position:fixed;
    bottom:20px;
    right:20px;
    background:rgb(20, 0, 73);
    color:white;
    padding:10px 15px;
    border-radius:20px;
    text-decoration:none;
    font-size:18px;
    border: solid 1px #fff;
}


#contador-carrito{
    background:rgb(89, 189, 189);
    padding:3px 8px;
    border-radius:50%;
    margin-left:5px;
    font-family: Poppins;
}

button:hover {
  transform: translate(-0.05em, -0.05em);
  box-shadow: 0.15em 0.15em;
}

button:active {
  transform: translate(0.05em, 0.05em);
  box-shadow: 0.05em 0.05em;
}

/* Fondo oscuro que cubre toda la pantalla */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Color negro transparente */
    display: none; /* Se oculta por defecto */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* La tarjeta blanca del formulario */
.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* El botón 'X' para cerrar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Estilo para los inputs dentro del modal */
.modal-content input, .modal-content select {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box; /* Para que el padding no ensanche el input */
}