.h-100:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.title-producto {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    text-transform: capitalize;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-whatsapp {
    background-color: #25d366;
    border: none;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1ebe5d;
}

#contacto-container .form-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 650px;
    margin-right: 60px;
    z-index: 10;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: white;
    font-size: 32px;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-chat {
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: none;
    /* Oculta inicialmente */
    z-index: 999;
}

@media (max-width: 576px) {
    .whatsapp-chat {
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@media (max-width: 768px) {
    #contacto-container .form-overlay {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 2rem auto;
        width: 95%;
        box-shadow: none;
    }

    #contacto-container img {
        object-position: center;
    }
}

@media (max-width: 992px) {
    #contacto-container .form-overlay {
        width: 90%;
        margin: 0 auto;
        right: 50%;
        transform: translate(50%, -50%);
    }
}