html {
  scroll-behavior: smooth;
}

/*Aspecto general y del modo oscuro activo*/
body {
    background-color: #10001d;
    text-align: center;
    padding-top: 4em;
    background-size: cover;
    background-attachment: fixed; 
    color: white;
    margin: 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/*Aspecto cuando está el modo claro activado*/
body.claro{
    background-color: #efe9fa;
    color: black;
}

body.claro #modoOscuro{
    background-color: rgba(245, 242, 242, 0.699);
    border-color: rgb(73, 73, 73);
}

body.claro #textoPresentacion{
    color: black;
}

body.claro #cv{
    color: black;
    border-color: black;
}

body.claro .tecnologia{
    background-color: rgba(212, 210, 210, 0.541);
}

body.claro .tecnologia:hover{
    background-color: #989799; /*Cambiar el color a uno mas oscuro*/ 
}

body.claro .proyecto{
    background-color: rgba(224, 224, 224, 0.541);
}

body.claro .githubProyecto{
    border-color: black;
}

body.claro .tecnologiaProy{
    background-color: rgba(212, 210, 210, 0.541);
}

body.claro #estudiosLista{
    border-color: black;
}

body.claro #sectionContacto a{
    border-color: black;
}

body.claro .botonImgProyectoAnt:hover .svgFlechas{
    transform: scale(1.1);
    color: rgba(138, 138, 138, 0.582);
}

body.claro .botonImgProyectoSig:hover .svgFlechas{
    transform: scale(1.1);
    color: rgba(138, 138, 138, 0.582);
}


/*Encabezado*/
#encabezado{
    top:100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.836);
    padding: 0em 1em;
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    height: auto;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
}

h1{
    font-size: 120%;
    background: linear-gradient(to right, rgb(221, 34, 221), rgb(233, 93, 191), rgb(42, 204, 182), skyblue);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#botonEncabezado{
    display: flex;
    gap: 2em;
    align-items: center;
    text-decoration: none;
    color: white;
    user-select: none;
}

#anclas{
    display: flex;
    gap: 1em;
}

#anclas a{
    text-decoration: none;
    color: white;
    transition: transform 0.6s ease;
}

#anclas a:hover{
    transform: scale(1.1);
    color: rgb(143, 1, 226);
}

#idiomas{
    display: flex;
    gap: 0em;
    padding-left: 1em;
}

#idiomas img{
    width: clamp(85%, 1.5vw, 100%);
    height: clamp(85%, 1.5vw, 100%);
}

#botonEncabezado button{
    height: 2em;
    width: 4.2em;
    cursor: pointer;
}

#botonEncabezado button:hover{
    transform: scale(1.15);
}

.idioma{
    background: none;
    border: none;
    height: 2.3em;
    width: 2.3em;
    transition: transform 0.6s ease;
}

#botonMenu{
    display: none;
    font-size: 2em;
    background-color: rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0);
    color: white;
    cursor: pointer;
}

#modoOscuro {
    width: 3.90em;
    height: 1.95em;
    padding: 0 0.33em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-radius: 6.7em;
    border: rgb(59, 3, 92) solid 0.2em;
    background-color: rgba(255,255,255,0.05);
    cursor: pointer;
}

#modoOscuro img{
    font-size: 1rem;
    color: #fdc21c;
}

#modoOscuro::before{ /*Crear el pseudoelemento del circulo blanco*/
    content: "";
    position: absolute;
    height: 1.7em;
    width: 1.7em;
    border-radius: 50%;
    background-color: white;
    border: solid thin black;
    left: 0;
    right: unset;
}

#modoOscuro.activo::before{ /*Crear el pseudoelemento del circulo blanco cuando está activo*/
    right: 0;
    left: unset;
    border: solid thin white;
}

#luna{
    width: 40%;
    height: auto;
}

#sol{
    width: 40%;
    height: auto;
}


/*Secciones*/
.section{
    width: 100%;
    position: relative;
    padding-top: 2em;
}


/*Sobre Mi*/
#sectionSobreMi{
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column; /*Para que Descargar CV quede debajo*/
    align-items: center;
}

.presentacion{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3em;
    color:rgb(110, 209, 143);
    max-width: 60em;
    width:100%;
}

#yo{
    border-radius: 50%;
    width: 10em;
    height: auto;
}

.texto{
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    max-width: 40em;
    flex: 1 1 auto; /*Para que el texto salte a otra linea*/
}

#cv{
    gap: 0.3em;
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-decoration: none;
    color: white;
    padding: 0.5em 1em;
    border: 0.1em solid white;
    border-radius: 2em;
    max-width: 8em;
    transition: transform 0.3s ease;
}

