:root {
  --verde: #C9DA2E;
  --negro: #111;
  --gris: #666;
  --claro: #f7f7f7;
  --blanco: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--blanco);
  color: #222;
  line-height: 1.6;
}

/* ---------- HEADER / NAV ---------- */

header {
  background: var(--negro);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blanco);
  height: 60px;
}

.logo span {
  color: var(--verde);
}

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

.nav-menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--verde);
  transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

/* ---------- MENU HAMBURGUESA ---------- */

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--blanco);
  margin: 4px 0;
}

/* ---------- HERO ---------- */

.hero {
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
              url("../img/hero.jpg") center/cover;
  color: var(--blanco);
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 800px;
  margin: auto;
  opacity: 0.9;
}

/* ---------- SECCIONES ---------- */

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--negro);
}

/* ---------- CARDS ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--blanco);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}

.card.visible {
  transform: translateY(0);
  opacity: 1;
}

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

.card-body {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--negro);
}

.card p {
  color: var(--gris);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--verde);
  color: var(--negro);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.btn:hover {
  opacity: 0.9;
}

/* ---------- EQUIPO ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 4px solid var(--verde);
}

.team-member h4 {
  margin-bottom: 0.5rem;
}

/* ---------- DONACIONES ---------- */

.donations {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--negro);
  color: var(--blanco);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.social-icons a {
  color: var(--negro);
  background: var(--verde);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--negro);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    display: none;
  }

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