.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;
}

header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    padding: 10px 20px;
    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.75rem;
}

nav a:hover {
    background-color: #3f88c5;
    color: #fff;
    border-color: #3f88c5;
}



section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
}

.proyecto {
    background-color: rgba(255, 255, 255, 0.1);
    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 a {
    display: inline-block;
    margin-top: 10px;
    background-color: #3f88c5;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.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: rgba(255, 255, 255, 0.1);
    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;
}

.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: rgba(255, 255, 255, 0.1);
  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 */
}
