/* Promo flotante Factor — esquina superior derecha del hero (no altera layout) */

.gg-factor-float {
    position: absolute;
    top: 108px;
    right: max(4%, 24px);
    z-index: 12;
    width: min(272px, 34vw);
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    outline: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.gg-factor-float:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.55);
}

.gg-factor-float-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 68%);
    filter: blur(24px);
    opacity: 0.7;
    z-index: -1;
    animation: ggFactorFloatGlow 5s ease-in-out infinite;
}

@keyframes ggFactorFloatGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.06); }
}

.gg-factor-float-inner {
    padding: 16px 16px 14px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.94), rgba(8, 12, 24, 0.88));
    border: 1px solid rgba(165, 180, 252, 0.32);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(99, 102, 241, 0.12) inset;
    backdrop-filter: blur(16px);
    animation: ggFactorFloatBob 7s ease-in-out infinite;
}

@keyframes ggFactorFloatBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.gg-factor-float:hover {
    transform: translateY(-4px) scale(1.02);
}

.gg-factor-float:hover .gg-factor-float-inner {
    border-color: rgba(165, 180, 252, 0.5);
    box-shadow:
        0 32px 70px rgba(99, 102, 241, 0.28),
        0 0 0 1px rgba(99, 102, 241, 0.2) inset;
}

.gg-factor-float-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.gg-factor-float-logo {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
}

.gg-factor-float-brand {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c7d2fe;
}

.gg-factor-float-tagline {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.95);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.gg-factor-float-mini {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    background: rgba(3, 7, 18, 0.65);
}

.gg-factor-float-bar {
    display: flex;
    gap: 5px;
    padding: 7px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-factor-float-bar span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.gg-factor-float-screen {
    padding: 10px;
}

.gg-factor-float-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.gg-factor-float-metrics div {
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gg-factor-float-metrics small {
    display: block;
    font-size: 8px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gg-factor-float-metrics strong {
    font-size: 11px;
    font-weight: 800;
}

.gg-factor-float-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 36px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.gg-factor-float-chart i {
    flex: 1;
    display: block;
    height: var(--h, 50%);
    border-radius: 4px 4px 2px 2px;
    background: linear-gradient(180deg, #22d3ee, #6366f1);
    animation: ggFactorBarPulse 3.5s ease-in-out infinite;
}

.gg-factor-float-chart i:nth-child(2) { animation-delay: 0.25s; }
.gg-factor-float-chart i:nth-child(3) { animation-delay: 0.5s; }
.gg-factor-float-chart i:nth-child(4) { animation-delay: 0.75s; }
.gg-factor-float-chart i:nth-child(5) { animation-delay: 1s; }

@keyframes ggFactorBarPulse {
    0%, 100% { opacity: 0.55; filter: brightness(0.9); }
    50% { opacity: 1; filter: brightness(1.15); }
}

.gg-factor-float-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.35);
    transition: box-shadow 0.25s ease;
}

.gg-factor-float:hover .gg-factor-float-cta {
    box-shadow: 0 14px 36px rgba(99, 102, 241, 0.5);
}

@media (max-width: 1100px) {
    .gg-factor-float {
        width: min(240px, 42vw);
        top: 96px;
    }
}

@media (max-width: 900px) {
    .gg-factor-float {
        top: auto;
        bottom: 24px;
        right: 16px;
        width: min(220px, 58vw);
    }

    .gg-factor-float-inner {
        animation: none;
    }
}

@media (max-width: 520px) {
    .gg-factor-float-tagline {
        font-size: 13px;
    }

    .gg-factor-float-metrics strong {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gg-factor-float-glow,
    .gg-factor-float-inner,
    .gg-factor-float-chart i {
        animation: none !important;
    }
}
