/* Google Font Lora */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital@0;1&display=swap');

/* Variables */
:root {
    --header-height: 3rem;

    /* Colors */
    --title-color: #0B0A0A;
    --link-link-color-fg: #052049;
    --link-hover-color-fg: #B9D6F4;
    --link-hover-color-bg: #052049;
    --text-color: #403A3A;
    --text-color-light: #585754; /* 80% black */
    --rounders-and-lines: #979694; /* 50% black */
    --container-color: #FAFAFA;
    --container-color-alt: #F0EFEF;
    --body-color: #FCFCFC;
    @media (prefers-color-scheme: dark) {
	    --title-color: #E6EEF6;
	    --link-link-color-fg: #B4DC55;
	    --link-hover-color-fg: #B9D6F4;
	    --link-hover-color-bg: #052049;
      --text-color: #B9D6F4;
      --text-color-light: #D5D5D4; /* 20% black */
	    --body-color: #4D4D4D;
    }
    /* Typography */
    --body-font: 'Lora', sans-serif;

    /* Fonts size */
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.6rem;
    --h3-font-size: 1.4rem;
    --normal-font-size: 1.3rem;
    --small-font-size: 1.2rem;
    --smaller-font-size: 1rem;

    /* Fonts weight */
    --font-medium: 500;
    --font-semi-bold: 600;

    /* Margins */
    --margin-1: .5rem;
    --margin-2: 1rem;
    --margin-3: 1.5rem;

    /* Z Index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

/* Base */

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

html {
    scroll-behavior: smooth;
}

/* Dark mode */

body.dark-theme {
    --title-color: #F2F2F2;
    --text-color: #BFBFBF;
    --container-color: #212121;
    --container-color-alt: #181616;
    --body-color: #2B2B2B;
}

/* Body */

body {
    margin: 0 0 var(--header-height) 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
}

h1,
h2,
h3,
ul,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--title-color);
    font-weight: var(--font-medium);
    text-align: left;
}

ul {
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Class CSS */

.section {
    padding: 1.5rem 0;
}

.section-title {
    font-size: var(--h2-font-size);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
    text-transform: uppercase;
    text-align: left;
    margin-bottom: var(--margin-1);
}

/* Layout */

.bd-container {
    max-width: 968px;
    width: calc(100% - 3rem);
    margin-left: var(--margin-3);
    margin-right: var(--margin-3);
}

.bd-grid {
    display: grid;
    gap: 1.5rem;
}

.l-header {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: var(--body-color);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

/* Nav */

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Home page */

.home {
    position: relative;
}

.home_container {
    gap: 3rem;
}

.home_data {
    gap: .5rem;
    text-align: center;
}

.home_img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    justify-self: center;
    margin-bottom: var(--margin-1);
}

.home_title {
    font-size: var(--h1-font-size);
}

.home_profession {
    font-size: var(--normal-font-size);
    margin-bottom: var(--margin-1);
}

.home_address {
    gap: 1rem;
}

.home_information {
    display: flex;
    align-items: center;
    font-size: var(--small-font-size);
}

.home_icon {
    font-size: 1.2rem;
    display: flex;
    width: 25px;
    justify-content: center;
    margin-right: 0.75rem;
}

.home_link {
    display: inline-flex;
    align-items: center;
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.home_link:hover {
	color: var(--link-hover-color-fg);
	background-color: var(--link-hover-color-bg);
}

.home_button-movil {
    display: inline-block;
    border: 2px solid var(--text-color);
    color: var(--title-color);
    padding: 1rem 2rem;
    border-radius: .25rem;
    transition: all 0.5s ease;
    font-weight: var(--font-medium);
    margin-top: var(--margin-3);
}

.home_button-movil:hover {
    background-color: var(--text-color);
    color: var(--container-color);
}

/* Social page */

.social_icon {
    font-size: 1.2rem;
    display: flex;
    width: 25px;
    justify-content: center;
    margin-right: 0.75rem;
}

/* Education page */

.education_content,
.experience_content,
.certificate_content {
    display: flex;
}

.education_time,
.experience_time,
.certificate_item {
    padding-right: 1rem;
}

.education_rounder,
.experience_rounder {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--rounders-and-lines);
    border-radius: 50%;
    margin-top: .45rem;
}

.education_line,
.experience_line {
    display: block;
    width: 2px;
    height: 115%;
    background-color: var(--rounders-and-lines);
    transform: translate(7px, 0);
}

.education_data,
.experience_data,
.certificate_data {
    gap: .35rem;
}

.education_title,
.experience_title,
.certificate_year {
    font-size: var(--h3-font-size);
}

.education_studies,
.experience_company,
.certificate_title,
.certificate_explain {
    font-size: var(--small-font-size);
    color: var(--title-color);
}

.education_year,
.experience_year {
    font-size: var(--smaller-font-size);
}

.experience_description {
    color: var(--text-color-light);
    font-size: var(--smaller-font-size);
}
ul.experience_description{
	list-style: initial;
}
ul.experience_description li{
	margin-bottom: .5em;
}

/* Skills */

.skills_container ul{
	display: grid;
	gap: 1ch 2ch;
	grid-template-columns: repeat(auto-fit, minmax(10ch, 1fr));
  font-size: var(--smaller-font-size);
  line-height: 1.3;
}
#sites .skills_container ul{
	display: initial;
}
#sites .skills_container ul a{
	display: inline-block;
	margin-bottom: 1em;
}

.skills_content {
    gap: 0.2rem;
    padding-left: 2rem;
}

.skills_name {
    margin-bottom: .25rem;
}

.skills_text {
    display: inline-block;
    width: 100px;
}

.skills_box {
    display: inline-block;
    width: 150px;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--text-color-light);
}


/* Certificates */

.certificate_container {
    gap: 0.75rem;
}

.certificate_rounder {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: var(--rounders-and-lines);
    border-radius: 50%;
    margin-right: 0.38rem;
    margin-left: 0.37rem;
    margin-bottom: 0.28rem;
}

.certificate_honours {
    font-size: var(--smaller-font-size);
    color: var(--text-color);
}

@media screen and (min-width: 968px) {
    body {
        margin: 3rem 0;
    }

    .bd-container {
        margin-left: auto;
        margin-right: auto;
    }

    .l-header {
        display: none;
    }

    .resume {
        display: grid;
        grid-template-columns: .5fr 1fr;
        background-color: var(--container-color);
        box-shadow: 0 0 8px rgba(13, 12, 12, .15);
    }

    .resume_left {
        background-color: var(--container-color-alt);
		    @media (prefers-color-scheme: dark) {
	        background-color: #21272A;
		    }
    }
    .resume_right{
		    @media (prefers-color-scheme: dark) {
	        background-color: #052049;
		    }
    }

    .resume_left,
    .resume_right {
        padding: 0 1.5rem;
    }

    .section-title,
    .profile_description {
        text-align: initial;
    }

    .home_container {
        gap: 1.5rem;
    }

    .home_button-movil {
        display: none;
    }

    .skills_content {
        padding-left: 0;
    }

}

a:link{
	color: var(--link-link-color-fg);
	text-decoration: underline;
}
a:visited{
	color: var(--link-link-color-fg);
}
a:focus{
	color: #ffffff;
	background-color: #FA6E1E; /* orange */
	outline: none;
}
a:hover{
	color: var(--link-hover-color-fg);
	background-color: var(--link-hover-color-bg);
}
a:active{
	color: var(--text-color);
	background-color: #FEB80A; /* yellow */
}
