* {
  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 {
  height: 100%;
  width: 100%;
  background: linear-gradient(245.59deg, #31494e 0%, #385e70 25%, #131313 75%);
  color: #fff;
  background-attachment: fixed;
  overflow-x: hidden;
}

/* --- 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: 28px;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

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

/* --- SECCIÓN ABOUT ME --- */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  max-width: 900px;
  margin: 80px auto;
}

.about-content {
  max-width: 800px;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f2bb13;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.about-list {
  margin-bottom: 20px;
}

.about-list li {
  display: flex;
  align-items: flex-start; /* ✅ ícono alineado con la primera línea del texto */
  gap: 10px;
  margin-bottom: 15px;
}

.about-list i {
  font-size: 22px;
  color: #f2bb13;
  flex-shrink: 0; /* ✅ ícono no se deforma */
  margin-top: 2px; /* ✅ pequeño ajuste fino */
}


.btn-about {
  display: inline-block;
  background: #f2bb13;
  color: #131313;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-about:hover {
  background: #d9a10f;
  transform: translateY(-3px);
}

/* --- CARRUSEL INFINITO --- */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  background-color: transparent;
  z-index: 1;
  pointer-events: none;
}

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

.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);
}

/* --- ÍCONOS REDES SOCIALES --- */
.icons {
  position: absolute;
  top: 50vh;
  padding: 0 3%;
  transform: translateY(-50%);
}

.icons i {
  display: block;
  margin: 26px 0;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.icons i:hover {
  color: #f2bb13;
  transform: translateY(-5px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .about-section {
    margin: 40px 10px;
    padding: 40px 20px;
  }

  .about-content h2 {
    font-size: 2rem;
  }

  .about-content p,
  .about-list li {
    font-size: 1rem;
  }
}

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

  #menu-icon {
    display: block;
  }

  .navlist {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 200px;
    background-color: rgba(2, 23, 25, 0.9);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    transition: right 0.5s ease-in-out;
  }

  .navlist li {
    margin: 10px 0;
  }

  #menu-toggle:checked + .menu-icon-action + .navlist {
    right: 8%;
  }

  .about-section {
    text-align: center;
    padding: 30px 15px;
  }

  .about-list li {
    display: block; /* ✅ ahora ícono y texto en una sola columna */
    text-align: center; 
    margin-bottom: 20px;
  }

  .about-list i {
    display: block;
    font-size: 28px;
    margin-bottom: 8px; /* ✅ separa el ícono del texto */
  }


  .btn-about {
    width: 100%;
    text-align: center;
  }

  .icons {
    position: inherit;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .about-content h2 {
    font-size: 1.8rem;
  }

  .about-content p,
  .about-list li {
    font-size: 0.95rem;
  }

  .bx {
    font-size: 40px; /* carrusel más chico en móviles */
  }
}
