

.section-proyectos{
    background-image: url();
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position:relative;
    z-index: 1;
    padding-top: 150px;

    display: flex;

    align-items: center;

    &::before{
        content:'';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: -1;

      }
      .content{
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;

        h2{
            width: 90%;
            font-size: 50px;
            text-transform: uppercase;
            letter-spacing: -1px;
            line-height: 1.1;
            font-weight: 800;
          
            text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
            color: var(--color-light);
            text-align: center;
        }

       .container-proyectos{


          display: flex;
          justify-content: flex-start;
          align-items: center;
          margin-top: 50px;
          width: 90%;

          overflow-x: hidden;
          scroll-snap-type: x mandatory;
          scroll-behavior: smooth;
            position: relative;

    
            .proyectos{

            
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 20px;

                transition: transform 0.3s easy-in-out;
                flex: 0 0 100%;
                scroll-snap-align: center;

                .quote-icon{
                    width: 50px;
                    height: 50px;
                }

                p{
                   text-align: center;
    
    /* Usa clamp() para un tamaño de fuente adaptable */
    font-size: clamp(16px, 3.5vw, 28px);
    
    width: 90%; /* Da al texto un ancho más generoso */
    margin: 0 auto; /* Centra el párrafo dentro de su contenedor */
    line-height: 1.5;
    color: #aaa;
                }

                img{
                    width: 260px;
                    height: 260px;
                    border-radius: 999px;
                    object-fit: cover;

                }

                h3{
                    color: var(--color-primary);
                    font-size: 28px;
                }

            }
        }

         .carousel-wrapper{

             position: relative;
    /* El ancho se adapta al 100% de su contenedor padre (.content) */
    width: 100%;
    /* Oculta cualquier cosa que se desborde del contenedor. */
    overflow: hidden;

          .btn-carousel{
              border: 1px solid var(--color-primary);
              background: none;
              width: 50px;
              height: 50px;
              border-radius: 999px;
              display: flex;
              justify-content: center;
              align-items: center;
              font-size: 24px; 
              cursor: pointer;
              position: absolute;
              transform: background-color 0.3s;

              top: 50%;
              transform: translateY(-50%);

              i{
                  font-size: 18px;
                  color: var(--color-primary);
              }

              &.btn-prev{
                  left: 0;
              }

              &.btn-next{
                  right: 0;
              }

              &:hover{
                  background-color: var(--color-primary);
                  i{
                      color: var(--color-light);
                  }

              }


          }
      }


    }
}
.hero-banner > div {
    display: flex;
    flex-direction: row;
    gap: 100px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-banner > div {
        flex-direction: column;
        gap: 30px;
    }
}
.hero-banner{
    background-image: url(../pictures/Fondo.jpg);
    background-size: cover;
    background-position: center;
    height: 100vh;
    background-attachment: fixed;
    position: relative;

    display: flex ;
    align-items: center;
    z-index: 1;

    &::before{
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

  

    .content{
        flex:1;
        display: flex;
        flex-direction: column;
        gap: 15px;

        h1{
            width: 90%;
            font-size: 60px;
            text-transform: uppercase;
            letter-spacing: -1px;
            line-height: 1.1;
            font-weight: 800;
            text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
            color: var(--color-primary);

            span{
                color: var(--color-primary);
            }
        }

        p{
            font-size: 18px;
            line-height: 1.5;
            color: var(--color-light);
        }
    }

    .container-image{
     	 right: -40px;
        flex: 1;
        position: relative;
        margin-top: 50px;

        .main-image{
            width: 75%;
            height: 75%;
            object-fit: cover;
            border-radius: 999px;
        }
        .banner-image1, .banner-image2{
            position: absolute;
            width: 170px;
            height: 170px;
            object-fit: cover;
            border-radius: 999px;
            border: 7px solid var(--color-light);
        }

        .banner-image2{
            bottom:10%;
            left: -16%;
            transform: translateY(-50%);
        }

        .banner-image1{
            top:25%;
            right: 8%;
            transform: translateY(-50%);
        }

    }

}

.section-idiomas .content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .section-idiomas .content h2 {
    text-align: center;
    width: 60%;
    font-size: 40px !important;
  }
  
  .section-idiomas .container-tabs {
    margin: 60px 0;
    background-color: #363837;
    padding: 20px 40px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .section-idiomas .container-tabs button {
    background: none;
    border: none;
    color: var(--color-secondary);
    font-weight: 700;
    font-size: 14px;
    position: relative;
    cursor: pointer;
  }
  .section-idiomas .container-tabs button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background-color: var(--color-secondary);
  }
  
  .section-idiomas .container-tabs button:last-child::after {
    display: none;
  }
  
  .section-idiomas .container-tabs button.active {
    color: var(--color-secondary);
  }
  
  .section-idiomas .container-idiomas {
    display: none;
    grid-template-columns: repeat(1, 1fr);
    gap: 50px;
    width: 65%;
  }
  
  .section-idiomas .container-idiomas.active {
    display: grid;
  }
  
  .section-idiomas .container-idioma {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .section-idiomas .info-idioma {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .section-idiomas .info-idioma .row {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .section-idiomas .info-idioma .row h3 {
    color: var(--color-primary);
    font-size: 20px;
    text-transform: uppercase;
  }
  
  .section-idiomas .info-idioma .row .divider {
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
  }
  
  .section-idiomas .info-idioma .row span {
    background-color: var(--color-primary);
    color: var(--color-light);
    font-size: 15px;
    font-weight: 800;
    padding: 5px 25px;
    border-radius: 999px;
    text-align: center;
  }
  
  .section-idiomas .info-idioma .row p {
    font-size: 18px;
  }

  .section-idiomas .content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .section-idiomas .container-idiomas {
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
  }
  
  .section-idiomas .container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
  }

  .section-idiomas .content {
    min-height: 600px; 
    transition: all 0.3s ease;
  }
  
  .container-idioma:empty {
    display: none;
  }

/* EXPERIENCIA LABORAL */


.box-experiencia{
    background-color: var(--color-light);
    padding-top: 100px;
    padding-bottom: 100px;
}

.tab:hover{
 color: #fff !important;
}

#experiencia_laboral {
    background-color: var(--color-light);
    width: 50%;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    margin: 0 auto !important;

    h3{
        padding-bottom: 50px;
        font-size: 50px !important;
        text-transform: uppercase;
    }
  }
  
  #experiencia_laboral h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--color-primary, #00c9a7);
  }

  #experiencia_laboral ul{
    padding-top: 20px;
    li{
        margin-left: 50px;
        padding: 10px;
    }

  }

  .accordion-header button{

    font-size: 25px;
    text-transform: uppercase;

  }
  
  .accordion {
    
    align-items: center;
    background-color: #1e1f22;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  


  .accordion-item + .accordion-item {
    border-top: 1px solid #333;
  }
  
  .accordion-button {
    width: 100%;
    background-color: #2c2d31;
    color: #fff;
    text-align: left;
    padding: 20px;
    font-size: 18px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
  }
  
  .accordion-button::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 22px;
    transition: transform 0.3s ease;
  }
  
  .accordion-button[aria-expanded="true"] {
    background-color: var(--color-primary, #00c9a7);
    color: #111;
  }
  
  .accordion-button[aria-expanded="true"]::after {
    content: '−';
    transform: rotate(180deg);
  }
  
  .accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: #25262a;
  }
  
  .accordion-collapse.show {
    max-height: 300px; /* ajusta según contenido */
  }
  
  .accordion-body {
    padding: 20px;
    line-height: 1.6;
    color: #ddd;
  }
  
  .aviso{
    padding-top: 100px;
    color: var(--color-primary);
    text-shadow: #000;
   
  }
 

  /* Contacto*/

  .contact-section {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.contact-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: calc(100% - 12px);
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="currentColor" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    background-size: 12px;
    padding-right: 30px;
}

