/* --- VARIABLES --- */
:root {
  --bg-main: #0f172a;
  --bg-header: #020617;
  --accent: #10B981;
  --text: #f8fafc;
}

/* --- BASE --- */
body {
  font-family: system-ui;
  margin: 0;
  color: var(--text);
  background-color: var(--bg-main);
}

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

/* --- HEADER --- */
.header-main {
  background-color: var(--bg-header);
  padding: 20px;
  box-shadow: 0 4px 15px var(--accent);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.title-main {
  font-size: 2rem;
}

.title-second-word {
  color: var(--accent);
}

.nav-main {
  display: flex;
  gap: 20px;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- LINKS --- */
a {
  color: #cbd5e1;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* --- HERO --- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.slogan {
  font-size: 2.5rem;
}

.paragraph-below-slogan {
  margin: 20px 0;
  opacity: 0.8;
}

/* --- BOTONES --- */
.btn, .btn-2 {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.btn {
  background: var(--accent);
  color: white;
}

.btn-2 {
  background: white;
  color: var(--accent);
}

/* --- PROYECTOS --- */
#projects {
  background: #1f3058;
  padding: 40px;
  max-width: 1200px;
  margin: auto;
  border-radius: 18px;
}

.projects-links {
  display: grid;
  gap: 20px;
}

.article-projects-one {
  background: #020617;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
}

.article-projects-one:hover {
  transform: scale(1.03);
}

.project-image {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-info {
  padding: 15px;
}

.category {
  color: var(--accent);
  font-size: 0.8rem;
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 30px;
  background: var(--bg-header);
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: var(--bg-header);
    padding: 20px;
  }

  .nav-main.active {
    display: flex;
  }

  .projects-links {
    grid-template-columns: 1fr;
  }
}

/* 📲 TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .projects-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 💻 PC */
@media (min-width: 1025px) {
  .projects-links {
    grid-template-columns: repeat(3, 1fr);
  }
}