/* MENÚ PRINCIPAL */
ul.horizontal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
}

ul.horizontal-list li {
  display: inline-block;
}

ul.horizontal-list a {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: #222;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 5px;
}

ul.horizontal-list a:hover {
  background-color: #e0e0e0;
  color: #007acc;
}

.menu {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #222;
  border-radius: 15px;
  padding: 10px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  gap: 2rem;
}

.menu-buttons {
  display: flex;
  gap: 0.5rem;
}

.menu-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  background-color: #007acc;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.menu-buttons button:hover {
  background-color: #005c99;
}

/* BOTÓN REDONDO SCROLL ARRIBA */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #007acc;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.btn-scroll-top:hover {
  background-color: #005c99;
}

/* CUERPO Y CONTENEDOR GENERAL */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

.container {
  margin-top: 100px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* TÍTULOS */
h1, h2, h3, h4, h5 {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: #222;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(to top, #007acc, #00c3ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(40px);
  animation: slideFadeIn 1.2s ease-out forwards;
}

@keyframes slideFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* PIE DE PÁGINA */
.site-footer {
  background-color: #f0f0f0;
  color: #555;
  padding: 2rem 1rem 1rem;
  margin-top: 3rem;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1 1 250px;
}

.footer-section h4 {
  color: #333;
  margin-bottom: 0.8rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li a {
  color: #555;
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #007acc;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.social-icon {
  width: 28px;
  height: 28px;
  filter: grayscale(1) brightness(1.1);
  transition: transform 0.3s, filter 0.3s;
}

.social-icon:hover {
  transform: scale(1.1);
  filter: grayscale(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #ccc;
  color: #999;
  font-size: 0.8rem;
}

/* RESPONSIVE MENU PARA MÓVILES */
@media (max-width: 600px) {
  .menu {
    height: auto;
    padding: 6px 10px;
    gap: 0.5rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }

  .horizontal-list {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .horizontal-list a {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  .menu-buttons {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .menu-buttons button {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    max-width: 100%;
  }

  h2 {
    font-size: 1.8rem;
    border-right: 2px solid #007acc;
    animation: typing-sm 3s steps(20, end) forwards, blink 0.75s step-end infinite;
  }

  @keyframes typing-sm {
    to {
      width: 100%;
    }
  }
}
