/* Capa contenedora de botones inferiores */
.interface-layer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.nav-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--color-primary, #03165c);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.3s ease;
}

.nav-btn:active {
    transform: scale(0.95);
}

.button-container {
    display: none;
    justify-content: center;
    gap: 15px;
    padding: 0 10px;
}

#btn-home {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.2s, transform 0.2s;
}

#btn-home:active {
    transform: scale(0.9);
}

#rotate-mode-toggle {
    position: absolute;
    top: 72px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#rotate-mode-toggle.is-active {
    background: rgba(13, 95, 215, 0.9);
    border-color: rgba(255, 255, 255, 0.45);
}

#rotate-mode-toggle:active {
    transform: scale(0.95);
}

#rotate-mode-toggle .icon-rotate {
    display: none;
}

#rotate-mode-toggle.is-active .icon-move {
    display: none;
}

#rotate-mode-toggle.is-active .icon-rotate {
    display: block;
}

#action-btn {
    position: absolute;
    top: 20px;
    right: 76px;
    padding: 12px 24px;
    border-radius: 50px;
    display: none;
    color: white;
    text-decoration: none;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
    cursor: pointer;
}
