.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #6954c5;
  color: rgb(0, 0, 0);
  padding: 1rem 2rem;
}
.logo { font-size: 1.5rem; font-weight: bold; }
.menu a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  margin-left: 1.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.menu a:hover,
.menu a:focus {
  background: rgba(255, 255, 255, 0.25);
  color: #000000;
}

body {
  scroll-behavior: smooth;
}

.contenedor {
  max-width: 1120px;
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #2c15a0, #735fbb);
  color: #000000;
  padding: 3rem 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 0.75rem;
  font-size: 2.2rem;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  opacity: 0.92;
}

.seccion {
  padding: 2rem 0;
}

.seccion h2 {
  margin-bottom: 1.5rem;
  color: #000000;
  font-size: 1.9rem;
}

.tarea-card {
  background: #000000;
}

.perfil-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.perfil-item {
  background: #102772;
  padding: 1.8rem;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.perfil-item p {
  margin: 0.6rem 0;
}

.grid-contenidos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem;
}

.tarjeta {
  background: #cc0606;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease; 
}
.tarjeta:hover {
  background: #570509;
  color: rgb(0, 0, 0);
  transform: translateY(-10px); 
}


@media (max-width: 992px) {
  .grid-contenidos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-contenidos {
    grid-template-columns: 1fr;
  }
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  .menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .menu a { margin-left: 0; }
}