body {
    background: linear-gradient(360deg, #0b3147, #222222);
    min-height: 100vh;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family:'Times New Roman', Times, serif;
    color: #fff;
    text-align: center;
}
.menu {
    background: linear-gradient(90deg, #0b3147, #222222);
    padding: 15px;
    opacity: 40%
}
.menu:hover{
    background: linear-gradient(90deg, #0b3147, #222222);
    transition: 0.5s ease;
    opacity: 100%;
}
.menu ul {
    display: flex;
    list-style: none;
    gap: 190px;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.menu a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
}
.menu a:hover {
    text-shadow: 0 0 15px #0ff, 0 0 40px #0ff;
    color: #0ff;
    opacity: 100%;
}

.main2__resume {
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align:center;   
}
.text__resume{
    color: #fff;
    opacity: 100%;
}
.images {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.card {
    transition: 0.5s ease;
    cursor: pointer;
    height: 400px; /* Tamaño fijo para que todas sean iguales */
    width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    background-color: #000;
}

.img-content {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la imagen/video llene el espacio sin deformarse */
    
}

.card:hover {
    transform: scale(1.05);
    box-shadow: rgb(29, 31, 31) 0 0 20px, rgb(159, 161, 161) 0 0 40px;
}

.images:hover > .card:not(:hover) {
    opacity: 0.5;
}

.name__title:hover {
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
}
hr{
    width: 1300px;
}
.sobremi{
    text-align: left;
    max-width: 90%;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align: left;
    display: flex;
    gap: opx;
    justify-content: center;
    align-items: center;
}
.text1__resume{
    color: #fff;
    opacity: 100%;
    max-width: 80%;
}
.Sobremi__title{
    text-align: left;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align: left;
}
.img__profile img{
    transition: 0.5s ease;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-left:0px;
    object-fit: cover ;
    box-shadow: rgb(29, 31, 31) 0 0 20px, rgb(159, 161, 161) 0 0 40px;
    opacity: 50%;
    text-align: left;
}
.img__profile img:hover {
    transform: scale(1.05);
    opacity: 100%;
}
.Sobremi__title{
    text-align: left;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align: left;
}
.habilidades__title{
    text-align: left;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align: left;
}
#Habilidades{
    text-align: left;
    max-width: 90%;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align: left;
    display: flex;
    gap: opx;
    justify-content: center;
    align-items: center;
}   
.text2__resume{
    color: #fff;
    opacity: 100%;
    max-width: 75%;
}
.div{
   line-height:0.5;
}
.n2 li{
    font-family: 'Times New Roman', Times, serif ;
    font-size: 25px;
    color: #0b87b8;
}

.proyecto__title{
    text-align: left;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;

}
.proyecto{
    text-align: left;
    max-width: 90%;
    padding: 0px 50px ;
    margin:0px 30px;
    color: beige;
    text-align: left;
    display: flex;
    gap: opx;
    justify-content: center;
    align-items: center;
}
.textproyect__resume{
    color: #fff;
    opacity: 100%;
    max-width: 95%;
}
.textproyect__resume h3{
    font-size: 25px;
    color: #0b87b8;
}
body p{
    font-size: 18px;
}
.footer{
    background: linear-gradient(90deg, #313131, #242323);
    padding: 15px;
    color: white;
    text-align: center;
    margin-top: 20px;
    opacity: 50%;
}
.footer p{
    font-size: 13px;
}
.footer:hover{
    opacity: 100%;
}
.footer p:hover{
opacity: 100%;
}
.contacto0 {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.contact {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 40px; 
    position: relative;
}

.image__contact {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
}

.image__contact img {
    width: 30px;
    height: 30px; 
    border-radius: 50px;
}

.contact a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px; 
    height: 45px; 
    z-index: 1;
    text-decoration: none;
}

.contact span {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px; 
    height: 100%;
    background: linear-gradient(45deg, #0ff, #222222);
    border-radius: 10px;
    transition: 0.5s;
    opacity: 0; 
    pointer-events: none;
}

.contact a:hover ~ span {
    opacity: 1;
}
.contact a:nth-child(1):hover ~ span {
  left: 0px;
}

.contact a:nth-child(2):hover ~ span {
  left: 180px; /* 140 + 40 */
}

.contact a:nth-child(3):hover ~ span {
  left: 360px; /* 180 + 180 */
}

.contact a:nth-child(4):hover ~ span {
  left: 540px; /* 360 + 180 */
}
hr{
    width: 90%;
}

@media (max-width: 1024px){
    .menu ul{
        gap: 40px;
    }

    .sobremi{
        flex-direction: column;
        text-align: center;
    }

    #Habilidades{
        flex-direction: column;
        text-align: center;
    }

    .proyecto{
        flex-direction: column;
        text-align: center;
    }

    .contact{
        flex-wrap: wrap;
    }
}

@media (max-width: 768px){
    .menu ul{
        flex-direction: column;
        gap: 15px;
    }

    .main2__resume{
        padding: 0 20px;
        margin: 0;
    }

    .sobremi{
        padding: 0 20px;
        margin: 0;
    }

    #Habilidades{
        padding: 0 20px;
        margin: 0;
    }

    .proyecto{
        padding: 0 20px;
        margin: 0;
    }

    .img__profile img{
        width: 300px;
        height: 300px;
    }

    .contact{
        gap: 15px;
    }
}

@media (max-width: 480px){
    .menu{
        padding: 10px;
    }

    .menu ul{
        gap: 10px;
    }

    .card{
        width: 100%;
        height: 250px;
    }

    .contact{
        flex-direction: column;
    }

    .contact span{
        display: none;
    }
}