body {
    margin: 0; 
    font-family: "Poppins", serif;
    background-color: aliceblue;
   
}

.section {
    display: flex;
    align-items: center;
    font-size: 32px;
    font-weight: bold;
    flex-direction: column;
   
}
.sobre-mi h3 {
    font-weight: 500;
}
.white p{
    color: #4E71AA;
    width: 100%;
    font-weight: 300;
    margin: 0;
    font-size: smaller;
}
.white h3, h4{
 margin: 10px 0;
}
/* HEADER */
header {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-40%);
    width: 170px;
    height: 60vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    transition: height 0.3s ease;
}

li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.4;
    transform: scale(0.9);
    cursor: pointer;
    white-space: nowrap;
}

a.active {
    font-size: 22px;
    font-weight: 600;
    opacity: 1;
    color: #4E71AA;
    transform: scale(1.2);
}


.contenedor{
    display: flex;
    width: 75%;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    margin: 0 auto;
    column-gap: 90px;
    
}

.section h3 + img{
    width: 110px;
    margin-top: -70px;
}

.white{
    display: flex;
    flex-wrap: wrap;
    width: 70vh;
}
.white img{
    width: 50px;
    margin: 10px auto;
}

.black{
   height: auto;
   width: 60vh;
   
}
.black img{
    width: 100%;
    height: auto;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 2%, black 60%),
    linear-gradient(to right, rgba(0, 0, 0, 0) 20%, black 60%);
    mask-image: linear-gradient(to top, rgba(252, 252, 252, 0) 1%, rgb(255, 255, 255) 25%),
    linear-gradient(to right, rgba(255, 255, 255, 0) 1%, rgb(255, 255, 255) 25%);
    -webkit-mask-composite: intersect;
    mask-composite: intersect;
    transition: filter 0.3s ease-in-out;
  
    
}
.black img:hover{
    filter: blur(5px); 
}
h1{
    margin: 20px;
    
}
#sobre-mi h2, #skills h2, #mis.trabajos h2{
   margin-bottom: -20px;
}

#sobre-mi{
    margin: 80px auto;
}
.contenedor-sobremi p{
    flex: 1; /* El texto ocupa el espacio restante */
    font-size: 18px;
    line-height: 1.6;
    color: #4E71AA;
    font-weight: 400px;
    text-align: center;
    width: 70%;
    margin: 0px auto;
}


/* card skills*/

.contenedor-skills{
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1150px;
}
.card-skills{
    flex: 1 1 calc(40% - 20px);
    max-width: 200px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    flex-wrap: wrap;
    justify-content: center;
    border: solid 1px black;
    flex-direction: column;
    align-content: center;
    padding: 10px;
    border-radius: 10px;
    margin: 10px;
    
}
.card-skills span{
    font-size:large;
}

.card-skills img{
    width: 40%;
    margin:10px auto;
}
.progress-bar {
    width: 60%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
}

.progress {
    height: 100%;
    width: 0;
    background: #4E71AA;
    transition: width 2s ease-in-out;
}

.percentage {
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* section trabajos*/
.container-trabajo {
    width: 70%;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px auto;
}

.trabajo-titulo {
    flex: 1 1 50%;
    min-width: 300px;
}

.section-header h2 {
    font-size: 1.2em;
    color: #333;
}

.section-header p {
    color: #555;
    font-size: 0.9em;
    font-weight: 200;
}

.section-header img {
    width: 150px;
    border-radius: 10px;
    flex: 0 1 auto;
    justify-content: center;
}

.grid-container {
    display: flex;
    flex-wrap: wrap; /* Permitir que las cards se envuelvan */
    justify-content: flex-start; /* Alinea las cards al inicio */
    gap: 15px;
}

.card {
    display: flex;
    flex-direction: row; /* Alinea la imagen y el contenido en fila */
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 5px;
    width: calc(50% - 20px); /* Dos cards por fila */
    box-sizing: border-box; /* Incluye padding y border en el ancho */
}

.card img {
    width: 100%;
    max-width: 250px;
    border-radius: 5px;
    height: auto;
}

.card-content {
    padding-left: 12px;
  

}

.card h3 {
    font-size: 1em;
    color: #333;
    margin: 0 0px 25px 0px;
}

.card p {
    color: #777;
    font-weight: 400;
    font-size: 0.7em;
}

/* formulario*/
#contacto {
    text-align: left;
    padding: 50px 20px;
    
    border-radius: 10px;
    width: 75%;
    margin: 0 auto;
    text-align: left;
    align-items: flex-start;
    text-align: center;
}

#contacto h2 {
    color: #4E71AA;
    margin: 1px auto;
}
#contacto p{
   text-align: left;
   width: 90%;
  margin-top: 20px;
  font-size: x-large;
  font-weight: 400;
 
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    align-items: flex-start;
    flex-wrap: wrap;

}

label {
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 0px solid #BFBDBA;
    border-radius: 5px;
    font-size: 18px;
    background-color: rgba(240, 240, 240, 0.901);
    box-shadow: 3px 4px 7px 0px rgb(144, 144, 144);
}

button {
    background: #4E71AA;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #3b5c8a;
}
#contacto h3{
  
    margin: 0 auto;
  
}
.formulario-texto{
    flex: 1;
    max-width: 50%;
    text-align: left;
   
}
.contenedor-formulario {
    display: flex;
        justify-content: space-around;
        gap: 40px;
        width: 100%;
        flex-wrap: wrap;
        flex-direction: row;
}





.carousel-container {
    width: 600px;
    overflow: hidden;
    position: relative;
    margin: auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* 3 imágenes */
}

.carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

/* Puntos indicadores */
.dots-container {
    text-align: center;
    margin-top: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #555;
}





@media (max-width: 1028px){
    .white{
       display: flex;
       margin-left: 0px;
       margin-bottom: 0px;
       justify-content: center;
       align-items: center;
      
    }
    p{
        text-align: center;
        font: 16px "Poppins", serif;
        margin: 0 auto;
    }
    .contenedor,.section, .contenedor-sobremi p{
        width: 90%;
        margin: 0 auto;
        height: auto;
    }
    header{
        display: none;
    }
    h4, .section-header h2{
        text-align: center;
    }
    h2 {
       display: none;
    }
    #sobre-mi, #skills{
        height: auto;
    }
    .card{
        display: flex;
        justify-content: space-around;
        flex-direction: column;
        align-content: center;
        align-items: center;
        width: 100%;
        text-align: center;
        font-size: 16px;

    }
    .card-content{
        padding: 0;
      
    }
    #contacto p{
        text-align: center;
       font-size: 1rem;
    }
   
    .formulario-texto {
        max-width: 100%;
        padding: 0;
    }
}

/*footer*/
footer {
    background-color: #1E2D40;
    color: #DFEBF2;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
  }
  
  .footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
  }
  
  .footer-links {
    margin-top: 10px;
  }
  
  .footer-links a {
    color: #DFEBF2;
    margin: 0 10px;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }