:root {
  --bg: #6F4E37;         
  --text: #ffffff;       
  --wood: #8B5E3C;      
  --accent: #3a271b;     
  --detail1: #ceac82;    
  --detail2: #CFC2B3;    
  --highlight: #D9B382;  
  --topbar: #3f2c1f;     
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 1800px;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Barra superior */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--topbar);
  z-index: 1000;
}

/* Botón */
.btn {
  background: var(--accent);
  color: var(--light);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  margin-top: 1rem;
  max-width: 160px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: var(--highlight);
  color: var(--text);
}

/* Sidebar */
#sidebar {
  position: fixed;
  top: 6px; /* Ajustado para dejar espacio a la top-bar */
  left: 0;
  width: 250px;
  height: calc(100vh - 6px);
  background: var(--detail1);
  color: var(--light);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* Perfil */
.profile {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-pic {
  border-radius: 30%;
  width: 200px;
}

/* Navegación */
.nav-custom {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-family: 'Outfit', sans-serif;
}

.nav-custom .nav-link {
  color: var(--text);
  padding: 1rem;
  transition: 0.3s;
  text-align: center;
  font-size: 16px;
}

.nav-custom .nav-link span {
  color: var(--accent);
  font-size: 27px;
}

.nav-custom .nav-link:hover {
  color: var(--accent);
}

/* Contenido principal */
.content {
  margin-left: 320px;
  padding: 2rem;
}

.section {
  height: 100vh;
  width: 95%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #ceac82;
}
.section h1{
  font-size: 64px;

}
.section h2{
  font-size: 24px;

}

/*INICIO*/
.hero {
  height: 95vh;
  width: 100%;
  color: var(--text);
  gap: 4rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content:center;
}

.hero span {
  color: var(--accent);
  
}

/*SOBRE MI*/

#sobre-mi{
  display: flex;
  justify-content:center;
  gap: 4rem;

}

#sobre-mi span{
  color: var(--accent);
}

#sobre-mi p {
  max-width: 950px;
  font-size: 20px;
  font-family: 'Segoe UI', sans-serif;
 }

#sobre-mi h3 {
  color: var(--accent);
}

/*Iconos*/
.social-icons {
  display: flex;
  gap: 6rem;
  justify-content: left;
}

.social-icons a {
  color: var(--accent);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--highlight);
  transform: scale(1.2);
}


/* Skills */
.skills-section {
  padding: 2rem;
  border-radius: 10px;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content:center;
  gap: 2rem;
}

#skills h1 {
  font-size: 64px;
  color: var(--accent);

}

.skills-group h3 {
  color: #ffffff;
  font-size: 1rem;
  margin: 1.2rem 0 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  display: inline-block;
}

/* Etiquetas por tecnología */
.html { background-color: #e34c26; color: white; }
.css { background-color: #2965f1; color: white; }
.js { background-color: #f0db4f; color: #000; }
.python { background-color: #3776ab; color: white; }

.react { background-color: #61dafb; color: #000; }

.mysql { background-color: #00758f; color: white; }

.illustrator { background-color: #ff9a00; color: white; }
.photoshop { background-color: #31a8ff; color: white; }
.vscode { background-color: #007acc; color: white; }

.import{
  color: var(--accent);
  margin-top: 40px;
  margin-bottom: 50px;
  max-width: 750px;
}

/* porfolio */
.porfolio {
  background: var(--detail1);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
}

#porfolio span{
  color: var(--accent);
}

.porfolio-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 100px;
  margin-left: 50px;
  gap: 2rem;
  justify-content: left;
  
}

.porfolio-card {
  background: var(--highlight);
  width: 280px;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid white;
}

.porfolio-card:hover {
  transform: translateY(-5px);
}

.porfolio-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.porfolio-card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.porfolio-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
}

.tech-stack {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.tech {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  font-weight: bold;
  color: white;
  font-family: sans-serif;
}

.tech img {
  width: 30px;
  height: 30px;

}

/* Colores según tecnología */
.tech.html {
  background-color: #e44d26;
}

.tech.css {
  background-color: #2965f1;
}

.tech.js {
  background-color: #f0db4f;
}

.tech.react {
  background-color: #fcfcfc;
}

/* Botones de proyecto */
.porfolio-botones {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
/*ESTUDIOS*/

#estudios span{
  color: var(--accent);
}

#estudios h1{
  margin-bottom: 50px
}

#estudios h5{
  max-width: 950px;
  font-size: 20px;
  font-family: 'Segoe UI', sans-serif;
}

#estudios{
  display: flex;
  gap: 1.5rem;
}

#estudios h3{
 color: var(--accent);
 font-size: 30px;
}

/* Formulario */
#contacto {
  height: 100vh;
  width: 95%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 350px;
  border-bottom: 1px solid #ceac82;;
}
#contacto h1{
  font-size: 64px;
  color: var(--accent);
}

#contacto form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 600px;
}


#contacto input, textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--detail2);
  border-radius: 6px;
  font-size: 1rem;
  color: black;
}

/* Responsive */
@media (max-width: 768px) {
  /* Sidebar adaptado */
  #sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    margin-top: 15px;
  }

  .profile-pic {
    width: 120px;
    margin-bottom: 1rem;
  }

  /* Navegación horizontal */
  .nav-custom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .nav-custom .nav-link {
    font-size: 14px;
    padding: 0.5rem;
  }

  .nav-custom .nav-link span {
    font-size: 20px;
  }

  /* Contenido principal */
  .content {
    margin-left: 0;
    padding: 1rem;
  }

  .section h1, #skills h1, #contacto h1 {
    font-size: 36px;
  }

  .section h2 {
    font-size: 18px;
  }

  /* Hero */
  .hero {
    height: auto;
    padding: 2rem 1rem;
    text-align: center;
  }

  /* Sobre mí */
  #sobre-mi {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  #sobre-mi p {
    font-size: 18px;
  }

  /* Skills */
  .skills-section {
    padding: 1rem;
  }

  .tags {
    justify-content: center;
  }

  .tag {
    font-size: 0.8rem;
  }

  /* Portfolio */
  .porfolio-grid {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
  }

  .porfolio-card {
    width: 90%;
  }

  /* Estudios */
  #estudios {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }

  #estudios h5 {
    font-size: 18px;
  }

  /* Formulario */
  #contacto {
    margin-left: 0;
    padding: 1rem;
    width: 100%;
  }

  #contacto form {
    width: 100%;
  }

  /* Social icons */
  .social-icons {
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }

  /* Botón */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    max-width: 100%;
  }
}
