:root {
  --primary-color: #346631;
  --primary-light: #ade3a9;
  --text-dark: #333;
  --text-light: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----------------- HEADER ----------------- */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

#logo {
  width: 80px;
  height: auto;
  transition: var(--transition);
}

/* Desktop Navigation */
#desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.header-btns {
  padding: 0.5rem 1.2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.header-btns:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Mobile Menu Button (hidden by default) */
/* Mobile Menu Button */
.mobile-menu-btn {
  display: none; /* Oculto por defecto (se muestra en móviles) */
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

/* Mobile Navigation */
#mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  z-index: 100;
}

#mobile-nav.mobile-nav-visible {
  max-height: 1000px; /* Ajusta según necesidad */
}

.mobile-nav-btn {
  padding: 1.2rem 2rem;
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1rem;
  text-align: left;
  width: 100%;
  border-top: 1px solid #eee;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-nav-btn:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
}

/* Mostrar botón de menú móvil solo en móviles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  #desktop-nav {
    display: none;
  }
}

/* ----------------- BANNER ----------------- */
.banner {
  width: 100%;
  height: 50vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.banner-text {
  background: rgba(52, 102, 49, 0.8);
  color: white;
  padding: 1.5rem;
  width: 100%;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

/* ----------------- CARDS ----------------- */
.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-text {
  padding: 1.2rem;
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

/* ----------------- PAGINATION ----------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem;
  margin: 2rem 0;
}

.pagination button {
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  min-width: 40px;
}

.pagination button:hover {
  background-color: #2a5527;
}

.pagination button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* ----------------- FLOAT BUTTON ----------------- */
.float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  text-decoration: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  z-index: 90;
  border: none;
}

.float .material-icons {
  font-size: 28px;
}

/* ----------------- FOOTER ----------------- */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-icons a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary-light);
  transform: translateY(-3px);
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 900px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Header */
  #desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Banner */
  .banner {
    height: 40vh;
    min-height: 300px;
  }

  /* Cards */
  .cards-container {
    padding: 1rem;
  }
}

@media (max-width: 600px) {
  /* Header */
  .header-container {
    padding: 1rem;
  }

  /* Banner */
  .banner {
    height: 30vh;
    min-height: 250px;
  }

  .banner-text {
    font-size: 1.5rem;
  }

  /* Cards */
  .cards-container {
    grid-template-columns: 1fr;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
  }
}
