/* css/buttons_home.css */
.botones-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.boton-wrapper {
    position: absolute;
    width: 400px;
    height: 400px;
    aspect-ratio: 1; /* ← siempre cuadrado */
    pointer-events: none;
}

.boton-principal {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.05s ease;
    cursor: pointer;
    pointer-events: auto;
}

.boton-sombra {
    position: absolute;
    width: 110%;
    height: 110%;
    object-fit: contain;
    transition: all 0.1s ease;
    pointer-events: none;
}


/* ============================================ */
/* BOTÓN 1 */
/* ============================================ */
#boton-D {
    width: 35%;
    height: 35%;
    bottom: -3%;
    left: -5%;
    transform: rotate(-20deg);
}

#boton-D .boton-principal {
    transform-origin: 0% center;
}

#boton-D .boton-principal:hover {
    transform: scale(1.2) rotate(-3deg);
}

#boton-D .boton-principal:active {
    transform: scale(1.2) rotate(-1deg);
    transition: all 0.05s ease;
}

/* ============================================ */
/* BOTÓN 2 */
/* ============================================ */
#boton-2D {
    width: 35%;
    height: 35%;
    bottom: -6%;
    left: 25%;
    transform: rotate(290deg);
}

#boton-2D .boton-principal {
    transform-origin: 0% center;
}

#boton-2D .boton-sombra {
    transform: scale(1.1);
    bottom: -20%;
    left: -10%;
}

#boton-2D .boton-principal:hover {
    left: 5%;
    transform: scale(1.1) rotate(-1deg);
}

#boton-2D .boton-principal:active {
    left: 5%;
    transform: scale(1.1) rotate(1deg);
    transition: all 0.05s ease;
}

/* ============================================ */
/* BOTÓN 3 */
/* ============================================ */
#boton-3D {
    width: 40%;
    height: 40%;
    bottom: 1%;
    right: 5%;
    transform: rotate(200deg);
}

#boton-3D .boton-sombra {
    transform: scale(1.1);
    bottom: -15%;
    left: -20%;
}

#boton-3D .boton-principal {
    transform-origin: 0% center;
}

#boton-3D .boton-principal:hover {
    left: 0%;
    bottom: 0%;
    transform: scale(1.1) rotate(2deg);
}

#boton-3D .boton-principal:active {
    left: 0%;
    transform: scale(1.1) rotate(0deg);
    transition: all 0.05s ease;
}

/* ============================================ */
/* BOTÓN 4 */
/* ============================================ */
#boton-O {
    width: 40%;
    height: 40%;
    bottom: 37%;
    right: -12%;
    transform: rotate(135deg);
}

#boton-O .boton-sombra {
    transform: scale(1.1);
    bottom: -11%;
    left: -24%;
}

#boton-O .boton-principal {
    transform-origin: 0% center;
}

#boton-O .boton-principal:hover {
    left: 0%;
    bottom: 0%;
    transform: scale(1.07) rotate(2deg);
}

#boton-O .boton-principal:active {
    left: 0%;
    transform: scale(1.07) rotate(0deg);
    transition: all 0.05s ease;
}


/* ============================================ */
/* MÓVIL */
/* ============================================ */
@media (max-width: 768px) {
    #boton-D  { width: 55%; height: auto; bottom: 12%; left: -10%; transform: scale(1.3) rotate(-45deg); }
    #boton-2D { width: 55%; height: auto; bottom: 0%; left: -15%; transform: scale(1.15) rotate(-20deg);  }
    #boton-3D { width: 60%; height: auto; bottom: 0%; right: -20%; transform: scale(1.15) rotate(200deg); }
    #boton-O  { width: 55%; height: auto; bottom: 34%;  right: -14%;transform: scale(1.3) rotate(110deg);}
}