/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #000;
  background: #fff;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  height: 60px;
  border-bottom: 1px solid #D2D2D2;
  background: #fff;
  position: relative;
}

.nav-container {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

.logo-image img {
  height: 40px;
  display: block;
}

/* =========================
   BURGER (MOBILE)
========================= */
.burger {
  background: none;
  border: none;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: #000;
  transition: 0.3s ease;
}

/* =========================
   MOBILE MENU
========================= */
.nav-menu {
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  background: #fff;

  list-style: none;
  display: none;
  flex-direction: column;
  text-align: center;
  border-bottom: 1px solid #D2D2D2;
}

.nav-menu li {
  padding: 1.5rem 0;
}

.nav-menu a {
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  color: #D2D2D2;
  font-size: 14px;
  text-transform: uppercase;
}

.nav-menu.active {
  display: flex;
}

/* BURGER ANIMATION */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   HEADER / HERO
========================= */
.hero {
  background: #fff;
}

.hero-container {
  display:flex;
  max-width: 1440px;
  height: 90vh;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  text-align: center;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 auto;
  color: #111111;
}

span.color-highlighted {
  color: #F7931E;
}

.tagline {
  margin-top: 1rem;
  font-size: 1rem;
  color: #555;
}

.hero-container a {
    font-size: 14px;
    display: inline-block;
    background-color: #F7931E;
    color: #fff;
    padding: 14px 20px;
    border-radius: 50px;
    text-decoration: none;
    transition: background 1s;
    align-self: center;
    margin-top: 30px;
}


/* SECTION TITLE */

.section-title {
  display: flex;
  max-width: 1440px;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  gap: 10px;
  padding: 0 20px;
}

.section-title > span.capsule-orange {
  display: inline-block;
  color: #F7931E;
  border: 2px solid #F7931E;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 25px;
  text-transform: uppercase;
}

.section-title > h2 {
  font-family: 'Roboto', sans-serif;
  font-size: 36px;
  font-weight: 700;
}

.section-title > p {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #6D6C6C;
  max-width: 500px;
  text-align: center;
  line-height: 1.5;
}


/* PROJECT SECTION */
.portfolio-project {
  padding: 2rem 1rem;
}

.portfolio-project.blue {
    background-color: #1b213f; /* full-width background */
}

.portfolio-project.orange {
    background-color: #F7931E; /* full-width background */
}

.portfolio-project.dark-blue {
    background-color: #01121f; /* full-width background */
}

.portfolio-project.navy{
    background-color: #02265e; /* full-width background */
}

.portfolio-project.light-blue{
    background-color: #4fb8fd; /* full-width background */
}

.portfolio-info {
  display: flex;
  flex-direction: column; /* Columna por defecto en móvil */
  gap: 1.5rem;
}

span.capsule-orange {
  color: #F7931E;
  border: 1px solid #F7931E;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 15px;
  text-transform: uppercase;
}

span.capsule-white {
  color: #FFF;
  border: 1px solid #FFF;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 15px;
  text-transform: uppercase;
}

span.capsule-blue {
  color: #262E54;
  border: 1px solid #262E54;
  border-radius: 50px;
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 15px;
  text-transform: uppercase;
}

.text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente */
  text-align: left;
  color: #fff;
  gap: 10px;
}

.portfolio-info > .text-content > h1 {
  font-size: 48px;
  line-height: 1.1;
}

.portfolio-info > .text-content > h1.blue {
  color:#262E54;
}

.portfolio-info > .text-content > p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.portfolio-info > .text-content > p.black {
color: #111111;
}

.portfolio-info > .text-content > a{
  font-size: 16px;
  display: inline-block;       /* hug text only */
  background-color: #F7931E;   /* button color */
  color: #fff;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 1s;
  align-self: flex-start;      /* make sure button does NOT stretch */
  margin-top: 10px;
}

.portfolio-info > .text-content > a.blue{
  background-color: #262E54;   /* button color */
}

.portfolio-info > .text-content > a:hover {
  background-color: #ff4500;
}

.image-content img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/**** FOOTER ****/
.portfolio-footer {
  width: 100%;
  height: 40px;
  background-color: #fff; /* black background */
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  text-align: center;

}

.portfolio-footer__content {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: #555;
}

/* =========================
   TABLET ≥ 768px
========================= */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 24px;
  }

  .hero-container a {
    font-size: 16px;
  }

    .portfolio-footer__content {
    font-size: 22px;
  }
}

/* =========================
   DESKTOP ≥ 1024px
========================= */
@media (min-width: 1024px) {

  /* HIDE BURGER */
.burger {
    display: none;
  }

  /* SHOW MENU */
.nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    width: auto;
    border: none;
}

.nav-menu a {
  text-decoration: none;
  color: #D2D2D2;
  font-size: 14px;
  text-transform: uppercase;
}

.nav-menu a:hover {
  text-decoration: none;
  color: #F7931E;
  font-size: 14px;
  text-transform: uppercase;
}

.nav-menu li {
    padding: 0;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
 }

.section-title > h2 {
    font-size: 60px;
}

.section-title > p {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.5;
}

.portfolio-project {
  padding: 0;
}

.portfolio-footer__content {
  font-size: 0.8rem;
}


.portfolio-info {
  flex-direction: row; /* Horizontal en tablet y desktop */
  gap: 0;
}

.portfolio-info.reverse {
  flex-direction: row-reverse; /* Horizontal en tablet y desktop */
  gap: 0;
}

.text-content,
.image-content {
  width: 50%; /* Dividido 50%-50% */
}

.portfolio-info > .text-content > h1 {
  font-size: 60px;
}

.portfolio-info > .text-content > p {
  font-size: 18px;
  max-width: 530px;
}

.text-content {
  padding-left: 75px;
}
.image-content img {
  width: 100%;
  height: 100%;
  border-radius: 70px;
  padding: 50px;
}

.two-projects{
  display: flex;
  gap: 2rem;
  flex-wrap: wrap; /* allows more rows later */
  max-width: 1440px;
  margin: 0 auto;
}

.two-projects_project {
  flex: 1 1 calc(25% - 2rem);
  display: flex;
  flex-direction: column;
}

.two-projects_image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.two-projects_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #4fb8fd;
  padding: 20px;
  border-radius: 10px;
}

.two-projects_info {
  padding-top: 1rem;
}

.two-projects_info h1 {
font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 700;
}

.two-projects_info p {
font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #6D6C6C;
    max-width: 500px;
    line-height: 1.5;
}

}