.form-group button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.form-group button:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}

.success-message {
    color: green;
    font-size: 0.9em;
    margin-top: 5px;
}

header{

  button{
    background:#1AAB8A;
    color:#fff;
    border:none;
    position:relative;
    height:60px;
    font-size:1.6em;
    padding:0 2em;
    cursor:pointer;
    transition:800ms ease all;
    outline:none;
    border-radius: 999px;
  }
  button:hover{
    background:#fff;
    color:#1AAB8A;
  }
  button:before,button:after{
    content:'';
    position:absolute;
    top:0;
    right:0;
    height:2px;
    width:0;
    background: #1AAB8A;
    transition:400ms ease all;
    
  }
  button:after{
    right:inherit;
    top:inherit;
    left:0;
    bottom:0;
    border-radius: 999px;
  }
  button:hover:before,button:hover:after{
    width:100%;
    transition:800ms ease all;
  }
}

/* IDIOMAS */

.language-selector {
  display: flex;
  gap: 10px; /* Espacio entre los botones */
  align-items: center; /* Alineación vertical */
}

.language-mobile {
  display: none;
}

.language-selector button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.language-selector img {
  vertical-align: middle; /* Alineación vertical de la imagen dentro del botón */
}

/* RESPONSIVE */

@media (max-width: 900px) {
  
    .banner-image1, .banner-image2 {
            position: absolute;
            width: 125px !important;
            height: 125px !important;
            object-fit: cover;
            border-radius: 999px;
            border: 7px solid var(--color-light);
        }
nav {
        display: none;
    }
    .language-desktop {
        display: none; /* Oculta el selector de escritorio en móvil */
    }
    .language-mobile {
        display: flex; /* Muestra el selector móvil dentro del menú responsivo */
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
}

  .hero-banner{
    height: auto;
    padding-top: 140px;

    .content{
      h1{
        font-size: 30px;
      }

      p{
        font-size: 16px;

      }

      .container-button{
        margin-top: 20px;
      }
    }
    .container-image{
      padding: 0 20px;
      height: 600px;

      margin-top: 0;

      .main-image{
        height: 100%;

      }
      banner-image1, banner-image2{
        width: 100px;
        height: 100px;
        border-width: 4px;
      }
      banner-image1{
        bottom: 10%;
        left: -2%;
        transform: translateY(-50%);
      }
      banner-image2{
        right: 10%;
        top: 25%;
        transform: translateY(-50%) translateX(50%);
      }
      
    }
  }
  .section-proyectos .container-proyectos {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .section-proyectos .proyectos {
    flex: 0 0 90%; /* Cada item ocupa el 90% del ancho del viewport */
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .section-proyectos .proyectos img {
    width: 180px;
    height: 180px;
  }

  .section-proyectos .proyectos p {
    font-size: 16px;
    width: 100%;
  }

  .section-proyectos .carousel-wrapper .btn-carousel {
    display: none; /* Oculta los botones en móviles */
  }

  .section-proyectos .content h2 {
    font-size: 32px;
  }

.container {
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
    max-width: 1200px; /* Limita el ancho máximo para pantallas grandes */
    margin: 0 auto; /* Centra el contenedor principal */
    padding: 0 1rem; /* Añade un poco de espacio en los bordes para móviles */
}

.content {
    /* Si existe, asegúrate de que se adapte */
    width: 100%;
}