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

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

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

/* --- HEADER --- */
.header-main {
  background-color: var(--bg-header);
  padding: 20px;
  box-shadow: 0px 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);
}

/* --- CONTENEDOR --- */
.about-container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  gap: 25px;
}

/* --- TARJETAS --- */
.about-card {
  background: #020617;
  padding: 25px;
  border-radius: 15px;
  transition: 0.3s;
}

.about-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px var(--accent);
}

/* --- FLEX SECTIONS --- */
.about-flex {
  display: flex;
  align-items: center;
  gap: 20px;
}

.img-about {
  width: 120px;
  border-radius: 10px;
}

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

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

  .menu-toggle {
    display: block;
  }

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

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

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

/* 📲 TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}

/* 💻 PC */
@media (min-width: 1025px) {
  .about-container {
    grid-template-columns: 1fr;
  }
}