/* categorias */
/* Updated Card Styles for Striking Appearance */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(224, 124, 52, 0.75);
}

.texto-parrafo {
    height: fit-content;
    margin-bottom: 2em;
}

.titulo_productos {
    justify-content: center;
    align-items: center;
    font-weight: bold;
    text-align: center;
    color: white;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 1.5rem;
    border-radius: 10px;
    padding: 0 1em;
}

.subtitulo_productos {
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: bold;
    color: #152944;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 1.25rem;
}

.div_naranja {
    background-color: rgba(236, 100, 1, 0.75);
}

.div_naranja_degradado {
    background: -webkit-linear-gradient(left, #ec6401, #ffae00);
}

.imagen_familia_nela {
    width: 80%;
    height: 80%;
    object-fit: cover;
    border-top-left-radius: 10px;
    /* Add rounded corners to the image */
    border-top-right-radius: 10px;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    /* Slightly enlarge and lift the card on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    /* Increase shadow on hover */

}

.card:hover:hover .card-title {
    color: #ec3401;
    /* Change the text color on hover to create an elegant effect */
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #142a42;
    margin-bottom: 0.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease-in-out;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.card:hover .card-title {
    color: #ec3401;
}

.imagen-carta {
    height: 50%;
    width: 50%;
    background-color: #ffffff;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@media screen and (max-width: 768px) {
    .card {
        margin-bottom: 1em;
    }

    .titulo_productos {
        margin-left: 1em;
        margin-right: 1em;
    }

    .subtitulo_productos {
        margin-left: 1em;
        margin-right: 1em;
    }

    .imagen-carta {
        height: 50%;
        width: 50%;
        background-color: #ffffff;
        object-fit: cover;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .card-title {
        font-size: 1rem;
    }

    .boton-abajo {
        font-size: clamp(0.8rem, 2.5vw, 1.2rem);
        /* Adjust font size on smaller screens */
    }

    .card-title {
        font-size: 0.9rem;
    }
}

.boton-abajo {
    position: absolute;
    margin: auto;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #ec6401;
    color: #fff;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out;
    bottom: 0;
    margin-bottom: 0.5em;
    width: 100% !important;
    white-space: nowrap;
}

.boton-abajo:hover {
    background-color: #ff9933;
    /* Change button background color on hover */
    cursor: pointer;
}

/* CSS for Description Container */
.descripcion-container {
    position: relative;
    max-height: fit-content;
    /* Add relative positioning */
}

.descripcion-container p {
    margin-bottom: 0;
    max-height: fit-content;
    /* Remove bottom margin to prevent extra space */
}

/* PRODUCTOS DETAIL*/
.product-details-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    flex: 1;
    padding: 10px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    min-width: 40em;
    max-height: 100%;
    max-height: 40em;
    /* Optional, keeps the image's aspect ratio */
    width: auto;
    height: auto;
    margin: auto;
}

.product-text {
    flex: 2;
    padding: 10px;
    margin: auto;
    margin-left: 2em;
}

.card-padding {
    padding-top: 2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}