
html {
    scroll-behavior: smooth;
}

body {
    width: 100vw;
    font-family: 'Montserrat', 'sans serif';
    transition: background 0.2s linear;
    background-color: var(--color-bg);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    padding: 20px 0;
    width: 100vw;
    justify-content: flex-end;
    box-shadow: 0 0 29px 0 rgba(134, 134, 134, 0.25);
} 

/*--------------------------------
            CHECKBOX
----------------------------------*/

.checkbox {
	opacity: 0;
	position: absolute;
}

.label {
    background: linear-gradient(180deg, rgb(83 75 232) 0%, #289334 94%, #37b045 99%);
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 5px;
	position: relative;
	height: 26px;
	width: 50px;
    transform: scale(1.5);
    margin-left: 20px;
}

.label .ball {
	background-color: #fff;
	border-radius: 50%;
	position: absolute;
	top: 2px;
	left: 2px;
	height: 22px;
	width: 22px;
	transform: translateX(0px);
	transition: transform 0.2s linear;
}

.checkbox:checked + .label .ball {
	transform: translateX(24px);
}


.fa-moon {
	color: #ffbc53;
}

.fa-sun {
	color: #ffbc53;
}


/*--------------------------------
            DARK MODE
----------------------------------*/

body {
    --color-bg: #ffffff;
    --color-bg1: #f3faff;
    --color-texto1: #3c286c;
    --color-texto2: #000000;
    --color-texto3: #0d1117;
    
}
body.dark-theme {
    --color-bg: #0d1117;
    --color-bg1: #3b3b3b;
    --color-texto1: #86ae6f;
    --color-texto2: #b1b1b1;
    --color-texto3: #4a77b8;
}
body.dark-theme img {
    filter: brightness(.8) contrast(1.2);
}

@media (prefers-color-scheme: dark) {
    body {
        --color-bg: #0d1117;
        --color-bg1: #3b3b3b;
        --color-texto1: #86ae6f;
        --color-texto2: #b1b1b1;
        --color-texto3: #4a77b8;
    }

    body.light-theme {
        --color-bg: #ffffff;
        --color-bg1: #f3faff;
        --color-texto1: #3c286c;
        --color-texto2: #000000;
        --color-texto3: #0d1117;
    }

    img {
        filter: brightness(.8) contrast(1.2);
    }
    
}

/*--------------------------------
        NAV BAR GENERAL
----------------------------------*/

ul {
    list-style-type: none;
    align-items: center;
}

li:hover {
    font-weight: bold;
}

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




/*--------------------------------
        NAV BAR HEADER
----------------------------------*/


.nav-header {
    margin-right: 10%;
}

.menu-header, .menu-footer {
    margin: 10px;
    padding: 10px;
}

.button {
    background: linear-gradient(180deg, rgb(83 75 232) 0%, #289334 94%, #37b045 99%);
    border-radius: 25px;
    color: #ffffff;
    padding: 10px 40px;
}

#nav-burger {
    display: none;
    cursor: pointer;
}
#nav-burger:hover {
    color: #4abfd0;
}



/*--------------------------------
        DISPLAY FLEX
----------------------------------*/

.seccion-hola, .contenedor-hola, ul, nav, .seccion-quote, .div-quote, .contenedor-proyectos, .seccion-footer, .div-contacto, header, .contenedor-skills, .seccion-skills {
    display: flex;
}

/*--------------------------------
        SECCIÓN HOLA
----------------------------------*/

.seccion-hola {
    justify-content: center;
    align-items: center;
}

.contenedor-hola {
    width: 90%;
    padding: 90px 30px 100px 30px;
    flex-wrap: nowrap;
}

.texto-hola {
    width: 70%;
    padding: 30px;
}

.img-hola {
    width: 60%;
    padding-top: 74px;
    padding-right: 50px;
    padding-left: 46px;
}

.p-hola {
    text-align: left;
    margin: 16px 0 40px 0;
}

/*--------------------------------
        SECCIÓN SKILLS
----------------------------------*/

