body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #f4f4f4;
}
header {
    background-color: #DBD335;
    color: black;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
h1{
    font-size: 60px;
    font-family: cursive;
}
.logo{
    display: flex;
    border-radius: 20px;
    height: 180px;
    margin: 10px 30px;
}
nav {
    display: flex;
    justify-content: center;
    background-color: #DBD335;
}
nav a {
    color: black;
    padding: 14px 20px;
    justify-content: space-between;
    text-decoration: none;
    text-align: center;
    font-family: arial;
    font-size: 18px;
}
nav a:hover {
    border-radius: 30%;
    transition: all .6s ease-in-out;
    background-color: #d7dbdd;
}
svg{
    font-size: 18px;
    font-weight: 600;
    border: 1px;
}
.header_logo{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.header_carrito{
    display: flex;
    margin-right: 10%;
    justify-content: space-between;
    width: 14%;
    align-items: center;
}
.btn_registrate {
    padding: 10px 10px;
    font-family: sans-serif;
    font-weight: 600;
    border: 0;
    color: black;
    background-color: white;
    border-radius: 15px;
}

.btn_registrate:hover {
    box-shadow: #121212 0 0 0 3px, transparent 0 0 0 0;
    border: .5px solid;
    -webkit-transform:scale(1.0);transform:scale(1.03);
    cursor: pointer;
}
.carrito{
    display: flex;
    align-items: center;
    background-color: none;
}
.carrito:hover{
    display: flex;
    align-items: center;
    background-color: none;
    padding-left: 15px;
    -webkit-transform:scale(1.0);transform:scale(1.02);
    cursor: pointer;
    transition: all .5s ease-in-out;
}

.productos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.producto {
    width: 20%;
    text-align: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.imagen-producto {
    width: 100%;
    height: 200px;
    border-radius: 5px;
}

button.agregar-carrito {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button.agregar-carrito:hover {
    background-color: #218838;
}
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    transition: border 0.3s ease;
}

input[type="number"]:focus {
    border-color: #4CAF50;
    outline: none;
    background-color: #fff;
}



/* TOAST */
.toast {
  visibility: hidden;
  position: fixed;
  top: 1em;  /* Ajusta la distancia desde el borde superior */
  left: 50%;  /* Centrado horizontalmente */
  transform: translateX(-50%); /* Centrado exacto */
  background-color: #28a745;
  color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 450px;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
}

.toast.show {
  visibility: visible;
  animation: fadeInOut 4s forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.close-btn {
  cursor: pointer;
  font-size: 20px;
  padding-left: 10px;
}

.btn-salir{
    background-color: #f5b7b1;
}
.btn-salir:hover{
    background-color: #d98880;
}

@media (max-width:800px){
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
        background-color: #f4f4f4;
    }
    header {
        background-color: #DBD335;
        color: black;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid;
    }
    .header_logo{
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
    }
    .header_carrito{
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-right: 5%;
        flex-direction: row;
        width: 40%;
        padding: 15px 5px; 
    }
    img.logo{
        width: 250px;
        display: flex;
        border-radius: 20px;
        margin: 0;
    }
    .btn_registrate {
        padding: 8px 8px;
        font-family: sans-serif;
        font-weight: 500;
        border: 0;
        color: black;
        background-color: white;
        border-radius: 15px;
        font-size: 14px;
    }

    .btn_registrate:hover {
        border: 1px solid;
        cursor: pointer;
        font-weight: 600;
        transition: .4s ease;
        margin-bottom: 5px;
    }
    h1{
        font-size: 34px;
        font-family: sans-serif;
    }
    nav {
        display: block;
        justify-content: center;
        background-color: #DBD335;
        width: auto;
        height: auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Crea dos columnas */
        gap: 5px; /* Espacio entre los elementos */
        padding-block: 5px;
    }
    nav a {
        display: block;
        color: black;
        padding: 10px;
        justify-content: space-between;
        text-decoration: none;
        text-align: center;
        font-family: arial;
        font-size: 18px;
    }
    nav a:hover {
        border-radius: 30%;
        transition: all .6s ease-in-out;
        background-color: #d7dbdd;
        margin-bottom: 1px solid;
    }
    .carrito{
        display: flex;
        align-items: center;
        background-color: none;
    }
    .carrito:hover{
        display: flex;
        align-items: center;
        background-color: none;
        padding-left: 15px;
        -webkit-transform:scale(1.0);transform:scale(1.02);
        cursor: pointer;
        transition: all .5s ease-in-out;
    }

    .productos-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .producto {
        width: 35%;
        text-align: center;
        border: 1px solid #ddd;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }

    .imagen-producto {
        width: 100%;
        height: 100px;
        border-radius: 5px;
    }

    button.agregar-carrito {
        background-color: #28a745;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 10px;
    }

    button.agregar-carrito:hover {
        background-color: #218838;
    }
    input[type="number"] {
        width: 100%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 16px;
        box-sizing: border-box;
        background-color: #f9f9f9;
        transition: border 0.3s ease;
    }

    input[type="number"]:focus {
        border-color: #4CAF50;
        outline: none;
        background-color: #fff;
    }
}