/* =========================================================
   BASE GENERAL
========================================================= */

body {
  background-color: #222222;
  max-width: 100%;
  height: auto;
  overflow-x: hidden;
}

/* =========================================================
   ESTADO ACTIVO DEL MENÚ
========================================================= */

.titulo.active-page {
  color: #d884ff;
  text-shadow: 0 0 8px rgba(216, 132, 255, 0.35);
}

/* =========================================================
   SELECTOR DE IDIOMA
========================================================= */

.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  margin-left: auto;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.lang-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 4px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
  opacity: 0.85;
  transform: scale(1.04);
  color: #d884ff;
}

.lang-btn.active {
  color: #d884ff;
}

.lang-separator {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  user-select: none;
}

.inner-container .lang-switcher {
  flex: 0 0 auto;
}

.titulo[data-i18n="nav_raee"] {
  margin-right: 50px;
}

.titulo {
  white-space: nowrap;
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes glow {
  to {
    text-shadow:
      0 0 4px #ffffff,
      0 0 8px #ffffff,
      0 0 12px #d25ed4,
      0 0 16px #d25ed4,
      0 0 20px #d25ed4,
      0 0 24px #d25ed4,
      0 0 28px #d25ed4;
  }
}

/* =========================================================
   HEADER / MENÚ SUPERIOR
========================================================= */

.cont-2 {
  width: 100%;
}

.inner-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo img {
  width: 200px;
  max-width: 100%;
  height: auto;
}

.titulo {
  flex: 1;
  text-align: center;
  padding: 10px;
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 500;
}

.titulo:hover {
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   GRILLA DE CATÁLOGOS / MÁQUINAS
========================================================= */

.container-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 22px;
  max-width: 1400px;
  margin: 30px auto 50px;
  padding: 0 20px;
  align-items: start;
}

.column-1 {
  width: 100%;
}

.image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.image-container a:first-child,
.image-container img {
  display: block;
  width: 100%;
}

.image-container img {
  width: 100%;
  height: auto;
  cursor: pointer;
  background-color: #838383;
  border-radius: 0 50px;
  object-fit: cover;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.btn-d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 8px 28px;
  border: 1px solid #ffffff;
  border-radius: 20px;
  background-color: #9648aa;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-size: 25px;
  font-family: "Unica One", sans-serif;
  font-weight: 500;
  font-style: normal;
  text-shadow:
    0 0 1px #ffffff,
    0 0 2px #ffffff,
    0 0 6px #292736,
    0 0 8px #292736,
    0 0 10px #292736,
    0 0 12px #292736,
    0 0 14px #292736;
  animation: glow 0.59s infinite alternate;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-d:hover {
  color: #ffffff;
  text-decoration: none;
  background-color: #a05fb1;
  transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */

footer {
  background-color: #9648aa;
  color: #ffffff;
  text-align: center;
  font-family: "Pathway Gothic One", sans-serif;
  font-weight: 400;
  font-style: normal;
  padding: 4px 10px;
}

/* =========================================================
   BOTÓN SCROLL TO TOP
========================================================= */

.scroll-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: #9648aa;
  color: #ffffff;
  cursor: pointer;
  font-size: 40px;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .container-1 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .lang-switcher {
    order: 2;
    margin: 8px 0 4px;
  }

  .lang-btn {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .container-1 {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn-d {
    font-size: 20px;
    padding: 7px 24px;
  }
}

@media (max-width: 600px) {
  .inner-container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    order: 1;
    margin-bottom: 10px;
  }

  .logo img {
    width: 150px;
    max-width: 100%;
    height: auto;
  }

  .lang-switcher {
    width: auto;
    margin-bottom: 10px;
  }

  .lang-btn {
    font-size: 12px;
    padding: 6px 2px;
  }

  .titulo {
    order: 3;
    width: 100%;
    font-size: 14px;
    white-space: normal;
  }

  .scroll-to-top {
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}

@media (max-width: 570px) {
  .btn-d {
    font-size: 18px;
    padding: 6px 22px;
  }
}