/* CTA flotante — Agenda tu cita (dismissible) */
.agenda-flotante {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(280px, calc(100vw - 36px));
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c2340 0%, #14b8bd 100%);
    color: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: agendaFlotanteIn 0.35s ease;
}

.agenda-flotante[hidden] {
    display: none !important;
}

@keyframes agendaFlotanteIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.agenda-flotante__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
}

.agenda-flotante__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.agenda-flotante__text {
    margin: 0 28px 0 0;
    font-size: 14px;
    line-height: 1.4;
}

.agenda-flotante__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.agenda-flotante__btn:hover {
    background: #1faa55;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .agenda-flotante {
        right: 12px;
        bottom: 72px;
        width: min(260px, calc(100vw - 24px));
    }
}

