body {
  font-family: 'Georgia', serif;
  margin: 0;
  background: linear-gradient(to bottom, #e2ecf9, #ffffff);
  color: #2b2b2b;
  line-height: 1.8;
  animation: fadeInBody 1.5s ease;
}

@keyframes fadeInBody {
  from { opacity: 0; }
  to { opacity: 1; }
}

header {
  background-color: #274472;
  text-align: center;
  padding: 10px;
}

.banner {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  animation: fadeBanner 2s ease;
}

@keyframes fadeBanner {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

.integrantes {
  position: absolute;
  top: 110px;
  left: 20px;
  background-color: #d0e3ff;
  border: 2px solid #274472;
  padding: 15px;
  border-radius: 10px;
  font-weight: bold;
  animation: slideIn 2s ease;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

nav {
  background-color: #3566a8;
  padding: 10px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  margin: 0 12px;
}

nav button {
  background: transparent;
  border: 2px solid transparent;
  color: white;
  font-size: 17px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 8px;
}

nav button:hover {
  background-color: #4d88d3;
  transform: scale(1.05);
}

nav .active {
  background-color: #ffcc33;
  color: #1f3b60;
}

main {
  max-width: 960px;
  margin: 60px auto 20px auto;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
  animation: fadeInMain 1.5s ease;
}

@keyframes fadeInMain {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.contenido {
  display: none;
}

.contenido.visible {
  display: block;
  animation: appear 1s ease;
}

@keyframes appear {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.introduccion {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 25px;
  margin-top: 20px;
}

.speak {
  width: 250px;
  border-radius: 12px;
  transition: transform 0.8s ease;
}

.speak:hover {
  transform: scale(1.07) rotate(1deg);
}

.contenido h2, .contenido h3 {
  color: #274472;
  margin-top: 25px;
  text-align: center;
}

.contenido p {
  text-align: justify;
  padding: 0 20px;
}

.banderas {
  text-align: center;
  margin-top: 40px;
}

.banderas img {
  width: 260px;
  border-radius: 50%;
  animation: slowSpin 20s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

footer {
  background-color: #1f3b60;
  height: 50px;
}
