/* ==========================================================================
   Einsoft — Mejoras de UI/UX
   Archivo independiente cargado en TODAS las páginas (después de style.css).
   No forma parte del pipeline SCSS; editar aquí directamente.
   Contiene: botones flotantes (volver arriba + WhatsApp) y refinamientos
   responsive para tablet/móvil del blog.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Botones de acción flotantes
   -------------------------------------------------------------------------- */
.floating-actions {
    position: fixed;
    right: 22px;
    bottom: 22px;
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    pointer-events: none; /* el contenedor no bloquea clics; sí los botones */
}

.floating-actions .float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    transition: transform .25s ease, box-shadow .25s ease, opacity .3s ease,
        visibility .3s ease, background-color .2s ease;
    pointer-events: auto;
}

.floating-actions .float-btn:hover,
.floating-actions .float-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
    color: #fff;
}

.floating-actions .float-btn i {
    display: block;
}

/* WhatsApp: siempre visible */
.float-whatsapp {
    background-color: #25D366;
    animation: einsoft-pulse 2.6s infinite;
}

.float-whatsapp:hover,
.float-whatsapp:focus {
    background-color: #1ebe5b;
}

@keyframes einsoft-pulse {
    0%   { box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 0 0 0 rgba(37, 211, 102, .45); }
    70%  { box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 0 0 14px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 16px rgba(0, 0, 0, .22), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Volver arriba: oculto hasta que se hace scroll (clase .show-top en el contenedor) */
.float-top {
    background-color: #2563eb;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.float-top:hover,
.float-top:focus {
    background-color: #1e40af;
}

.floating-actions.show-top .float-top {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .floating-actions {
        right: 14px;
        bottom: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        gap: 11px;
    }

    .floating-actions .float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-whatsapp { animation: none; }
    .floating-actions .float-btn { transition: opacity .2s ease, visibility .2s ease; }
}

/* --------------------------------------------------------------------------
   Refinamientos responsive del blog (tablet y móvil)
   -------------------------------------------------------------------------- */

/* Tablet: la barra lateral pasa debajo del contenido con separación */
@media (max-width: 991px) {
    .blog-deatils .col-sm-3 {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    /* Título del artículo */
    .insid-header .insid-header-text h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .insid-header .bdrcrums ul {
        flex-wrap: wrap;
    }

    /* Imagen destacada a ancho completo */
    .blog-deatails .blog-img2 {
        width: 100%;
        height: auto;
    }

    /* Tipografía del cuerpo más legible en móvil */
    .blog-deatails h2 {
        font-size: 21px;
        line-height: 1.35;
    }

    .blog-deatails p,
    .blog-deatails li {
        font-size: 15.5px;
        line-height: 1.7;
    }

    .blog-deatails blockquote {
        font-size: 16px;
    }

    /* Compartir centrado */
    .blog-tags-social .blog-social {
        text-align: center;
    }

    .blog-tags-social .social-list {
        display: inline-block;
        padding-left: 0;
    }

    /* Botón CTA del artículo a ancho completo */
    .blog-deatails .btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Sidebar: más aire entre widgets */
    .blog-deatils .widget,
    .blog-deatils .blog-lft {
        margin-bottom: 26px;
    }
}

/* --------------------------------------------------------------------------
   Ícono de TikTok en el footer (Font Awesome 4 no lo incluye)
   -------------------------------------------------------------------------- */
.footer .weight .footer-tiktok-icon {
    width: 15px;
    height: 15px;
    fill: #fff;
    float: left;
    margin-right: 10px;
    margin-top: 7px;
}
