:root {
  --primary: #c80000;
  --secundary: #ffffff;
  --tertiary: #a00000;
  --transition-fast: 0.3s ease;
}

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;
}

.info {
  text-align: center;
  margin: 5% auto;
  max-width: 600px;
  padding: 0 20px;
}

.info h1 {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 10px;
}

.info p {
  font-size: 18px;
  color: var(--text-dark);
}

/* =================== */
/*  SECCIÓN DE PASOS   */
/* =================== */
#repair-options {
  width: 60%;
  max-width: 700px;
  margin: 0 auto 4%;
  background: var(--secondary);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px var(--shadow);
}

#repair-options h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.progress-container {
  position: relative;
  margin: 0 auto 30px;
  width: 80%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 4px;
  background-color: var(--primary);
  transform: translateY(-50%);
  width: 0%;
  transition: width 0.3s ease-in-out;
  z-index: 1;
}

.progress-step {
  width: 36px;
  height: 36px;
  background-color: #ddd;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: var(--secondary);
  z-index: 2;
}

.progress-step.active {
  background-color: var(--primary);
  color: var(--secundary);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  color: var(--secundary);
}

/* Paso 1: selección de dispositivo */
.device-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.device-btn {
  background-color: var(--secondary);
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.device-btn img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}

.device-btn span {
  font-size: 14px;
  color: var(--text-dark);
}

.device-btn:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background-color: #fafafa;
}

/* Paso 2: modelo + tipo de avería */
.model-input {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.model-input label {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.model-input input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.model-input input:focus {
  border-color: var(--primary);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  color: black;
  margin-top: 10px;
}

.checkbox-group label {
  width: 100%;
  display: flex;
  align-items: center;
  background: #fafafa;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 6px var(--shadow);
  border: 1px solid #ccc;
  transition: 0.2s;
  font-size: 16px;
  gap: 12px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-group label:hover {
  background: #f0f0f0;
  border: 1px solid var(--primary);
}

/* Paso 3: datos personales */
#personal-data-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#personal-data-form label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: black;
}

#personal-data-form input,
#personal-data-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  margin-top: 6px;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
}

#personal-data-form input:focus,
#personal-data-form textarea:focus {
  border-color: var(--primary);
}

.btn-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--secundary);
  margin-top: 30px;
}

.btn-steps button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: var(--primary);
  color: var(--secondary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  min-width: 120px;
}

.btn-steps button:hover {
  background-color: var(--tertiary);
  transform: translateY(-2px);
}

#prev-step {
  background-color: var(--primary);
}

#prev-step:hover {
  background-color: var(--tertiary);
}

#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;
  }

  .info {
    margin-left: 10%;
    margin-right: 10%;
  }

  #repair-options {
    width: 85%;
    padding: 30px 20px;
  }
  .info h1 {
    font-size: 40px;
  }

  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);
  }

  .info {
    margin: 5%;
    text-align: center;
  }

  .info h1 {
    font-size: 32px;
  }

  .form-step {
    z-index: 1;
  }

  #repair-options {
    width: 80%;
    padding: 20px;
  }

  .progress-container {
    width: 90%;
  }

  .device-btn {
    width: 100px;
    height: 100px;
  }

  .device-btn img {
    width: 40px;
    height: 40px;
  }

  .model-input input {
    width: 90%;
  }

  .checkbox-group label {
    width: 90%;
  }

  #personal-data-form label {
    font-size: 14px;
  }

  #personal-data-form input,
  #personal-data-form textarea {
    width: 90%;
  }

  .btn-steps button {
    font-size: 14px;
    min-width: 100px;
  }

  #whatsapp {
    bottom: 0;
    right: 0;
    transform: scale(0.6);
  }

  footer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
}
