body, html {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', 'Montserrat', sans-serif;
  background-color: #17171B;
  color: #fff;
}

.reveal-up {
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 1.2s cubic-bezier(.77,0,.18,1), transform 1.4s cubic-bezier(.77,0,.18,1);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* NAVBAR*/ 
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 10%;
  background-color: #17171B; 
  display: flex;
  align-items: center; 
  justify-content: space-between; 
  padding: 10px 40px;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: flex-start;
  margin-right: 110px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  transition: color 0.3s ease;
  font-size: large;
}

.nav-links img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.nav-links img:hover {
  cursor: pointer;
  transform: scale(1.07);
  filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(527%) hue-rotate(180deg) brightness(95%) contrast(100%);
}

.nav-links a:hover {
  color: #1595df;
  transform: scale(1.04);
  cursor: pointer;
}

/* LOGO */
.logo {
  text-decoration: none;
  color: #fff;
  padding: 5px 10px;
  transition: color 0.3s ease;
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.logodev{
  background: linear-gradient(90deg, #00c6ff, #0072ff, #4facfe, #00f2fe);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
}

  .logo:hover{
      transform: scale(1.04);
  }

/* SIDEBAR */
.sidebar {
    position: fixed;
    height: 25vh;
    width: 30px;
    background-color: #242325;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    top: 50%;
    transform: translateY(-50%); 
    left: 0;
    z-index: 9999;
}

    .icon-left {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      gap: 20px;
      margin-top: 18px; 
    }

    .sidebar a{
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 8px 0;
      border-radius: 8px;
      text-decoration: none;
      cursor: pointer; 
      transition: background-color .18s, transform .08s;
    }

    .sidebar a:hover{
      transform: scale(1.07);
      filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(527%) hue-rotate(180deg) brightness(95%) contrast(100%);
    }

/* HOME */
.hero {
  height: 100vh; 
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  margin: 0 auto;
  padding-left: 240px;
  box-sizing: border-box;
}

    .hero h1 {
      font-size: 3rem;
      color: #fff;
      font-weight: normal;
    }

    .hero h2 {
      font-size: 2.5rem;
      color: #fff;
      font-weight: normal;
    }

    .hero-nombre{
      background: linear-gradient(90deg, #00c6ff, #0072ff, #4facfe, #00f2fe);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
      font-weight: bold;
      font-size: 4rem;
    }

    .hero-texto {
      opacity: 0.3;
      transform: translateX(-100vw); 
      animation: heroTextoIn 0.9s cubic-bezier(.77,0,.18,1) 0.2s forwards;
    }

    @keyframes heroTextoIn {
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .hero-foto {
      opacity: 0.3;
      transform: translateX(100vw); 
      animation: heroFotoIn 0.9s cubic-bezier(.77,0,.18,1) 0.5s forwards;
    }

    @keyframes heroFotoIn {
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .hero-resume a {
      display: inline-block;       /* Permite que width y height funcionen */
      text-decoration: none;       /* Quita el subrayado del link */
      text-align: center;          /* Centrar texto horizontal */
      line-height: 60px;           /* Centrar texto verticalmente */
      border-radius: 30px;
      color: #fff;
      border: 2px solid #4facfe;   
      background-color: #17171B;
      width: 180px;                 
      font-weight: bold;
      font-size: 24px;
      cursor: pointer;
      transition: 0.3s;  
      margin-top: 15px;          
    }

    .hero-resume a:hover {
      background-color: #4facfe;
      color: #333;
      transform: scale(1.04);
    }

    .hero-foto {
      margin-left: 220px;    /* empuja la foto a la derecha */
      margin-bottom: 40px;
    }

    .hero-foto img {
      width: 360px;            
      height: 360px;           
      border-radius: 50%;      
      object-fit: cover;
      border: 2px solid #0072ff;
    }

    .hero h1, .hero h2, .hero-nombre {
      margin: 0;              
      line-height: 1.3; 
    }

/* ABOUT ME SECCION */
.about-section{
    text-align: start;
    scroll-margin-top: 330px;
}

    .about-section h1 {
    margin: 70px auto 10px;
    font-size: 50px;
    color: #0072ff;
    margin: 1.875rem auto 0.05rem;
    max-width: 75rem;
    width: 80%;
    }

    .about-section h3 {
        margin: 10px auto 10px;
        font-size: 24px;
        color: #4facfe;
        margin: 0.100rem auto 1.075rem;
        max-width: 75rem;
        width: 80%;
    }

    .about-section p {
        margin: 1.875rem auto 1.875rem;
        max-width: 75rem;
        width: 80%;
        font-size: 1.3825rem;
        font-weight: 300;
        color: #fff;
    }

    .about-section span{
      color: #1595df;
    }

/* SECCION DE TECH STACK */
.tech-section {
  text-align: center;
  padding: 210px 20px 0px;
  scroll-margin-top: 0px;
}

    .tech-section h1 {
      font-size: 50px;
      margin: 0.475rem auto 0.05rem;
      max-width: 75rem;
      font-weight: 700;
      color: #0072ff;
    }

    .tech-section h2 {
      font-size: 28px;
      margin-top: 5px;
      margin-bottom: 30px;
      font-weight: 700;
      color: #4facfe;
    }
    
    .tech-texto{
      writing-mode: sideways-lr;
      color: #0072ff;
      font-size: 18px;
      font-weight: bold;
    }

    .tech-box{
      display: flex;
      justify-content: space-evenly;
      width: 80%;
      height: 160px;
      margin: 0 auto;
      border-radius: 15px;
      background: linear-gradient(135deg, #23243a, #2a2d4d, #3a3e5c 90%);
      border: 1px solid #0072ff;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .tech-container{
      display: flex;
      justify-content: center;
      align-items: flex-start;
      margin-right: 0;
      margin-bottom: 25px;
    }

    .tech-box-group {
      display: flex;
      flex-direction: row;
      align-items: center;
      width: 80%;
      transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .tech-box-group:hover {
      transform: scale(1.02);
    }

    .tech-logos{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
      row-gap: 20px;
      width: 100%;
      place-items: center;
    }

    .tech-logos img {
      object-fit: contain;
      transition: transform 0.2s ease-in-out;
    }

    .tech-logos img:hover {
      transform: scale(1.2);
    }

    .tech-logos-front{
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      row-gap: 20px;
      width: 100%;
      place-items: center;
    }

    .tech-logos-front img {
      object-fit: contain;
      transition: transform 0.2s ease-in-out;
    }

    .tech-logos-front img:hover {
      transform: scale(1.2);
    }

    .tech-logos-front img.logo-html { filter: drop-shadow(0 0 5px #e44d26) drop-shadow(0 0 3px #e44d26); }
    .tech-logos-front img.logo-css { filter: drop-shadow(0 0 5px #264de4) drop-shadow(0 0 3px #264de4); }
    .tech-logos-front img.logo-js { filter: drop-shadow(0 0 5px #f7df1e) drop-shadow(0 0 3px #f7df1e); }
    .tech-logos-front img.logo-sfml { filter: drop-shadow(0 0 5px #1e920f) drop-shadow(0 0 3px #1b940b); }
    .tech-logos img.logo-csharp { filter: drop-shadow(0 0 5px #662bf0) drop-shadow(0 0 3px #662bf0); }
    .tech-logos img.logo-github { filter: drop-shadow(0 0 5px #696868) drop-shadow(0 0 3px #5c5a5a); }
    .tech-logos img.logo-git { filter: drop-shadow(0 0 5px #a03014) drop-shadow(0 0 3px #923119); }
    .tech-logos img.logo-codeblocks { filter: drop-shadow(0 0 5px #f7df1e) drop-shadow(0 0 3px #f7df1e); }
    .tech-logos img.logo-c { filter: drop-shadow(0 0 5px #1c49dd) drop-shadow(0 0 3px #1c49dd); }
    .tech-logos img.logo-java { filter: drop-shadow(0 0 5px #66473f) drop-shadow(0 0 3px #634943); }
    .tech-logos img.logo-sql { filter: drop-shadow(0 0 5px #f31818) drop-shadow(0 0 3px #f31818); }
    .tech-logos img.logo-asp { filter: drop-shadow(0 0 5px #3567f0) drop-shadow(0 0 3px #3567f0); }
    .tech-logos img.logo-vs { filter: drop-shadow(0 0 5px #662bf0) drop-shadow(0 0 3px #662bf0); }
    .tech-logos img.logo-vscode { filter: drop-shadow(0 0 5px #2a51bd) drop-shadow(0 0 3px #264cb6); }

/* SECCION DE EDUCACION */
.education-section{
  text-align: center;
  width: 80%;
  margin: auto;
  max-width: 60%;
  margin-top: 90px;
  background-color: #242325;
  padding: 30px 20px 40px 20px;
  border: 2px solid #ccc;
  border-radius: 15px;
}

  .education-section h2 {
      font-size: 28px;
      margin-top: 5px;
      font-weight: 700;
      color: #4facfe;
  }

  .education-section h3 {
    font-size: 24px;
    color: #0072ff;
    display: inline-flex;
    margin-bottom: 0px;
  }

  .education-section p {
    font-size: 18px;
    color: #fff;
    margin-bottom: 30px;
    width: 80%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 15px;
  }

.badge{
  background-color: #4facfe;
  border: 1px solid #4facfe;
  border-radius: 12px;
  padding: 2px 10px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease-in-out;
  text-decoration: none;
  color: black;
}

.badge:hover {
  transform: scale(1.04);
  cursor: pointer;
}

.separador{
  background-color: white;
  width: 3px;
  height: 25px;
  display: inline-flex;
  margin: 0 10px;
}

.logo-utn{
  width: 25px;
  height: 25px;
  object-fit: contain;
  margin-right: 8px;
  
}

.logo-free{
  width: 25px;
  height: 25px;
  object-fit: contain;
  margin-right: 8px;
}

/* SECCION DE PROYECTOS */
.projects-section {
  text-align: center;
  padding: 60px 20px;
  scroll-margin-top: 80px;
}

    .projects-container{
      display: grid;
      grid-template-columns: 1fr 1fr;
      row-gap: 25px;
      column-gap: 15px;
      width: 65%;
      place-items: center;
      margin: 0 auto;
      justify-content: center;
    }

    .project-box{
      display: flex;
      flex-direction: column;
      align-items: center; 
      justify-content: flex-start; 
      text-align: center;
      width: 90%;        
      height: 540px;  
      margin: auto;
      background-color: #242325;
      padding: 30px 20px 40px 20px;
      border: 2px solid #ccc;
      border-radius: 15px;
      transition: transform 0.2s ease-in-out;
    }

    .project-box:hover {
      transform: scale(1.02);
      transition: transform 0.2s ease-in-out;
    }

    .project-img {
      width: 640px;
      height: 320px;             
      object-fit: cover;  
      object-position: center;
      border-radius: 12px;  
      align-self: auto; 
      margin-bottom: 15px; 
    }

    .project-info {
      align-self: start;
      margin-top: 0;
      width: 90%;
      margin-left: auto;
      margin-right: auto;
    }
    
    .project-info h3 {
      font-size: 24px;
      color: #0072ff;
      margin-bottom: 10px;
    }

    .project-links {
      align-self: center;
      display: flex;
      gap: 25px;
      justify-content: center;
      margin-bottom: 12px;
    }

    .project-links a {
      text-decoration: none;
      color: #fff;
      transition: color 0.3s ease, transform 0.2s ease-in-out;
    }

    .project-links a:hover {
      cursor: pointer;
      transform: scale(1.07);
      filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(527%) hue-rotate(180deg) brightness(95%) contrast(100%);
    }

    .borde-proyecto{
      width: 100%;
      height: 3px;
      background-color: #d3d3d3;
      margin: 10px auto 15px;
    }

    .color-sfml{
      color: #1e920f;
      font-weight: bold;
    }

    .color-css{
      color: #264de4;
      font-weight: bold;
    }

    .color-html{
      color: #e44d26;
      font-weight: bold;
    }

    .color-c{
      color: #1c49dd;
      font-weight: bold;
    }

    .color-csharp{
      color: #662bf0;
      font-weight: bold;
    }

    .color-js{
      color: #f7df1e;
      font-weight: bold;
    }

    .color-asp{
      color: #3567f0;
      font-weight: bold;
    }

    .color-sql{
      color: #f31818;
      font-weight: bold;
    }

    .projects-section h1 {
      font-size: 50px;
      margin: 1.875rem auto 0.05rem;
      font-weight: 700;
      color: #0072ff;
    }

    .projects-section h2 {
      font-size: 28px;
      margin-top: 5px;
      font-weight: 700;
      color: #4facfe;
    }


/* SECCION DE CONTACTO */
.contacto{
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
    scroll-margin-top: 150px;
}

  .contacto h1 {
      font-size: 50px;
      font-weight: 700;
      color: #0072ff;
      margin: 1.875rem auto 0.05rem;
  }

    .contacto h2{
      color: #4facfe;
      margin-top: 5px;
      margin-bottom: 30px;
    }

    .contacto a{
        color: black;
        text-align: center;
        display: inline-block;
        align-items: center;
    }

    .left-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
      max-width: 40%;
      margin: 0 auto;
    }

      .inputs {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ccc;
        border-radius: 10px;
        font-size: 16px;
        box-sizing: border-box;
        background-color: #242325;
        color: #fff;
        transition: border-color 0.3s ease;
        font-family: 'Poppins', 'Montserrat', sans-serif;
      }

    .message-button{
      display: inline-block;       /* Permite que width y height funcionen */
      text-decoration: none;       /* Quita el subrayado del link */
      text-align: center;          /* Centrar texto horizontal */
      line-height: 40px;           /* Centrar texto verticalmente */
      border-radius: 240px;
      color: #fff;
      border: 2px solid #4facfe;   
      background-color: #17171B;
      width: 140px;                 
      font-weight: bold;
      font-size: 18px;
      cursor: pointer;
      transition: 0.3s;  
      margin-top: 25px;       
      font-family: 'Poppins', 'Montserrat', sans-serif;   
    }

    .message-button:hover {
      background-color: #4facfe;
      color: #333;
      transform: scale(1.04);
    }

/* SEPARADOR DE CONTACTO */
.borde{
    width: 80%;
    height: 3px;
    background-color: #d3d3d3;
    margin: 0 auto;
}

/* SECCION DE DERECHOS */ 
.derechos{
  text-align: center;
  color: #E6E6E6;
  font-size: smaller;
  padding-bottom: 20px;
  padding-top: 5px;
}

.resaltado{
  color: #FFFFFF;
  font-weight: bold;
}

.iconos-derechos {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 20px;
    }

        .iconos-derechos a {
          display: flex;
          flex-direction: row;
          justify-content: center;
          align-items: center;
          width: 50px;   
          height: 40px;
        }

        .derechos img {
          max-width: 90%; 
          height: auto;
          transition: transform 0.2s ease-in-out;
        }
        
        .derechos img:hover{
            transform: scale(1.2);
            filter: brightness(0) saturate(100%) invert(45%) sepia(93%) saturate(527%) hue-rotate(180deg) brightness(95%) contrast(100%);
        }

/* CARRUSEL DE FOTOS */
.carrusel {
  position: relative;
  width: 100%;
  max-width: 850px;
  height: 80vh;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: auto;
  border: 2px solid black;
  border-radius: 5px;
  transition: transform 0.2s ease-in-out;
}

.carrusel-caption{
  text-align: center;
  font-size: medium;
  color: #333;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 30px;
}

.carrusel-img {
  position: absolute;
  top: 0;               
  left: 0;              
  width: 100%;          
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: block;
  cursor: pointer;
}

.carrusel-img.active {
  opacity: 1;
}

.carrusel:hover {
  transform: scale(1.02);
}

button.prev,
button.next {
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
}

button.prev { left: 10px; }
button.next { right: 10px; }

/* MODAL IMAGEN */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  max-width: 100%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

body.modal-open {
  overflow: hidden;
}

/* DISEÑO RESPONSIVE */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    padding: 1rem;
  }

  .nav-links {
    flex-direction: row;
    gap: 10px;
    justify-content: center;
  }

  .nav-links a {
      font-size: 0.8rem; 
      padding: 0.3rem 0.4rem;
    }

  .logo {
    height: 60px;
    margin-right: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h3 {
    font-size: 1rem;
  }

  .menu-carillas img {
    width: 100%;
  }

  .reseñas {
    width: 90%;
  }

  .carrusel {
    width: 80%;
    height: 60vh;
  }

  .carrusel-img {
    position: absolute;
    object-fit: cover;
    height: 60vh;
  }

  button.prev, button.next {
    font-size: 1.5rem;
    padding: 5px;
  }

  .cerrar{
    margin-bottom: 0.4rem;
  }
}

.inputs:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #242325 inset !important;
  box-shadow: 0 0 0 1000px #242325 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: #242325 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Personaliza el ancho y color de la barra */
body::-webkit-scrollbar {
  width: 10px;
  background: #17171B; /* Fondo de la barra */
}

/* Color del "track" (fondo de la scrollbar) */
body::-webkit-scrollbar-track {
  background: #23243a;
}

/* Color del "thumb" (la parte que se mueve) */
body::-webkit-scrollbar-thumb {
  background: #0072ff;
  border-radius: 8px;
}

/* Opcional: color al pasar el mouse */
body::-webkit-scrollbar-thumb:hover {
  background: #4facfe;
}