/* Contacto flotante (ver flotante.js): bolita partida WhatsApp / luna, pastilla "En línea" y tarjeta de opciones. */
.flot { position: fixed; right: 1rem; bottom: 1rem; z-index: 45; transition: opacity 0.2s, transform 0.2s, visibility 0s; }
@media (min-width: 768px) { .flot { right: 1.5rem; bottom: 1.5rem; } }
/* En móvil, mientras la agenda está en pantalla, se esconde para no tapar "Confirmar" / "Enviar". */
@media (max-width: 767px) {
  .flot[data-sobre-agenda] { opacity: 0; visibility: hidden; transform: translateY(1rem); pointer-events: none; transition: opacity 0.15s, transform 0.2s, visibility 0s 0.2s; }
}

.flot-nucleo {
  position: relative; display: block; width: 3.75rem; height: 3.75rem; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; font: inherit;
}
@media (min-width: 768px) { .flot-nucleo { width: 4.25rem; height: 4.25rem; } }
.flot-nucleo:focus-visible { outline: 3px solid var(--cielo); outline-offset: 5px; border-radius: 50%; }
.flot-nucleo::before { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; animation: flot-halo 3.2s linear 1.6s infinite backwards; }
.flot[data-abierta] .flot-nucleo::before { animation: none; }

.flot-circulo { position: absolute; inset: 0; border-radius: 50%; background: var(--noche); box-shadow: 0 0 0 3px #fff, 0 18px 32px -12px rgba(20, 4, 38, 0.8); animation: flot-entra 0.5s cubic-bezier(0.3, 0.7, 0.2, 1.2) 0.6s backwards; }
.flot-giro { position: absolute; inset: 0; rotate: -35deg; }
.flot-yy { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flot-mitad { transform-origin: 50px 50px; transition: transform 0.32s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.22s; }
.flot-mitad--wa { fill: var(--whatsapp); }
.flot-mitad--luna { fill: var(--luna); }
.flot-glifo { position: absolute; left: 50%; width: 1.3rem; height: 1.3rem; margin: -0.65rem 0 0 -0.65rem; display: grid; place-items: center; rotate: 35deg; transition: opacity 0.18s; }
.flot-glifo svg { width: 100%; height: 100%; }
.flot-glifo--wa { top: 25%; color: #052e16; }
.flot-glifo--luna { top: 75%; color: var(--noche); }
.flot-cerrar { position: absolute; inset: 0; display: grid; place-items: center; color: var(--luna); opacity: 0; transform: rotate(-90deg) scale(0.6); transition: opacity 0.2s, transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1); }
.flot-cerrar svg { width: 1.5rem; height: 1.5rem; }
.flot[data-abierta] .flot-mitad--wa { transform: translate(-16px, 0) scale(0.7); opacity: 0; }
.flot[data-abierta] .flot-mitad--luna { transform: translate(16px, 0) scale(0.7); opacity: 0; }
.flot[data-abierta] .flot-glifo { opacity: 0; }
.flot[data-abierta] .flot-cerrar { opacity: 1; transform: none; }

/* Pastilla blanca a la izquierda de la bolita (solo escritorio/tableta). */
.flot-pastilla {
  position: absolute; right: calc(100% + 0.85rem); top: 50%; translate: 0 -50%; display: none; align-items: center;
  border-radius: 999px; background: #fff; color: var(--noche); white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(10, 21, 48, 0.08), 0 14px 30px -14px rgba(20, 4, 38, 0.7);
  animation: flot-despliega 0.55s cubic-bezier(0.3, 0.7, 0.2, 1) backwards;
}
@media (min-width: 768px) { .flot-pastilla { display: flex; } }
.flot-pastilla[hidden] { display: none; }
.flot-pastilla-abrir { display: grid; gap: 0.1rem; padding: 0.55rem 0.4rem 0.6rem 1.1rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 999px; }
.flot-pastilla-abrir strong { font-family: var(--f-titulo); font-size: 0.9375rem; font-weight: 700; line-height: 1.25; }
.flot-linea { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: #11743b; line-height: 1.2; animation: flot-salta 3.4s ease-in-out 2.4s infinite; }
.flot-vivo { position: relative; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--whatsapp); }
.flot-vivo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: flot-late 1.6s ease-out infinite; }
.flot-pastilla-cerrar { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin: 0 0.5rem 0 0.1rem; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 21, 48, 0.08); color: var(--noche); cursor: pointer; }
.flot-pastilla-cerrar svg { width: 0.8rem; height: 0.8rem; }
.flot-pastilla-cerrar:hover { background: rgba(10, 21, 48, 0.16); }
.flot-pastilla-abrir:focus-visible, .flot-pastilla-cerrar:focus-visible { outline: 3px solid var(--cielo); outline-offset: 2px; }

