/* PRELOADER STYLES */
#preloader {
    position: fixed;
    /* Cubre toda la ventana */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Fondo del preloader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Asegura que esté por encima de todo lo demás */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease-out, visibility 0.7s ease-out;
    /* Transición suave para desaparecer */
}

.preloader-logo {
    width: 550px;
    /* Tamaño de tu logo/imagen */
    height: auto;
    max-width: 80vw;
    /* Asegura que no sea demasiado grande en móviles */
    animation:
        pulseGlow 2s infinite ease-in-out,
        /* Efecto de pulso con brillo neón */
        subtleRotate 10s infinite linear;
    /* Rotación lenta y continua */
    filter: drop-shadow(0 0 15px rgba(255, 119, 168, 0.7));
    /* Sombra de neón */
}

/* ANIMACIONES */
@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 119, 168, 0.5));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255, 119, 168, 1));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 119, 168, 0.5));
    }
}

@keyframes subtleRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* CLASES PARA CUANDO EL PRELOADER DESAPARECE */
.preloader-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    /* Impide clics en el área invisible */
}

/* CLASES PARA CUANDO EL CONTENIDO PRINCIPAL ES VISIBLE */
.main-content-visible {
    opacity: 1 !important;
    transition: opacity 1s ease-in;
    /* Aparece suavemente */
}











:root {
    --nx-pink: #FF77A8;
    --nx-fab-size: 6rem;
    /* Tamaño de tu burbuja */
}

.nx-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    /* Dejamos el contenedor pequeño para que no estorbe */
    width: var(--nx-fab-size);
    height: var(--nx-fab-size);
opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Empieza un poco más abajo */
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

/* Esta clase la activaremos con JS */
.nx-fab-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}


/* GRUPO DE ICONOS: Forzados a subir */
.nx-fab-options {
    position: absolute;
    /* Importante: bottom positivo para que suban desde la burbuja */
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* BURBUJA PRINCIPAL */
.nx-fab-main {
    width: 6rem;
    height: 6rem;
    background: #1c1c1c8f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    /* Esto hace que la imagen se corte en círculo */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 0 !important;
}

.nx-fab-img {
    width: 100%;
    height: 100%;
    /* COVER: Hace que la imagen rellene todo el círculo sin espacios */
    object-fit: cover;
    transition: 0.3s;
    display: block;
}

.nx-fab-close-icon {
    position: absolute;
    color: #fff;
    font-size: 1.8rem;
    opacity: 0;
    transition: 0.3s;
    z-index: 5;
}

/* ICONOS HIJOS */
.nx-fab-child {
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    font-size: 1.2rem;
}

/* ACTIVACIÓN */
.nx-fab-container:hover .nx-fab-options,
.nx-fab-container.active .nx-fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nx-fab-container:hover .nx-fab-img,
.nx-fab-container.active .nx-fab-img {
    opacity: 0;
    transform: scale(0.8);
}

.nx-fab-container:hover .nx-fab-close-icon,
.nx-fab-container.active .nx-fab-close-icon {
    opacity: 1;
}

/* Efectos de color */
.nx-btn-whatsapp:hover {
    background: #25D366;
}

.nx-btn-mail:hover {
    background: var(--nx-pink);
}

.nx-btn-up:hover {
    background: #fff;
    color: #000;
}