/* --- ANIMACIONES SCROLL --- */

/* Esto asegura que el "aterrizaje" del scroll sea elegante */
#saxun-formulario {
  scroll-margin-top: 110px; /* Un poco más que la altura de tu sticky */
}

/* Forzamos el smooth por si falla el JS en algún navegador antiguo */
html {
  scroll-behavior: smooth;
}

    .sxn-animate {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
    .sxn-animate.sxn-visible {
      opacity: 1;
      transform: translateY(0);
    }
    
    /* Retrasos en cascada para los elementos del grid (iconos) */
    .delay-1 { transition-delay: 0.1s; }
    .delay-2 { transition-delay: 0.2s; }
    .delay-3 { transition-delay: 0.3s; }
    .delay-4 { transition-delay: 0.4s; }
    .delay-5 { transition-delay: 0.5s; }
    .delay-6 { transition-delay: 0.6s; }
    /* -------------------------- */


    #saxun-b2b-landing {
      font-family: Arial, Helvetica, sans-serif; /* Heredará la fuente de la web principal si se elimina */
      color: #333;
      line-height: 1.5;
    }
    
    #saxun-b2b-landing img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    .sxn-b2b-btn {
      display: inline-block;
      padding: 15px 30px;
      text-transform: uppercase;
      font-weight: bold;
      text-decoration: none;
      border: 2px solid #fff;
      color: #fff;
      background: transparent;
      cursor: pointer;
      transition: background 0.3s, color 0.3s;
          width: max-content;
              text-shadow: 2px 2px 2px #00000052;
    }

    .sxn-b2b-btn:hover{
      background-color: white;
      color: black;
          text-shadow: none;
    }

    .sxn-b2b-btn-solid {
       background: #006579;
    border-color: #006579;
    color: #22c3d8;
        text-shadow: none;
    }

    .sxn-b2b-btn-solid:hover{
      background: #22c3d8;
    border-color: #22c3d8;
    color: #006579;
    }

    /* BLOQUE 1: Hero */
    .sxn-b2b-hero {
      position: relative;
      height: 100vh;
      min-height: 600px;
      /* La imagen del hero se inyecta desde el HTML, pero la estructura va aquí */
      background-size: cover;
      background-position: center;
      display: flex;
      align-items: center;
      padding: 50px 6.5%;
      color: #fff;
    }
    .sxn-b2b-hero-overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.3); /* Ligero oscurecimiento para legibilidad */
      z-index: 1;
    }
    .sxn-b2b-hero-content {
      position: relative;
      z-index: 2;
      max-width: 800px;
    }
    .sxn-b2b-hero-logo {
      position: absolute;
      top: 40px;
    left: 6.5%;
      z-index: 3;
      width: 150px;
    }
    .sxn-b2b-hero h1 {
      font-size: 3.5rem;
      font-weight: 300;
      margin-bottom: 20px;
      line-height: 1.1;
    }
    .sxn-b2b-hero p {
      font-size: 1.2rem;
      margin-bottom: 40px;
    }

    /* CABECERA STICKY (Aparece bajo el bloque 1 y se pega al top) */
    .sxn-b2b-sticky-nav {
      position: sticky;
      top: 0;
      background: #fff;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 6.5%;
      box-shadow: 0 4px 6px rgba(0,0,0,0.05);
      z-index: 1000;
    }
    .sxn-b2b-sticky-logo img { width: 150px; }
    .sxn-b2b-sticky-actions {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .sxn-b2b-lang-selector {
      font-weight: bold;
      cursor: pointer;
    }

    /* Estilos para el selector de idiomas */
.sxn-b2b-lang-dropdown {
  position: relative;
  font-family: sans-serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 0;
}

.sxn-b2b-lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #333;
  text-transform: uppercase;
}

