html {
    scroll-behavior: smooth;
}

body{
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}
header{
    opacity: 0.80;
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    height: 65px;
    background-color: #303030bc;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 25px;
    backdrop-filter: blur(10px);
    transition:height 0.3s, background-color 0.3s;
}

header:hover {
    opacity: 0.95;
    transition: height 0.3s ease-in-out;
    height: 70px;
}

header h3 {
    position: relative;
    color: #00ff11;
    z-index: 100;
}
header span {
    color: white;
}
nav {
    margin-right: 17px;
}

nav ul {
    margin-top: 20px;
    list-style-type: none;
    text-align: center;
}

nav ul li {
    display: inline;
}

nav ul i {
    background-color: #303030;
    display: flex;
    align-self: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
    margin-right: 25px;
}

.nav-list li a {
    text-decoration: none;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

.fa-user:before {
    display: flex;
    margin-top: 6px;
    justify-content: center;
    content: "\f007";
}

nav ul li a {
    text-decoration: none;
    font-size: large;
    font-weight: bolder;
    color: white;
    padding: 8px 10px;
}

nav ul li a:hover {
    color: #000;
    transition: background-color 0.15s ease-in-out;
    background-color: #F2F2F2;
    border-radius: 15px;
}
.cara{
    border-radius: 500px;
    height: 200px;
    border: white 1.75px solid;
}
.uno{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100vh;
    color: white;
    
    /* padding-top: 10%; */
}
.caja-central{
    margin-top: 14%;
    width: 43%;
    display: flex;
    flex-direction: row;
    border-radius: 20px;
    overflow: hidden;
    height: 50%;
    box-shadow: 7px 10px 0px 0px rgba(0,0,0,0.2);
    z-index: 3;
}
.caja-cara{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    
    background: #83D475;
    background: linear-gradient(120deg, #2EB62C 0%, #83D475 100%);
}
.caja-presentacion{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
    background-color: #F2F2F2;
    color: #303030;
    padding: 10px;
}

.caja-presentacion p {
    padding-right: 20px;
}

.contenedor-presentacion {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.cv-info {
    margin: 60px 0 0 0;
    display: flex;
    justify-content: flex-end;
    margin-right: 10px;
}

.cv-info a {
    margin: 0 10px;
}

.contenedorQR {
    display: flex;
    justify-content: center;
}

.dos{
    background-color: #F2F2F2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #303030;
    padding-left: 20%;
    padding-right: 20%;
}

body h2 {
    margin: 16px 0 10px 0;
}
.tech-list{
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.aptitudes {
    display: flex;
    flex-flow: wrap;
    width: 850px;
    gap: 10px 10px;
    margin-bottom: 30px;
}

.tech{
    flex: 1 0 auto;
    /* margin-bottom: 15px; */
}

.tech img {
    width: 120px;
}

.tres{
    background-color: #303030;
    height: 212vh;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    color: #F2F2F2;
}

.tres h3 {
    display: flex;
    align-self: flex-start;
    margin-left: 100px;
    /* margin: auto; */
}

.proyectos-web{
    width: 75%;
    display: flex;
    justify-content: space-between;
}
.card{
    position: relative;
    background-color: #424242;
    width: 32.25%;
    border-radius: 10px;
    /* transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); */
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 55vh;
}

.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 10px 0px 0px rgba(0,0,0,0.2);
}

.card h3 {
    margin: 0;
    margin-left: 0;
}

.card img{
    width: 100%;
    height: 47%;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card-info {
    padding: 10px 10px 10px 10px;
}

.card-info h3 {
    background: linear-gradient(45deg, #2EB62C 0%, #a0ff8f 90% );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 100% 100%;
}

.card-info span {
    color: black;
    font-weight: 800;
    font-size: x-small;
    /* background: linear-gradient(45deg, #23bc20 0%, #76ba6a 100% );
    background-size: 100% 100%; */
    background-color: #f1f1f1;
    padding: 2px 5px;
    border-radius: 0.5rem;
}

.card .space {
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
}

.space a,button {
    text-decoration: none;
    color: white;
    background-color: #2EB62C;
    padding: 4px 7px;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
}

.space button {
    border: none;
    font-size: unset;
}

.space .demos {
    color: white;
}

.space a:hover,button:hover {
    /* color: #000; */
    transition: background-color 0.15s ease-in-out;
    border-radius: 0.5rem;
    /* box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.342); */
    box-shadow: 0px 0px 10px 3px rgba(0, 255, 17, 0.475);
}

.space .demos:hover {
    color: #000;
    transition: background-color 0.15s ease-in-out;
    background-color: #e6e6e6;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.342);
    border-radius: 0.5rem;
}

footer a {
    color: white;
}


.red-social{
    height: 60px;
    width: 60px;
    border-radius: 50%;
}

footer{
    background-color: #424242;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: White;
    height: 165px;
}

.copyright {
    text-align: center;
    padding: 7px;
}

.contacto{
    width: 35%;
    display: flex;
    justify-content: center;
}

.contacto a {
    font-size: 50px;
    width: 65px;
    border-radius: 0.5rem;
    text-align: center;
    align-self: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contacto a:hover {
    color: #000;
    /* animation: slide_top-left 1s cubic-bezier(0.25, 1, 0.5, 1) 0s 1 normal forwards; */
    /* transition: box-shadow 0.15s ease-in-out; */
    background-color: #e6e6e6;
    border-radius: 0.5rem;
    transform: translate(-3px, -3px);
    box-shadow: 7px 10px 0px 0px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1300px) {
    .proyectos-web {
        width: 90%;
    }
    
    .aptitudes {
        width: 70vw;
    }
}


@media (max-width: 1200px) {
    .dos{
        height: auto;
        padding-left: 15%;
        padding-right: 15%;
    }

    .caja-central {
        width: 55%;
    }
}

@media (max-width: 1150px) {
    .proyectos-web {
        width: 90%;
    }

    .contacto {
        width: 60%;
    }

    .aptitudes {
        width: 70vw;
    }
    .tech img {
        width: 100px;
    }
}

@media (max-width: 960px) {
    .uno {
        padding-top: 50px;
    }

    .caja-central{
        width: 90%;
        height: 60%;
        flex-direction: column;
    }
    .caja-cara{
        width: 100%;
        height: 50%;
    }
    .caja-presentacion{
        width: 100%;
        height: 50%;
        align-items: flex-start;
    }

    .contenedor-presentacion {
        margin-top: 0;
    }

    .aptitudes {
        width: 100%;
    }

    .dos{
        height: auto;
        padding: 0 10px 10px 10px;
    }
    .tres{
        height: auto;
    }
    .tres h3 {
        margin: auto;
    }
    .proyectos-web{
        flex-direction: column;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
    }
    .card{
        width: 90%;
        margin-top: 20px;
        height: 45vh
    }
    .card-game{
        width: 80%;
        margin-top: 20px;
    }
    .red-social{
        margin: 0 10px 0 10px;
    }

    .contacto {
        width: 55%;
    }
}

@media screen and (max-width: 550px) {
    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 1.25rem;
        background-color: transparent;
        cursor: pointer;
    }

    .caja-central{
        margin-top: 30%;
    }

    .cerrar-menu i {
        justify-content: center;
        align-items: center;
    }
    
    .abrir-menu {
        color: #ffffff;
        margin-right: 50px;
    }

    .cerrar-menu {
        color: #ececec;
    }

    .nav {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: #303030;
        padding: 2rem;
        box-shadow: 0 0 0 100vmax #303030;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: end;
        margin-right: 0px;
    }

    .nav-list li a {
        color: #ecececec;
    }

    .cv-info {
        justify-content: space-evenly;
    }

    .contacto {
        width: 80%;
    }
}

@media screen and (max-width: 415px) {
    .tech img {
        width: 90px;
    }
}

@media screen and (max-width: 362px) {
    .cv-info {
        margin: 0 15px 0 0;
    }
}

::-webkit-scrollbar {
    width: 12px; /* Ajusta el ancho de la barra lateral según sea necesario */
}

::-webkit-scrollbar-track {
    background: #f1f1f1; /* Cambia este valor al color de fondo deseado */
}

/* Cambiar el color del indicador de desplazamiento */
::-webkit-scrollbar-thumb {
    background: #888; /* Cambia este valor al color deseado del indicador de desplazamiento */
    border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
    background: #555555;
}


.flip-vertical-fwd {
    background-color: #424242;
    text-align: center;
    width: 30%;
    border: solid #F2F2F2 1px;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0px 10px 0px 0px rgba(0,0,0,0.1),0px 10px 15px -3px rgba(0,0,0,0.1);
    /* transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-vertical-fwd :hover{
	-webkit-animation: flip-vertical-fwd 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
	        animation: flip-vertical-fwd 0.4s cubic-bezier(0.455, 0.030, 0.515, 0.955) both;
}

.nav.visible {
    animation: menu-animation 0.8s ease 0s 1 normal forwards;
}

@keyframes menu-animation {
	0% {
		transform: scaleX(0);
		transform-origin: 100% 100%;
	}

	100% {
		transform: scaleX(1);
		transform-origin: 100% 100%;
	}
}


.text-white {
    background-color: #303030;
    color: white;
}

.bgAnimation{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(20,1fr);
    grid-template-rows: repeat(20,1fr);
    background: #1d1d1d;
    filter: saturate(2);
    overflow: hidden;
}

.colorBox{
    z-index: 2;
    filter: brightness(1.1);
    transition: 1.5s ease;
    position: relative;
    margin: 2px;
    background: #1d1d1d;
}

.colorBox:hover{
    background: #00ff11;
    transition-duration: 0s;
}


.fancy-undeline {
    font-size: 32px;
    font-weight: 700;
    opacity: 1;
    background: linear-gradient(45deg, #2EB62C 0%, #83D475 100% );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fancy-undeline:hover {
    background-size: 100% 100% !important;
    color: #fff;
}
