:root {
  --navy: #232e3f;
  --gold: #cf9421;
  --cream: #eeece3;
  --beige: #dad5c6;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--beige);
  color: #1c1c1c;
}

.main-header {
  background-color: var(--navy);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.main-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

nav a {
  color: var(--gold);
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: white;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--gold);
}

.about-section {
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
  gap: 2rem;
}

.about-text {
 max-width: 600px;
  display: flex;
  flex-direction: column;
}

.section-heading {
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.about-text h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.social-links img {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.social-links img:hover {
  transform: scale(1.2);
}

/*seccion 2 */
.category-section {
  padding: 4rem 2rem;
  background-color: var(--cream);
  text-align: center;
}

.section-heading.main-focus {
  font-size: 2rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subheading {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.category-card {
  background-color: var(--beige);
  border: 2px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  width: 260px;
  padding: 1rem;
  text-align: left;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 3px solid var(--gold);
}

.category-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 0.5rem 0 0.3rem;
}

.category-card p {
  font-size: 0.95rem;
  color: #1c1c1c;
  line-height: 1.5;
}

/*article design */
.article-section {
  background-color: var(--cream);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.article-title {
  color: var(--navy);
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.article-subtitle {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.article-paragraph {
  font-size: 1rem;
  color: #1c1c1c;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.article-list {
  margin-top: 2rem;
}

.article-item {
  margin-bottom: 1.5rem;
}

.article-highlight {
  font-weight: bold;
  color: var(--gold);
  margin-top: 2rem;
  font-size: 1.05rem;
}

/*boton design */
.article-button-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.article-button {
  background-color: var(--gold);
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.article-button:hover {
  background-color: var(--navy);
}

/*image design */
.article-image-wrapper {
  text-align: center;
  margin: 2rem 0;
}

.article-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}


/*footer design */
.main-footer {
  background-color: var(--navy);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.main-footer p {
  margin: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  nav a {
    margin: 0.5rem 0;
  }

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

  .about-text {
    align-items: center;
  }

  .category-grid {
    flex-direction: column;
    align-items: center;
  }

  .category-card {
    width: 90%;
  }

  .article-section {
    padding: 2rem 1rem;
  }

  .article-image {
    width: 100%;
    height: auto;
  }

  .profile-img {
    width: 140px;
    height: 140px;
  }
}