/* nmc-public-ux-13826.css
   Estilos de la mejora UX progresiva: barra de acción fija en móvil + botón volver arriba.
   Usa los tokens existentes (--red, --ink, etc.). Se carga la última. */

/* ---------- Barra de acción fija (solo móvil) ---------- */
.nmc-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: none; /* se muestra solo en móvil vía media query */
    gap: 8px;
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-top: 1px solid rgba(15, 23, 42, .10);
    box-shadow: 0 -10px 30px -16px rgba(2, 6, 23, .35);
    transition: transform .25s ease, opacity .25s ease;
}

.nmc-sticky-cta.nmc-cta-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}

.nmc-sticky-item {
    flex: 1 1 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 52px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: .82rem;
    line-height: 1;
    padding: 6px 4px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: #fff;
    color: var(--ink, #0f172a);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.nmc-sticky-item:active {
    transform: scale(.97);
}

.nmc-sticky-item svg {
    width: 22px;
    height: 22px;
}

.nmc-sticky-call {
    color: var(--red-dark, #b91c1c);
    border-color: rgba(220, 38, 38, .25);
    background: rgba(220, 38, 38, .06);
}

.nmc-sticky-wa {
    color: #0b7a44;
    border-color: rgba(37, 211, 102, .35);
    background: rgba(37, 211, 102, .10);
}

.nmc-sticky-primary {
    color: #fff;
    background: var(--red, #dc2626);
    border-color: transparent;
    box-shadow: 0 10px 22px -10px rgba(220, 38, 38, .6);
}

/* Reserva espacio para que la barra no tape el contenido/footer. */
@media (max-width: 640px) {
    .nmc-sticky-cta {
        display: flex;
    }
    body.nmc-has-sticky-cta {
        padding-bottom: 84px;
    }
}

/* ---------- Botón volver arriba ---------- */
.nmc-backtotop {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 880;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 50%;
    background: #fff;
    color: var(--ink, #0f172a);
    box-shadow: 0 12px 30px -12px rgba(2, 6, 23, .4);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.nmc-backtotop.nmc-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nmc-backtotop:hover {
    color: var(--red-dark, #b91c1c);
    box-shadow: 0 16px 36px -14px rgba(220, 38, 38, .45);
}

.nmc-backtotop svg {
    width: 22px;
    height: 22px;
}

/* En móvil, súbelo para que no choque con la barra de acción. */
@media (max-width: 640px) {
    body.nmc-has-sticky-cta .nmc-backtotop {
        bottom: 92px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nmc-sticky-cta,
    .nmc-backtotop {
        transition: none;
    }
}

/* ---- Cloudflare Turnstile dentro de formularios ---- */
.nmc-turnstile {
    margin: 12px 0 4px;
}
.nmc-turnstile iframe {
    max-width: 100%;
}
