/* =====================================================================================
 * /css/wk_share.css — COMPONENTE ÚNICO de "Compartir" (Hilo share_social, 2026-09-30)
 * Todo va bajo .wk-share: no pisa estilos de modales ni fichas.
 * Colores de cada red = los del menú de las modales (restaurante/bote/Al Pairo).
 * ===================================================================================== */
.wk-share {
    --wk-share-text: #1f2937;
    --wk-share-text-2: #6b7280;
    --wk-share-border: #e5e7eb;
    --wk-share-soft: #f3f4f6;
    --wk-share-focus: #005BAB;
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    text-align: left;
}

/* ---- Botón ---- */
.wk-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--wk-share-border);
    border-radius: 11px;
    background: #fff;
    color: var(--wk-share-text);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.wk-share__btn:hover { background: var(--wk-share-soft); }
.wk-share__btn i { font-size: 1.05rem; }
.wk-share__btn:focus-visible,
.wk-share__opt:focus-visible,
.wk-share__x:focus-visible {
    outline: 2px solid var(--wk-share-focus);
    outline-offset: 2px;
}
.wk-share.is-open .wk-share__btn { background: var(--wk-share-soft); }

/* ---- Menú (desplegable) ---- */
.wk-share__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1060;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--wk-share-border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .14);
}
.wk-share__menu[hidden] { display: none; }
.wk-share--end .wk-share__menu { left: auto; right: 0; }

.wk-share__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 6px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--wk-share-text-2);
}
.wk-share__x {
    border: 0;
    background: transparent;
    color: var(--wk-share-text-2);
    width: 28px;
    height: 28px;
    border-radius: 8px;
    cursor: pointer;
}
.wk-share__x:hover { background: var(--wk-share-soft); }

.wk-share__opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wk-share-text);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.wk-share__opt:hover,
.wk-share__opt:focus { background: var(--wk-share-soft); color: var(--wk-share-text); }
.wk-share__opt i { font-size: 18px; width: 22px; text-align: center; }
.wk-share__opt.is-done { color: #15803d; }

.wk-share--facebook  i { color: #1877F2; }
.wk-share--whatsapp  i { color: #25D366; }
.wk-share--x         i { color: #000; }
.wk-share--telegram  i { color: #26A5E4; }
.wk-share--pinterest i { color: #E60023; }
.wk-share--linkedin  i { color: #0A66C2; }
.wk-share--messenger i { color: #0084FF; }
.wk-share--email     i,
.wk-share--copy      i { color: var(--wk-share-text-2); }
.wk-share__opt.is-done i { color: #15803d; }

.wk-share__live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Móvil sin Web Share: el menú sube como hoja inferior ---- */
@media (max-width: 575.98px) {
    .wk-share__menu {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: 0;
        border-radius: 16px 16px 0 0;
        padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 28px rgba(16, 24, 40, .18);
    }
    .wk-share--end .wk-share__menu { right: 0; left: 0; }
    .wk-share__opt { padding: 12px 10px; font-size: 15px; }
}
