* {
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    height: 100%;
    max-height: 100vh;
    overflow: hidden
}

body {
    background-size: 100%;
    -webkit-perspective: 800;
    background-image: url("../images/background.jpg");
}

li {
    list-style: none;
}

.box {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 300px auto;
    transform-style: preserve-3d;
    transform: rotateX(13deg);
    animation: move 5s linear infinite;
    min-height: 100vh;
}

.minbox {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 50px;
    top: 50px;
    transform-style: preserve-3d;
}

.minbox li {
    width: 100px;
    height: 100px;
    position: absolute;
    left: 0;
    top: 0;
}

.minbox li:nth-child(1) {
    transform: translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(2) {
    transform: rotateX(180deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(50px);
    background-size: cover;
}

.minbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(50px);
    background-size: cover;
}

.maxbox li:nth-child(1) {
    transform: translateZ(50px);
    background-size: 100% 100%;
    transform: translateZ(100px);
}

.maxbox li:nth-child(2) {
    transform: rotateX(180deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(100px);
    background-size: 100% 100%;
}

.maxbox li:nth-child(4) {
    transform: rotateX(90deg) translateZ(100px);
}

.maxbox li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(100px);
}

.maxbox li:nth-child(6) {
    transform: rotateY(90deg) translateZ(100px);
}

.maxbox {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 0;
    top: 0;
    transform-style: preserve-3d;
}

.maxbox li {
    width: 200px;
    height: 200px;
    background: #fff;
    border: 1px solid #ccc;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.2;
    transition: all 1s ease;
}

.box:hover ol li:nth-child(1) {
    transform: translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(2) {
    transform: rotateX(180deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(3) {
    transform: rotateX(-90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(4) {
    transform: rotateX(90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(5) {
    transform: rotateY(-90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

.box:hover ol li:nth-child(6) {
    transform: rotateY(90deg) translateZ(300px);
    width: 400px;
    height: 400px;
    opacity: 0.8;
    left: -100px;
    top: -100px;
}

@keyframes move {
    0% {
        transform: rotateX(13deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(26deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(50deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(26deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(13deg) rotateY(360deg);
    }
}

.custom-confirm-button {
    background: #f85858 !important;
    color: white !important; /* Texto blanco */
    font-weight: bold !important;
}
.custom-confirm-button:focus{
    box-shadow: 2px 2px 10px red !important;
}

.flotante{
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) ;
    width: 300px;
    background: rgb(255,9,163);
    background: radial-gradient(circle, rgba(255,9,163,1) 0%, rgba(23,23,23,1) 100%);
    color: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: -1;
}

@media screen and (max-width: 600px) {
    body{
        background-image: url("../images/fondomovil.webp");
        background-size: cover;
    }
    .custom-image {
        margin-left: 20px; /* Ajusta el padding según lo necesites */
        margin-right: 20px;
        border-radius: 10px; /* Opcional: redondea los bordes */
        width: calc(100% - 40px);
    }
}