:root {
	/*Definir variables en CSS*/
	--font: "Montserrat", sans-serif;
	
	--bgColor: #222831;
	--bgColorSecondary: #393E46;
	
	--textColor: #DFD0B8;
	--textColorSecondary: #948979;
	
	--accentColor: #098BC8;
	--accentColorLight: #0BAAF4;
	--accentColorUltraLight: #4FC3F7;
	--accentColorSecondary: #948979;
	
	--white: #ffffff;
	--black: #000000;
}

html{
	box-sizing: border-box; /*Box Model - Facilita modelo de caja y dimensiones*/
	font-size: 62.5%; /*Cambio unidad de dimension: 1rem = 10px*/
	
	font-family: var(--font);
	font-style: normal;
	font-weight: normal;
}

*, *:before, *:after {
	box-sizing: inherit; /*Todos los elementos heredan el border-box*/
}

body {
	background-color: var(--bgColor);
	color: var(--textColor);
	font-size: 1.6rem;
}

h1, h2, h3, h4 {
	line-height: 1.2;
	margin: 1rem 0;
}

h1 {
	font-size: 4.8rem;
	font-weight: bold;
}

h2 {
	font-size: 4rem;
	font-weight: 600;
}

h3 {
	font-size: 3.2rem;
	font-weight: 500;
}

h4 {
	font-size: 2.8rem;
	font-weight: 500;
}

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

p {
	line-height: 1.6;
}

img {
	width: 100%;
}

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

/*Clase para centrar el contenido*/
.container {
	margin: 0 auto;
	max-width: 100rem;
}

/* Pagina web */
.header, .footer {
	background-color: var(--bgColorSecondary);
}

.header__nav {
	padding: 2rem;
}

@media(min-width: 768px) {
	.header__nav {
		padding: 2rem 10rem;
	}
}

.nav__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

@media(min-width: 768px) {
	.nav__list {
		flex-direction: row;
		justify-content: space-around;
		flex-wrap: wrap;
	}
}

.nav__li {
	margin: 0;
}

.nav__li a {
	font-weight: 500;
}

.nav__li a:hover {
	color: var(--accentColor);
}

.main {
	padding: 2rem;
}

main section {
    margin-bottom: 4rem; 
}

.profile {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-top: 3rem;
}

.profile__description {
	text-align: center;
}

.profileImage__img {
	max-width: 20rem;
	margin-top: 2rem;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	border: 0.3rem solid #ffffff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profileImage__img:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.profile__name {
	margin: 2rem 0;
}

.profile__title {
	font-size: 2.5rem;
}

.contact {}

section h2 {
	text-align: center;
	margin: 2rem 0;
}

.about__container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: center;
}

.about__image img {
	max-width: 25rem;
	border-radius: 1rem;
	height: auto;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--bgColorSecondary);
}

.about__image {
	order: -1;
}

.about__text {
	text-align: center;
}

.about__text p {
    margin-bottom: 2rem; 
    line-height: 1.7; 
}

@media(min-width: 768px) {
	.about__container {
		display: grid;
		grid-template-columns: 2fr 1fr;
		gap: 5rem;
		align-items: center;
	}
	
	.about__image img {
		max-width: none;
	}
	
	.about__image {
		order: 1;
	}
	
	section h2 {
		text-align: left;
	}
	
	.about__text {
		text-align: left;
	}
}

#map {
   width: 100%; 
   height: 20rem; 
   box-shadow: 5px 5px 5px #888; 
}

.footer {
	padding: 2rem;
}

.footer__div {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	
}

.footer__div p {
	text-align: center;
	margin: 0;
	
}

.footer__contact {
	text-align: center;
}

.footer__contact h4 {
	margin: 1.2rem;
}

.contact__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3rem;
}

.contact__form {
	padding: 2rem;
}

.form__group {
	margin-bottom: 2rem;
}

label{
	display: block;
	margin-bottom: 0.7rem;
}

.form__label--bold {
	font-weight: bold;
}

fieldset {
	padding: 1rem;
}

.radio__option, .check__option {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.radio__option:last-child, .check__option:last-child {
	margin-bottom: 0;
}

.radio__option label, .check__option label{
	margin-bottom: 0;
}

input[type="text"],
input[type="email"],
textarea,
select {
	padding: 1rem;
	display: block;
	width: 100%;
	border: 1px solid v.$gris;
	background-color: v.$blanco;
	border-radius: 1rem;
}

textarea {
	resize: none;
}

input[type="radio"] {
	margin: 0;
	width: auto;
}

.button {
	padding: 1rem 3rem;
    font-size: 2rem;
    background-color: var(--accentColor);
    color: var(--white);
    text-align: center;
    display: block;
	width: 100%;
	border-radius: 1rem;
	border: none;
}

.button:hover {
	cursor: pointer;
	background-color: var(--accentColorLight);
}

@media(min-width: 768px) {
	.contact__container {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
	
	.button {
		display: inline-block;
		width: auto;
	}
	
	#map {
		height: 50rem;
	}
}

/* Proyectos */

.projects__intro {
	text-align: center;
	font-size: 1.8rem;
	max-width: 70rem;
}

.projects__grid {
	margin-top: 3rem;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

.project-card {
	background-color: var(--bgColorSecondary);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.project-card__img {
	width: 100%;
	height: 20rem; 
	object-fit: cover; 
	display: block;
}

.project-card__content {
	padding: 2rem;
}

.project-card__content h3 {
	margin-top: 0;
	font-size: 2.8rem;
	font-weight: 600;
	color: var(--accentColorLight);
}

.project-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0;
}

.project-card__tags span {
	background-color: var(--accentColorSecondary);	
	color: var(--bgColor);
	font-weight: 600;
	font-size: 1.2rem;
	padding: 0.5rem 1rem;
	border-radius: 2rem;
}

.project-card__links {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	margin-top: 2.5rem;
}

.project-card__link {
	font-weight: 500;
	color: var(--accentColorLight);
	text-decoration: underline;
	font-size: 1.6rem;
}

.project-card__link:hover {
	color: var(--accentColorUltraLight);
}

@media(min-width: 768px) {
	.projects__grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.projects__intro {
		text-align: left;
		margin-left: 0;
		max-width: none;
	}
}

/* Educacion */

.education__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.education__item {
    background-color: var(--bgColorSecondary);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
}

.education__item h3 {
    margin-top: 0;
    color: var(--accentColorLight);
	font-size: 2.5rem;
}

.education__item p {
    margin: 0;
    font-size: 1.8rem;
    color: var(--textColorSecondary);
    font-weight: 500;
}

@media(min-width: 768px) {
    .education__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .education__item {
        text-align: left;
    }
}

/* habilidades */

.skills__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.skills__category {
    background-color: var(--bgColorSecondary);
    padding: 2.5rem;
    border-radius: 1rem;
}

.skills__category h3 {
    margin-top: 0;
    font-size: 2.8rem; 
    color: var(--accentColorLight);
    border-bottom: 2px solid var(--accentColor);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.skills__category ul {
    list-style: disc; 
    padding-left: 2.5rem;
}

.skills__category li {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.5;
}

.skills__category li:last-child {
    margin-bottom: 0;
}

@media(min-width: 768px) {
    .skills__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Video */

#video h2, #skills h2 {
	margin-bottom: 3rem;
}

.responsive-video {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9; 
	border: none;
	border-radius: 1rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


@media(min-width: 768px) {
	.responsive-video {
		width: 50rem;
	}	
	
	.video__section {
		display: flex;
		justify-content: center;	
	}
}