:root {
    --fuentePrincipal: "Montserrat", system-ui;
    --negro: #000;
    --blanco: #fff;
    --azulPrimario: #5852f8;
    --azulSecundario: #241fcf;
    --footer: rgba(88, 82, 248, 0.7);


    --purple: #3720b4;
    --green: #5ff8c2;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/*!UTILIDADES  */

@media (width >=320px) and (width <=1023px) {

    .oculto {
        animation: fade-out 0.5s forwards;
    }

    @keyframes fade-out {
        to {
            opacity: 0;
            display: none !important;
        }

    }
}

.text-center {
    text-align: center;
}

.no-margin {
    margin: 0;
}

.no-pading {
    padding: 0;
}


/* !Globales */
html {
    font-size: 62.5%;
    box-sizing: border-box;

    scroll-behavior: smooth;
}

body {
    font-family: var(--fuentePrincipal);
    font-size: 1.6rem;
    width: 95%;
    margin: 0 auto;
}

@media (width >=500px) and (width <=768px) {

    .habilidades {
        margin: 0 auto;
        max-width: 50rem;
    }

}

@media (min-width: 768px) {
    body {
        width: 100%;
    }

    .padre-santo {
        width: 70%;
        margin: 1rem auto;
    }

}

@media (min-width: 1024px) {
    body {
        width: 100%;
    }

    .padre-santo {
        width: 50%;
        margin: 1rem auto;
    }
}

h1,
h2,
h3 {
    font-weight: bold;
    text-transform: capitalize;
    color: var(--azulPrimario);

}

h1 {
    font-size: 3.4rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

li {
    list-style: none;
    color: var(--azulSecundario);
    text-transform: capitalize;
    font-weight: bold;
}

a {
    text-decoration: none;
    color: var(--azulSecundario);
}


/*!NAV  */
.navegacion {
    display: none;
}

.navegacion--activa {
    background-color: var(--azulPrimario);
    position: fixed;
    display: flex;
    flex-direction: column;
    height: 50rem;
    z-index: 1;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    opacity: 0.9;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 1rem;
}

.nav-item a {
    color: var(--blanco);
    font-size: 3rem;

}

.switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
    background-color: var(--purple);
    border-radius: 40px;
    transition: all 0.3s;
    cursor: pointer;
}

.switch:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 30px;
    background-color: white;
    top: 5px;
    left: 5px;
    transition: all 0.3s;
}

input[type='checkbox']:checked+.switch:after {
    transform: translateX(40px);
    background-color: var(--azulSecundario);
}

input[type='checkbox']:checked+.switch {
    background-color: var(--green);
}

.offscreen {
    position: absolute;
    left: -9999px;
}

.btn {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: start;
    align-items: center;
}

.switch-lan,
.lan-contenedor {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 540px) {
    .btn {
        width: 30%;
    }

}

@media (min-width: 1024px) {
    .btn {
        width: 15%;
    }

}

.contenedor {
    height: 5rem;
    display: flex;
    align-items: center;
    margin-top: 1.4rem;
    justify-content: space-between;
}

.lan-contenedor {
    height: 100%;
    width: 70%;
}

.lan-contenedor svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contenedor__menu-mbl {
    height: 100%;
    display: flex;
    justify-content: end;
    margin-right: 2rem;

}

@media (min-width: 1024px) {
    .navegacion {
        display: flex;
        gap: 3rem;
        flex-direction: row;
        background-color: white;
        align-items: center;
        justify-content: center;
        position: relative;
        width: auto;
        height: auto;
    }


    .contenedor {
        justify-content: center;
    }

    .nav-item {
        transition: font-size 0.3s ease;
        border-left: 1px solid var(--negro);
        border-image: linear-gradient(to bottom, transparent 30%, var(--azulSecundario) 10%, var(--azulPrimario) 90%, transparent 70%);
        border-image-slice: 1;
        padding-left: 1rem;
    }

    .nav-item:first-child {
        border-left: none;
    }

    .nav-item a {
        color: var(--azulPrimario);
        font-size: 2.4rem;
        transition: font-size 0.3s ease;
    }


    .nav-item:hover {
        cursor: pointer;

    }

    .nav-item a:hover {
        font-size: 3rem;
    }

    .contenedor__menu-mbl {
        display: none;
    }

    .contenedor {
        justify-content: center;
        margin-top: 2rem;
    }
}




/* !CABECERA */

.contenido-principal {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-rows: auto 20rem;
    justify-items: center;
    align-items: center;
}


.titulo-prs {
    margin-top: 0.3rem;
    grid-column: 1/3;
}

.presentacion-img {
    height: 100%;
    width: 90%;
    grid-column: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;

}

.imagen-autor {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1.2rem;
}

