:root {
  --primary: #c80000;
  --secundary: #ffffff;
  --tertiary: #a00000;
}

body {
  font-family: Open Sans, Arial, sans-serif;
  background-color: whitesmoke;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

header {
  display: flex;
  height: 80px;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header-left {
  background: var(--secundary);
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 20px;
}

.header-right {
  background: var(--primary);
  width: 75%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  position: relative;
}

.logo-link {
  display: inline-block;
}

.logo-img {
  height: 60px;
}

.nav-desktop {
  display: flex;
}

.menu-list-desktop {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu-list-desktop li {
  position: relative;
}

.menu-list-desktop a {
  text-decoration: none;
  color: var(--secundary);
  font-weight: 600;
  font-size: 16px;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu-desktop {
  display: block;
}

.dropdown-menu-desktop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--primary);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  min-width: 180px;
  z-index: 100;
}

.dropdown-menu-desktop li {
  margin: 0;
}

.dropdown-menu-desktop a {
  display: block;
  padding: 8px 20px;
  white-space: nowrap;
  font-size: 15px;
  color: var(--secundary);
}

.dropdown-menu-desktop a:hover {
  background: var(--tertiary);
  color: var(--secundary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--secundary);
  border-radius: 2px;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--drawer-bg);
  transition: right var(--transition-fast);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.nav-drawer.open {
  right: 0;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: var(--primary);
}

.menu-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-list a {
  display: block;
  padding: 14px 20px;
  color: var(--secundary);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.menu-list a:hover {
  background: var(--tertiary);
  color: var(--secundary);
}

.dropdown-menu {
  display: none;
  flex-direction: column;
}

.dropdown.open .dropdown-menu {
  text-decoration: none;
  display: flex;
  background-color: var(--primary);
}

.dropdown-menu li {
  text-decoration: none;
  border-bottom: none;
}

.dropdown-menu a {
  padding-left: 30px;
  font-size: 16px;
  color: var(--secundary);
  transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--tertiary);
  color: var(--secundary);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 280px);
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 140;
  display: none;
}

.drawer-overlay.visible {
  display: block;
}

.aviso-legal-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.aviso-legal-container h1 {
  font-size: 28px;
  margin-top: 20px;
  color: var(--primary);
  text-align: center;
}

.aviso-legal-container section {
  margin: 30px 0;
}

.aviso-legal-container h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
}

.aviso-legal-container p,
.aviso-legal-container ul {
  font-size: 14px;
  line-height: 1.6;
}

.aviso-legal-container ul {
  list-style: disc inside;
  margin: 10px 0;
}

.aviso-legal-container a {
  color: var(--primary);
  text-decoration: none;
}

.aviso-legal-container a:hover {
  text-decoration: underline;
}

.aviso-legal-container p a {
  white-space: nowrap;
  word-break: normal;
}

#whatsapp {
  position: fixed;
  bottom: 10px;
  right: 10px;
  transform: scale(0.8);
}

footer {
  padding: 2rem 4rem 0 4rem;
  background-color: var(--primary);
  color: var(--secundary);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 2.5rem;
  font-size: 14px;
}

footer div h2 {
  font-size: 16px;
}

footer div a {
  color: var(--secundary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

footer div a:hover {
  text-decoration: underline;
}

footer div svg {
  width: 18px;
  height: 18px;
  fill: var(--secundary);
}

footer div .redes_sociales {
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

footer div .redes_sociales a svg {
  width: 50px;
  height: 50px;
}

footer div .copyright {
  border-top: 1px solid var(--secundary);
  align-items: center;
  grid-column: span 3;
}

@media screen and (max-width: 1200px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  footer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }

  .logo-img {
    height: 50px;
  }

  .header-left {
    width: 50%;
    padding-left: 15px;
  }

  .header-right {
    width: 50%;
    padding-right: 15px;
  }

  .menu-list a {
    font-size: 20px;
  }

  .dropdown-menu a {
    font-size: 18px;
  }

  .nav-drawer {
    width: 250px;
    right: -250px;
  }

  .nav-drawer.open {
    right: 0;
  }

  .drawer-overlay {
    width: calc(100% - 250px);
  }

  .aviso-legal-container {
    margin: 20px;
    padding: 0 15px;
  }

  .aviso-legal-container h1 {
    font-size: 24px;
  }

  .aviso-legal-container h2 {
    font-size: 18px;
  }

  .aviso-legal-container p,
  .aviso-legal-container ul {
    font-size: 13px;
  }

  #whatsapp {
    bottom: 0;
    right: 0;
    transform: scale(0.6);
  }

  footer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
}
