:root {
  --verde: #4CAF50;
  --verde-oscuro: #2E7D32;
  --blanco: #ffffff;
  --gris-claro: #f2f2f2;
  --amarillo: #FFEB3B;
  --azul: #007ACC;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: var(--gris-claro);
  color: #333;
  font-size: 18px;
  padding-bottom: 80px; /* espacio para el footer fijo */
}

header {
  background-color: var(--verde-oscuro);
  color: var(--blanco);
  padding: 2rem;
  text-align: center;
  animation: fadeInDown 1s ease;
  font-size: 1.6rem;
}

.contenedor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 3rem;
  justify-items: center;
  align-items: start;
}

.tarjeta {
  background-color: var(--blanco);
  width: 90%;
  max-width: 500px;
  min-height: 250px;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease;
  font-size: 1.2rem;

  border-left: 5px solid var(--verde-oscuro); /* Barra verde izquierda */
}

.tarjeta h2 {
  font-size: 1.8rem;
  color: var(--verde-oscuro);
  margin-bottom: 1rem;
}

.tarjeta:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--verde-oscuro);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  font-size: 1rem;
  z-index: 1000;
}

.integrantes {
  position: fixed;
  bottom: 90px; /* justo encima del footer */
  right: 20px;
  background-color: rgba(255, 255, 255, 0.95);
  border-left: 5px solid var(--verde-oscuro);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-size: 0.95rem;
  z-index: 999;
  animation: fadeInUp 1s ease;
}

.integrantes h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--verde-oscuro);
}

.integrantes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.integrantes li {
  margin-bottom: 0.2rem;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .contenedor {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
    font-size: 0.9rem;
  }
}