.iconos-redes {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.redes__psr {
    display: flex;
    border: 0.1rem solid grey;
    border-radius: 0.8rem;
}

.redes-psr:hover {
    cursor: pointer;
}

h1 {
    margin-bottom: 0rem;
}

.redes__svg {
    width: 3rem;
    height: 3rem;
}


@media (min-width: 1024px) {

    .contenido-principal {
        display: grid;
        grid-template-rows: 10rem auto;
        justify-items: center;
        align-items: center;
    }

    .presentacion-img {
        margin-top: 4rem;
        grid-row: 1/3;
        width: 80%;
        height: 100%;

    }

    .titulo-prs {
        grid-column: 1/2;
    }

    .contenido-principal__visual {
        margin-top: -1rem;
    }

}


/*!SOBRE MI  */


/*!ESTUDIOS  */

.sobre-mi__Estudios {
    background-image: url(../img/5594016.jpg);
    background-size: cover;
    border-radius: 0.5rem;
    max-width: 100%;
    margin: 2rem auto;
    padding: 1rem;
    padding-bottom: 3rem;
}

.estudios__title {
    color: var(--blanco);
}

.contenedor__estudios,
.estudios,
.sobre-mi__Estudios {
    position: relative;
}

.contenedor__estudios {
    width: 100%;
    padding: 1rem;
}

.estudios {
    padding: 1rem 1.5rem;
    background: var(--azulPrimario);
    border-radius: 1rem;
    opacity: 0.8;
    font-size: 1.6rem;
}

.estudios-titulo-princ {
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .contenedor__estudios {
        padding: 1rem 2rem;
        width: 50%;
    }

    .contenedor__estudios--izq {
        left: 0;
    }

    .contenedor__estudios--drc {
        left: 50%;
    }

    .estudios {
        font-size: 1.8rem;
        padding: 1.5rem 2.5rem;
    }

    .sobre-mi__Estudios {
        border-radius: 1rem;
    }
}

@media (min-width: 1024px) {
    .contenedor__estudios {
        width: 50%;
        padding: 1rem 5rem;
    }

    .estudios {
        padding: 2rem 3rem;
        font-size: 2rem;
    }

    .sobre-mi__Estudios {
        max-width: 120rem;
        margin: 4rem auto;
        padding: 1rem;
        padding-bottom: 3rem;
    }
}


/*!Intereses  */

.intereses h2 {
    text-transform: capitalize;
}

.card__title {
    color: var(--blanco);
}

.card--1,
.card--2,
.card--3,
.card--4,
.card--5,
.card--6 {
    color: var(--blanco);
    border-radius: 1rem;
    text-align: center;
    padding: 0.3rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
        "card1 card2"
        "card3 card3"
        "card5 card6"
        "card4 card4"
    ;
    gap: 1rem;
}


@media (min-width: 768px) {

    .cards {
        margin-top: 5rem;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 0.5rem;
        grid-template-areas:
            "card1 card2 card2"
            "card1 card3 card4"
            "card5 card5 card6"
        ;
        border-radius: 1rem;
    }


    .card--1:hover,
    .card--2:hover,
    .card--3:hover,
    .card--4:hover,
    .card--5:hover,
    .card--6:hover {
        transform: scale(1.2);
        cursor: pointer;
        border-radius: 1.5rem;
    }

    .card--1,
    .card--2,
    .card--3,
    .card--4,
    .card--5,
    .card--6 {
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: transform 0.3s ease, border-radius 0.3s ease;
    }

}


.card--1 {
    background-color: var(--azulSecundario);
    grid-area: card1;
}

.card--2 {
    background-color: var(--azulPrimario);
    grid-area: card2;
}

.card--3 {
    background-color: rgb(9, 199, 186);
    grid-area: card3;
}

.card--4 {
    background-color: var(--azulSecundario);
    grid-area: card4;

}

.card--5 {
    background-color: var(--azulPrimario);
    grid-area: card5;
}

.card--6 {
    background-color: var(--azulSecundario);
    grid-area: card6;
}


/*!HABILIDADES  */
.habilidades {
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 2rem;
}

.habilidades__iconos {
    height: auto;
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: grid;
    grid-template-rows: auto;
    place-content: center;
    gap: 1rem;
}


.espec__icons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.habilidades h3 {
    text-transform: uppercase;
    font-weight: bolder;
}

.habilidades__svg {
    width: 80%;
    height: 80%;
    flex-basis: calc(33.333% - 5px);
}

@media (min-width: 768px) {
    .habilidades__iconos {
        grid-template-columns: repeat(3, 31%);
        margin-top: 3rem;
    }
}

.habilidades__svg svg:hover {
    cursor: pointer;
    padding: 0rem;

}

.habilidades__svg svg {
    width: 100%;
    height: 100%;
    padding: 1rem;
    transition: padding 0.3s ease;
}



/*!FOOTER  */

footer {

    background-color: var(--footer);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}

.redes__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.redes__footer span {
    font-size: 16px;
}

.link-svg {
    display: block;
    width: 5rem;
    height: 5rem;
}

.link-svg svg {
    width: 100%;
    height: 100%;
}

span {
    display: none;
}

@media (min-width: 768px) {

    span {
        display: flex;
    }

    footer.comandos-redes {
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
    }

    .redes__footer {
        justify-content: space-evenly;
    }

    .redes__footer span {
        font-size: 1.6rem;
    }
}