body {
    margin: 0;
    height: 100vh;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
    perspective: 1500px;
    position: relative;
    font-family: sans-serif; 
}
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    z-index: 1000;
}

.page-header img {
    height: 100px; /* Ajusta según necesites */
    width: auto;
}
.scene {
    width: 300px;
    height: 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

@keyframes floatRotate1 {
    0%, 100% { transform: translateZ(-350px) rotateY(45deg) rotateX(-30deg) scale(0.8) translateY(0px); }
    50% { transform: translateZ(-350px) rotateY(55deg) rotateX(-25deg) scale(0.82) translateY(-25px); } 
}

@keyframes floatRotate2 {
    0%, 100% { transform: translateZ(350px) rotateY(-60deg) rotateX(20deg) scale(1.1) translateX(0px); }
    50% { transform: translateZ(350px) rotateY(-50deg) rotateX(25deg) scale(1.12) translateX(20px); } 
}

@keyframes floatRotate3 {
    0%, 100% { transform: translateX(320px) rotateY(120deg) rotateZ(10deg) scale(0.9) translateZ(100px); }
    50% { transform: translateX(320px) rotateY(130deg) rotateZ(5deg) scale(0.92) translateZ(80px); } 
}

@keyframes floatRotate4 {
     0%, 100% { transform: translateX(-320px) rotateY(-150deg) rotateZ(-20deg) scale(1.0) translateY(0px) translateZ(-100px); }
    50% { transform: translateX(-320px) rotateY(-160deg) rotateZ(-25deg) scale(1.02) translateY(22px) translateZ(-100px); } 
}

@keyframes floatRotate5 {
    0%, 100% { transform: translateY(300px) translateZ(150px) rotateX(70deg) scale(0.7) rotateY(0deg); }
    50% { transform: translateY(300px) translateZ(150px) rotateX(75deg) scale(0.72) rotateY(25deg); } 
}

@keyframes floatRotate6 {
    0%, 100% { transform: translateY(-300px) translateZ(-150px) rotateX(-80deg) scale(1.2) rotateZ(0deg); }
    50% { transform: translateY(-300px) translateZ(-150px) rotateX(-85deg) scale(1.22) rotateZ(18deg); } 
}

.cube {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.cube:nth-child(1) { animation-name: floatRotate1; animation-duration: 13s; }
.cube:nth-child(2) { animation-name: floatRotate2; animation-duration: 16s; animation-delay: -2s; }
.cube:nth-child(3) { animation-name: floatRotate3; animation-duration: 15s; animation-delay: -4s; }
.cube:nth-child(4) { animation-name: floatRotate4; animation-duration: 17s; animation-delay: -6s; }
.cube:nth-child(5) { animation-name: floatRotate5; animation-duration: 14s; animation-delay: -8s; }
.cube:nth-child(6) { animation-name: floatRotate6; animation-duration: 18s; animation-delay: -10s; }

.face {
    position: absolute;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 40px rgba(0, 100, 200, 0.4);
    backface-visibility: hidden;
}

.front  { transform: translateZ(125px); }
.back   { transform: rotateY(180deg) translateZ(125px); }
.right  { transform: rotateY(90deg) translateZ(125px); }
.left   { transform: rotateY(-90deg) translateZ(125px); }
.top    { transform: rotateX(90deg) translateZ(125px); }
.bottom { transform: rotateX(-90deg) translateZ(125px); }

.cube:nth-child(1) .face { background: rgba(255, 0, 150, 0.15); animation: pulseGlow1 8s ease-in-out infinite alternate; border-color: rgba(255, 50, 150, 0.4); }
.cube:nth-child(2) .face { background: rgba(0, 255, 150, 0.15); animation: pulseGlow2 8s ease-in-out infinite alternate; border-color: rgba(50, 255, 150, 0.4); }
.cube:nth-child(3) .face { background: rgba(150, 0, 255, 0.15); animation: pulseGlow3 8s ease-in-out infinite alternate; border-color: rgba(150, 50, 255, 0.4); }
.cube:nth-child(4) .face { background: rgba(255, 150, 0, 0.15); animation: pulseGlow4 8s ease-in-out infinite alternate; border-color: rgba(255, 150, 50, 0.4); }
.cube:nth-child(5) .face { background: rgba(0, 150, 150, 0.15); animation: pulseGlow5 8s ease-in-out infinite alternate; border-color: rgba(50, 150, 150, 0.4); }
.cube:nth-child(6) .face { background: rgba(150, 150, 0, 0.15); animation: pulseGlow6 8s ease-in-out infinite alternate; border-color: rgba(150, 150, 50, 0.4); }

@keyframes pulseGlow1 { from { box-shadow: inset 0 0 30px rgba(200, 0, 100, 0.3); } to { box-shadow: inset 0 0 50px rgba(255, 50, 150, 0.5); }}
@keyframes pulseGlow2 { from { box-shadow: inset 0 0 30px rgba(0, 200, 100, 0.3); } to { box-shadow: inset 0 0 50px rgba(50, 255, 150, 0.5); }}
@keyframes pulseGlow3 { from { box-shadow: inset 0 0 30px rgba(100, 0, 200, 0.3); } to { box-shadow: inset 0 0 50px rgba(150, 50, 255, 0.5); }}
@keyframes pulseGlow4 { from { box-shadow: inset 0 0 30px rgba(200, 100, 0, 0.3); } to { box-shadow: inset 0 0 50px rgba(255, 150, 50, 0.5); }}
@keyframes pulseGlow5 { from { box-shadow: inset 0 0 30px rgba(0, 100, 100, 0.3); } to { box-shadow: inset 0 0 50px rgba(50, 150, 150, 0.5); }}
@keyframes pulseGlow6 { from { box-shadow: inset 0 0 30px rgba(100, 100, 0, 0.3); } to { box-shadow: inset 0 0 50px rgba(150, 150, 50, 0.5); }}


.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.main-view { 
    pointer-events: auto; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 5.2em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 900px;
}

.main-button {
    background-color: rgba(0, 150, 255, 0.15);
    border: 1px solid rgba(0, 174, 255, 0.5);
    color: white;
    padding: 15px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0, 150, 255, 0.3);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 220px;
    min-height: 200px;
    justify-content: flex-start;
}

.main-button:hover {
    background-color: rgba(251, 255, 0, 0.25);
    border-color: rgba(238, 255, 0, 0.8);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(200, 255, 0, 0.5);
}

.main-button:active {
    transform: translateY(-2px) scale(0.99);
    background-color: rgba(208, 255, 0, 0.3);
    box-shadow: 0 2px 15px rgba(238, 255, 0, 0.4);
}

.button-image-placeholder {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
    transition: background-color 0.3s, border-color 0.3s;
}

.button-image-placeholder {
    width: 100px;  /* Tamaño del círculo */
    height: 100px; /* Tamaño del círculo */
    border-radius: 50%; /* Hace que sea circular */
    overflow: hidden; /* Asegura que la imagen no sobresalga */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Color de fondo por si la imagen es transparente */
    border: 2px solid #ccc; /* Borde opcional */
}

.button-image-placeholder img {
    width: 80%; /* La imagen ocupará el 80% del círculo */
    height: 80%; /* La imagen ocupará el 80% del círculo */
    object-fit: contain; /* Asegura que la imagen se ajuste manteniendo proporciones */
}

.main-button:hover .button-image-placeholder {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.button-text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #e0f7ff;
}

.button-subtitle {
    font-size: 0.85em;
    color: rgba(200, 220, 255, 0.8);
    line-height: 1.3;
    max-width: 90%;
}

@media (max-width: 768px) {
    .buttons {
        flex-direction: column; 
        align-items: center; 
        gap: 20px;
    }

    .main-button {
        width: 80%; 
        max-width: 300px; 
        min-height: auto; 
        padding: 20px; 
        flex-direction: row; 
        text-align: left;
        align-items: center; 
    }

    .button-image-placeholder {
        width: 60px;
        height: 60px;
        margin-bottom: 0; 
        margin-right: 15px; 
        flex-shrink: 0; 
    }

    .button-text-content {
        align-items: flex-start; 
    }

    .button-title {
        font-size: 1em;
        margin-bottom: 5px;
    }

    .button-subtitle {
        font-size: 0.8em;
    }

    h1 {
        font-size: 2em;
    }
}