body, html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  height: 100%;
  margin: 0;
  background-image: url(Imagenes/fondofooter1.png); 
  padding: 0;
  background-repeat: no-repeat;
  background-size: cover;       
  background-position: center;  
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap; /* Permite que baje a otra línea en pantallas pequeñas */
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem clamp(1rem, 4vw, 1.5rem);
  height: auto; /* en móvil crecerá automáticamente */
  background: #1f2225;
  color: white;
  z-index: 1000;
  box-sizing: border-box;
}

/* Logo */
.logo img {
  height: 50px;
  max-width: 100%;
}

/* Slogan */
.slogan {
  text-align: center;
  color: #55d3f7;
  flex: 1 1 100%;
  order: 2; /* baja en pantallas pequeñas */
}
.slogan h1 {
  font-size: 18px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  color: #55d3f7;
  margin: 0;
}
.slogan p {
  font-size: 14px;
  font-family: 'Orbitron', sans-serif;
  color: white;
  margin: 5px 0 0 0;
}

section{
  margin-top: 90px;
  margin-left: 10px;
}

.body-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Esto empuja el footer hacia abajo */
}

footer {
  background-color: #1f2225;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

footer nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive para el header */
@media (min-width: 769px) {
  header {
    flex-wrap: nowrap;
    height: 80px;
  }
  .slogan {
    flex: 1;
    order: 0;
  }
}

@media (max-width: 768px) {
  header {
    justify-content: center;
    text-align: center;
    padding: 10px;
  }
  .logo {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .slogan {
    order: 2;
    flex: 1 1 100%;
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  section {
  margin-top: 150px;
  margin-left: 10px;
  }
}

@media (max-width: 480px) {
  section {
  margin-top: 150px;
  margin-left: 10px;
  }
}

/* Responsive para el footer */ 
@media (max-width: 768px) {
  .container {
    width: 100%;
  }
}


