: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;
}

.info {
  text-align: center;
  margin-left: 25%;
  margin-right: 25%;
  margin-top: 5%;
  margin-bottom: 5%;
}

.info h1 {
  font-size: 54px;
  color: black;
}

.info p {
  font-size: 24px;
  color: black;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--secundary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 5%;
}

.carousel {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  border-radius: 10px;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  color: var(--secundary);
}

.content h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.content p {
  font-size: 24px;
  color: var(--secundary);
  margin-bottom: 20px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--secundary);
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  font-size: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.prev {
  left: 10px;
}
.next {
  right: 10px;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  box-sizing: border-box;
}

.text-content {
  max-width: 50%;
}

.text-content h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.text-content p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
  margin: 0 0 25px 0;
}

.btn-join {
  display: inline-block;
  padding: 10px 25px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  font-size: 1rem;
  color: #000000;
  background-color: transparent;
  border: 2px solid #000000;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-join:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.logo-content {
  max-width: 45%;
}

.logo-content img {
  max-width: 300px;
  height: 300px;
  margin-right: 100px;
  display: inline-block;
}

.repair-options h2 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: black;
}

.subtitle {
  text-align: center;
  font-size: 20px;
  color: black;
  margin-bottom: 20px;
}

.options-container {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 20px;
}

.option {
  background: white;
  border: 2px solid var(--primary);
  border-radius: 10px;
  width: 350px;
  text-align: center;
  padding: 30px;
  position: relative;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 1);
  margin-bottom: 5%;
}

.option h3 {
  color: black;
  font-size: 22px;
}

.option p {
  color: black;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}

.option img {
  width: 64px;
  height: 64px;
}

.circle {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: white;
  border: 3px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
}

.icon {
  width: 18px;
  height: 18px;
}

.btn {
  background: var(--primary);
  color: var(--secundary);
  padding: 15px 20px;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
  transition: 0.8s;
}

.btn:hover {
  background: var(--tertiary);
}

.featured {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 5%;
}

.box {
  max-width: 400px;
}

.box h2 {
  display: flex;
  align-items: center;
  gap: 15px;
}

.box p {
  font-size: 20px;
}

.box img {
  width: 64px;
  height: 64px;
}

.repair-devices h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.devices a {
  color: black;
  padding: 0px 50px;
}

.device img {
  width: 200px;
  height: 200px;
}

.device p {
  font-size: 24px;
  text-align: center;
}

.stats-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.stat-card {
  position: relative;
  flex: 1;
  height: 200px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.45);
  transition: background-color 0.3s ease;
}

.stat-card:hover::before {
  background-color: rgba(0, 0, 0, 0.6);
}

.stat-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #ffffff;
  z-index: 1;
}

.stat-overlay h3 {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

.stat-overlay p {
  font-size: 1.1rem;
  margin: 8px 0 0;
}

#whatsapp {
  position: fixed;
  bottom: 10px;
  right: 10px;
  transform: scale(0.8);
}

#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;
  }

  .info {
    margin-left: 10%;
    margin-right: 10%;
  }

  .info h1 {
    font-size: 42px;
  }

  .info p {
    font-size: 20px;
  }

  .carousel-container {
    height: 400px;
  }

  .carousel img {
    height: 400px;
  }

  .repair-options h2 {
    font-size: 22px;
  }

  .options-container {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .option {
    width: 35%;
  }

  .featured {
    flex-direction: row;
  }

  .devices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
  }

  .box {
    width: 40%;
    margin-bottom: 20px;
  }

  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;
  }

  .info p {
    font-size: 18px;
  }

  .carousel-container {
    height: 300px;
  }

  .carousel img {
    height: 300px;
  }

  .content h2 {
    font-size: 24px;
  }

  .content p {
    font-size: 16px;
  }

  .prev,
  .next {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    box-sizing: border-box;
  }

  .btn-join {
    margin-bottom: 50px;
  }

  .text-content {
    max-width: 100%;
  }

  .logo-content {
    max-width: 50%;
  }

  .logo-content img {
    max-width: 150px;
    height: 150px;
    margin-right: 0;
    display: inline-block;
  }

  .repair-options {
    text-align: center;
  }

  .options-container {
    flex-direction: column;
    align-items: center;
  }

  .option {
    width: 60%;
  }

  .featured {
    flex-direction: column;
  }

  .box {
    width: 75%;
    margin-left: 40px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .devices {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 25px;
  }

  .device img {
    width: 150px;
    height: 150px;
  }

  .device p {
    font-size: 22px;
  }

  .stats-section {
    gap: 25px;
    margin: 40px auto;
  }

  .stat-card {
    height: 180px;
  }

  .stat-overlay h3 {
    font-size: 2rem;
  }

  .stat-overlay p {
    font-size: 1rem;
  }

  #whatsapp {
    bottom: 0;
    right: 0;
    transform: scale(0.6);
  }

  footer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }
}
