body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    cursor: default;
}

.space-background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000033 0%, #000 50%, #330033 100%);
    z-index: -2;
}

.stars-container {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
}

.header {
    position: fixed;
    top: 5px;
    left: 0;
    width: 100%;
    height: 30vh; /* Altura base relativa al viewport */
    min-height: 100px; /* Altura mínima */
    max-height: 300px; /* Altura máxima */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: vis;
    background: transparent;
    transition: height 0.3s ease;
}

.header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-width: 100%;
    min-height: 100%;
}

/* Ajustamos la posición del contenido principal */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0; /* Eliminamos el padding-top que podría estar causando problemas */
    position: absolute;
    top: 55%; /* Modificamos de 50% a 60% para bajar la posición */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 4;
    width: 90%;
    max-width: 600px;
}

.content h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1vw, 5px);
    text-shadow: 0 0 10px rgba(255, 248, 231, 0.5), 0 0 20px rgba(255, 248, 231, 0.3);
    animation: glow 2s infinite alternate;
}

/* Nuevo estilo para la caja de información */
.info-box {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin-top: 4px;
    margin-bottom: 10px;
    box-shadow: 0 0 15px rgba(102, 51, 255, 0.5);
}

.info-box p {
    font-size: 20px;
    line-height: 1;
    text-align: center;
    color: #9a7bcc;
    margin: 0;
    padding: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    font-family: 'Arial', sans-serif;
    margin-bottom: 15px;
    font-weight: bold;

}

/* Estilos para el contenedor de Discord */
.discord-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

/* Estilo para el botón de Discord - versión mejorada y responsiva */
.discord-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, #5865F2, #4752C4);
    color: white;
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 5px;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 10px auto; /* Centrado horizontal con margen automático */
    cursor: pointer;
    width: min(300px, 90%); /* Ancho adaptativo: 300px o 90% del contenedor (el que sea menor) */
    height: auto; /* Altura automática en lugar de fija */
    min-height: 30px; /* Altura mínima */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 5;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.5), inset -20px -20px 40px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: 'Arial', sans-serif;
    font-size: clamp(14px, 4vw, 18px); /* Tamaño de fuente adaptativo */
}
.discord-button:hover {     
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
}

.discord-button:hover {
    background-color: #4752C4;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.8);
    transform: translateY(-2px);
}

.discord-button svg {
    fill: white;
}

@media (max-width: 768px) {
    .header {
        height: 25vh;
        min-height: 80px;
    }
    .content {
        padding-top: 0;
        top: 35%; /* Ajustado para móviles */
    }
    .info-box {
        padding: 15px;
    }
    .info-box p {
        font-size: 16px;
    }
    .discord-container {
        flex-direction: column;
    }
    .discord-button {
        padding: 8px 15px;
        width: min(250px, 85%);
    }
}

@media (max-width: 480px) {
    .discord-button {
        padding: 7px 12px;
        width: min(220px, 80%);
        gap: 6px;
    }
}

@media (orientation: portrait) {
    .header {
        height: 20vh;
    }
    .content {
        padding-top: 0;
        top: 35%; /* Ajustado para orientación vertical */
    }
    
}

.planet {
    position: absolute;
    width: 15vw;
    height: 15vw;
    max-width: 150px;
    max-height: 150px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3366ff, #6633ff);
    box-shadow: 0 0 30px #6633ff, inset -20px -20px 40px rgba(0, 0, 0, 0.5);
    left: 10%;
    top: 30%;
    opacity: 0.8;
    animation: float 15s infinite ease-in-out;
}

.saturn-system {
    position: absolute;
    right: 15%;
    top: 60%;
    animation: float 20s infinite ease-in-out reverse;
    z-index: 1;
}

.saturn {
    position: relative;
    width: 10vw;
    height: 10vw;
    max-width: 100px;
    max-height: 100px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffcc33, #ff9933);
    box-shadow: 0 0 20px #ff9933;
    opacity: 0.9;
    z-index: 2;
    margin: 0 auto;
}

.saturn-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-20deg);
    width: 160%;
    height: 30%;
    border-radius: 50%;
    border: min(0.5vw, 5px) solid rgba(255, 204, 51, 0.4);
    z-index: 1;
}

.comet {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: white;
    border-radius: 50%;
    box-shadow: -10px 0px 15px 5px rgba(30, 144, 255, 0.8); /* Cola de cometa azul */
    z-index: 3;
    cursor: pointer;
    padding: 10px;
    margin: -10px;
    opacity: 0;
    transition: opacity 0.5s;
}

.comet:hover {
    box-shadow: -12px 0px 20px 8px rgba(30, 144, 255, 1);
}

.click-message {
    position: absolute;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 5;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.5), 0 0 40px rgba(102, 204, 255, 0.7);
    }
}

/* Estilos para el footer */
.social-footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(223, 46, 193);
    font-size: 14px;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 20px;
    border-radius: 20px;
    width: auto;
    max-width: 90%;
}

.footer-heading {
    text-align: center;
    margin-bottom: 15px;
}

.footer-heading div {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.social-profiles {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-links a {
    color: rgb(223, 46, 193);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}