.background {
  background-color: hsla(0, 0%, 0%, 1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1500 1500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"), radial-gradient(circle at 61% 108%, hsla(234, 0%, 0%, 0) 25.633230731546536%, transparent 87.55654144926075%), radial-gradient(circle at 61% 108%, hsla(235, 100%, 2%, 1) 13%, transparent 80%), radial-gradient(circle at 61% 108%, hsla(235, 100%, 5%, 1) 29.296336053571462%, transparent 47.47840949819982%), radial-gradient(circle at 122% 69%, hsla(233, 100%, 7%, 1) 13%, transparent 143.11049113776315%), radial-gradient(circle at 127% -17%, hsla(234, 100%, 10%, 1) 13%, transparent 80%), radial-gradient(circle at 61% 108%, hsla(234, 100%, 12%, 1) 28.70549745056473%, transparent 102.39437944530196%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal;
}

.background {
  background-color: hsla(0, 0%, 0%, 1);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1500 1500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"), radial-gradient(circle at 61% 108%, hsla(234, 0%, 0%, 0) 25.633230731546536%, transparent 87.55654144926075%), radial-gradient(circle at 61% 108%, hsla(235, 100%, 2%, 1) 13%, transparent 80%), radial-gradient(circle at 61% 108%, hsla(235, 100%, 5%, 1) 29.296336053571462%, transparent 47.47840949819982%), radial-gradient(circle at 122% 69%, hsla(233, 100%, 7%, 1) 13%, transparent 143.11049113776315%), radial-gradient(circle at 127% -17%, hsla(234, 100%, 10%, 1) 13%, transparent 80%), radial-gradient(circle at 61% 108%, hsla(234, 100%, 12%, 1) 28.70549745056473%, transparent 102.39437944530196%);
  background-blend-mode: overlay, normal, normal, normal, normal, normal, normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f9fc;
  color: #333;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1; /* Mantiene las partículas detrás del contenido */
  background: #0f172a; /* Color base de fondo */
}

header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 5px;
    z-index: 1000;
}

nav {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 10px 15px;
    border-radius: 30px;
    display: inline-flex;
    justify-content: center;
    gap: 15px;
    margin: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 100;
    padding: 10px 15px;
    border: 2px solid #fff;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.70rem;
}

nav a:hover {
    background-color: #3f88c5;
    color: #fff;
    border-color: #3f88c5;
}

/* Media query para dispositivos móviles */
@media (max-width: 768px) {
    nav {
        padding: 5px 10px; /* Reduce el padding del nav */
        align-items: center; /* Centra los elementos */
    }

    nav a {
        font-size: 0.60rem; /* Reduce el tamaño de la fuente */
        padding: 8px 10px; /* Ajusta el padding de los enlaces */
        width: 100%; /* Ocupar el 100% del ancho */
        text-align: center; /* Centra el texto */
    }
}




section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
}

.proyecto {
  background-color: #262e40;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.proyecto img {
  width: 300px;
  height: auto;
  border-radius: 5px;
}

.proyecto-info {
  color: #fff; 
  flex: 1;
}

.proyecto-info p {
  padding: 20px;
}

.proyecto a {
  display: inline-flex;
  font-size: 12px;
  font-weight: 100;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background-color: #3f88c5;
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  border-radius: 5px;
}

.proyecto a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.proyecto a:hover {
  background-color: #2667a2;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  flex-shrink: 0;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(13, 59, 102, 0.7);
  border: none;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 1;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}



ul {
  list-style: none;
  padding-left: 0;
  columns: 2;
}

li {
  padding: 5px 0;
}

footer {
  background-color: #262e40;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.sobre-mi {
  height: 85vh;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
}

.perfil {
  text-align: center;
  margin-top: 10px;
}

.perfil p {
  font-size: 1.2rem; /* Tamaño más grande para destacar */
  line-height: 1.6; /* Mejor lectura */
  color: #fff; /* Gris oscuro, profesional */
  text-align: center; /* Centrado para que destaque */
  max-width: 700px; /* Limita ancho para que no se vea muy largo */
  margin: 40px auto; /* Separación arriba y abajo, centrado horizontal */
  font-weight: 500; /* Semi-bold para resaltar sin exagerar */
  letter-spacing: 0.5px; /* Pequeño espaciado entre letras */
}

.botones-perfil {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #262e40;
    color: white;
    border: 1px solid #0ea5e9;
}

.btn-primary:hover {
    background-color: #0284c7;
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0d3b66;
  margin-bottom: 20px;
}

.encabezado {
  text-align: center;
  margin-bottom: 20px;
}

.encabezado h1 {
  font-size: 48px;
  margin: 0;
  color: #fff;
}

.encabezado p {
  font-size: 20px;
  margin: 0;
  color: #aaa;
}

.contenido {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.texto {
  flex: 1;
  padding-right: 40px;
}

.texto h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.texto p {
  font-size: 18px;
  line-height: 1.6;
}

.foto {
  flex: 1;
  display: flex;
  justify-content: center;
}

.foto img {
  max-width: 300px;
  width: 100%;
  border-radius: 10px;
}

#habilidades {
  padding: 60px 20px;
  text-align: center;
}

#habilidades h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.habilidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
}

.habilidad {
  background-color: #262e40;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}

.habilidad img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.habilidad span {
  font-size: 0.8rem;
  font-weight: 200;
  color: #fff;
}

.habilidad:hover {
  transform: scale(1.1);
}

#contacto {
  text-align: center;
  padding: 60px 20px;
}

.contacto-iconos {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.contacto-iconos a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.contacto-iconos a:hover {
  transform: scale(1.2);
}

.contacto-iconos img {
  width: 40px;
  height: 40px;
  filter: invert(1);
  /* para cambiar de negro a blanco si es necesario */
}