.sxn-icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* El listado de idiomas (oculto por defecto) */
.sxn-b2b-lang-list {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  min-width: 60px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.sxn-b2b-lang-list li a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.sxn-b2b-lang-list li a:hover {
  background: #f5f5f5;
  color: #146c78;
}

/* Mostrar al hacer hover */
/* Nuevo estado cuando está abierto (por clase) */
.sxn-b2b-lang-dropdown.is-open .sxn-b2b-lang-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sxn-b2b-lang-dropdown.is-open .sxn-icon-arrow {
  transform: rotate(180deg);
}

/* Mantenemos el hover para escritorio por comodidad, pero el click mandará */
@media (min-width: 992px) {
  .sxn-b2b-lang-dropdown:hover .sxn-b2b-lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .sxn-b2b-lang-dropdown:hover .sxn-icon-arrow {
    transform: rotate(180deg);
  }
}

/* Fuerza la visibilidad cuando la clase is-open está activa */
.sxn-b2b-lang-dropdown.is-open .sxn-b2b-lang-list {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Evita que otros elementos de la web tapen el menú */
.sxn-b2b-sticky-nav {
  overflow: visible !important;
  z-index: 9999 !important; /* Valor alto para estar sobre todo */
}

.sxn-b2b-lang-list {
  display: block !important; /* Asegura que no haya un display: none heredado */
  pointer-events: all;
}

/* Ajuste para el sticky nav para que no corte el dropdown */
.sxn-b2b-sticky-nav {
  overflow: visible !important;
}

    /* BLOQUE 2: Intro */
    .sxn-b2b-intro {
      display: flex;
      flex-wrap: wrap;
      padding: 80px 6.5%;
      gap: 50px;
      align-items: center;
    }
    .sxn-b2b-intro-img { flex: 1; min-width: 600px; }
    .sxn-b2b-intro-text { flex: 1; min-width: 300px; }
    .sxn-b2b-intro-text h2 {
      font-size: 2.5rem;
      font-weight: 300;
      margin-bottom: 20px;
    }
    .sxn-b2b-intro-text strong {
      display: block;
      margin-bottom: 15px;
      font-size: 1.1rem;
    }

    /* BLOQUE 3: Banner central */
    .sxn-b2b-banner {
   
      background-size: cover;
      background-position: center;
      padding: 100px 6.5%;
      color: #fff;
          min-height: 77vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    }
    .sxn-b2b-banner h2 {
      font-size: 2.5rem;
      font-weight: 300;
      max-width: 800px;
      margin-bottom: 40px;
          text-shadow: 2px 2px 2px #00000052;
    }

    /* BLOQUE 4: Beneficios */
    .sxn-b2b-benefits {
    position: relative;
    background-color: #6ec3be;
    color: #0b454d;
    padding: 100px 6.5% 100px;
    text-align: center;
    /* margin-top: 60px; */
    overflow: hidden;
    }

    .sxn-b2b-benefits-header { 
      max-width: 800px;
       margin: 0 auto 60px; 
    }
    .sxn-b2b-benefits-header h2 { 
      font-size: 3rem; 
          margin-bottom: 45px;
      color:#6ec3be;
     }
    .sxn-b2b-benefits-header p { 
      color:#6ec3be;
     }
    .sxn-b2b-benefits-header h3 {
       font-size: 3.5rem;
    font-size: 3rem;
    font-weight: 300;
    margin-top: 16rem;
    margin-bottom: 5rem;
    color: #006579;
      }
    
    .sxn-b2b-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      max-width: 1000px;
      margin: 0 auto;
    }
    .sxn-b2b-grid-item {
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .sxn-b2b-grid-item img {
          width: 115px;
      height: 60px;
      margin-bottom: 15px;
    }
.sxn-b2b-grid-item p {
    color:#006579;
}

    /* El Semicírculo */
.sxn-b2b-benefits::before {
content: "";
    position: absolute;
    top: calc(-87vw + 22%);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* height: 100%; */
    background-color: #006579;
    border-radius: 100%;
    z-index: -1;
    aspect-ratio: 1 / 1;
    z-index: 1;
    display: block;
}

/* Ajuste para que la sección anterior (el banner) no corte el arco */
.sxn-b2b-banner {
  position: relative;
  z-index: 2;
}

.sxn-b2b-benefits-header { 
  position: relative;
  z-index: 3;
  max-width: 800px; 
  margin: 0 auto 60px; 
}

    /* CARROUSELES COMUNES (Estructura base) */
    .sxn-b2b-carousel-section {
      padding: 80px 6.5%;
      text-align: center;
    }
    .sxn-b2b-carousel-title {
    font-size: 3.5rem;
    font-weight: 300;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 6rem;
    max-width: 1143px;
    }
    .textgg{
          margin-top: -5rem;
    text-align: center;
    margin-bottom: 5rem;
    }
    .sxn-b2b-carousel-wrapper {
      position: relative;
      overflow: hidden;
    }
    .sxn-b2b-carousel-track {
      display: flex;
      transition: transform 0.3s ease;
    }
    .sxn-b2b-slide {
      min-width: 100%;
      box-sizing: border-box;
    }

    /* BLOQUE 5: Ecosistema (Slide específico) */
    .sxn-b2b-ecosystem-slide {
      display: flex;
      flex-wrap: wrap;
      text-align: left;
      gap: 40px;
      align-items: center;
      padding: 0 6.5%;
    }
    .sxn-b2b-ecosystem-img { flex: 1; min-width:600px; }
    .sxn-b2b-ecosystem-text { flex: 1; min-width: 300px;     max-width: 557px;}
    .sxn-b2b-ecosystem-text h3 {
      
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: bold;

    }

    .sxn-b2b-ecosystem-img img{ 
      
width: 100%!important;
     }

    .sxn-b2b-ecosystem-text ul {
      list-style: none;
      padding: 0;
      margin-top: 20px;
    }
    .sxn-b2b-ecosystem-text ul li {
      position: relative;
      padding-left: 20px;
      margin-bottom: 10px;
    }
    .sxn-b2b-ecosystem-text ul li::before {
      content: '•';
      color: #83b9b7;
      position: absolute;
      left: 0;
      font-size: 1.5rem;
      line-height: 1;
    }

    

    /* BLOQUE 6: Formulario */
    .sxn-b2b-form-section {
      background: #f5f5f5;
      padding: 80px 6.5%;
      display: flex;
      justify-content: center;
    }
    .sxn-b2b-form-container {
      background: #fff;
      padding: 50px;
      width: 100%;
      max-width: 800px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    .sxn-b2b-form-container h2 {
      text-align: center;
      font-weight: 300;
      font-size: 2rem;
      margin-bottom: 10px;
    }
    .sxn-b2b-form-container p {
      text-align: center;
      color: #666;
      margin-bottom: 40px;
    }
    .sxn-b2b-form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .sxn-b2b-input-full { grid-column: 1 / -1; }
    .sxn-b2b-form-container input, .sxn-b2b-form-container textarea {
      width: 100%;
      padding: 15px;
      border: 1px solid #ddd;
      background: #f9f9f9;
      box-sizing: border-box;
    }
    .sxn-b2b-form-container textarea { height: 120px; resize: none; }
    .sxn-b2b-form-submit {
      background: #333;
      color: #fff;
      border: none;
      padding: 15px 40px;
      cursor: pointer;
      margin-top: 20px;
      font-weight: bold;
    }

    /* BLOQUE 7: Tipos de proyecto */
    .sxn-b2b-projects-slide {
      position: relative;
     /* padding: 0 6.5%;*/
    }
    .sxn-b2b-projects-box {
 background-color: #6fc1bd;
    color: #126378;
    padding: 49px;
    position: absolute;
    bottom: -20px;
    right: 6.5%;
    width: 46%;
    text-align: left;
    }

    .sxn-b2b-projects-box h3{
    font-weight: bold;
    font-size: 2.2rem;
    margin-bottom: 10px;
    }

    .sxn-rarr img{
        width: 75% !important;
    margin-top: 0rem;
    /* margin-bottom: 1rem; */
    padding-bottom: 3rem;
    }
   

    /* BLOQUE 8: CTA */
    .sxn-b2b-cta {
      background: #f0f0f0;
      padding: 80px 6.5%;
      text-align: center;
    }
    .sxn-b2b-cta h2 { font-size: 2.5rem; font-weight: 300; margin-bottom: 20px; }
    .sxn-b2b-cta p { max-width: 700px; margin: 0 auto 40px; }

    /* BLOQUE 9: Testimoniales */
    .sxn-b2b-testimonials {
      display: flex;
      flex-wrap: wrap;
    }
    .sxn-b2b-testi-left {
         background: #6ec3be;
         color: #006579;
      flex: 1;
      padding: 120px 6.5%;
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 300px;
    }
    .sxn-b2b-testi-left h2 {
       font-size: 4rem; 
       font-weight: 300; 
       margin-bottom: 20px;
       }

    .sxn-b2b-testi-right {
      background: #006579;
      color: #fff;
      flex: 1.5;
      padding: 80px 6.5%;
      min-width: 300px;
    }
    .sxn-b2b-quote {
      font-size: 1.2rem;
      line-height: 1.6;
      margin-bottom: 30px;
          color: #6ec3be;
    }
    .sxn-b2b-author {
      display: flex;
      align-items: center;
      gap: 15px;
          color: #6ec3be;
    }
    .sxn-b2b-author img {
      width: 60px;
      height: 60px;
      border-radius: 50%;
    }

.separador_altura_001{
height: 130px;
}


    .testigosnew{
    /* max-width: 1400px; */
    margin: 0 6.5%;
    /* padding: 0px 20px; */
    display: flex;
            position: relative;
        z-index: 3;
            margin-bottom: 2rem;
  }
  
  .testigosnew .textos{
  background-color: #6fc1bd;
  color: #126378;
  width: 55%;
  display: flex;
  align-items: center;
  padding: 70px;
  }
  
  .testigosnew .textos .contenedor{
  
  }
  
  .testigosnew .textos h2{
  font-size: 80px;
  margin-bottom: 12px;
  }
  
  .testigosnew .textos p{

  font-style: normal;
  font-weight: normal;
  line-height: 30px;
  max-width: 500px;
  }
  
  .testigosnew .testis{
    color: #6fc1bd;
    background-color: #126378;
  width: 45%;
  padding: 30px;
  display: flex;
  align-items: center;
  }
  
  .testigosnew .testis .contenedor{
    
  }
  
  .testigosnew .testis .cometes{
    
  }
  
  .testigosnew .testis .cometes img{
  width: 48px;
  }
  
  .testigosnew .testis .coment{
  padding: 29px 20px;
  }
  
  .testigosnew .testis .coment h3{

  
  }
  
  .testigosnew .testis .foto{
  padding: 0px 22px;
  display: flex;
  align-items: center;
  }
  
  .testigosnew .testis .foto img{
  width: 86px;
  border-radius: 49px;
  margin-right: 15px;
  }
  
  .testigosnew .testis .foto p{
  margin-bottom: 0px;
  }
  
  .testigosnew .testis .foto p br{
    display: none;
  }
  
  .testigosnew .testis .foto p span{

  margin-left: 9px;
      margin-left: 6px;
    opacity: 0.5;
  }

  .fragblanc {
    padding: 6.5%;
    text-align: center;
    margin-bottom: 2rem;
}

  .fragblanc >div{
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 3.2rem;
  }

      @media (max-width: 1700px) {
      .sxn-b2b-benefits::before {
      top: calc(-83vw + 22%);
      }
      }

            @media (max-width: 1500px) {
        .testigosnew .textos h2 {
    font-size: 62px;
    margin-bottom: 7px;
    }

.fragblanc >div {
    font-size: 2.5rem;
}

  }


        @media (max-width: 1250px) {
      .sxn-b2b-benefits::before {
       top: calc(-76vw + 22%);
      }
      }

             @media (max-width: 1200px) {

  .separador_altura_001 {
  height: 100px;
  }

        .testigosnew .testis {
    width: 50%;
  }

  .testigosnew .textos {
  width: 50%;
  }

  .testigosnew .testis .cometes img {
  width: 31px;
  }

  .testigosnew .testis .coment h3 {

  font-size: 21px;
  line-height: 27px;
  }

}

      @media (max-width: 1090px) {
    .sxn-b2b-benefits::before {
                  top: calc(-91vw + 22%);
        width: 118%;

    }
}
  
@media (max-width: 991.98px){ 

  .fragblanc >div {
    font-size: 2rem;
}

  .sxn-rarr img {
    width: 100% !important;
      padding-bottom: 0rem;
  }

  .sxn-b2b-carousel-title {
    font-size: 2.9rem;
  }

     .testigosnew .textos {
    padding: 25px;
    }

    .testigosnew .textos h2 {
      font-size: 43px;
      margin-bottom: 15px;
      font-weight: bold;
      }
  
      .testigosnew .textos p {
      line-height: 23px;
      max-width: 100%;
    }
  
    .testigosnew .testis {
      padding: 15px;
    }
  
    .testigosnew .testis .coment h3 {
    font-size: 21px;
    line-height: 35px;
    line-height: 28px;
  }

    .sxn-b2b-benefits::before {
                 top: calc(-87vw + 22%);
            width: 118%;
    }

      .separador_altura_001 {
  height: 75px;
  }


  }

   @media (max-width: 767.98px){

    .sxn-b2b-form-container {

    padding: 18px;
    }

    .sxn-b2b-carousel-section {
    padding: 50px 6.5%;
    }

    .sxn-b2b-carousel-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    }

    .textgg {
    margin-top: -1rem;
    margin-bottom: 3rem;
  }

      .separador_altura_001 {
  height: 50px;
  }

      .testigosnew {
    display: block;
    }
  
    .testigosnew .textos {
    width: 100%;
    }
  
    .testigosnew .testis {
      width: 100%;
    }

    .sxn-b2b-benefits::before {
    top: calc(-102vw + 22%);
    width: 121%;
    }

    .sxn-b2b-benefits-header h3 {
    margin-top: 15rem;
    }


      .sxn-b2b-form-grid { grid-template-columns: 1fr; }
      .sxn-b2b-projects-box {       position: relative;
        right: auto;
        bottom: auto;
        margin-top: -43px;
        width: 95%;
        padding: 26px;}

        .sxn-b2b-projects-box h3 {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1px;
}

      .sxn-b2b-intro {
      padding: 40px 6.5%;
              gap: 24px;
      }

      .sxn-b2b-intro-text h2 {
    font-size: 2rem;
      }

      .sxn-b2b-intro-img {
    flex: 1;
    min-width: 600px;
    min-width: 100%;
  }

        .sxn-b2b-intro-img  img{
          width: 100% !important;
        }

      .sxn-b2b-benefits-header h2 {
      font-size: 2.5rem;
      margin-bottom: 25px;
      }

      .sxn-b2b-benefits {
    padding: 47px 6.5% 100px;
      }


    }

@media (max-width: 620px){
        .sxn-b2b-benefits::before {
        top: calc(-102vw + 18%);
        width: 121%;
    }
  }

@media (max-width: 575.98px){

  .fragblanc >div {
    font-size: 1.5rem;
}

  .sxn-b2b-form-submit {
    padding: 9px 34px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 0.9rem;
  }

      .sxn-b2b-projects-box {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -25px;
        width: 100%;
        padding: 20px 15px;
    }

   .testigosnew .textos h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
    }
  
    .testigosnew .textos p {
    line-height: 23px;
    max-width: 100%;
    margin: 0px;
    padding: 0px;
    }

  .sxn-b2b-banner h2 {
    font-size: 2rem;
  }

      .sxn-b2b-benefits::before {
               top: calc(-107vw + 11%);
        width: 173%;
    }

        .sxn-b2b-benefits-header h2 {
        font-size: 2rem;
        }

.sxn-b2b-benefits-header h3 {
    font-size: 2rem;
    font-weight: 300;
            margin-top: 11rem;
    margin-bottom: 1rem;

}

.sxn-b2b-grid-item p {
          color: #006579;
        font-size: 1.1rem;
        max-width: 69%;
}

  .sxn-b2b-sticky-actions {
  width: 100%;
  justify-content: space-between;
  }

  .sxn-b2b-sticky-logo{
    display: none;
  }

  #saxun-b2b-landing img {
  width: 136px;
  }

  .sxn-b2b-intro-img img{
    width: 100%;
  }

  .sxn-b2b-hero h1 {
  font-size: 2.5rem;
  }

  .sxn-b2b-hero p {
  font-size: 0.9rem;
  margin-bottom: 25px;
  }

  .sxn-b2b-btn{
        font-size: 0.8rem;
  }

}