.scene {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    position: relative;
    z-index: 100;
    /* Ensure it's above other hero elements */
}

/* BOTÓN LIQUID CHROME METAL - Purple Hue */
.liquid-button {
    position: relative;
    display: inline-flex;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 10px;
    padding: 18px 52px;
    min-width: 220px;
    width: auto;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: 0.03em;
    transform-style: preserve-3d;
    transform: translateZ(40px);
    overflow: hidden;
    text-decoration: none;

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;

    /* LIQUID CHROME METAL - Ultra Cool Purple */
    background:
        /* Top highlight - sharp chrome shine */
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(220, 200, 255, 0.8) 5%,
            rgba(160, 120, 240, 0.6) 15%,
            transparent 30%),
        /* Bottom reflection */
        linear-gradient(0deg,
            rgba(200, 160, 255, 0.7) 0%,
            rgba(120, 80, 200, 0.5) 12%,
            transparent 25%),
        /* Electric glow center */
        radial-gradient(ellipse 100% 60% at 50% 50%, rgba(180, 100, 255, 0.4) 0%, transparent 60%),
        /* Chrome curve highlights */
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(220, 180, 255, 0.6) 0%, transparent 45%),
        /* Base gradient - electric purple */
        linear-gradient(145deg, #7c4dff, #5e35b1, #673ab7, #9c4dcc);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 300% 300%;

    box-shadow:
        /* Electric outer glow */
        0 0 60px rgba(124, 77, 255, 0.5),
        0 20px 40px rgba(94, 53, 177, 0.6),
        0 10px 20px rgba(156, 77, 204, 0.4),
        /* Chrome rim highlight */
        0 0 0 1px rgba(255, 255, 255, 0.4),
        0 -1px 0 1px rgba(255, 255, 255, 0.8),
        /* Inner chrome effect */
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -4px 8px rgba(60, 30, 120, 0.7),
        inset 0 0 25px rgba(180, 120, 255, 0.3);

    animation: liquid-chrome 6s ease-in-out infinite, pulse-glow 3s ease-in-out infinite;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 60px rgba(124, 77, 255, 0.5),
            0 20px 40px rgba(94, 53, 177, 0.6),
            0 10px 20px rgba(156, 77, 204, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.4),
            0 -1px 0 1px rgba(255, 255, 255, 0.8),
            inset 0 2px 4px rgba(255, 255, 255, 0.9),
            inset 0 -4px 8px rgba(60, 30, 120, 0.7),
            inset 0 0 25px rgba(180, 120, 255, 0.3);
    }

    50% {
        box-shadow:
            0 0 80px rgba(124, 77, 255, 0.7),
            0 25px 50px rgba(94, 53, 177, 0.7),
            0 12px 25px rgba(156, 77, 204, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.5),
            0 -1px 0 1px rgba(255, 255, 255, 0.9),
            inset 0 2px 4px rgba(255, 255, 255, 0.95),
            inset 0 -4px 8px rgba(60, 30, 120, 0.6),
            inset 0 0 30px rgba(180, 120, 255, 0.4);
    }
}

/* TEXTO MÁS VISIBLE / CONTRASTE */
.liquid-button span {
    position: relative;
    z-index: 20;
    /* High priority */
    color: #ffffff !important;
    text-shadow:
        /* Increased shadow for better visibility against white ripple */
        0 1px 3px rgba(20, 10, 80, 0.95),
        0 0 6px rgba(0, 0, 0, 0.5);
    white-space: nowrap !important;
    display: inline-block;
}

/* BORDE DE VIDRIO */
.liquid-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0.95);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 1;
}

/* LIQUID CHROME SHIMMER LAYER */
.liquid-button::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background:
        /* Moving chrome highlight */
        linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.8) 35%,
            rgba(255, 255, 255, 0.95) 40%,
            rgba(200, 180, 255, 0.7) 45%,
            transparent 55%),
        /* Static chrome curve */
        radial-gradient(ellipse 100% 30% at 50% 0%, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    background-size: 200% 100%, 100% 100%;
    opacity: 0.85;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 2;
    animation: chrome-sweep 4s ease-in-out infinite;
}

.liquid-button svg {
    position: relative;
    z-index: 20;
    /* High priority */
    filter: drop-shadow(0 1px 2px rgba(40, 24, 110, 0.8));
    fill: #ffffff;
    /* Ensure fill is white */
}

/* ICONO DE CHISPAS */
.sparkles {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* LIQUID CHROME ANIMATIONS */
@keyframes liquid-chrome {

    0%,
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 30%;
    }

    50% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%, 100% 70%;
    }
}

@keyframes chrome-sweep {

    0%,
    100% {
        background-position: -50% 0%, 0% 0%;
    }

    50% {
        background-position: 150% 0%, 0% 0%;
    }
}

/* ESTADOS REACTIVOS (hover / keyboard) */
.liquid-button:hover {
    /* NO SCALING TRANSFORMS to prevent movement */
    /* transform: translateZ(50px) translateY(-2px) scale(1.04); */
    /* Only visual effect change */

    box-shadow:
        0 22px 36px rgba(60, 44, 145, 0.85),
        0 0 0 1px rgba(255, 255, 255, 0.95),
        inset 0 1px 4px rgba(255, 255, 255, 1),
        inset 0 -10px 24px rgba(104, 78, 220, 1);
    filter: brightness(1.05);
}

/* Estado “presionado” para tap/rap (touch + mouse) */
.liquid-button.is-pressed {
    /* FORCE NO SCALING/MOVEMENT */
    transform: none !important;

    box-shadow:
        0 8px 15px rgba(46, 32, 112, 0.75),
        inset 0 2px 9px rgba(92, 68, 210, 1);
    filter: brightness(0.96);
}

.liquid-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 4px;
}

/* RIPPLE / RAP EFFECT */
.ripple {
    position: absolute;
    width: 220%;
    height: 220%;
    border-radius: 50%;
    /* Very subtle ripple */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0, transparent 60%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 5;
    /* Between background (1) and text (20) */
    animation: ripple 450ms ease-out forwards;
}

@keyframes ripple {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .liquid-button {
        padding: 14px 32px;
        /* Smaller padding */
        min-width: 180px;
        /* Smaller width */
        gap: 8px;
        /* Tighter gap */
        font-size: 20px;
        /* Smaller text */
    }

    .liquid-button svg {
        width: 24px;
        height: 24px;
    }
}