/* Estilos Glassmorphism para los botones Neo-Cyber */
.q2am-next-prev-container {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(113, 76, 210, 0.3);
}

.q2am-np-btn {
    background: rgba(20, 20, 35, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(113, 76, 210, 0.6);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 0 10px rgba(113, 76, 210, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.q2am-np-btn:hover {
    border-color: #30D7EC;
    box-shadow: 0 4px 20px rgba(48, 215, 236, 0.4), inset 0 0 15px rgba(48, 215, 236, 0.3);
    color: #30D7EC;
    transform: translateY(-2px);
}

.q2am-np-btn .icon {
    color: #30D7EC;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.q2am-prev:hover .icon { transform: translateX(-4px); }
.q2am-next:hover .icon { transform: translateX(4px); }

/* Animación del Cubo 3D a pantalla completa (Corregido) */
#cube-transition-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 2147483647 !important; /* Z-index máximo permitido por los navegadores */
    display: none;
    perspective: 1500px;
    background: transparent;
    overflow: hidden;
}

.cube-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transform: translateZ(-50vw);
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0d0d14; /* Fondo oscuro estilo Routters */
    border: 2px solid #714CD2;
    box-shadow: inset 0 0 120px rgba(113, 76, 210, 0.6);
    color: #30D7EC;
    font-size: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.cube-face::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    margin-top: 30px;
    border: 4px solid #30D7EC;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cube-front { transform: rotateY(0deg) translateZ(50vw); }
.cube-right { transform: rotateY(90deg) translateZ(50vw); }
.cube-left  { transform: rotateY(-90deg) translateZ(50vw); }

.animate-to-next { transform: translateZ(-50vw) rotateY(-90deg); }
.animate-to-prev { transform: translateZ(-50vw) rotateY(90deg); }