/* Tarjeta de opciones sobre la bolita. */
.flot-tarjeta {
  position: absolute; right: 0; bottom: calc(100% + 0.85rem); width: min(19rem, calc(100vw - 2rem)); margin: 0; padding: 0.5rem; list-style: none;
  display: grid; gap: 0.25rem; border: 1px solid var(--filete); border-radius: var(--r-medio); background: var(--superficie); box-shadow: var(--sombra);
  visibility: hidden; opacity: 0; transform: translateY(0.75rem) scale(0.94); transform-origin: 100% 100%;
  transition: opacity 0.2s, transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1.15), visibility 0s 0.28s;
}
.flot[data-abierta] .flot-tarjeta { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.28s cubic-bezier(0.3, 0.7, 0.2, 1.15), visibility 0s; }
.flot-op { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem 0.55rem 0.55rem; border-radius: calc(var(--r-medio) - 6px); color: var(--texto); text-decoration: none; transition: background 0.15s; }
.flot-op:hover { background: rgba(195, 91, 255, 0.12); }
.flot-op:focus-visible { outline: 3px solid var(--cielo); outline-offset: -2px; }
.flot-op-ico { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; flex: none; border-radius: 50%; }
.flot-op-ico svg { width: 1.3rem; height: 1.3rem; }
.flot-op--wa .flot-op-ico { background: var(--whatsapp); color: #052e16; }
.flot-op--tg .flot-op-ico { background: var(--cielo); color: var(--noche); }
.flot-op--agenda .flot-op-ico { background: var(--luna); color: var(--noche); }
.flot-op-txt { display: grid; line-height: 1.25; }
.flot-op-txt strong { font-family: var(--f-titulo); font-weight: 700; font-size: 0.98rem; }
.flot-op-txt small { font-size: 0.78rem; color: var(--texto-suave); }

@keyframes flot-entra { from { opacity: 0; transform: scale(0.4) rotate(-40deg); } }
@keyframes flot-despliega { from { opacity: 0; clip-path: inset(0 0 0 100% round 999px); transform: translateX(1rem); } to { clip-path: inset(-2rem round 999px); } }
@keyframes flot-late { to { box-shadow: 0 0 0 0.6rem rgba(37, 211, 102, 0); } }
@keyframes flot-halo {
  0%, 100% { box-shadow: -0.7rem 0 1.6rem 0.15rem rgba(37, 211, 102, 0.7), 0.7rem 0 1.6rem 0.15rem rgba(195, 91, 255, 0.7); }
  25% { box-shadow: 0 -0.7rem 1.9rem 0.3rem rgba(37, 211, 102, 0.85), 0 0.7rem 1.9rem 0.3rem rgba(195, 91, 255, 0.85); }
  50% { box-shadow: 0.7rem 0 1.6rem 0.15rem rgba(37, 211, 102, 0.7), -0.7rem 0 1.6rem 0.15rem rgba(195, 91, 255, 0.7); }
  75% { box-shadow: 0 0.7rem 1.9rem 0.3rem rgba(37, 211, 102, 0.85), 0 -0.7rem 1.9rem 0.3rem rgba(195, 91, 255, 0.85); }
}
@keyframes flot-salta { 0%, 22%, 100% { transform: translateY(0); } 6% { transform: translateY(-0.3rem); } 11% { transform: translateY(0); } 15% { transform: translateY(-0.15rem); } }

@media (prefers-reduced-motion: reduce) {
  .flot *, .flot *::before, .flot *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
.flot-tarjeta li[hidden] { display: none; }
