/* ==========================
   Global Styles
=========================== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* ==========================
   Header
=========================== */
header {
  background-color: #004aad;
  color: white;
}

.topbar {
  background: #00367a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.topbar i {
  margin-right: 5px;
}

.social-icons a {
  color: white;
  margin-left: 10px;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #ffd700;
}

.main-header {
  text-align: center;
  padding: 1rem 0;
}

.main-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.main-header p {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

/* ==========================
   Navigation
=========================== */
nav {
  background: #00367a;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  padding: 0 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: #fff;
  cursor: pointer;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 1rem;
  transition: background 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  background: #005cd1;
}

/* ==========================
   Slider
=========================== */
.slider {
  position: relative;
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  margin: auto;
}

.slides {
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide {
  position: relative;
  flex: 0 0 100%;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.caption {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1.1rem;
  text-align: center;
}

/* Arrows */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Dots */
.dots {
  text-align: center;
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #004aad;
}

/* ==========================
   Main Content
=========================== */
section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
  background: white;
  margin-top: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h2 {
  color: #004aad;
  border-bottom: 2px solid #004aad;
  padding-bottom: 0.5rem;
}

blockquote {
  font-style: italic;
  border-left: 4px solid #004aad;
  padding-left: 1rem;
  color: #555;
  margin: 1rem 0;
}

/* Principal */
.principal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.principal img {
  width: 120px;
  border-radius: 50%;
  border: 3px solid #004aad;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  background-color: #004aad;
  color: white;
  font-size: 0.9rem;
}

/* ==========================
   Responsive
=========================== */
@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #00367a;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.8rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .slide img {
    height: 300px;
  }

  .caption {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .principal {
    flex-direction: column;
    text-align: center;
  }

  .principal img {
    width: 100px;
  }
}
