/* 🔧 Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
}

/* 🌐 Estructura base */
body {
  font-family: Arial, sans-serif;
  color: antiquewhite;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  background-image: url(imag\ componentes/img2.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

/* 🧭 Navegación */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 10px 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
}

/* 📦 Dropdown y submenús */
.dropdown-menu li {
  position: relative;
}

.dropdown-menu .submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu > li:hover > .submenu {
  display: block;
}

.dropdown-menu .submenu-left {
  right: 100%;
  left: auto;
}

/* 📱 Responsive menú */
@media (max-width: 800px) {
  .dropdown-menu .submenu {
    left: 25%;
    top: 0;
  }

  .dropdown-menu .multi-menu {
    left: 95%;
  }

  .dropdown-menu .submenu-left {
    left: 50%;
  }
}

/* 📄 Contenido principal */
section {
  padding: 100px 20px;
  margin-top: 60px;
}

header {
  grid-row: 1;
}

main {
  grid-row: 2;
}

footer {
  grid-row: 3;
  text-align: center;
}

/* 🦶 Footer animado y responsivo */
.footer {
  background: linear-gradient(135deg, #333, #444);
  color: #fff;
  padding: 20px 10px;
  animation: fondoAnimado 10s infinite alternate;
}

@keyframes fondoAnimado {
  0% { background: linear-gradient(135deg, #333, #444); }
  50% { background: linear-gradient(135deg, #222, #555); }
  100% { background: linear-gradient(135deg, #333, #444); }
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  text-align: center;
}

.footer-links {
  flex: 1 1 300px;
  padding: 0;
}

.footer-links h4 {
  font-size: 20px;
  color: #FFFFFF;
  margin-bottom: 25px;
  font-weight: 500;
  border-bottom: 2px solid #00c3ff;
  padding-bottom: 10px;
  display: inline-block;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 14px;
  text-decoration: none;
  color: #BBBBBB;
  display: block;
  transition: all 0.3s ease;
  text-transform: none; /* ✅ Evita mayúsculas automáticas */
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 6px;
}

/* 📱 Footer en celulares */
@media (max-width: 600px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
  }

  .footer-links h4 {
    font-size: 16px;
  }

  .footer-links a {
    font-size: 13px;
  }
}

/* 🧼 Ocultar footer en secciones específicas */
.ocultar-footer {
  display: none;
}

/* 📦 Contenedor general */
.container {
  max-width: 1500px;
  margin: 0 auto;
}
.footer-toggle {
  text-align: center;
  background-color: #333;
  color: #fff;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
}

.oculto-footer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.visible-footer {
  max-height: 1000px; /* suficiente para mostrar todo */
  transition: max-height 0.5s ease;
}
/* 🔽 Botón flotante */
.boton-footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #00c3ff;
  color: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: background-color 0.3s ease;
}

.boton-footer:hover {
  background-color: #0099cc;
}

/* 🧼 Footer oculto/desplegable */
.oculto-footer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.visible-footer {
  max-height: 1000px;
  transition: max-height 0.5s ease;
}