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

body,
html {
  font-family: "Arial", sans-serif;
  color: #333;
  background-color: #f1f1f1;
  animation: fadeInBody 1s ease-in;
  scroll-margin: 7rem;
  scroll-behavior: smooth;
}

section {
  scroll-margin: 7rem;
}

@keyframes fadeInBody {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

header {
  background-color: #fff;
  padding: 15px 20px;
  border-bottom: 1px solid #ccc;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  transition: transform 0.3s ease;
  cursor: pointer;
}
.logo:hover {
  transform: scale(1.05);
}

nav {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #00a5d5;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}
.nav-links a:hover {
  color: #00a5d5;
}
.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  background: linear-gradient(to right, #1d8f2f, #76d99e);
  color: white;
  padding: 60px 20px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 85%;
  margin: 0 auto;
  margin-top: 70px;
}

.section h2 {
  font-size: 2.2rem;
  color: #1a1a1a;
  margin-bottom: 20px;
  text-align: center;
}

.section .intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card > img {
  max-width: 100%;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card > i {
  font-size: 2rem;
  color: #00a5d5;
  margin-bottom: 15px;
  display: block;
  text-align: center;
}

.card h3 {
  color: #00a5d5;
  margin-bottom: 10px;
  text-align: center;
}

.card p,
.card ul {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

.card ul {
  padding-left: 20px;
  list-style: disc;
}

.perfil-img {
  width: 180px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
}

.rol {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-bottom: 15px;
}

.card p {
  font-size: 0.9rem;
  color: #444;
  margin: 5px 0;
  line-height: 1.5;
}

.lider-titulo,
.estudiantes-titulo {
  font-size: 1.4rem;
  color: #1a1a1a;
  margin-bottom: 25px;
  text-align: center;
}

.estudiantes-titulo {
  margin-top: 60px;
}

.semillerista-nombre {
  text-align: center;
  color: #00a5d5;
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.semillerista-nombre > a {
  color: #0077b5 !important;
}

.lider {
  max-width: 500px;
  margin: 0 auto;
}

.evento-nombre {
  font-size: 1.3rem !important;
  margin: 10px 0;
}

.evento-descripcion {
  font-size: 0.9rem;
  color: #555;
}

.proyecto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
  animation: fadeInUp 1s ease-in;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    right: 0;
    top: 60px;
    width: 200px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .nav-links.show {
    display: flex;
    animation: fadeInMenu 0.3s ease;
    padding: 1rem;
    border-bottom-left-radius: 1rem;
    border-top-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }

  @keyframes fadeInMenu {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hamburger {
    display: block;
  }
}
