/*----------------------HOME----------------------*/

.home {
    position: relative;
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6rem; /*define el tamaño del espacio entre las filas y las columnas.*/
    align-items: center;
}

.home-img img{
    max-width: 100%;
    width: 600px;
    height: auto; /*el elemento ajustará automáticamente su altura para permitir que su contenido se muestre correctamente.*/

}

.home-text h5{
    color: var(--text-color);
    font-size: 25px;
    font-weight: 500;
    margin: 0 0 20px;
}

.home-text h1{
    font-size: var(--big-font);
    color: var(--text-color);
    font-weight: 700;
    line-height: 1; /*ajusta el espacio entre renglones*/
    margin: 0 0 20px;
}

.home-text h6 {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
}

.home-text p{
    max-width: 470px;
    font-size: var(--p-font);
    font-weight: 300;
    line-height: 2rem; /*ajusta el espacio entre renglones*/
    margin-bottom: 1.5rem;
    color: var(--2nd-main-color);
}

/*----------------------ABOUT----------------------*/

.about {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    gap: 5rem; /*define el tamaño del espacio entre las filas y las columnas.*/
    align-items: center;
}

.about-img img {
    max-width: 100%;
    width: 580px;
    height: auto;
}

.about-text h3 {
    color:  var(--text-color);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 6px; /*espacio entre letras*/
    margin: 0 0 30px;
}

.about-text h2 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: var(--h2-font);
    line-height: 1.2;
    max-width: 470px;
    margin-bottom: 2rem;
}

.about-text p {
    max-width: 570px;
    font-size: var(--p-font);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.8rem;  /*espacio entre renglones*/
    color: var(--2nd-main-color);
}

.count {
    margin-bottom: 2rem;
}

.about-text .count a {
    color: var(--2nd-main-color);
    margin-right: 20px;
    word-spacing: 5px; /*espacio entre palabras*/
}

.count span {
    color: var(--text-color);
    font-size: 2.7rem;
    font-weight: 600;
}

.main-btn .btn {
    margin-right: 20px;
}

.center {
    text-align: center;
}

.center h3 {
    color: var(--text-color);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 6px; /*Espacio entre letras*/
}

/*----------------------Educacion y experiencia----------------------*/

.resume-content {
    display: grid;
    /*grid-template-columns: repeat(1, minmax(450px, auto));*/
    gap: 3rem;
    align-items: center;
    margin-top: 4.4rem;
}

.box {
    background-color: #0b0b13;
    padding: 40px 30px;
    border-radius: 5px;
    cursor: pointer;
    transition: all .40s;
}

.box h6 {
    color: #3e4455;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 600;
}
.box h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 13px;
}

.box p {
    font-size: var(--p-font);
    font-weight: 300;
    margin-bottom: 1.2rem;
    line-height: 1.8rem; /*espacio entre renglones*/
    color: var(--2nd-main-color);
}

.box h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--2nd-main-color);
}

.box:hover {
    transform: translateY(-15px);
    box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
}

/*----------------------Contacto titulo----------------------*/

.cta {
    background-color: #0b0b13;
    width: 100%;
    padding: 150px 0;
    text-align: center;
    margin: 100px auto;
}

.cta h4 {
    color: var(--text-color);
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 30px;
}

.cta h2{
    color: var(--main-color);
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 40px;
}

/*----------------------Formulario----------------------*/


.contact-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.2rem;
}

.contact-form form {
    position: relative;
    width: 550px;
}

form input,
form textarea {
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    background-color: #0b0b13;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    border-radius: 5px;
}

form input::placeholder,
form textarea::placeholder {
    color: var(--2nd-main-color);
}

textarea {
    resize: none;
    height: 200px;
}

form .send-btn {
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 4px 4px var(--text-color); /*hace una sombra de la caja*/
    padding: 0 25px;
    line-height: 42px;
    display: inline-block;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px; /*espacio entre letras*/
    transition: ease all 0.35s;
    cursor: pointer;
}

form .send-btn:hover {
    background: var(--text-color);
    color: var(--main-color);
    box-shadow: 4px 4px var(--main-color); /*hace una sombra de la caja*/
}

/*----------------------Copyright----------------------*/

.copyright {
    text-align: center;
    padding: 30px;
    color: var(--2nd-main-color);
    background-color: #0b0b13;
    margin-top: 3rem;
    line-height: 1.8rem;
}


/*----------------------RESPONSIVE----------------------*/

@media (max-width: 1430px){
    header{
        padding: 25px 3%;
    }
    section {
        padding: 50px 3%;
    }

    :root {
        --big-font: 3rem;
        --h2-font: 1.2rem;
    }
}

@media (max-width: 1020px) {
    :root {
        --big-font: 3rem;
        --h2-font: 1.2rem;
        --P-font: 0.9rem;
    }

    .home {
        height: 70vh;
    }
}

@media (max-width: 830px){
    header {
        padding: 18px 3%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: -500px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background-color: #0b0b13;
        box-shadow: 0px 15px 30px 0px rgb(0 0 0 / 70%);
        text-align: left;
        transition: 0.2s ease;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        border-left: 2px solid var(--main-color);
        margin: 1rem;
    }

    .active {
        top: 100%;
    }
}

@media (max-width: 795px) {
    .home {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        margin-top: 70px;
        height: 100vh;
    }

    .home-text p {
        max-width: 100%;
    }

    .home-img img{
        max-width: 100%;
        width: 490px;
        height: auto;
    }
    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-text h2{
        max-width: 100%;
    }
    .about-text p{
        max-width: 100%;
    }
    .about-img {
        order: 1; /*para que la imagen se posicione despues (abajo) del texto*/
    }
  
 
}


