 /* Import Google Fonts */
 @import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600&display=swap");


 /* Reset, tipografía base */
 * {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
 }

  /* Navegación */
header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  background-color: rgb(20, 20, 20); /* más contraste y definición */
  padding: 1rem 2rem;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

nav a {
  color: #fefefe88; /* negro suave para no saturar */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1); /* efecto sutil */
}


body.hidden > *:not(#loader) {
  display: none;
}

/* Fondo que cubre toda la pantalla */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85); /* fondo semi-transparente */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: "Orbitron", sans-serif;
  color: #333;
}

/* Spinner circular animado */
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #000000; /* color azul */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

/* Animación de giro */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Texto de carga */
#loader p {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}


body {
  font-family: "Orbitron", sans-serif; /* fuente futurista */
  line-height: 1.6;
  padding: 2rem;
  gap: 4rem;
}

/* Fade-in al aparecer el main */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

main {
  animation: fadeIn 1s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Sección principal*/
#mainsection {
  width: 100%;
  max-width: 100vw; /* máximo ancho visible del viewport */
  margin: 2rem 2rem;
  
}

#mainsection .container {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  width: 50%;
  margin: 0 auto;
}

#mainsection h2 {
  font-size: 3rem;
  color: #111;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

#mainsection h2 i {
  color: #3a3a3a;
  margin-right: 0.8rem;
}

#mainsection p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #333;
  margin-top: 1rem;
}

#mainsection:hover h2 {
  color: #5a5a2a;
  cursor: default;
}


 
 .content h2 {
   color: #000000;
   font-size: 10vh;
   font-family: "Orbitron", sans-serif;
   margin-bottom: 1rem;
   border-bottom: 1px solid black;
   padding-bottom: 0.5rem;
 }
 
 .content a, button {
   position: relative; 
  font-family: "Orbitron";
   font-weight: bold;
   text-align: center;
   margin-top: 1rem;
   color: #ffffff;
   text-decoration: none;
   border: 1px solid #000000;
   background-color: #000000;
   padding: 0.5rem 1rem;
   gap: 2px;
   border-radius: 6px;
   transition: all 0.3s ease;
 }

 .content p {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif ;
  font-weight: bold;
 }
 
 button:hover {
   background-color: #ffffffbf;
   color: #000000;
 }
 

 .content {
  width: 85%;
   display: flex;
   flex-direction: row;
   align-items:baseline;
   justify-content: center;
   margin: 3rem;
   gap: 6rem;
   border-radius: 16px;
   transition: background 0.8s ease-in-out;

  
 }
 
 .project-text {
   display: flex;
   color: black;
   flex-direction: column;
   flex: 1;
   max-width: 100%;
 }
 


.preview-images {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  border-radius: 8px;
  gap: 3rem;
}

.preview-images img {
  max-width: 100%;
  margin: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px #0000001a;
}

  
 .tech-list {
   list-style: none;
   display: flex;
   align-items: center;
   justify-content: space-evenly;
   gap: 1rem;
   margin-top: 1rem;
   padding: 0;
   align-items: center;
 }
 
 .tech-list li {
   display: flex;
   align-items: center;
 }
 
 .tech-list img {
   display: inline-block;
   width: 2rem;
   height: 2rem;
   vertical-align: middle;
 }
 
 .icon-attribution {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   overflow: hidden;
   clip: rect(0, 0, 0, 0);
   white-space: nowrap;
   border: 0;
 }
 
 .toggle-btn {
   justify-content: center;
   margin-top: 2rem;
   padding: 0.5rem 1rem;
   background-color: #000000;
   color: #ffffff;
   border: none;
   border-radius: 6px;
   cursor: pointer;
   transition: all 0.3s ease;
 }

 footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
 }
 


/* MEDIA QUERY para móviles */
@media (max-width: 480px) {
  body {
    max-width: 479px;
    padding: 1rem;
    gap: 2rem;
  }

  header nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  #loader {
    padding: 1rem;
  }

  #loader p {
    font-size: 1rem;
    text-align: center;
  }

  main {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  #mainsection {
    width: 470px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
  }

  .container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #mainsection .subcontainer h2 {
    font-size: 1.7rem;
  }

  #mainsection .introducingcontainer p {
    font-size: 1rem;
  }

  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    gap: 1rem;
    width: 350px;
  }


  .project-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    padding: 1rem;
    background-color: black;
    color:white;
  }

  .project-text h2 {
    font-size: 1.5rem;
    color: white;
  }

  .project-text h3 {
    font-size: 1rem;
    color:white;
  }

  .preview-images{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    border-radius: 8px;
    gap: 1rem;
  }

  .preview-images img {
    flex-wrap: wrap;
    max-width: 200px;
    margin: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px #0000001a;
  }

  .preview-details {
    padding: 1rem;
    
  }

  img {
    width: fit-content;
    height: 150px;
  }
}





