/* -------------------- RESET Y BASE -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fafafa;
  color: #222;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

/* -------------------- PERFIL -------------------- */
.profile {
  max-width: 900px;
  margin: 2rem auto 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 0 1rem rgba(0,0,0,0.05);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dbdbdb;
}

.profile-info {
  flex: 1;
}

.username {
  font-size: 2.4rem;
  font-weight: 600;
}

.bio {
  font-size: 1.4rem;
  margin-top: .5rem;
  color: #555;
}

.social-links {
  margin-top: 1rem;
}

.social-links a {
  color: #333;
  font-size: 2rem;
  margin-right: 1rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: #0095f6; /* azul tipo Instagram */
}

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  background: #0095f6;
  color: #fff;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #007acc;
}

/* -------------------- ESTADÍSTICAS -------------------- */
.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 2rem 0;
  font-size: 1.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  text-align: center;
}

.profile-stats strong {
  font-weight: 600;
}

/* -------------------- BOTONES DE TECNOLOGÍAS -------------------- */
.tech-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tech-buttons button {
  border: none;
  background: #e0e0e0;
  color: #333;
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s ease;
}

.tech-buttons button:hover {
  background: #0095f6;
  color: #fff;
  transform: scale(1.05);
}

/* -------------------- GALERÍA -------------------- */
.gallery {
  max-width: 900px;
  margin: auto;
}

.gallery h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: 500;
  transition: opacity 0.3s;
  text-align: center;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* -------------------- FOOTER -------------------- */
.footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  font-size: 1.3rem;
}

.footer a {
  color: #0095f6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 600px) {
  .profile {
    margin: 5rem 1rem;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .username {
    font-size: 2rem;
  }

  .bio {
    font-size: 1.3rem;
  }

  .gallery-item img {
    height: 200px;
  }

  .tech-buttons button {
    font-size: 1.2rem;
    padding: 0.5rem 1.2rem;
  }
}



/* #region LKS CARS */


/* -------------------- HEADER -------------------- */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  padding: 1.2rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  z-index: 10;
}

.logo {
  font-size: 1.4rem;
  font-weight: 500;
  color: #0095f6;
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: #007acc;
}

/* -------------------- MANUAL DE USUARIO -------------------- */
.manual {
  padding: 8rem 1rem 4rem;
  background: #fafafa;
}

.manual-container {
  max-width: 900px;
  margin: auto;
  background: #fff;
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 0 1rem rgba(0,0,0,0.05);
}

.heading {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #333;
}

.heading span {
  color: #0095f6;
}

.manual-section {
  margin-bottom: 3rem;
}

.manual-section h3 {
  font-size: 1.8rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.manual-section p {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.manual-section img {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.manual-section img:hover {
  transform: scale(1.02);
}

/* -------------------- FOOTER -------------------- */
.footer {
  text-align: center;
  padding: 2rem;
  color: #777;
  font-size: 1.3rem;
  background: #fff;
  border-top: 1px solid #eee;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 600px) {
  .manual-container {
    padding: 2rem;
  }

  .heading {
    font-size: 2rem;
  }

  .manual-section h3 {
    font-size: 1.6rem;
  }

  .manual-section p {
    font-size: 1.3rem;
  }
}

/* #endregion */

/* #region INDICE */

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Contenedor principal */
.manual-wrapper {
    display: flex;
    gap: 2rem;
}

/* ÍNDICE FIJO */
.manual-index {
    position: sticky;
    top: 100px; /* Ajusta según tu header fijo */
    width: 220px;
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 1rem;
    height: fit-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Lista del índice */
.manual-index ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manual-index li {
    margin-bottom: 1rem;
}

.manual-index a {
    text-decoration: none;
    color: #0095f6;
    font-weight: 500;
    transition: color 0.3s, font-weight 0.3s;
}

/* Resaltar sección activa */
.manual-index a.active {
    color: #007acc;
    font-weight: 700;
}

/* Hover */
.manual-index a:hover {
    color: #007acc;
}

/* Contenido del manual */
.manual-container {
    flex: 1;
    background: #fff;
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 0 1rem rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 900px) {
    .manual-wrapper {
        flex-direction: column;
    }

    .manual-index {
        position: relative;
        width: 100%;
        top: 0;
        margin-bottom: 2rem;
    }
}

/* #endregion */
