/* WhatsApp flotante + pop-up */
.w-flot { position: fixed; z-index: 90; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 20px 0 15px; border-radius: 99px; border: 0; cursor: pointer; background: #25d366; color: #05210f; font: inherit; font-weight: 600; font-size: 15px; box-shadow: 0 14px 40px -10px rgba(37, 211, 102, 0.6), 0 4px 14px rgba(0, 0, 0, 0.45); transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s; }
.w-flot svg { width: 28px; height: 28px; fill: currentColor; flex: none; }
.w-flot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: w-pulso 2.6s ease-out infinite; pointer-events: none; }
.w-flot:hover { transform: translateY(-3px) scale(1.03); }
.w-flot[aria-expanded="true"]::after { animation: none; }
@keyframes w-pulso { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 80%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
.w-pop { position: fixed; z-index: 91; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: min(360px, calc(100vw - 36px)); border-radius: 22px; overflow: hidden; background: #0d131d; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); transform-origin: 100% 100%; animation: w-entra 0.35s cubic-bezier(.2,.7,.2,1); }
@keyframes w-entra { from { opacity: 0; transform: translateY(14px) scale(0.94); } }
.w-pop-cab { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(120deg, #075e54, #0b7a68); }
.w-pop-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #05070c; flex: none; }
.w-pop-cab b { display: block; color: #fff; font-weight: 600; font-size: 16px; }
.w-pop-cab small { display: flex; align-items: center; gap: 6px; color: #c9f5e4; font-size: 12.5px; }
.w-pop-cab small i { width: 7px; height: 7px; border-radius: 50%; background: #25d366; box-shadow: 0 0 6px #25d366; }
.w-pop-cab > div { flex: 1; min-width: 0; }
.w-pop-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.2); color: #fff; cursor: pointer; display: grid; place-items: center; }
.w-pop-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.w-pop-form { display: grid; gap: 12px; padding: 18px 16px 16px; }
.w-pop-intro { color: #c3ccda; font-size: 14.5px; line-height: 1.45; padding: 10px 12px; border-radius: 4px 14px 14px 14px; background: rgba(255, 255, 255, 0.06); }
.w-campo { display: grid; gap: 6px; }
.w-campo span { font-size: 12.5px; color: var(--tenue); letter-spacing: 0.02em; }
.w-campo input { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: var(--texto); font: inherit; font-size: 16px; outline: none; transition: border-color 0.2s, background 0.2s; }
.w-campo input:focus { border-color: #25d366; background: rgba(37, 211, 102, 0.06); }
.w-campo input[aria-invalid="true"] { border-color: #ff6b6b; }
.w-error { min-height: 0; color: #ff8f8f; font-size: 13px; }
.w-error:empty { display: none; }
.w-enviar { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 99px; background: #25d366; color: #05210f; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: filter 0.2s, transform 0.2s; }
.w-enviar svg { width: 20px; height: 20px; fill: currentColor; }
.w-enviar:hover { filter: brightness(1.08); }
.w-enviar:active { transform: scale(0.98); }
.w-nota { color: var(--tenue); font-size: 12px; line-height: 1.4; text-align: center; }
.w-num { color: var(--texto); white-space: nowrap; user-select: all; }
@media (max-width: 640px) { .w-flot { height: 56px; width: 56px; padding: 0; justify-content: center; } .w-flot-txt { display: none; } .w-pop { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .w-flot::after, .w-pop { animation: none; } }
/* En celular sube un poco para no tapar los pasos del recorrido */
@media (max-width: 640px) { .w-flot { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 52px; height: 52px; } .w-pop { bottom: calc(134px + env(safe-area-inset-bottom, 0px)); right: 14px; width: calc(100vw - 28px); } }
