
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0c203b;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-top {
          
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 0 1rem;
  height: 90px;              
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  overflow: hidden;          
}
.logo {
  position: absolute;        
  top: -40px;                
  left: 1rem;                
  height: 170px;             
  width: auto;
  display: block;
}
nav {
  display: flex;
  flex-wrap: wrap;
  margin-left: auto;       
  gap: 1rem;               
}
nav a {
  font-family: "Fira Sans", sans-serif;
  margin: 10px;
  text-decoration: none;
  color: #000442;
  font-weight: 600;
  transition: 0.3s;
}
nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #fff;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}
nav a:hover::after {
  width: 100%;
}
.nav-bottom {
  background: #004080;
  text-align: center;
  padding: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.nav-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}
.nav-bottom a:hover {
  color: #cce0ff;
}
.hero {
  height: 80vh;
  background: linear-gradient(to right, #0a3d91, #004080);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.overlay {
  background: rgba(255,255,255,0.1);
  padding: 20px 40px;
  border-radius: 10px;
}
.overlay h1 {
  color: #fff;
  font-size: 4rem;
  text-shadow: 4px 4px 15px #41d1f5;
  animation: fadeIn 2s ease;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
  padding: 40px;
}
.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
  transition: 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.card h3 {
  color: #0a3d91;
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  color: #555;
  text-align: justify;
  font-family: "Roboto", sans-serif;
}
footer {
  background: #0a3d91;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: auto;
  font-size: 14px;
}
footer p {
  margin: 0;
  font-size: 10px;
  font-family: "Fjalla One", sans-serif;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media(max-width:768px) {
  .nav-top {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    height: 60px;
  }

  nav {
    justify-content: center;
  }

  .overlay h1 {
    font-size: 2rem;
  }

  .hero {
    height: 60vh;
  }

  .grid {
    padding: 20px;
  }
}
p {
  font-family: "Fjalla One", sans-serif;
  font-size: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 5px #006168;
}
h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
    color: #fff;
    text-shadow: 4px 4px 15px #41d1f5;
    animation: fadeIn 2s ease;
    }
    
    @media (max-width: 768px) {
  /* Ajusta los elementos según el diseño móvil */
  body {
    font-size: 14px;
  }
  img {
    max-width: 100%;
    height: auto;
  }
  
  nav {
    display: block;
    text-align: center;
  }
}
    