/* === ESTILOS BASE GENERALES === */
* {
  box-sizing: border-box;
}

html, body {
  height: 100hv; /* cambia de min-height a height */
  margin: 0;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  background-color: #f4f6f9;
  display: flex;
  flex-direction: column;
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

body.oculto {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
body.visible {
  opacity: 1;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f4f6f9;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

main {
  flex: 1;
  padding-top: 180px;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  transition: transform 0.4s ease;
  transform: translateY(0); /* estado visible */
}

.logo {
  height: 150px;
  max-height: 150px;
  width: auto;
}


nav {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: black;
  background-color: transparent;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.2s ease;
}

footer {
  background-color: #0033a0;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 16px;
  margin-top: auto; /* ← Esta línea hace que se empuje hacia abajo si el contenido es corto */
}

.footer-left {
  display: flex;
  flex-direction: row;
  gap: 60px;
}
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-section strong {
  font-size: 18px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  justify-content: center;
}
.footer-logo {
  height: 60px;
  margin-top: 20px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}