/* ============================================
   Botón Flotante Metálico - "Solicita una cotización"
   ============================================ */

.metallic-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2rem;
    border-radius: 1.25rem;
    
    /* Borde metálico exterior en tono azul profundo */
    border: 1.5px solid rgba(13, 58, 148, 0.5);
    text-decoration: none;
    background: linear-gradient(90deg, #2b92f3 0%, #0a2869 100%);
    background-size: 100% 100%;
    background-position: center;
    
    /* Sombra exterior y resplandor interno */
    box-shadow: 
        0 12px 35px -4px rgba(7, 25, 66, 0.45),
        inset 0 1px 0px rgba(255, 255, 255, 0.45),
        inset 0 -1px 2px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(82, 150, 255, 0.25);
        
    color: #ffffff;
    font-weight: 800;
    font-family: inherit;
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    
    /* Texto en relieve */
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(0, 0, 0, 0.6);
        
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
}

/* Borde interno pulido (Chamfered edge) */
.metallic-btn::before {
    content: '';
    position: absolute;
    inset: 1.5px;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Efecto de destello de barrido (Shine sweep) */
.metallic-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 2;
}

/* Animación de flotación suave */
@keyframes metallic-float {
    0% {
        transform: translateY(0px);
        box-shadow: 
            0 12px 35px -4px rgba(7, 25, 66, 0.45),
            inset 0 1px 0px rgba(255, 255, 255, 0.45),
            inset 0 -1px 2px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(82, 150, 255, 0.25);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 
            0 20px 40px -2px rgba(7, 25, 66, 0.55),
            inset 0 1px 0px rgba(255, 255, 255, 0.45),
            inset 0 -1px 2px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(82, 150, 255, 0.4);
    }
    100% {
        transform: translateY(0px);
        box-shadow: 
            0 12px 35px -4px rgba(7, 25, 66, 0.45),
            inset 0 1px 0px rgba(255, 255, 255, 0.45),
            inset 0 -1px 2px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(82, 150, 255, 0.25);
    }
}

/* Animación de destello automático continuo */
@keyframes metallic-auto-shine {
    0% { left: -100%; }
    100% { left: 150%; }
}

.metallic-btn.animate-float {
    animation: metallic-float 4.5s ease-in-out infinite;
}

.metallic-btn.animate-float::after {
    animation: metallic-auto-shine 2.8s ease-in-out infinite alternate;
}

/* Efectos al hacer Hover */
.metallic-btn:hover {
    transform: translateY(-10px) scale(1.04);
    border-color: rgba(82, 150, 255, 0.7);
    color: #ffffff;
    background-position: right center;
    box-shadow: 
        0 22px 45px -4px rgba(7, 25, 66, 0.6),
        inset 0 1px 0px rgba(255, 255, 255, 0.65),
        0 0 30px rgba(82, 150, 255, 0.55);
}

.metallic-btn:hover::after {
    animation: metallic-auto-shine 1.6s ease-in-out infinite alternate;
}

.metallic-btn:active {
    transform: translateY(-2px) scale(0.96);
    box-shadow: 
        0 8px 20px rgba(7, 25, 66, 0.4),
        inset 0 1px 0px rgba(255, 255, 255, 0.35),
        inset 0 -1px 1px rgba(0, 0, 0, 0.5);
}

.metallic-btn svg {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
    stroke: #ffffff;
}

.metallic-btn:hover svg {
    transform: rotate(12deg) scale(1.15);
}

.metallic-btn span {
    z-index: 3;
}

/* Optimization for mobile screens to make the floating button compact */
@media (max-width: 767px) {
    .metallic-btn {
        bottom: 1rem !important;
        right: 1rem !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
        border-radius: 0.9rem !important;
        gap: 0.5rem !important;
    }
    .metallic-btn::before {
        inset: 1px !important;
        border-radius: 0.8rem !important;
    }
    .metallic-btn svg {
        width: 1rem !important;
        height: 1rem !important;
    }
}
