/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap");

:root {
  /* Dark colors */
  --terracota-principal: #c1552c;
  --chocolate-tostado: #6b3f3c;
  --chocolate-profundo: #4a2c2a;
  --tierra-oscura: #2c1810;

  /* Light colors */
  --arena-clara: #f8f2e7;
  --beige-crema: #f5e9d8;
  --ocre-arenoso: #b8945f;
  --terracota-suave: #d98b63;
  --ambar-dorado: #e68a2e;

  /* Fonts */
  --primary-font: "Source Sans 3", sans-serif;
  --secondary-font: "Exo 2", sans-serif;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--primary-font);
  background-color: var(--arena-clara);
  color: var(--tierra-oscura);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* HEADER */
.header {
  background-color: var(--tierra-oscura);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__brand {
  content: "";
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--secondary-font);
  color: var(--ambar-dorado);
  transition: color 0.3s ease;
}

.header__logo:hover {
  color: var(--arena-clara);
}

.header__nav {
  display: flex;
}

.header__nav-list {
  display: flex;
  gap: 2rem;
}

.header__nav-item {
  position: relative;
}

.header__nav-link {
  font-weight: 500;
  font-family: var(--secondary-font);
  color: var(--ambar-dorado);
  padding: 0.5rem 0;
  position: relative;
}

.header__nav-link:hover {
  color: var(--arena-clara);
}

.header__nav-link--active {
  color: var(--arena-clara);
}

.header__nav-link--active::after {
  width: 100%;
}

/* SECTIONS */
.section {
  padding: 4rem 2rem;
}

.section__container {
  min-height: 100dvh;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* HOME SECTION */
main .section:nth-child(1) {
  background: linear-gradient(
    135deg,
    var(--ambar-dorado) 0%,
    var(--chocolate-profundo) 140%
  );
  padding-top: 2rem;
}

main .section:nth-child(1) h1 {
  color: var(--beige-crema);
  font-family: var(--primary-font);
}

.home__content {
  text-align: center;
}

.home__title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-align: center;
}

.home__subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.home__title,
.home__subtitle {
  color: var(--arena-clara);
}

.home__button {
  display: inline-block;
  background-color: var(--arena-clara);
  color: var(--terracota-principal);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--secondary-font);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  max-width: fit-content;
}

.home__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ABOUT SECTION */
main .section:nth-of-type(2) {
  background-color: var(--beige-crema);
  color: var(--terracota-principal);
}

main .section:nth-of-type(2) h2 {
  color: var(--terracota-principal);
  font-family: var(--secondary-font);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 0 7rem;
}

.about__image-container {
  display: flex;
  justify-content: center;
}

.about__image {
  width: 70%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
}

.about__text {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 600;
}

.about__text-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: justify;
  padding: 0 1.3rem;
  gap: 1rem;
}

.about__highlight {
  color: var(--beige-crema);
  font-weight: 600;
}

/* PROJECTS SECTION */
main .section:nth-of-type(3) {
  background-color: var(--chocolate-tostado);
  color: var(--terracota-principal);
}
main .section:nth-of-type(3) h2 {
  color: var(--beige-crema);
  font-family: var(--secondary-font);
  padding: 3rem 0;
}

.projects__grid {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.project-card {
  background-color: var(--beige-crema);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card__content {
  padding: 1.5rem;
}

.project-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--tierra-oscura);
}

.project-card__description {
  color: var(--tierra-oscura);
  margin-bottom: 1rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-card__tag {
  background-color: var(--ocre-arenoso);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--tierra-oscura);
}

.project-card__link {
  color: var(--chocolate-profundo);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card__link:hover {
  text-decoration: underline;
}

/* CONTACT SECTION */
main .section:nth-of-type(4) {
  background-color: var(--ocre-arenoso);
  color: var(--terracota-principal);
}
main .section:nth-of-type(4) h2 {
  color: var(--chocolate-profundo);
  font-family: var(--secondary-font);
}

.contact__form {
  width: 400px;
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: var(--secondary-font);
  color: var(--chocolate-profundo);
}

.form-group__input,
.form-group__textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--arena-clara);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group__input:focus,
.form-group__textarea:focus {
  outline: none;
  border-color: var(--beige-crema);
}

.form-group__textarea {
  min-height: 100px;
  resize: vertical;
}

.button {
  background-color: var(--chocolate-profundo);
  color: var(--terracota-suave);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--beige-crema);
}

.button--full-width {
  max-width: max-content;
  display: flex;
  justify-self: center;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--secondary-font);
}

/* FOOTER */
.footer {
  background-color: var(--tierra-oscura);
  color: var(--arena-clara);
  padding: 3rem 2rem;
  text-align: center;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__text {
  font-size: 1rem;
  opacity: 0.8;
}

.footer__social {
  display: flex;
  gap: 1.7rem;
}

.footer__social-link {
  display: flex;
  align-items: last baseline;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--ocre-arenoso);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.footer__social-link:hover {
  background-color: var(--beige-crema);
}

ion-icon {
  font-size: 28px;
  color: var(--tierra-oscura);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header__nav {
    display: none;
  }

  .header__nav-list {
    gap: 0.75rem;
  }

  .header__container {
    padding: 1rem;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .home__subtitle {
    font-size: 1.2rem;
  }

  .about__content {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 2rem;
  }

  .contact__form {
    width: 100%;
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }
}

/* Burguer Menu (placeholder) */
.menu {
  display: none;
}

@media (max-width: 768px) {
  .menu {
    color: var(--ambar-dorado);
    font-size: 1.3rem;
    display: block;
  }
}
