/* ===== BOTÓN FLOTANTE ===== */
.acmf-btn {
    position: fixed;
    z-index: 99000;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #161311;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
.acmf-pos-arriba-derecha   { top: calc(16px + env(safe-area-inset-top, 0));       right: 16px; }
.acmf-pos-arriba-izquierda { top: calc(16px + env(safe-area-inset-top, 0));       left: 16px; }
.acmf-pos-abajo-derecha    { bottom: calc(16px + env(safe-area-inset-bottom, 0)); right: 16px; }
.acmf-pos-abajo-izquierda  { bottom: calc(16px + env(safe-area-inset-bottom, 0)); left: 16px; }

/* ===== FONDO OSCURO DETRÁS DEL PANEL ===== */
.acmf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 98998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.acmf-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ===== PANEL OFFCANVAS ===== */
.acmf-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 82vw;
    background: #161311;
    color: #F3EBDD;
    z-index: 98999;
    transition: transform 0.25s ease;
    padding-top: env(safe-area-inset-top, 0);
    display: flex;
    flex-direction: column;
}
/* El panel siempre abre del mismo lado que el botón */
.acmf-lado-derecha   { right: 0; transform: translateX(100%); }
.acmf-lado-izquierda { left: 0;  transform: translateX(-100%); }
.acmf-panel.is-open  { transform: translateX(0); }

.acmf-panel-header {
    display: flex;
    justify-content: flex-end;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.acmf-close { background: none; border: none; color: #F3EBDD; font-size: 24px; line-height: 1; cursor: pointer; }

.acmf-links { list-style: none; margin: 0; padding: 12px 0; }
.acmf-links a {
    display: block;
    padding: 14px 20px;
    color: #F3EBDD;
    text-decoration: none;
    font-size: 15px;
}
.acmf-links a:hover { background: rgba(255,255,255,0.06); }

.acmf-aviso {
    margin: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}
.acmf-aviso a { color: #C89B3C; }
