/* Farmamol - Indicador "Deslizar para ver el contenido" */

.fbf-sh {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.fbf-sh .fbf-sh-enlace {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
}

.fbf-sh .fbf-sh-enlace:hover,
.fbf-sh .fbf-sh-enlace:focus {
    background: none;
    box-shadow: none;
    color: inherit;
}

.fbf-sh-fila {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fbf-sh-texto {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
}

.fbf-sh-mano {
    display: inline-flex;
    width: 1em;
    height: 1em;
    font-size: 30px;
    color: #fff;
}

.fbf-sh-mano svg,
.fbf-sh-mano img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fbf-sh-mano svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fbf-sh-flecha {
    display: inline-flex;
    width: 1em;
    height: 1em;
    font-size: 28px;
    color: #fff;
}

.fbf-sh-flecha svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Animaciones suaves (se desactivan con "reducir movimiento" del sistema). */
.fbf-sh--anim .fbf-sh-flecha {
    animation: fbf-sh-rebote 1.6s ease-in-out infinite;
}

.fbf-sh--anim .fbf-sh-mano {
    animation: fbf-sh-deslizar 1.6s ease-in-out infinite;
}

@keyframes fbf-sh-rebote {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(7px); }
}

@keyframes fbf-sh-deslizar {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
    .fbf-sh--anim .fbf-sh-flecha,
    .fbf-sh--anim .fbf-sh-mano {
        animation: none;
    }
}

/* ---------- Modo flotante ---------- */
.fbf-sh--flotante {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 999;
    padding: 8px 16px;
    border-radius: 14px;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.fbf-sh-pos-left .fbf-sh--flotante {
    left: 24px;
    transform: none;
}

.fbf-sh-pos-right .fbf-sh--flotante {
    left: auto;
    right: 24px;
    transform: none;
}

.fbf-sh--flotante.is-oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ---------- Estilo "píldora" (indicador global) ---------- */
.fbf-sh--pildora {
    max-width: calc( 100vw - 24px );
    padding: 8px 10px 8px 24px;
    border-radius: 999px;
    border: 1px solid rgba( 255, 255, 255, 0.28 );
    background-image: linear-gradient( 135deg, rgba( 255, 255, 255, 0.24 ) 0%, rgba( 255, 255, 255, 0 ) 60% );
    box-shadow: 0 14px 30px rgba( 0, 0, 0, 0.28 ), 0 2px 6px rgba( 0, 0, 0, 0.18 ), inset 0 1px 0 rgba( 255, 255, 255, 0.35 );
    transition: opacity 0.35s ease, visibility 0.35s ease, filter 0.2s ease;
}

.fbf-sh--pildora:hover {
    filter: brightness( 1.08 );
}

.fbf-sh--pildora .fbf-sh-enlace {
    flex-direction: row;
    gap: 14px;
    animation: fbf-sh-entrada 0.7s cubic-bezier( 0.2, 0.8, 0.2, 1 ) both;
}

.fbf-sh--pildora .fbf-sh-texto {
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba( 0, 0, 0, 0.18 );
}

/* La flecha pasa a ser un círculo translúcido con un aro que "late". */
.fbf-sh--pildora .fbf-sh-flecha {
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1.8em;
    height: 1.8em;
    border-radius: 50%;
    background: rgba( 255, 255, 255, 0.22 );
}

.fbf-sh--pildora .fbf-sh-flecha svg {
    width: 0.95em;
    height: 0.95em;
}

.fbf-sh--pildora .fbf-sh-flecha::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0;
}

.fbf-sh--pildora.fbf-sh--anim .fbf-sh-flecha {
    animation: none;
}

.fbf-sh--pildora.fbf-sh--anim .fbf-sh-flecha svg {
    animation: fbf-sh-rebote 1.6s ease-in-out infinite;
}

.fbf-sh--pildora.fbf-sh--anim .fbf-sh-flecha::after {
    animation: fbf-sh-aro 1.8s ease-out infinite;
}

@keyframes fbf-sh-entrada {
    from { opacity: 0; transform: translateY( 22px ); }
    to   { opacity: 1; transform: translateY( 0 ); }
}

@keyframes fbf-sh-aro {
    0%   { transform: scale( 1 );   opacity: 0.55; }
    100% { transform: scale( 1.7 ); opacity: 0; }
}

@media ( max-width: 600px ) {
    .fbf-sh--pildora {
        padding: 6px 8px 6px 18px;
    }
    .fbf-sh--pildora .fbf-sh-enlace {
        gap: 10px;
    }
}

@media ( prefers-reduced-motion: reduce ) {
    .fbf-sh--pildora .fbf-sh-enlace,
    .fbf-sh--pildora.fbf-sh--anim .fbf-sh-flecha svg,
    .fbf-sh--pildora.fbf-sh--anim .fbf-sh-flecha::after {
        animation: none;
    }
}
