:root {
    --fuentePrincipal: 'Open Sans', sans-serif;
    --colorSombra: #212529;
    --colorTexto1: #ffffff;
    --colorTexto2: #000000;
    --secundario: #577BC1;
    --secundarioHover: #9abdfd;
}

html {
    font-size: 62.5%;
    box-sizing: border-box; /* Hack para box model */
}

*, *:before, *:after { /*Selector universal (*) */
    box-sizing: inherit;
}

body {
    line-height: 1.5;
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
    background: linear-gradient(90deg, rgba(9,3,31,1) 0%, rgba(8,32,78,1) 50%, rgba(16,5,57,1) 100%);
    color: var(--colorTexto1);
}

body .fijar-body {
    overflow: hidden;
}

body .scroll-body {
    padding-top: 1rem;
}

h1, h2 {
    text-align: center;
}

h1, h2, h3 {
    margin: 0;
}

p {
    text-align: justify;
}

/*Globales*/
a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.contenedor {
    max-width: 120rem; /*Tamaño maximo de 1200px*/
    width: 95%; /*Ocupa el 95% de la pagina*/
    margin: 0 auto; /*Centramos el contenido que esta dentro de la clase .contenedor*/
}

/*Navegación*/

.navegacion {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    background-color: var(--secundario);
    display: flex;
    flex-direction: row;
    align-items: center; 
    padding: 1rem 5rem;
    z-index: 1;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navegacion ul li {
    list-style: none;
    text-transform: uppercase;
    text-align: center;
}

.navegacion a:hover {
    color: var(--secundarioHover);
    text-align: center;
}

@media (min-width: 992px) {
    .navegacion {
        flex-direction: row;
        justify-content: space-between;
    }
}

.navegacion a{
    color: var(--colorTexto1);
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5rem;
}

/*Toggle*/
.toggle {
    color: var(--colorTexto1);
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 60px;
    display: none;
}

@media (max-width: 1280px) {
    .logo{
        font-size: 2rem;
    }

    .navegacion a {
        font-size: 1.5rem;
    }
}

@media (max-width: 445px) {
    .nav-menu {
        left: 0;
        top: 7.3rem;
    }
}

/*Menu hamburguesa*/
@media (max-width: 940px) {

    .logo {
        font-size: 2rem;
        margin: auto;
        margin-top: 1rem;
    }

    .navegacion a {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        margin-right: 2rem;
        background-color: #21252974;
        position: fixed;
        left: 0;
        top: 4.6rem;
        width: 100%;
        padding: 2rem;
        gap: 2rem;
        z-index: 1;

        height: calc(100% - 5rem);
        overflow-y: auto;

        left: 100%;
        transition: left 0.3s;
    }

    .toggle {
        display: block;
        line-height: normal;
    }

    .toggle:hover {
        color: var(--secundarioHover);
        cursor: pointer;
    }

    .nav-menu_visible {
        left: 0;
    }
}

@media (max-width: 445px) {
    .nav-menu {
        top: 7.3rem;
    }
}


/*Header*/
.cabecera {
    margin-top: 16rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 992px) {
    .cabecera {
        margin-top: 12rem;
    }
}

@media (min-width: 150px) {
    #alinear-imagen {
        width: 300px;
        height: 300px;
    }
}

#alinear-imagen {
    border: 2px solid var(--secundario);
    border-radius: 50%;
}

.color-azul {
    color: var(--secundario);
}

.mayusculas {
    text-transform: uppercase;
}

.box-icon {
    margin-top: 2rem;
}

.cursor:hover {
    transform: scale(1.2);
}

.button {
    background-color: var(--secundario);
    color: var(--colorTexto1);
    font-weight: bold;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border-radius: 1rem;

    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.button:hover {
    background-color: var(--secundarioHover);
}

/*Contenido principal*/

.sombra {
    background-color: var(--colorSombra);
    box-shadow: -1px 7px 58px -15px rgba(66,66,66,1);
    padding: 2rem;
    border-radius: 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}


@media (min-width: 768px) {
    .columna {
        max-width: 50%;
        padding: 2rem;
    }
}

.year {
    background-color: var(--colorTexto1);
    color: var(--colorTexto2);
    font-weight: bold;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.2rem;
}

/*Habilidades*/
.box-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .box-container {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
    }
}

.habilidades {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iconos {
    width: 7rem;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.texto-habilidad {
    font-size: 1.2rem;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    text-transform: uppercase;
}

/*Contacto*/
@media (min-width: 768px) {
    .contacto {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.borde {
    padding: 1rem;
    border: solid 1px var(--colorTexto1);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.borde:last-child {
    margin-bottom: 0;
}

.borde a {
    color: var(--colorTexto1);
    text-align: center;
    font-weight: bold;
}


.borde a:hover {
    color: var(--secundario);
}

.borde svg:hover {
    transform: scale(1.2);
}

@media (min-width: 768px) {
    .borde {
        margin-bottom: 0;
    }
}

.grid-whatsapp {
    grid-column: 1 / 3;
}

/*Proyectos*/
.slide {
    width: 100%;
}

.slide .contenedor {
    margin: auto;
}

.slick-dots li button::before {
    font-size: 1.6rem;
}

.slick-dots {
    bottom: 1.6rem;
}

/*Footer*/
.footer {
    background-color: var(--secundario);
    overflow: hidden;
}

.texto-footer {
    padding: 2rem;
    border-bottom: 1px solid var(--colorTexto1);
}

@media (min-width: 240px) {
    .grid-footer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 2rem;
    }
}

.icono {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.icono:hover {
    transform: scale(1.2);
}

.texto-footer2 {
    padding: 2rem;
    border-top: 1px solid var(--colorTexto1);
    text-align: center;
}