/* Animaciones de Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos escalonados para las tarjetas */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========================================
   WIDGET DE WHATSAPP FLOTANTE
   ======================================== */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Satoshi', sans-serif !important;
}

.wa-btn {
    width: 65px;
    height: 65px;
    background-color: #25D366;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-wa 2s infinite;
}

.wa-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    transform-origin: bottom right;
    animation: popIn 0.3s ease;
}

.wa-chat-window.active {
    display: flex;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.wa-header {
    background-color: #075E54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-header-avatar {
    width: 40px;
    height: 40px;
    background-color: #DBA95F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #32271D;
}

.wa-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 900;
}

.wa-header-info p {
    margin: 0;
    font-size: 11px;
    opacity: 0.8;
}

.wa-body {
    background-color: #ECE5DD;
    padding: 20px 15px;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4cbb8' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}

.wa-msg.received {
    background-color: white;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.wa-msg.sent {
    background-color: #DCF8C6;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.wa-footer {
    padding: 10px;
    background: white;
    text-align: center;
}

.wa-footer a {
    display: block;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 10px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 14px;
    transition: background 0.3s;
}

.wa-footer a:hover {
    background-color: #128C7E;
}

@media (max-width: 480px) {
    .wa-chat-window {
        width: 280px;
        right: -10px;
    }
}