/* ============================================================
   Bytex — Botón flotante de WhatsApp
   File: assets/css/whatsapp-flotante.css

   Alineado al lenguaje visual del sitio, no al verde de WhatsApp:
   panel oscuro, borde y glifo en acento, esquinas rectas.
   Colapsado es un cuadrado con el icono; en hover/foco se expande
   mostrando la etiqueta.

   Tamaños de texto desde la escala global (--bytex-fs-*).
   ============================================================ */

.bytex-wa {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;

    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 10px;
    text-decoration: none;

    background: var(--bytex-panel);
    border: 1px solid var(--bytex-accent);
    color: var(--bytex-accent);
    box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.6), 0 12px 32px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    transition: gap .25s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.bytex-wa:hover,
.bytex-wa:focus-visible {
    gap: 12px;
    background: var(--bytex-bg);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(10, 11, 13, 0.6), 0 16px 40px rgba(0, 115, 232, 0.22);
}
.bytex-wa:focus-visible {
    outline: 1px solid var(--bytex-accent);
    outline-offset: 3px;
}

/* ----- Icono ----- */
.bytex-wa__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}
.bytex-wa__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ----- Etiqueta: colapsada por defecto ----- */
.bytex-wa__label {
    font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace;
    font-size: var(--bytex-fs-eyebrow);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--bytex-text);

    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width .25s ease, opacity .2s ease, padding-right .25s ease;
}
.bytex-wa:hover .bytex-wa__label,
.bytex-wa:focus-visible .bytex-wa__label {
    max-width: 180px;
    opacity: 1;
    padding-right: 6px;
}

/* ============================================================
   Movimiento reducido
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .bytex-wa,
    .bytex-wa__label {
        transition: none;
    }
    .bytex-wa:hover,
    .bytex-wa:focus-visible {
        transform: none;
    }
}

/* ============================================================
   Responsive
   En touch no hay hover: queda siempre colapsado, sólo el icono.
   ============================================================ */
@media (max-width: 560px) {
    .bytex-wa {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (hover: none) {
    .bytex-wa__label {
        display: none;
    }
}