* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  --accent-color: #557e6a;
  --bg-color: #ffffff;
  --text-color: #222222;
}
html[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #eeeeee;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  /* height: 100vh; */
}

.logo-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1rem;
  margin: 1rem 1rem;
}

.logo {
  max-width: 100%;
  height: auto;
  width: 75vh;
  max-height: 65vh;
  min-height: 45vh;
}

/* Mostrar logo según tema */
html[data-theme="light"] .logo-light {
  display: block;
}
html[data-theme="light"] .logo-dark {
  display: none;
}
html[data-theme="dark"] .logo-dark {
  display: block;
}
html[data-theme="dark"] .logo-light {
  display: none;
}

.footer {
  /* height: auto;
  min-height: 20vh;
  max-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  margin-top: auto;
  background-color: var(--bg-color); */
  margin-top: auto;
  padding: 2rem 1rem 1.5rem;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  /* flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
  min-height: 50vh; */
}

.footer h1 {
  font-size: 3.1rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.footer p {
  font-size: 2.1rem;
  margin-bottom: 2rem;
}

#theme-toggle {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  /* transition: background-color 0.3s, color 0.3s; */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#theme-toggle:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  transform: scale(1.05);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-top: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  flex: 1;
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s, border-bottom 0.3s;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text-color);
  border-bottom: 1px solid var(--accent-color);
}

.correo-link {
  cursor: pointer;
  text-decoration: underline;
  color: var(--accent-color);
}

@media (max-width: 480px) {
  .logo-wrapper {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .logo {
    width: 90vw;
    max-height: 65vh;
    min-height: 35vh;
  }

  .footer h1 {
    text-align: center;
    font-size: 1.3rem;
    margin: 0 auto;
    line-height: 2;
  }
  .footer p {
    text-align: center;
    font-size: 1rem;
    line-height: 2;
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 1rem;
  }
  #theme-toggle {
    font-size: 1.1rem;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .footer-links a {
    font-size: 0.75rem;
    text-align: center;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .footer h1 {
    font-size: 2.2rem;
  }

  .footer p {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 1rem;
  }

  #theme-toggle {
    font-size: 1.2rem;
  }

  .footer-links {
    max-width: 90%;
  }

  .footer-links a {
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .footer h1 {
    font-size: 2.6rem;
  }

  .footer p {
    text-align: center;
    font-size: 1.5rem;
    line-height: 2;
    max-width: 90%;
    margin: 0 auto;
    padding-bottom: 1rem;
  }

  #theme-toggle {
    font-size: 1.3rem;
  }

  .footer-links {
    max-width: 700px;
  }

  .footer-links a {
    font-size: 1rem;
  }
}
