:root {
  --max-width: 91rem;
}

* {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transition: 0.2s background-color;
}

header {
  position: fixed;
  background: var(--bg-header);
  color: var(--color-text);
  width: 100%;
  height: 3rem;
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  z-index: 100;
  overflow: hidden;
}

.header-container {
  position: fixed;
  width: 100%;
  max-width: calc(var(--max-width) + 1rem);
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: start;
  padding-right: 0.24rem;
  gap: 0.5rem;
}

.header-container-2 {
  position: fixed;
  background-color: var(--bg-header);
  display: flex;
  width: 100%;
  height: 120vh;
  max-width: calc(var(--max-width) + 1rem);
  flex-direction: column;
  align-items: start;
  justify-content: start;
  z-index: -10;
  transition: 0.3s;
  opacity: 0;
}

header a {
  height: 2.5rem;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  padding: 0 0.75rem;
}

header a:hover {
  text-decoration: underline;
}

header img {
  width: 1.5rem;
  aspect-ratio: 1/1;
}

header span {
  font-size: 1.2rem;
  font-weight: bold;
}

.spacer {
  flex: 1;
}

.nav-menu-1 {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu-1 ul {
  display: none;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}

.header-container-2 ul {
  width: 100%;
  list-style: none;
  padding: 0;
}

.header-container-2 ul li a {
  display: flex;
  justify-content: start;
  text-decoration: none;
}

.header-container-2 ul li a .item1,
.header-container-2 ul li a .item2,
.header-container-2 ul li a .item3 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container-2 ul li a .item1 {
  margin: 0 1rem 0 1rem;
}

.header-container-2 ul li a .item2 {
  flex: 1;
  justify-content: start;
}

.header-container-2 ul li a .item3 {
  margin: 0 1rem 0 1rem;
}

.div {
  width: calc(100% - 2rem);
  height: 0.075rem;
  margin: 0 1rem;
  background-color: #8888;
}

.search-btn,
.auto-btn,
.light-btn,
.dark-btn {
  width: 2.5rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.5s;
}

.search-btn {
  opacity: 0;
}

.modes {
  display: none;
}

.modes2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc(100% - 2rem);
  height: 2.5rem;
  padding: 0.5rem;
  gap: 0.5rem;
  margin: 1rem 0.5rem 1rem 0.5rem;
  border: solid 0.075rem #8888;
  border-radius: 2.5rem;
}

.modes2 span {
  margin: 0 1rem;
  font-size: 1rem;
}

.modes2 .auto-btn,
.modes2 .light-btn,
.modes2 .dark-btn {
  height: 2.5rem;
  background-color: var(--bg);
  border: solid 0.075rem #8888;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modes2 .label {
  font-size: 0.95rem;
  margin-left: 0.5rem;
  display: none;
}

.search-icon1 {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 0.075rem solid var(--text);
}

.search-icon2 {
  width: 0.125rem;
  height: 0.5rem;
  border-radius: 0.2rem;
  background-color: var(--text);
}

.search-icon-container {
  transform: rotate(-45deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0.1rem;
}

#menu-btn {
  width: 2.5rem;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#menu-btn .bar1,
#menu-btn .bar2 {
  width: 1.25rem;
  height: 0.1rem;
  background-color: var(--text);
  margin: 0.2rem 0;
  transition: 0.4s;
  border-radius: 0.2rem;
  position: absolute;
}

#menu-toggle {
  display: none;
}

@keyframes bar1-open {
  0% {
    transform: translate(0, 0.25rem)
  }

  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(45deg);
  }
}

@keyframes bar2-open {
  0% {
    transform: translate(0, -0.25rem)
  }

  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-45deg);
  }
}

#menu-toggle:checked~header #menu-btn .bar1 {
  animation: bar1-open 0.4s ease forwards;
}

#menu-toggle:checked~header #menu-btn .bar2 {
  animation: bar2-open 0.4s ease forwards;
}

#menu-toggle:checked~header .header-container-2 {
  opacity: 1;
  top: 3rem;
  z-index: 99;
  pointer-events: all;
}

@keyframes bar1-close {
  0% {
    transform: rotate(45deg);
  }

  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: translate(0, 0.25rem)
  }
}

@keyframes bar2-close {
  0% {
    transform: rotate(-45deg);
  }

  50% {
    transform: rotate(0deg);
  }

  100% {
    transform: translate(0, -0.25rem)
  }
}

#menu-toggle:not(:checked)~header #menu-btn .bar1 {
  animation: bar1-close 0.4s ease forwards;
}

#menu-toggle:not(:checked)~header #menu-btn .bar2 {
  animation: bar2-close 0.4s ease forwards;
}

#menu-toggle:not(:checked)~header .header-container-2 {
  opacity: 0;
  top: 2.8rem;
  z-index: -10;
  pointer-events: none;
}

.user {
  display: none;
  align-items: center;
  margin-left: 0.5rem;
}

.user2 {
  margin: 0.5rem 0.5rem 0 0.5rem;
  width: calc(100% - 1rem);
}

.user2 button {
  width: 100%;
  margin: 0;
  border-radius: 1.5rem;
  display: none;
}

.user2-container {
  display: none;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}

.user2-container .panel-1 {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  width: 100%;
  gap: 0.25rem;
  padding-bottom: 0.5rem;
}

.user2-container .panel-2 {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 2rem;
  border-radius: 1.5rem;
  border: solid 0.075rem #8888;
}

.user2-container img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  margin: 0.25rem;
  border: solid 0.075rem #8888;
}

.saludo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text);
}

.user2-container p {
  margin: 0;
}

main {
  background-color: var(--bg);
  margin-top: 3rem;
  flex: 1;
}

footer {
  background-color: #0000;
  color: var(--text);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: solid 0.2rem var(--bg-footer);
}

.footer-container {
  width: calc(100% - 1rem);
  max-width: var(--max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  width: calc(100% - 1rem);
  max-width: var(--max-width);
  margin-bottom: 1rem;
}

.footer-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  flex: 1 1 0;
  min-width: 220px;
}

.footer-section p {
  margin: 0;
}

@media (max-width: 50rem) {
  .footer-group {
    grid-template-columns: 1fr;
  }
}

.footer-group-info {
  flex: 2 1 0;
}

.footer-group-util {
  flex: 1.5 1 0;
}

.footer-section {
  margin-bottom: 0.5rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-social,
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-social a,
.footer-legal a,
.footer-bottom a {
  color: var(--primary-hover);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-social a:hover,
.footer-legal a:hover,
.footer-bottom a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.footer-payments img {
  height: 1.5rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  transition: transform 0.2s;
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid #888;
  padding-top: 1rem;
  font-size: 0.95rem;
  color: var(--text);
  margin-top: 1rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 1.5rem;
  }

  .footer-group {
    flex-direction: row;
    gap: 1rem;
    min-width: 0;
  }

  .footer-group-info,
  .footer-group-util {
    flex: 1 1 0;
  }
}

@media (max-width: 600px) {
  .footer-main {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-group {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-payments img {
    height: 1.2rem;
    margin-right: 0.3rem;
  }

  .footer-bottom {
    font-size: 0.95rem;
    padding-top: 1rem;
  }
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

button {
  font-size: 1rem;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

button:hover {
  background-color: var(--primary-hover);
}