body{
    overflow-x: hidden;
}

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

:root {
  --verde-insitucional: #2FAD39;
  --verde-oscuro: #031F06;
  --grey-textos: #141321;
}


/* HERO */

.header-bck{
  background-color: #131321;
}

.header {
  position: relative;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
  background-color: #131321;
}

.header-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, #141321 0%, rgb(20 19 33) 35%, rgba(20, 19, 33, 0) 100%);
  z-index: 1;
}

.hero{
    margin: 0px 10px;
    padding: 160px 10px 80px 10px;
    position: relative;
  z-index: 2;
}

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

h1{
    color: var(--verde-insitucional);
    font-variant: small-caps;
    font-size: 22px;
    letter-spacing: 2px;
}

.tit-hero{
    color: white;
    font-size: 36px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 16px;
}

.hero-txt{
    color: white;
    font-size: 16px;
    letter-spacing: 2px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 44px;
}

.hero-txt strong{
  font-weight: 400;
}

.puv-hero li p{
    font-size: 14px;
    letter-spacing: 2px;
    color: white;
    font-weight: 400;
}

.puv-hero{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 24px 0 44px 0;
}

.puv-hero li{
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-shield,
.icon-documento {
  color: #12B82E;
  width: 20px;
  height: 20px;
}

.icon-shield svg,
.icon-documento svg {
  display: block;
  width: 100%;
  height: 100%;
}

.icon-arrow {
  display: inline-flex;
  align-items: center;
}

.icon-arrow-blanco{
  color: #ffffff;
}

.icon-arrow-verde{
  color: var(--verde-insitucional);
}

.icon-arrow svg {
  display: block;
  width: 21px;
  height: 8px;
}

.hero-ctas{
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cta-verde{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--verde-insitucional);
    font-size: 18px;
    font-variant: small-caps;
    font-weight: 400;
    color: white;
    border-radius: 16px;
    padding: 12px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
     transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-transparent{
     display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: #1413216f;
    border: 1px solid white;
    font-size: 18px;
    font-variant: small-caps;
    font-weight: 400;
    color: white;
    border-radius: 16px;
    padding: 12px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
     transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-verde:hover,
.cta-transparent:hover {
    transform: translateY(-4px);
}

/* HISTORIA */

.modelos-intro{
    max-width: 740px;
    padding: 0 0 0 20px;
    margin-top: 164px;
}

.protegido-eyebrow {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant: small-caps;
    color: var(--verde-insitucional);
    margin: 0 0 8px;
    display: flex;
    align-items: baseline;
    gap: 34px;
}

.protegido-eyebrow::after {
  content: "";
  display: block;
  height: 1px;
  background-color: var(--verde-insitucional);
  opacity: 0.8;
  flex: 1;
  max-width: 420px;
}

.protegido-titulo {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 2px;
    color: var(--grey-textos);
    margin: 0 0 16px;
}

.protegido-texto {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--grey-textos)#141321;
    margin: 0 0 84px;
}

/* CONTADOR */

.modelos-secc{
  margin: 0 80px;
}

.contador-lista li p:nth-child(1){
  font-size: 66px;
  color: var(--grey-textos);
  font-weight: 700;
  text-align: center;
}

.contador-lista{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.contador-lista li p:nth-child(2){
  font-size: 22px;
  color: var(--verde-insitucional);
  font-weight: 500;
  text-align: center;
  font-variant: small-caps;
}

.contador-lista li hr{
  width: 68px;
  height: 1px;
  border: 1 px solid var(--verde-insitucional);
  opacity: 0.5;
}

/* CARRUSEL */
.carrusel{ max-width: 720px; margin: 84px auto 0 auto;}
.carrusel-txt{ color: var(--grey); font-size: 20px; letter-spacing: 2px; font-variant: small-caps; text-align: center; margin-bottom: 6px;}
: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 */ } /* ───────────────────────────────────────── LOGOS ───────────────────────────────────────── */ .logo-item { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }  .logo-item img { height: var(--logo-h); width: auto; max-width: 120px; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }

 .logos-track-wrap {
  max-width: 740px;
  margin: 0 auto;
  overflow: hidden; 
}

/* LOGOS EMPRESAS */

.logos-secc{
  margin: 64px;
}

/* EQUIPO */

.equipo-secc{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 164px 10px;
}

.equipo-tit{
  max-width: 720px;
}

.equipo-tit h2{
  font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.04em;
    font-variant: small-caps;
    color: var(--verde-insitucional);
    margin: 0 0 8px;
    text-align: center;
}

.equipo-tit p{
  font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 2px;
    color: var(--grey-textos);
    margin: 0 0 16px;
    text-align: center;
}

.tarjetas{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
gap: 16px;
  max-width: 800px;
  margin-top: 64px;
}

.tarjeta-img{
  background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 155px;
    width: 100%;
    border-radius: 16px 16px 0 0;
    flex-shrink: 0;
}

.ingenieros {
    background-image: url(../images/equipo-ingenieros.webp);
}
.instaladores {
    background-image: url(../images/equipo-instaladores.webp);
}
.soporte {
    background-image: url(../images/instalacion-generadores-electricos-domiciliarios.webp);
    background-position: top;
}
.reparacion {
    background-image: url(../images/equipo-reparacion.webp);
}


.tarjetas li{
  max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    box-shadow: 0 10px 10px rgb(132 132 132 / 22%);
}

.tarjeta-content{
  padding: 34px 24px;
}

.tarjeta-content h3{
  color: var(--grey-textos);
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 24px;
}

.tarjeta-content p{
  color: var(--grey-textos);
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
    line-height: 1.25;
}

/* PORQUE AYRON */

.porque-tarj-secc{
  display: flex;
  justify-content: center;
}

.porque-tarjeton{
  background-color: var(--verde-oscuro);
  display: flex;
  flex-direction: column;
  gap: 44px;
  border-radius: 16px;
  padding: 64px 20px;
  margin: 0 8px;
  max-width: 1000px;
}

.porque-tarjeton h2{
  text-align: center;
  color: white;
  font-size: 36px;
  letter-spacing: 2px;
  font-weight: bold;
}

.porque-tarjeton h2 span{
  color: var(--verde-insitucional);
}

.elegir-div{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
    justify-content: center;
  gap: 16px;
  max-width: 420px;
}

.ptos-div{
  display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.elegir-content p{
  font-size: 16px;
  color: white;
}

.elegir-content p:nth-child(1){
  font-variant: small-caps;
  font-weight: 600;
  margin-bottom: 6px;
}

.cta-ayron{
  color: white;
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 600px;
  font-variant: small-caps;
  padding: 16px 24px;
}

.ayron-ctas{
      margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* PROVEEDORES */

.proveedores{
  background-color: #11202F;
  padding: 10px 20px;
  margin-top: 34px;
}

.proveedores p{
  color: white;
  font-variant: small-caps;
  font-size: 20px;
  text-align: center;
}

.proveedores p span{
  font-weight: bold;
}

/* INSTALACIONES - CARRUSEL */
 
.instalaciones {
  width: 100%;
  overflow: hidden;
  margin-top: 64px;
}

.inst-carrusel {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.inst-carrusel:active {
  cursor: grabbing;
}

.inst-imagenes {
  --inst-gap: 16px;
  --inst-visible: 1;

  display: flex;
  gap: var(--inst-gap);

  width: 100%;
  margin: 0;
  padding: 0;

  list-style: none;

  transform: translate3d(0, 0, 0);
  transition: transform 600ms ease;
  will-change: transform;
}

.inst-imagenes.is-jumping {
  transition: none;
}

.inst-imagenes li {
  flex: 0 0 calc(
    (
      100% -
      (var(--inst-gap) * (var(--inst-visible) - 1))
    ) / var(--inst-visible)
  );

  min-width: 0;
}

.inst-imagenes img {
  display: block;

  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;

  border-radius: 16px;

  user-select: none;
  pointer-events: none;
}

/* Dots */

.inst-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 24px 0 0;
  padding: 0;

  list-style: none;
}

.inst-dots button {
  display: block;

  width: 10px;
  height: 10px;
  padding: 0;

  border: 0;
  border-radius: 50%;

  background-color: #c9c9c9;
  cursor: pointer;

  transition:
    width 250ms ease,
    border-radius 250ms ease,
    background-color 250ms ease;
}

.inst-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background-color: #2fb344;
}

.inst-dots button:focus-visible {
  outline: 3px solid rgba(47, 179, 68, 0.35);
  outline-offset: 4px;
}

 /* PROYECTOS */

 .proy-tit{
  font-size: 36px;
  font-weight: bold;
  color: var(--grey-textos);
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin: 0 10px 64px 10px;
  gap: 8px;
 }

 .proy-tit::after {
  content: "";
  display: block;
  height: 1px;
  background-color: var(--verde-insitucional);
  opacity: 0.8;
  flex: 1;
  max-width: 420px;
}

 .proy-tit span{
  color: var(--verde-insitucional);
 }

 .proyectos-lista {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}


 .tarjeta-proy {
  display: flex;
  flex-direction: column;
  overflow: hidden;

  border-radius: 22px;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(10, 44, 72, 0.09);
}

.proy-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.proy-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proy-img > div {
  position: absolute;
  bottom: 16px;
  left: 16px;

  padding: 8px 14px;

  border-radius: 999px;
  background-color: rgba(8, 57, 84, 0.9);
  color: #ffffff;
}

.proy-img p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;

  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.proy-img i {
  color: var(--verde-insitucional);
}

.proy-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 20px 28px;

  text-align: center;
}

.proy-content h3 {
  margin: 0 0 16px;
  color: var(--grey-textos);

  font-size: clamp(1.25rem, 5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.proy-content p {
  margin: 0 0 14px;
  color: var(--grey-textos);

  font-size: 0.98rem;
  line-height: 1.5;
}

.proy-content p:first-of-type {
  margin-bottom: 20px;
}

.proy-content p:last-child {
  margin-bottom: 0;
}

.proy-content span {
  font-weight: 700;
}

/* CTA FINAL */

.cta-final{
  display: flex;
  justify-content: center;
  margin: 164px 10px;
}

.cta-bckg{
  background-image:
  linear-gradient(
    to right,
    #141321 0%,
    rgb(20 19 33) 35%,
    rgba(20, 19, 33, 0) 100%
  ),
  url("../images/equipo-ayron-energy-2.webp");

background-position: center;
background-size: cover;
background-repeat: no-repeat;
width: 100%;
max-width: 820px;
height: fit-content;
border-radius: 28px;
display: flex;
flex-direction: column;
gap: 34px;
padding: 44px 64px;
}

.cta-bckg p {
  color: white;
  font-size: 28px;
  font-weight: 700;
  max-width: 320px;
}



@media (min-width: 425px) {

/* CARRUSEL */

:root {
        --logo-h: 38px;
        --item-gap: 52px;
      }
    }


@media (min-width: 600px) {

  /* INSTALACIONES */

  .inst-imagenes {
    --inst-visible: 2;
  }
}



@media (min-width: 768px) {

  /* HERO */

  .header {
    min-height: 520px;
  }

  .hero-content{
    padding: 0;
  }

  .puv-hero{
    flex-direction: row;
    gap: 36px;
  }

  .hero-ctas{
    justify-content: flex-start;
  }

   /* CONTADOR */

    .contador-lista{
      gap: 44px;
    }

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

     /* PROYECTOS */

     .proy-tit{
  margin: 0 80px 64px 80px;
 }

     .proyectos-lista {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }

  .tarjeta-proy {
    flex: 0 0 calc((100% - 48px) / 2);
    max-width: 580px;
  }

         .proy-content {
    padding: 26px 24px 30px;
  }

  .proy-content h3 {
    font-size: 1.4rem;
  }

  .proy-content p {
    font-size: 0.95rem;
  }
    
}


@media (min-width: 1024px) {

  /* HERO */

    .header {
      min-height: 620px;
    }

    .header::before {
  background-image: linear-gradient(to right, #141321 0%, rgb(20 19 33 / 75%) 35% 45%, rgb(20 19 33 / 0%) 100%);
}

    .hero{
      padding: 200px 10px 140px 10px;
      max-width: 1200px;
  }

  .hero-content {
      padding: 0 0;
      margin: 0 120px;
  }

  .puv-hero {
    margin: 24px 0 64px 0;
  }

  /* CARRUSEL */

  :root {
          --logo-h: 52px;
          --item-gap: 80px;
          --fade-w: 100px;
        }
  
  /* INSTALACIONES */
 .inst-imagenes {
    --inst-gap: 24px;
    --inst-visible: 3;
  }
 
}


@media (min-width: 1440px) {

  /* HERO */

  .header {
    min-height: 720px;
    max-width: 1800px;
        margin: auto;
    background-position: bottom center;
  }

      .hero {
        padding: 200px 10px 140px 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .inst-imagenes {
    transition: none;
  }

  .inst-dots button {
    transition: none;
  }
}