body {
    margin: 0;
    min-height: 100vh;
    background-color: #4c7ea0;
    overflow-x: hidden;
}

/* Contenedor principal: la escena AR va a pantalla completa */
.ar-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* La escena de A-Frame/MindAR de fondo */
a-scene {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Botón de regresar (flotando encima de la cámara) */
.back-button {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 10000;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: rgba(10, 25, 47, 0.6);
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.back-button:active {
    transform: scale(0.9);
}

/* Barra de controles (play, pausa, efecto) */
.ar-controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 10000;
    padding: 0;
    pointer-events: none; /* deja pasar los toques en el espacio vacío */
}

.ar-btn {
    background-color: #16233d;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease;
    pointer-events: auto; /* los botones sí reciben clic */
}

.ar-btn:active {
    transform: scale(0.9);
}

@media (min-width: 576px) {
    .ar-btn {
        width: 68px;
        height: 68px;
        font-size: 1.8rem;
    }
}