/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Onest', sans-serif;
}


html {
    user-select: none;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(3 7 18);
}

.web-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
}

.background-glow {
   position: absolute;
   top: 0;
   left: 50%;
   width: 100vw;  /* tamaño del destello */
   height: 100vh;
   background: linear-gradient(
    to bottom,
    rgba(0, 60, 255, 0.5) 0%,   /* color arriba */
    rgba(33, 37, 41, 0) 100%    /* se desvanece hacia abajo */
   );
   transform: translate(-50%, -50%);
   filter: blur(250px); /* difuminado */
   z-index: -1; /* atrás del contenido */
}



.container-nav {
    display: flex;
    justify-content: center;
    position: absolute;
    height: auto;
    padding: 32px 0;
    width: 100%;
    z-index: 100;
}

.container-nav nav a {
    text-decoration: none;
    color: white;
    margin: 0 32px;
    -webkit-transform: perspective(1px) translateZ(0);
    transform: perspective(1px) translateZ(0);
    position: relative;
    overflow: hidden;
}

.container-nav nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 100%;
  bottom: 0;
  background: white;
  height: 2px;
  -webkit-transition-property: right;
  transition-property: right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}

.container-nav nav a:hover:before, .container-nav nav a:focus:before, .container-nav nav a:active:before {
  right: 0;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  z-index: 200;
}

/* Hacemos que la lista se vea horizontal en desktop */
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  position: relative;
}


.hero {
    position: relative;
    width: 100%;
    padding: 214px 0;
}

h1 {
    text-align: start;
    font-weight: 700;
    font-size: 3rem;
    color: white;
    margin-bottom: 48px;
}

.hero div a {
    text-decoration: none;
}

.hero div a img {
    margin-top: 16px;
    width: 32px;
    height: 32px;
}

h1 span {
    color: #008BEB;
    filter: drop-shadow(0 0 2px #008BEB);
}


.hero div p {
  max-width: 500px;
  font-weight: 500;
  text-align: start;        
  text-justify: inter-word;   
  line-height: 1.6;           
  font-size: 1.25rem;      
  color: white;
  hyphens: auto;              
  overflow-wrap: break-word;  
}

.hero div p span {
    color: rgb(254 240 138);
    filter: drop-shadow(0 0 2px rgb(197, 184, 80));
}

h2 {
    color: white;
    font-size: 1.875rem;
}

.features {
    position: relative;
    width: 100%;
    margin-bottom: 48px;
    padding-bottom: 144px;
}

.feature {
    text-align: start;
    padding: 48px;
    color: white;
}


h3 {
    color: rgb(250 204 21);
}

.feature p {
    margin-top: 16px;
    font-weight: 400;
    font-size: 1.2rem;
}


.titles {
    display: flex;
    gap: 16px;
}

.titles img {
    width: 32px;
    height: 32px;
}

.proyectos {
    position: relative;
    width: 100%;
}

.portfolio-items {
    display: flex;
    flex-direction: column;
}

.portfolio-items {
    width: 100%;
    height: auto;
    color: white;
}


.portfolio-item {
    display: flex;
    justify-content: space-between;
    margin: 144px 0;
}

.portfolio-item img {
    max-width: 400px;
    min-width: 100px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.3s ease-in;
}

.portfolio-item img:hover {
    scale: 1.02;
}


h5 {
    font-size: 1.25rem;
    margin-bottom: 32px;
    color: #008BEB;
    filter: drop-shadow(0 0 2px #008BEB);
}

.info p {
    max-width: 300px;
    margin-bottom: 16px;
}

.info {
    margin-bottom: 32px;
}

.info a {
    color: white;
    font-weight: 800;
}



.pastillas ul {
    display: flex;
    justify-content: start;
    gap: 12px;
}

.pastilla {
    font-size: 0.875rem;
    list-style: none;
    padding: 10px;
    background-color: rgb(33, 37, 41);
    border-radius: 16px;
    width: fit-content;
}


footer {
    border-top: solid 2px rgb(33, 37, 41);
    text-align: center;
    width: 100%;
    color: white;
    padding-top: 32px;
    margin-bottom: 32px;
}

footer p {
    user-select: text;
    margin: 8px;
}

@media (max-width: 1300px) {

  .web-container {
    width: 90%;
  }

  h1 {
    font-size: 1.6rem;
  }

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

  .portfolio-items {
    align-items: center;
  }

  .portfolio-item {
    flex-direction: column;
    align-items: center;
  }

  .portfolio-item img {
    max-width: 300px;
    min-width: 100px;
    margin: 32px;
  }

  .info p {
    max-width: 100%;
  }
}

@media (max-width: 450px) {

    .web-container {
        margin: auto;
        width: 90%;
    }

    .portfolio-item img {
    max-width: 250px;
    min-width: 100px;
    margin: 32px;
  }

   .hero p {
    font-size: 1rem;
    width: 100%;
   }

   .container-nav {
    text-align: center;
   }

    .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgb(3 7 18);
    gap: 20px;
    width: 220px;
    padding: 20px;
    display: none; /* oculto por defecto */
  }

  .nav-links.active {
    display: flex;
  }
}