:root {
    --primary: #ffd68a;
    --secondary: #FAF3EB;
    --dark: #2B2825;
    --professional-blue: #1e3a8a;
    --professional-gray: #64748b;
    --success-green: #059669;
    --border-light: #e2e8f0;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

.whatsapp-float {
    position: fixed;
    right: 24px;
    z-index: 9999;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: bottom 0.35s cubic-bezier(.42, 0, .58, 1), transform 0.25s, box-shadow 0.2s;
    border: 3px solid #fff;
    bottom: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
    text-decoration: none;
    color: #fff;
}

.back-to-top {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    right: 32px;
    width: 64px;
    height: 64px;
    background: #ec9800;
    color: #fff;
    border-radius: 12px;
    font-size: 2.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    border: none;
    bottom: 32px;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s, bottom 0.4s;
}

/* Cuando el back-to-top aparece, WhatsApp sube */
.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.whatsapp-float.up {
    bottom: 106px;
    /* Sube para dejar espacio al back-to-top */
}

.whatsapp-float.down {
    bottom: 32px;
    /* Normal */
}

@media (max-width: 600px) {
    .whatsapp-float {
        width: 68px !important;
        height: 68px !important;
        font-size: 2.5rem !important;
    }

    .back-to-top {
        border-radius: 10px;
        right: 26px;
        bottom: 18px;
        width: 54px;
        height: 54px;
        font-size: 2rem;
    }

    .whatsapp-float {
        right: 18px;
        /* El bottom ya lo controla tu animación JS con la clase .up/.down */
    }

    .whatsapp-float.up {
        bottom: 78px !important;
        /* ajusta a tu gusto */
    }

    .whatsapp-float.down {
        bottom: 18px !important;
    }
}