:root {
  --primary: #c80000;
  --secundary: #ffffff;
  --tertiary: #a00000;
  --transition-fast: 0.3s ease;
}

body {
  font-family: Open Sans, Arial, sans-serif;
  background-color: var(--secundary);
  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;
}

.container {
  display: flex;
  max-width: 1100px;
  margin: 50px auto;
  background: var(--secundary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-section {
  flex: 1;
  background: var(--primary);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.image-section img {
  max-width: 100%;
}

.image-section h1 {
  font-size: 26px;
  text-align: center;
  margin-top: 25px;
}

.form-section {
  flex: 1.5;
  padding: 30px;
  background: var(--secundary);
}

.form-section h2 {
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 10px;
}

.note {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
}

.call-btn {
  margin: 20px 0;
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background var(--transition-fast);
}

.call-btn:hover {
  background-color: var(--tertiary);
}

.model {
  border-top: 1px dashed #ccc;
  padding: 15px 0;
  cursor: pointer;
}

.model-label {
  font-weight: bold;
  display: flex;
  align-items: center;
  color: var(--primary);
  font-size: 18px;
}

.model-label::before {
  content: "▶";
  margin-right: 10px;
  transition: transform 0.3s;
}

.model.active .model-label::before {
  transform: rotate(90deg);
}

.repairs {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding-left: 25px;
  margin-top: 0;
}

.model.active .repairs {
  max-height: 1000px;
  opacity: 1;
  margin-top: 10px;
}

.repair-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  margin-bottom: 8px;
}

.repair-option span {
  font-size: 16px;
  color: #333;
}

.repair-btn {
  background: var(--primary);
  color: var(--secundary);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.repair-btn:hover {
  background: var(--tertiary);
}

#whatsapp {
  position: fixed;
  bottom: 10px;
  right: 10px;
  transform: scale(0.8);
  z-index: 250;
}

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;
  }

  .container {
    width: 100%;
    flex-direction: column;
    margin: 20px auto;
    border-radius: 8px;
  }

  footer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
}

@media screen and (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);
  }

  .container {
    background: var(--secundary);
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .image-section {
    padding: 20px 0;
  }

  .image-section img {
    width: 100px;
    height: 100px;
  }

  .image-section h1 {
    font-size: 18px;
  }

  .form-section {
    padding: 20px;
  }

  .form-section h2 {
    font-size: 18px;
  }

  .call-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .model-label {
    font-size: 16px;
  }

  .repair-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .repair-btn {
    width: 100%;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
  }

  #whatsapp {
    bottom: 0;
    right: 0;
    transform: scale(0.6);
  }

  footer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
}
