html{
    scroll-behavior: smooth;
}

body{
    background-color: #FAFCFE;
    overflow-x: hidden;
}

main {
    max-width: 1600px;
    margin: auto;
}

:root{
    --navy:      #021942;
      --navy-dark: #091428;
      --cyan:      #00AFEF;
      --cyan-dark: #0D67A5;
      --white:     #ffffff;
      --grey: #828181;
      --grey-tit: #3D3D3D;
}

/* HERO */

header{
    background-image: url("../images/clientes-hero.webp");
    background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  min-height: 420px;
  position: relative;
}

.hero{
    margin: 0px 10px;
    padding: 140px 10px 180px 10px;
}

.hero-content{
  max-width: 720px;
  margin: auto;
}


.hero-content div h1{
    color: var(--white);
    font-size: 36px;
    letter-spacing: 2px;
    font-weight: bolder;
    text-align: center;
    margin-bottom: 34px;
    line-height: 1;
}

.hero-content div h1 span{
    background: linear-gradient(135deg, #00AFEF 70%, #78CFEA 100%);
    -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p:first-of-type{
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--white);
    line-height: 1.5;
    text-align: center;
    margin-bottom: 34px;
}



.btn-relleno,
.btn-banner-cta{
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 12px 30px;
  border-radius: 16px;
  color: white;
  font-variant: small-caps;
  align-items: center;
    justify-content: center;
    max-width: 280px;
    transition: transform 0.25s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #0D67A5 70%, #00AFEF 100%);
}

.btn-relleno:hover,
.btn-banner-cta:hover{
  transform: translate(2px, -2px);
}

.ctas-hero{
      display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-top: 74px;
}

.btn-transparente{
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 8px 26px;
  border: 1px solid var(--cyan);
  border-radius: 16px;
  color: white;
  font-variant: small-caps;
  align-items: center;
    justify-content: center;
    max-width: 320px;
    transition: transform 0.25s ease;
    cursor: pointer;
}

.btn-transparente:hover{
  transform: translate(2px, -2px);
}

.hero-content hr{
    height: 1px;
    border: 1px solid #068bb36e;
}

.hero-content p:nth-child(4){
    color: white;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1.3;
    margin-top: 34px;
}


/* CAJA VALORES */

.secc-caja-valores{
  position: relative;
  z-index: 20;
  margin-top: -60px;
  display: flex;
    justify-content: center;
}

.caja-valores{
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--white);
  border-radius: 40px;
  padding: 36px 26px;
  box-shadow: 0 8px 24px rgba(110, 130, 145, 0.25);
  margin: 0 16px;
}