#cv:hover{
    transform: scale(1.1);
}

#imagenCV{
    display: block;
    height: 1em;
    width: auto;
}

#descargarCV{
    font-weight: 400;
}


/*Tecnologias*/
#tecnologiasLista{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
    user-select: none;
}

.tecnologia{
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex: 0 1 auto;
    min-width: 4em;
    background-color: rgba(255,255,255,0.05);
    padding: 0.5em 2em;
    border-radius: 0.7em;
    transition: background-color 0.6s ease; /*Que la transicion del color demore 0.6 segundos y se haga suave*/
}

.tecnologia img{
    width: 2em;
    height: 2em;
    transition: all 0.6s ease; /*Que la transicion del aumento de tamaño demore 0.6 segundos y se haga suave*/
}

.tecnologia p{
    margin: 0;
    transition: all 0.6s ease; /*Que la transicion del movimiento del texto demore 0.6 segundos y se haga suave*/
}

.tecnologia:hover{
    background-color: rgb(59, 3, 92); /*Cambiar el color a uno mas claro*/
}

.tecnologia:hover img{
    transform: scale(1.15); /*Aumentar la imagen de tamaño*/
}

.tecnologia:hover p{
    transform: translateX(0.3em); /*Mover el texto hacia la derecha*/
}


/*Proyectos*/
#proyectosLista{
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}

.proyecto{ /*Cada proyecto*/
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    background-color: rgba(0, 0, 0, 0.541);
    padding: 1em 1em;
    border-radius: 5%;
    width: 40%;
    margin-left: 1em;
    max-width: 38em;
}

/*Carrusel de imagenes del proyecto*/
.carrusel{
    display: inline-block;
    position: relative;
    
}

.imagenProyecto{
    width: 100%;
    border-radius: 2em;
}

.contenedorPuntos{ /*Contenedor de los puntos de la imagen*/
    display:flex;
    justify-content: center;
    gap: 2px;
    margin-top: 0.6em;
}

.puntoImagen{ /*Puntos de la imagen*/
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.582);
    transition: 0.5s;
}

.puntoImagen.puntoActivo{ /*Punto activo de la imagen*/
    background: rgba(255, 255, 255, 0.863);
}

.botonImgProyectoAnt, .botonImgProyectoSig{
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.botonImgProyectoAnt{
    left: -1em;
}

.botonImgProyectoSig {
    right: -1em;
}

.svgFlechas{
    width: 3em;
    color: rgba(255, 255, 255, 0.582);
    pointer-events: none;
    transition: all 0.6s ease;
}

.botonImgProyectoAnt:hover .svgFlechas{
    transform: scale(1.1);
    color: rgba(90, 3, 141, 0.582);
}

.botonImgProyectoSig:hover .svgFlechas{
    transform: scale(1.1);
    color: rgba(90, 3, 141, 0.582);
}


.githubProyecto{ /*Imagen de github de cada proyecto*/
    width: 2em;
    height: auto;
    border-radius: 50%;
    transition: transform 0.6s ease;
    margin-top: 1em;
    border: 0.1em solid white;
    border-radius: 50%;
    padding: 0.3em;
}

.githubProyecto:hover{
    transform: scale(1.15);
}

.tecnologiasProyecto{ /*Tecnologias de cada proyecto*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
}

.tecnologiaProy{ /*Cada tecnologia de proyectos*/
    display: flex;
    align-items: center;
    gap: 0.5em;
    background-color: rgba(255,255,255,0.05);
    padding: 0em 0.7em;
    border-radius: 0.7em;
    user-select: none;
}

.tecnologiaProy img{
    width: 1.5em;
    height: 1.5em;
}



/*Estudios*/
.lista{
    border: solid rgb(255, 255, 255) 1px;
    border-radius: 1.2em;
    padding: 0.6em 1.2em;
    width: fit-content;
    margin: 0 auto;
    list-style-position: inside;
    text-align: left;
}


/*Contacto*/
#gmail{
    display: flex;
    align-items: center;
    gap: 0.5em;
    justify-content: center;
}

#gmail img{
    width: 1em;
    height: 1em;
}

#sectionContacto a{
    display: inline-block;
    height: 2.3em;
    width: 2.3em;
    transition: transform 0.6s ease;
    border: 0.1em solid white;
    border-radius: 50%;
}

#sectionContacto a img{
    height: 100%;
    width: 100%;
    display: inline-block;
    object-fit: contain;
}

#github{
    width: 65% !important;
    height: auto;
}

#linkedin{
    width: 80% !important;
    height: auto;
}



