header img {
    width: 100%;
}

header {
    background-color: rgb(13, 56, 126);
    border-bottom: 5px solid rgba(0, 0, 0, 0.2);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

table.menu {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

table.menu a:link {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

table.menu a:visited {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

table.menu a:hover {
    color: rgb(225, 165, 65);
}

body {
    background-image: url(../img/fondo-morado.png);
    background-size: auto;
    background-repeat: repeat;
    margin: 0;
    padding-top: 30vw;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

div h1,
div h2,
div h3,
div p {
    color: rgb(255, 255, 255);
}

.trofeo {
    height: 50px;
}

.recuadro {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    border: 3px solid rgba(255, 215, 0, 0.5); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.recuadro-modo {
    background-color: rgba(13, 56, 126, 0.7);
    padding: 20px;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    border: 3px solid rgba(255, 215, 0, 0.5); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.modo {
    color: rgb(255, 215, 0);
}

#inicio {
    background-image: url(../img/fondo-azul.png);
}

.img-inicio {
    border-radius: 10px;
    border: 3px solid rgba(255, 215, 0, 0.5); 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    background-color: rgb(13, 56, 126);
    width: 20%;
}

#primero {
    width: 50%;
}

div {
    width: 100%;
    text-align: center;
}

.izq {
    float: left;
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

footer {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
    margin-top: auto;
}

footer a:link {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

footer a:visited {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

footer a:hover {
    color: rgb(225, 165, 65);
}


#titulo {
    background: linear-gradient(90deg, 
        rgb(255, 107, 53),
        rgb(247, 147, 30),
        rgb(253, 200, 48),
        rgb(243, 115, 53),
        rgb(255, 107, 53)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: tituloGradiente 4s ease-in-out infinite;
    font-weight: bold;
    font-size: clamp(2em, 5vw, 3.5em);
    text-align: center;
    letter-spacing: 2px;
    margin: 0;
    padding: 20px 10px;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    z-index: 10;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5))
            drop-shadow(0 0 20px rgba(255, 107, 53, 0.8))
            drop-shadow(0 0 30px rgba(253, 200, 48, 0.5));
}

#banner {
    position: relative; 
}

.redes-sociales {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.redes-sociales:hover {
    transform: translateY(-8px) scale(1.1);
}

.redes-sociales img {
    width: 35px;
    height: 35px;
    transition: all 0.3s ease;
}

/* Instagram */
.redes-sociales:nth-child(1):hover {
    background: radial-gradient(circle at 30% 107%, rgb(253, 244, 151) 0%, rgb(253, 244, 151) 5%, rgb(253, 89, 73) 45%, rgb(214, 36, 159) 60%, rgb(40, 90, 235) 90%);
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.6);
    border-color: rgb(225, 48, 108);
}

/* Twitter */
.redes-sociales:nth-child(2):hover {
    background: rgb(29, 161, 242);
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.6);
    border-color: rgb(29, 161, 242);
}

/* Facebook */
.redes-sociales:nth-child(3):hover {
    background: rgb(24, 119, 242);
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.6);
    border-color: rgb(24, 119, 242);
}

/* TikTok */
.redes-sociales:nth-child(4):hover {
    background: rgb(0, 0, 0);
    box-shadow: 0 10px 30px rgba(105, 255, 255, 0.6);
    border-color: rgb(105, 255, 255);
}

/* YouTube */
.redes-sociales:nth-child(5):hover {
    background: rgb(255, 0, 0);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.6);
    border-color: rgb(255, 0, 0);
}

/* Discord */
.redes-sociales:nth-child(6):hover {
    background: rgb(88, 101, 242);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.6);
    border-color: rgb(88, 101, 242);
}

/* Reddit */
.redes-sociales:nth-child(7):hover {
    background: rgb(255, 69, 0);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.6);
    border-color: rgb(255, 69, 0);
}

@keyframes tituloGradiente {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@media (max-width: 768px) {
    .izq {
        float: none;
        width: 100%;
        min-height: auto;
        margin-bottom: 15px;
    }
    
    .img-inicio {
        width: 20% !important;
        display: block;
        margin: 0 auto;
    }
    
    #primero {
        width: 80% !important;
    }
}

@media (max-width: 480px) {
    .img-inicio {
        width: 40% !important;
    }
    
    #primero {
        width: 90% !important;
    }
    
    .recuadro {
        width: 90%;
        padding: 15px;
    }
}