/* Reproductor de audio con la estética de un audio de WhatsApp (Agus, 9/10): botón de play grande, ondas, duración y el avatar con el micrófono.
   Se arma con audio-wa.js a partir de <audio class="wa-src">. */
.wa-src{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.wa-a{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;padding:8px 10px 8px 6px;border-radius:14px;background:#d9fdd3;color:#111b21;font-family:var(--texto,system-ui)}
.wa-play{flex:none;width:48px;height:48px;border:0;border-radius:50%;background:transparent;color:#54656f;display:grid;place-items:center;cursor:pointer;-webkit-tap-highlight-color:transparent}
.wa-play svg{width:34px;height:34px}
.wa-play .p2{display:none}
.wa-a.on .wa-play .p1{display:none}
.wa-a.on .wa-play .p2{display:block}
.wa-play:focus-visible,.wa-wave:focus-visible{outline:2px solid #00a884;outline-offset:2px;border-radius:8px}
.wa-mid{flex:1;min-width:0;position:relative;display:flex;align-items:center;height:48px;padding-bottom:12px;box-sizing:border-box}
.wa-wave{position:relative;flex:1;display:flex;align-items:center;justify-content:space-between;gap:2px;height:26px;cursor:pointer;touch-action:none}
.wa-b{flex:1;max-width:4px;min-width:2px;height:calc(var(--h) * 100%);border-radius:2px;background:#8aa39a;transition:background .15s}
.wa-b.on{background:#00a884}
.wa-dot{position:absolute;top:50%;left:var(--p,0%);width:13px;height:13px;margin:-6.5px 0 0 -6px;border-radius:50%;background:#00a884;box-shadow:0 1px 2px rgba(0,0,0,.25);pointer-events:none}
.wa-t{position:absolute;left:2px;bottom:0;font-size:11px;line-height:1;color:#54656f;font-variant-numeric:tabular-nums}
.wa-av{flex:none;position:relative;width:44px;height:44px;border-radius:50%;background:#c9cfc6;color:#fff;display:grid;place-items:center;font:700 18px/1 var(--texto,system-ui)}
.wa-av i{font-style:normal}
.wa-av svg{position:absolute;right:-3px;bottom:-3px;width:18px;height:18px;padding:3px;border-radius:50%;background:#00a884;color:#fff;box-sizing:border-box}
html.noche .wa-a{background:#005c4b;color:#e9edef}
html.noche .wa-play{color:#aebac1}
html.noche .wa-b{background:#7a9a90}
html.noche .wa-b.on{background:#e9edef}
html.noche .wa-dot{background:#e9edef}
html.noche .wa-t{color:#aebac1}
html.noche .wa-av{background:#3b4a54}

/* 20/10: áreas táctiles de 44 px o más sin cambiar el aspecto */
.wa-wave::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
