/* --------------------------- */
/*  ESTILOS GENERALES          */
/* --------------------------- */
/***************************************************/
/* Efecto hover para dispositivos de escritorio */
/***************************************************/
/*******************************************************/


.item-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%; 
    max-width: 130%; 
    position: relative;
    overflow: hidden; 
    transition: all 0.3s ease-in-out;
}




.item-row:hover {
    background-color: #f0f0f0;
    cursor: pointer;
    border: 2px solid #ffc451;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .item-row:active {
        background-color: #f0f0f0;
        border: 2px solid #ffc451;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-5px);
    }
}

@keyframes tapBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); } /* Hace que la manita crezca un poco */
    100% { transform: scale(1); }
}

.tap-icon {
    position: absolute;
    bottom: 5px;
    
    font-size: 18px;
    opacity: 0.7;
    animation: tapBounce 1s infinite ease-in-out; /* Repite la animación */
    cursor: pointer;
    transition: opacity 0.3s ease-in-out;
}

/* Cuando el usuario toca la tarjeta, la manita hace el efecto de pulsación */
.item-row:active .tap-icon {
    animation: tapBounce 0.3s ease-in-out;
    opacity: 0.4;
}


















/* --------------------------- */
/*  SECCIÓN DE CATEGORÍAS      */
/* --------------------------- */

.category-title {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: brown;
    color: white;
    margin: 10px auto;
    border: 2px solid black;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------- */
/*  ESTILOS DE LOS ITEMS       */
/* --------------------------- */

.items {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 90%;
    max-width: 1500px;
    margin: 20px auto;
}

.item-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    text-align: center;
}

.item-title span {
    display: block;
}

.item-title-ca {
    color: black;
    font-size: 1.4rem;
}

.item-title-es,
.item-title-en {
    color: #757575;
    font-size: 1.2rem;
}

.item-description {
    color: brown;
    margin: 0;
    line-height: 1;
}

.item-price-container {
    text-align: center;
}

/* --------------------------- */
/*  MEDIA QUERY PARA MÓVILES   */
/* --------------------------- */

@media (max-width: 768px) {
    .item-row {
        width: 120%; /* Un poco más ancho en móviles */
        max-width: 120%;
        padding: 12px;
        margin: 10px auto;
        position: relative;
        left: -10%; /* Lo mueve a la izquierda para centrarlo bien */
    }

    .items {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .category-title {
        font-size: 16px;
        padding: 6px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .item-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .item-title-ca,
    .item-title-es,
    .item-title-en {
        font-size: 1.1rem;
    }

    .item-price-container {
        text-align: center;
    }
}


/**************************************************/
/* Estilo común para el contenedor de alérgenos */
/*************************************************/


/* Estilo de las imágenes de los alérgenos */
.alergeno-img {
    width: 36px;
    height: 36px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Ajustes para la versión móvil */
@media (max-width: 768px) {
    .item-allergen-info {
        text-align: center;
        font-size: 14px;
    }
}

/* Ajustes para la versión de escritorio */
@media (min-width: 769px) {
    .item-allergen-info {
        display: inline-block;
        margin-left: 10px;
    }
}

/****************************************************/
/***************PRECIOS*****************************/
/*************************************************/



.item-price-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.item-price {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    background-color: brown;
    padding: 5px;
    border-radius: 5px;

}



/************separador**********/

.separator {
    text-align: center;
    font-size: 12px;
    color: brown; 
    margin: px 0;
}
