/* Reset y base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 55px;
  font-size: 0.95em;
}
p, li, span, h1, h2, h3, h4, a {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
.navbar {
  background-color: #111111;
  color: #ffffff;
  padding: 0.6rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.4s ease-in-out;
  height: 55px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-section {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-section.left {
  justify-content: flex-start;
}
.nav-section.center {
  justify-content: center;
}
.nav-section.right {
  justify-content: flex-end;
}
.navbar.hidden {
  transform: translateY(-100%);
}
.navbar .logo img {
  max-height: 35px;
  transition: transform 0.3s ease;
  filter: none;
}
.navbar .logo:hover img {
  transform: scale(1.05);
}

/* Contenido Principal */
.container {
  max-width: 900px;
  margin: 50px auto 100px;
  padding: 0 20px;
}
h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 30px;
  border-bottom: 3px solid #000;
  padding-bottom: 10px;
  color: #111;
  font-family: 'Inter', sans-serif;
  animation: fadeInSlideUp 0.8s ease-out forwards 0.2s;
  opacity: 0;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #000;
  font-family: 'Inter', sans-serif;
  animation: fadeInSlideUp 0.8s ease-out forwards 0.4s;
  opacity: 0;
}
h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #000;
  font-family: 'Inter', sans-serif;
  animation: fadeInSlideUp 0.8s ease-out forwards 0.5s;
  opacity: 0;
}
p, ul, ol {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 20px;
  animation: fadeInSlideUp 0.8s ease-out forwards 0.6s;
  opacity: 0;
}
ul, ol {
  margin-left: 20px;
  margin-bottom: 30px;
}
ul li, ol li {
  margin-bottom: 10px;
}

/* Animación */
@keyframes fadeInSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background-color: #111111;
  color: #a0a0a0;
  padding: 2.5rem 1.5rem 1rem; /* Más pequeño */
  font-size: 0.9rem;
  margin-top: 0;
  text-align: center;
  border-top: 1px solid #333;
  width: 100%;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; /* Menor separación */
  max-width: 1100px;
  margin: 0 auto 2rem; /* Menor separación */
  justify-items: center;
}
.footer-section {
  text-align: center;
  width: 100%;
}
.footer-section h3 {
  font-weight: 700;
  margin-bottom: 0.8rem; /* Menor separación */
  font-size: 1.05rem; /* Ajuste sutil */
  color: #ffffff;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  text-align: center;
}
.footer-section ul li {
  margin-bottom: 0.4rem; /* Menor separación */
  text-align: center;
}
.footer-section ul li a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  display: inline-block;
  font-size: 0.95rem; /* Tamaño de fuente para los enlaces */
}
.footer-section ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  margin-top: 1.5rem; /* Menor separación */
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #666;
  border-top: 1px solid #333;
  width: 100%;
}

/* Media Queries */
@media (max-width: 768px) {
  body {
    padding-top: 55px;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-section {
    max-width: 300px;
    margin: 0 auto;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  .container {
    margin: 30px auto 80px;
    padding: 0 15px;
  }
}