/* ✅ NORMALIZACIÓN */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Roboto Mono', monospace;
  list-style: none;
  text-decoration: none;
  color: white;
}

/* ✅ Fondo general */
html, body {
  min-height: 100%;
  height: auto; /* Evita espacio vacío si el contenido es menor que la pantalla */
  width: 100%;
  background: linear-gradient(245.59deg, #31494e 0%, #385e70 25%, #131313 75%);
  color: #fff;
  z-index: 1;
  background-attachment: fixed;
  overflow-x: hidden; /* Evita scroll lateral */
}

/* ✅ HEADER */
header {
  position: relative;
  right: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 3%;
  background-color: transparent;
}

.logo {
  font-size: 30px;
  font-weight: 800;
}

.navlist {
  display: flex;
}

.navlist a {
  margin-left: 60px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all .5s ease;
}

.navlist a:hover {
  border-bottom: 2px solid white;
}

#menu-icon {
  display: none;
  font-size: 35px;
  z-index: 101;
  cursor: pointer;
}

#menu-toggle {
  display: none; /* ✅ No se ve nunca */
}

#menu-toggle:checked {
  display: none; /* ✅ Asegura que no quede marcado al cargar */
}

.menu-icon-action {
  display: none;
}

/* ✅ CONTACT SECTION */
.contact-section {
  padding: 60px 8% 40px; /* ✅ Menos espacio abajo */
  background: transparent;
  text-align: center;
}

.contact-section h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

.contact-section p {
  font-size: 16px;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.contact-links a {
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-links a i {
  margin-right: 10px;
  font-size: 22px;
  vertical-align: middle;
}

.contact-links a:hover {
  color: #f2bb13;
  transform: translateX(5px);
}

/* ✅ CARRUSEL INFINITO */
.carousel {
  position: relative; /* ✅ No fijo, se scrollea normal */
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 20px auto 0 auto; /* ✅ Sin margen extra abajo */
  background-color: transparent;
  z-index: 1;
}

.carousel-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
}

.bx {
  font-size: 60px;
  color: rgba(128, 128, 128, 0.6);
  transition: transform 0.3s ease, color 0.3s ease;
}

.bx:hover {
  transform: scale(1.2);
  color: rgba(200, 200, 200, 0.9);
}

/* ✅ RESPONSIVE */
@media (max-width: 768px) {
  .menu-icon-action {
    display: block;
  }

  #menu-icon {
    display: block;
  }

  .navlist {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 200px;
    height: auto;
    background-color: #021719bd;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    transition: right 0.5s ease-in-out;
  }

  .navlist a {
    display: block;
    margin: 7px 0;
  }

  #menu-toggle:checked + label.menu-icon-action + ul {
    right: 0;
  }

  .carousel {
    position: relative; /* ✅ Igual que en escritorio */
  }
}
