:root {
  /* Theme specific colors */
  --forest-green: #006600;

  /* Text Colors */
  --text-dark: #333333;
  --text-dark-muted: #555555;
  --text-light: #ffffff;

  /* Background Colors */
  --bg-light: #ffffff;
  --bg-dark: #000000;
}

/* Fonts */
@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/Montserrat-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 200 900;
  font-style: normal;
}

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

/* General Styles */
body {
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
  padding-top: 80px; /* Adjust this value to match your header height */
  overflow-x: hidden;
}

main {
  padding-top: 0.75rem;
}

section {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 20px;
}

/* Typography */
h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1.5rem 0;
}

h2 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1rem 0;
}

h3 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.5rem 0 1rem 0;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}

p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

a {
  color: var(--forest-green);
  text-decoration: underline;
}

/* Buttons */
button {
  background-color: var(--forest-green);
  color: var(--text-light);
  padding: 1rem 2rem;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 3rem;
  transition: background-color 0.2s, color 0.2s;
}

button:hover {
  background-color: var(--text-light);
  color: var(--forest-green);
}

button:focus {
  outline: 2px solid var(--text-dark);
}

button.inverted {
  background-color: var(--text-light);
  color: var(--text-dark);
}

button.inverted:hover {
  background-color: var(--forest-green);
  color: var(--text-light);
}

/* Cards */
.card-container {
  padding: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem;
  margin-top: 2rem;
}

.card-featured {
  grid-column: 1 / -1; /* Ocupa toda la fila */
}

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-featured {
    grid-column: 1; /* En móvil, comportamiento normal */
  }
}

.card {
  background-color: var(--bg-light);
  padding: 2rem;
  border: 3px solid var(--text-dark);
  display: flex;
  flex-direction: column;
}

.card-link {
  color: var(--forest-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.card-link:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.card-image {
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card-featured .card-image {
  height: 150px;
  display: block;
}

@media (max-width: 1024px) {
  .card-image {
    height: 48px;
  }

  .card-featured .card-image {
    height: 90px;
  }
}

/* Page Images */
.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 1024px) {
  .page-images {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
  }
}

/* Header Styles */
.site-header {
  background-color: var(--bg-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1100;
}

.main-nav {
  margin: 0 auto;
  padding: 0 2.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.logo {
  width: 250px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-gold);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.25rem;
}

.nav-links a:hover {
  color: var(--forest-green);
  border-bottom: 2px solid var(--forest-green);
}

.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-light);
    padding: 2rem;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 1000;
  }

  .mobile-nav.active {
    display: flex;
    border-bottom: 3px solid var(--forest-green);
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .hamburger-menu:focus {
    outline: none;
  }

  .hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none;
  }
}

/* Footer Styles */
footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem 0 2rem 0;
  margin-top: auto;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2.5%;
}

@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 1rem;
  }
}

#footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#footer-links a {
  color: var(--text-light);
  text-decoration: none;
}

#footer-links a:hover {
  color: var(--forest-green);
}