.seccion-skills {
    background-color: var(--color-bg1); 
    padding: 45px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* -- CAJA DE TARJETAS -- */

.contenedor-skills {
    width: 80%;
    justify-content: center;
    flex-wrap: wrap;
}

/* -- CAJA DE CADA TARJETA -- */
.skills {
    background-color: #ffffff;
    border: 1px #dddfe5 solid;
    border-radius: 26px;
    width: 132px;
    margin: 10px;
    color: #2e2e31;
    box-shadow: 0 -1px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.img-skills { 
    margin: 10px 35px 10px 35px;
    object-position: center;
}

.texto-skills {
    padding: 10px 220px;
}

.h2-skills {
    margin-top: 100px;
}

.p-titulo-skills {
    font-weight: 700;
    font-size: 20px;
}

/*-------------------------
        TEXTOS
-------------------------*/

p {
    text-align: center;
    margin: 10px 0;
    color: var(--color-texto2)
}

h1, h3 {
    text-align: left;
}

h1 {
    font-family: 'Allura';
    font-weight: 900;
    font-size: 75px;
    color: #4abfd0;
    text-shadow: 2px 2px 4px #424242;
}

h2, h3 {
    font-weight: 900;
}

h2 {
    color: var(--color-texto3);
    font-size: 45px;
    text-align: center;
    margin-top: 56px;

}

h3 {
    font-size: 30px;
    color: var(--color-texto1);
    margin: 80px 0 10px 0;
}

h4 {
    color: #3c286c;
    font-size: 20px;
    color: #3c286c;
    margin: 80px 0 10px 0; 
    text-align: center;
}


/*--------------------------------
        SECCIÓN QUOTE
----------------------------------*/
.seccion-quote {
    background: linear-gradient(180deg, rgb(83 75 232) 0%, #289334 94%, #37b045 99%);
    color: #fafafa;
    width: 100vw;
    padding: 100px 40px 100px;
    text-align: center;
    justify-content: center;
}

.div-quote {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    align-content: center;
}

.p-quote {
    font-family: 'Allura';
    font-size: 35px;
    margin: 10px 100px;
}

.h3-quote {
    font-family: 'Allura';
    font-size: 60px;
    color: #fafafa;
    padding-bottom: 20px;
    font-weight: normal;
}

.img-quote {
    width: 15%;
    padding-bottom: 80px;
}

.ico-quote {
    font-size: 80px;
    margin-bottom: 60px;
}

/*--------------------------------
        SECCIÓN PROYECTOS
----------------------------------*/

.seccion-proyectos {
    background: var(--color-bg1); 
    padding: 45px;
}

.contenedor-proyectos {
    margin-top: 40px;
    padding: 30px;
    justify-content: center;
}


/* -- CAJA DE TARJETAS -- */


.main-proyectos {
    width: 95%;
} 

.post-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, 250px);
	gap: 25px;
	justify-content: center;
	padding-bottom: 50px;
}

.post {

    border-radius: 25px;
    color: #2e2e31;
    box-shadow: 0 -1px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.thumbnail {
	display: block;
	width: 100%;
	height:180px;
    object-fit: cover;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.post-preview {
	background-color: #fff;
    padding:15px;
    border-bottom-right-radius: 25px;
    border-bottom-left-radius: 25px;
}

.post-title {
	margin: 0;
}

.post-intro {
	color:#4b5156;
    font-size: 14px;
    margin-bottom: 22px;
}

.button-proyecto {
    background: linear-gradient(180deg, rgb(83 75 232) 0%, #289334 94%, #37b045 99%);
    border-radius: 25px;
    color: #ffffff;
    padding: 10px 10px;
    display: flex;
    justify-content: center;
}
.button-proyecto:hover {
    font-weight: bold;
}

.ver-mas {
    margin-left: 100px;
    margin-right: 100px;
    margin-top: 31px;
}

/*--------------------------------
            FOOTER
----------------------------------*/
.seccion-footer {
    background: linear-gradient(180deg, rgb(83 75 232) 0%, #289334 94%, #37b045 99%);
    padding: 45px;
    flex-direction: column;
    align-content: center;
}

/* -- MENÚ -- */
.nav-footer {
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 10px auto 10px auto;
    color: #00dfc0;
}

.menu-footer {
    font-size: 14px;
    color: #ffffff;
}

/* -- LOGOS -- */
.div-contacto {
    justify-content: center;
}

.img-contacto {
    width: 80px;
    padding: 10px;
    margin: 10px;
}

/* -- TEXTO -- */
.span-footer {
    color: #fafafa;
}

.GM {
    color: #00dfc0;
    font-size: 18px;
}
.favicon {
    width: 40px;
}

/*-------------------------
    @MEDIA TABLETS
-------------------------*/
@media (min-width: 600px) and (max-width: 900px) {

    /*--------------------------------
            NAV BAR HEADER
    ----------------------------------*/

   .nav-header {
        margin-right: 5%;
    }
   
    .menu-header {
        font-size: 16px;
    }

    /*--------------------------------
            SECCIÓN HOLA
    ----------------------------------*/

    .seccion-hola, .contenedor-hola, .texto-hola, .texto-hola ul {
        justify-content: center;
        align-items: center;
    }

    .contenedor-hola {
        flex-wrap: wrap;
    }

    .texto-hola {
        padding: 5px;
        width: 100vw;
    }

    .img-hola {
        width: 70%;
        margin-top: 20px;
    }

    /*-------------------------
            TEXTOS
    -------------------------*/

    .p-hola, h1, h3 {
        text-align: center;
    }

    h1 {
        font-size: 72px;
    }

    h3 {
        font-size: 25px;
    }

    h4 {
        font-size: 20px;
    }


    /*--------------------------------
            SECCIÓN SKILLS
    ----------------------------------*/

    /* -- CAJA DE TARJETAS -- */
    .contenedor-skills {
        width: 100%;
    }

    .texto-skills {
        padding: 10px 100px;
    }

    /*--------------------------------
            SECCIÓN PROYECTOS
    ----------------------------------*/

    /* -- CAJA DE TARJETAS -- */
   .contenedor-proyectos {
        padding-left: 0;
        padding-right: 0;
    }

   .main-proyectos{
		width: 95%;
    } 
    
    .ver-mas {
 /*       display: flex;
        justify-content: center;  
        margin-top: 30px;  */
        max-width: 68%;
    }
}


/*-------------------------
    @MEDIA CELULARES
-------------------------*/
@media (max-width: 599px) {

    /*--------------------------------
            NAV BAR HEADER
    ----------------------------------*/

  #ul-header {
        display: none;
    }

    #nav-burger {
        display: block;
        font-size: 30px;
        color: #281c6f;
    }


    /*--------------------------------
            SECCIÓN HOLA
    ----------------------------------*/

    .seccion-hola, .contenedor-hola, .texto-hola, .texto-hola ul {
        justify-content: center;
        align-items: center;
    }

    .contenedor-hola {
        flex-wrap: wrap;
        margin-top: 0;
        padding: 0 0 30px 0;
    }

    .texto-hola {
        padding: 5px;
        width: 100vw;
    }

    .img-hola {
        width: 70%;
        margin: 20px;
    }
    
    .p-hola, h1, h3 {
        text-align: center;
    }

    /*--------------------------------
            TEXTOS
    ----------------------------------*/   

    h1 {
        font-size: 60px;
    }

    h3 {
        font-size: 20px;
    }

    h2 {
        font-size: 30px;
    }

    h4 {
        font-size: 20px;
    }

    /*--------------------------------
            SECCIÓN SKILLS
    ----------------------------------*/

    /* -- CAJA DE TARJETAS -- */
   .contenedor-skills {
        width: 100%;
        padding: 5px;
    }

    .texto-skills {
        padding: 10px 10px;
        margin: 10px;
        font-size: 16px;
    }  
    
    
    .post-wrapper{
        width: 100%;
        padding: 5px;
    }

    /*--------------------------------
            SECCIÓN QUOTE
    ----------------------------------*/
    .p-quote {
        margin: 10px 50px;
    }

    .h3-quote {
        font-size: 50px;
    }

    /*--------------------------------
            SECCIÓN PROYECTOS
    ----------------------------------*/
    
    
    .seccion-proyectos {
        padding-left: 10px;
        padding-right: 10px; 
    }


    /* -- CAJA DE TARJETAS -- */
    .contenedor-proyectos {
        padding-left: 0;
        padding-right: 0;
        padding-top: 5px;
    }

    .ver-mas {
 /*       display: flex;
        justify-content: center;  */
        margin-top: 30px;
        max-width: 68%;
    }   

    /*--------------------------------
                FOOTER
    ----------------------------------*/
    /* -- MENÚ -- */
    .nav-footer {
        display: none
    }

    .img-contacto {
        width: 55px;
    }

    .amor {
        font-size: 14px;
    }


}
