/* ==========================================================
   cta-float.css  |  Botón flotante "Hacé el test gratuito"
   Aparece al bajar de la portada, lleva al test y se oculta mientras
   la sección indicada en data-cta-hide-on (#recursos) está a la vista,
   porque ahí ya está la tarjeta del test.
   El ícono es un SVG dentro de este CSS (máscara).
   ========================================================== */
.sa-cta {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 22px 6px 6px;
    background: var(--sa-ink);
    border: 1px solid rgb(var(--sa-bronze-rgb) / .55);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgb(var(--sa-deep-rgb) / .35);
    color: var(--sa-on-dark-strong);
    text-decoration: none;
    transition: opacity .4s var(--sa-ease), transform .4s var(--sa-ease),
                border-color .25s var(--sa-ease), box-shadow .25s var(--sa-ease);
}
.sa-cta:hover {
    border-color: var(--sa-bronze);
    box-shadow: 0 16px 40px rgb(var(--sa-deep-rgb) / .45);
    transform: translateY(-2px);
    color: var(--sa-on-dark-strong);
}

/* Si el JS está activo, el botón aparece al bajar y se oculta en la sección de reservas */
.sa-cta[data-cta-ready]:not(.is-visible) {
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}

.sa-cta__icon {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sa-bronze);
}
.sa-cta__icon::before {
    content: "";
    width: 22px;
    height: 22px;
    background: var(--sa-ink-deep);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4.6' y='4.4' width='14.8' height='17' rx='2.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='9' y='2.4' width='6' height='3.8' rx='1.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.6 13.6l2.3 2.3 4.5-4.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4.6' y='4.4' width='14.8' height='17' rx='2.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Crect x='9' y='2.4' width='6' height='3.8' rx='1.2' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M8.6 13.6l2.3 2.3 4.5-4.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Anillo que late suavemente alrededor del ícono */
.sa-cta__icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: sa-cta-pulse 3s ease-out infinite;
}
@keyframes sa-cta-pulse {
    0%   { box-shadow: 0 0 0 0 rgb(var(--sa-bronze-rgb) / .5); }
    70%  { box-shadow: 0 0 0 16px rgb(var(--sa-bronze-rgb) / 0); }
    100% { box-shadow: 0 0 0 0 rgb(var(--sa-bronze-rgb) / 0); }
}

.sa-cta__text {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .sa-cta { right: 14px; gap: 10px; padding-right: 18px; }
    .sa-cta__text { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    .sa-cta__icon::after { animation: none; }
    .sa-cta,
    .sa-cta:hover { transition: none; transform: none; }
}