* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f0f0f0;
  color: #333;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(120deg, #7ecfff, #ffffff, #7ecfff);
  background-size: 300% 300%;
  animation: onda-bandera 10s ease infinite;
  padding: 15px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 1.5em;
  font-weight: bold;
  color: black;
  border-radius: 15px;
  margin: 10px;
}

@keyframes onda-bandera {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header .logo {
  height: 60px;
  max-width: 100%;
}

header h1 {
  font-size: 1.2em;
  letter-spacing: 1px;
}

main {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 10px 20px 20px 20px;
  height: calc(100vh - 110px);
  flex-wrap: nowrap;
}

.carousel-container {
  width: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-image.active {
  opacity: 1;
  position: relative;
}

.info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 40px 30px;
  max-width: 100%;
  height: 480px;
  text-align: center;
  position: relative;
  background: #eeeeee;
}

.info-box {
  flex: 1;
  position: relative;
  z-index: 1;
  color: #003087;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-box h2 {
  font-size: 3em;
  margin-bottom: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.info-box p {
  font-size: 1.4em;
  color: #004a99;
  margin-bottom: 12px;
}

.info-box .extra-info {
  font-size: 1.1em;
  font-style: italic;
  color: #000;
  margin-bottom: 24px;
}

hr.divider {
  border: none;
  border-top: 2px solid #666;
  width: 60%;
  margin: 20px auto 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  color: #E4405F;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  justify-content: center;
}

.social-icons i {
  font-size: 28px;
}

.social-title {
  color: #003087;
  font-weight: 700;
  font-size: 1.5em;
  margin-bottom: 10px;
}

@media (max-width: 1024px) {
  main {
    flex-direction: column;
    height: auto;
  }

  .carousel-container,
  .info-container {
    width: 100%;
    max-width: none;
    height: auto;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  header {
    font-size: 1.1em;
    padding: 10px;
  }

  header h1 {
    font-size: 1em;
    text-align: center;
  }

  header .logo {
    height: 45px;
  }
}
