html, body {
    padding: 0%;
    margin: 0%;
    height: 100%;
}
/*FUENTE*/

main{
    height: 96%;
    margin: 0%;
    padding: 0%;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    background-color: rgb(252, 252, 252);
}

body {
    position: relative;
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}
#principalCard, #textChanged, #technologies{
    opacity: 0;
    visibility: hidden;
}

#technologies{
    animation-name: animacion;
    animation-duration: 1s;
    animation-delay: 1.5s;
    visibility: visible;
}

#textChanged{
    animation-name: animacion;
    animation-duration: 1s;
    animation-delay: 1s;
    visibility: visible;
}

#principalCard{
    animation-name: animacion;
    animation-duration: 1s;
    animation-delay: 0.5s;
    visibility: visible;
    margin: 3%;
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


@keyframes animacion {
    0%{opacity: 0;}
    10%{opacity: 0.0;}
    25%{opacity: 0.1;}
    30%{opacity: 0.2;}
    50%{opacity: 0.5;}
    60%{opacity: 0.6;}
    75%{opacity: 0.75;}
    80%{opacity: 0.8;}
    100%{opacity: 1;}    
}

/*BUTTONS*/
button{
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
}
.button{
    background-color: transparent; /* Fondo transparente */
    color: white; /* Color del texto blanco */
    font-size: larger;
    padding: 10px 20px; /* Espaciado interno del botón */
    border: none; /* Sin borde */
    cursor: pointer; /* Cambiar el cursor al pasar sobre el botón */
    transition: text-shadow 0.3s ease; /* Transición suave al cambiar la sombra del texto */
}

.button:hover {
    color: rgba(255, 255, 255, 0.9); /* Cambiar color del texto al pasar el mouse */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Sombra del texto al pasar el mouse */
}


/*BOTH SECTIONS*/

section{
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
h1, h5{
    margin-bottom: 0%
}

h3, h4, h5{
    margin-top: 0%;
    padding-top: 0%;
}

h4{
    font-weight: normal;
}

/*SECTION ONE*/

#section1{
    background-color: rgb(252, 252, 252);
    
}




#photo{
    -webkit-box-shadow: 3px 3px 5px -1px rgba(0,0,0,0.75);
    -moz-box-shadow: 3px 3px 5px -1px rgba(0,0,0,0.75);
    box-shadow: 3px 3px 6px -1px rgba(0,0,0,0.75);
    width: 90%;
    border-radius: 10px;
}



#sendEmail {
    text-decoration: none;
    color: white;
    background-color: rgb(44, 44, 44);
    padding: 5px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;;
}


#social{
    display: flex;
    
}
#social a img{
    width: 50px;
    margin: 10px;
}


/*SECTION TWO*/

#section2{
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
    clip-path: polygon(7.7% 0%, 100% 0%, 100% 100%, 0% 100%);
    box-shadow: 40px 36px 74px -24px rgba(0,0,0,0.75) inset;
    -webkit-box-shadow: 40px 36px 74px -24px rgba(0,0,0,0.75) inset;
    -moz-box-shadow: 40px 36px 74px -24px rgba(0,0,0,0.75) inset;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(69, 70, 70);
    
}

#section2 div{    
    margin: 0%;
    padding-left: 30px;
    width: 85%;
    display: flex;
    flex-direction: column;
    
    
}

#section2 div div{
    margin: 0%;
    width: 90%;
}


#section2 div div h3{
    margin-bottom: 0%;    
    color: #48bb57 ;
    font-size:x-large;
}

#section2 div div h4{
    margin-bottom: 0%;
    border-top: solid rgb(54, 54, 54) 2px;
    padding-top: 25px;
}


#section2 div div p{
    margin: 5px 0;
    line-height: 1.5;
}


#technologiesAndLanguages{        
    margin-top: 20px;    
}

/*FOOTER*/


footer{
    bottom: 0%;
    margin: 0%;
    padding: 0%;
    height: 4%;
    display: flex;
    justify-content: center;
    background-color: rgb(24, 24, 24);
}
footer p{
    margin: 0%;
    padding: 0%;
    color: rgb(100, 103, 103);

}




/*MEJORAS*/
.highlight {
    color: rgb(0, 0, 0);
    background-color: rgb(88, 202, 126);
    padding: 0.1em 0.2em;
}
.highlight-yellow {
    background-color: #ffed75;
    
}
.highlight-green {
    background-color: #8cf286;
}
.highlight-pink {
    background-color: #ff9ece;
}
.highlight-blue {
    background-color: #9cd1ff;
}
.highlight-purple {
    background-color: #e0b3ff;
}


.multicolor-text {   
    background: linear-gradient(to left,
            violet,
            rgb(107, 57, 142),
            rgb(74, 74, 246),
            green,
            yellow,
            orange,
            red);
    -webkit-background-clip: text;
    color: transparent;
}



/*ANIMACIÓN*/

.imagen-con-zoom {
    transition: transform 0.3s ease; 
}

.imagen-con-zoom:hover {
    transform: scale(1.1); 
}


.texto-con-zoom {
    transition: font-size 0.3s ease;
}

.texto-con-zoom:hover {
    font-size: 1.05em; 
}

#texto{
    cursor: pointer;
}
/* Estilos de la lluvia de corazones */
.corazon {
    position: fixed; /* Posicionamiento fijo */
    color: red;
    font-size: 50px;
    pointer-events: none; /* Evita que los corazones afecten los clics en otros elementos */
    animation: caida 1.5s linear infinite; /* Animación de caída */
}

@keyframes caida {
    0% { transform: translateY(-1000px); }
    100% { transform: translateY(100vh); } /* El corazón cae hasta el final de la ventana */
}

/*

@media (max-width: 700px) {
    main {
        padding-bottom: 200px;
      flex-direction: column;
    }  
    section {
      width: 100%; 
    }  
    #section2 {
      width: 100%; 
      margin-top: 60px; 
    }
    footer {
        position: fixed;
        bottom: 0; 
        width: 100%;
    }
}  

*/


@media(max-width: 700px){

    html{
        height: 100%;
    }
    body{
        height: 100%;
        position: relative;
    }
    main{
        flex-direction: column;
        width: 100%;
        height: 100%;
        clip-path:none;    
    }

    #changeLanguage{
        color: #333;
    }

    #section1{
        width: 100%;
        height: 48%;
        padding: 70px 0px;    
    }
    #section2{
        width: 100%;
        height: 55%;
        padding: 100px 0px 160px;
        clip-path:none;
        box-shadow: none;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
    }
    #section2 div{
        display: flex;
        justify-content: center;        
        padding-left: 0%;
        text-align: center;
        align-items: center;
        
    }

    #technologiesAndLanguages{
        width: 400px;
    }

    footer{
        position: fixed; 
        bottom: 0; 
        width: 100%; 
        padding: 10px; 
        text-align: center;         
    }
}


@media(max-width: 400px){
    #section2{
        width: 100%;
        height: 55%;
        padding: 150px 0px 250px;        
        clip-path:none;
    }

    #technologiesAndLanguages{
        width: 300px;
    }

    
}
@media (max-width: 400px) and (max-height: 750px) {
    #section1{
        padding: 150px 0px;    
    }
    #section2{
        padding:  300px 0px 320px;
    }
}