.caja-valores div{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.caja-valores div img{
  width: 54px;
  height: auto;
}

.caja-valores div p{
  color: var(--navy-dark);
  font-size: 34px;
  font-weight: bolder;
  line-height: 16px;
}

.caja-valores div p span{
  color: var(--grey);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 400;
  line-height: 0;
}


/* CARRUSEL */

.carrusel{
      max-width: 720px;
    margin: 84px auto 84px auto;
}

.carrusel-txt{
  color: var(--grey);
  font-size: 20px;
  letter-spacing: 2px;
  font-variant: small-caps;
  text-align: center;
}

:root {
      --logo-h: 32px;       /* altura en mobile */
      --item-gap: 40px;     /* espacio entre logos */
      --duration: 22s;      /* duración del loop — bajá para ir más rápido */
      --fade-w: 60px;       /* ancho del fade lateral */
    }

 .logos-section {
      width: 100%;
      padding: 16px 0 2em 0;
      overflow: hidden;
      position: relative;
    }
 
    /* Fades laterales */
    .logos-section::before,
    .logos-section::after {
      content: "";
      position: absolute;
      inset-block: 0;
      width: var(--fade-w);
      z-index: 2;
      pointer-events: none;
    }
    .logos-section::before {
      left: 0;
      background: linear-gradient(to right, var(--carousel-bg) 0%, transparent 100%);
    }
    .logos-section::after {
      right: 0;
      background: linear-gradient(to left, var(--carousel-bg) 0%, transparent 100%);
    }
 
    /* ─────────────────────────────────────────
       TRACK — animación CSS pura
    ───────────────────────────────────────── */
    .logos-track {
      display: flex;
      align-items: center;
      gap: var(--item-gap);
      width: max-content;
 
      /* pausa por defecto, JS activa cuando está en vista */
      animation: scroll-logos var(--duration) linear infinite;
      animation-play-state: paused;
    }
 
    .logos-track.is-playing {
      animation-play-state: running;
    }
 
    @keyframes scroll-logos {
      0%   { transform: translateX(0); }
      100% { transform: translateX(-50%); }
      /* 50% porque el track tiene 2 copias: al llegar al 50% reseteamos
         de forma invisible y el ojo no lo nota */
    }

    @media (min-width: 425px) {
        :root {
        --logo-h: 38px;
        --item-gap: 52px;
      }
    }

/* CLIENTES */


.clientes-div {
    display: flex;
    align-items: center;
    gap: 34px;
    background: #ffffff;
    padding: 44px 24px;
    box-shadow: 0 2px 20px rgb(0 0 0 / 20%);
    max-width: 1200px;
}

.izquierda{
    border-radius: 60px 0 0 60px;
    flex-direction: column;
}

.derecha{
    border-radius: 0 60px 60px 0;
    flex-direction: column-reverse;
}

.clientes-izquierda,
.clientes-derecha{
    margin-top: 84px;
}

.clientes-izquierda{
    display: flex;
    justify-content: flex-end;
}

.clientes-derecha{
    display: flex;
    justify-content: flex-start;
}

/* Logo */
.clientes-logo {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clientes-logo img {
    max-width: 160px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Contenido (flecha + texto) */
.clientes-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.clientes-arrow {
    display: flex;
}

.clientes-arrow div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #115A91;
}

.clientes-arrow i {
    color: #068AB3;
    font-size: 16px;
    transform: rotate(-45deg);
}

.clientes-txt h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3D3D3D;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.clientes-txt h2 span{
    font-size: 24px;
}

.clientes-txt p {
    margin: 0 0 12px 0;
    line-height: 1.6;
}

/* Subtítulo (primer <p>) en azul y bold */
.clientes-txt p:first-of-type {
    color: #0D67A5;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 34px;
}

/* Texto descriptivo (segundo <p>) */
.clientes-txt p:last-of-type {
    color: #3D3D3D;
    font-size: 0.98rem;
    text-align: justify;
    margin-bottom: 0;
}

@media (min-width: 768px) {

  /* HERO */

  .header {
    min-height: 520px;
  }

  .hero-content{
    margin: 0 44px;
  }


  .ctas-hero{
    flex-direction: row;
    justify-content: center;
    margin-top: 64px;
  }

  .hero-content p:first-of-type,
  .hero-content div h1{
    text-align: left;
  }

  /* CAJA DE VALORES */

.caja-valores{
  flex-direction: row;
    padding: 26px 64px;
    max-width: 800px;
}

/* CARRUSEL */
:root {
        --logo-h: 44px;
        --item-gap: 64px;
        --fade-w: 80px;
      }
    
    /* CLIENTES */



    .clientes-div {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        padding: 48px;
    }


    .clientes-logo {
        width: 280px;
    }

    .clientes-logo img {
        max-width: 220px;
    }

    .clientes-content {
        flex: 1;
    }

    .clientes-txt h2 {
        font-size: 1.85rem;
    }

    .clientes-txt p:first-of-type {
        font-size: 1.1rem;
    }

    .clientes-txt p:last-of-type {
        font-size: 1rem;
        text-align: left;
    }

    .izquierda{
        margin-left: 34px;
    }

    .derecha{
        margin-right: 34px;
    }
}



@media (min-width: 1024px) {

  /* HERO */

  .header {
    min-height: 620px;
  }

  .hero{
    padding: 200px 10px 180px 0px;
        max-width: 800px;
        margin: auto;
}

  .hero-content h1,
  .hero-content p:first-of-type,
  .hero-content div p:first-of-type{
    text-align: left;
  }

  .ctas-hero{
    justify-content: left;
    padding-bottom: 80px;
  }

  .hero-content {
    margin: 0;
  }

  /* CARRUSEL */

:root {
        --logo-h: 52px;
        --item-gap: 80px;
        --fade-w: 100px;
      }

/* CLIENTES */

.clientes-txt h2 {
        font-size: 2rem;
    }
.clientes-content{
    flex-direction: row;
}

.clientes-div{
    padding: 84px 64px;
    gap: 64px;
}

.izquierda{
    padding-right: 84px;
}

.derecha{
    padding-left: 84px;
}
}


@media (min-width: 1440px) {

  /* HERO */

  .header {
    min-height: 720px;
  }

}

@media (prefers-reduced-motion: reduce) {
      .logos-track { animation: none !important; }
    }