/* Hormigón Decorativo – compact fixed mobile contact bar.
   All visual content is local (inline SVG): no requests to outside services. */
.hdi-mobile-contact { display: none; }

@media screen and (max-width: 767px) {
    /* Footer and last page elements must remain accessible under the toolbar. */
    body {
        padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px));
    }

    .hdi-mobile-contact,
    .hdi-mobile-contact * { box-sizing: border-box; }

    body .hdi-mobile-contact {
        position: fixed;
        display: grid !important;
        visibility: visible !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        inset: auto 0 0 0;
        width: 100%;
        min-height: 0;
        padding: 0 8px calc(6px + env(safe-area-inset-bottom, 0px));
        margin: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        z-index: 99990;
        pointer-events: none;
    }

    .hdi-mobile-contact__action,
    .hdi-mobile-contact__action:visited {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-width: 0;
        min-height: 40px;
        padding: 7px 6px;
        margin: 0;
        border: 0;
        border-radius: 7px;
        color: #fff !important;
        text-decoration: none !important;
        text-align: center;
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.1;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(16, 35, 48, .15);
        -webkit-tap-highlight-color: transparent;
        transition: background-color .15s ease;
        pointer-events: auto;
    }

    .hdi-mobile-contact__action--call { background: #e8881e; }
    .hdi-mobile-contact__action--whatsapp { background: #25a95b; }
    .hdi-mobile-contact__action--call:hover,
    .hdi-mobile-contact__action--call:active { background: #cc7415; }
    .hdi-mobile-contact__action--whatsapp:hover,
    .hdi-mobile-contact__action--whatsapp:active { background: #198c4b; }
    .hdi-mobile-contact__action:focus-visible {
        outline: 3px solid #263d50;
        outline-offset: 2px;
    }

    .hdi-mobile-contact__action svg {
        display: block;
        flex: 0 0 15px;
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
    }
    .hdi-mobile-contact__action--whatsapp svg {
        fill: currentColor;
        stroke: none;
    }
    .hdi-mobile-contact__action span { color: inherit; }

    /* Keep the theme's scroll-to-top action clear of this fixed bar. */
    #zak-scroll-to-top,
    .zak-scroll-to-top {
        bottom: calc(55px + env(safe-area-inset-bottom, 0px));
    }
}

@media screen and (max-width: 350px) {
    body .hdi-mobile-contact { gap: 5px; padding-left: 6px; padding-right: 6px; }
    .hdi-mobile-contact__action { gap: 4px; font-size: 10.5px; min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
    .hdi-mobile-contact__action { transition: none; }
}
