:root {
  --porcentaje_padding_standard: 8%;
  --padding-standard: 0 8%;
  --padding-large: 40px;
  --padding-cta: 20px 60px;
  --padding-title-container: none;
  --padding-detalles-service: 100px 8%;
  --padding-cta-details: 5%;
  --padding-etapas-details: 5%;
  --padding-icon: 0;
  --border-radius-button: 200px;
  --border-radius-small: 50%;
  --border-radius-large: 20px;
  --transition-standard: all 0.3s ease;
  --animation-rotate: rotate 20s linear infinite;
}

main {
  margin-top: 190px;
  margin-bottom: 100px;
}

.slidershome {
  width: 100%;
  padding: 0 var(--porcentaje_padding_standard);
}

.cta {
  position: fixed;
  bottom: 30px;
  left: var(--porcentaje_padding_standard);
  right: var(--porcentaje_padding_standard);
  background: var(--white);
  padding: var(--padding-cta);
  text-align: center;
  border-radius: var(--border-radius-large);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 10;
}

.cta h2 {
  margin: 0;
  font-size: 24px;
  color: var(--red);
}

.cta p {
  margin: 5px 0;
  font-size: 16px;
  font-family: var(--secondary-font);
}

.cta a {
  display: flex;
  color: var(--black);
  text-decoration: none;
  border-radius: 5px;
  transition: color var(--transition-standard);
  align-items: center;
  font-size: 28px;
  justify-content: center;

  span {
  text-decoration: underline;
  padding-left: 10px;
  }
}

.cta a:hover {
  color: var(--red);
}

.brandingservices {
  width: 100%;
  overflow: hidden;
}

.title_container {
  display: flex;
  align-items: center;
  /* overflow: hidden; */
  padding: var(--padding-title-container);
}

.scroll {
  white-space: nowrap;
  margin: 0 2em;
}

.scroll div {
  display: flex;
  gap: 2em;
}

.scroll p {
  font-size: 120px; /* Considera usar 'rem' o 'vw' para tamaños más flexibles */
  color: var(--red);
  font-weight: 300;
  margin-bottom: 0;
  line-height: 120px;
}

.RightToLeft {
  animation: RightToLeft 20s infinite linear;
}

@keyframes RightToLeft {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-50%);
  }
}

.LeftToRight {
  animation: LeftToRight 20s infinite linear;
}

@keyframes LeftToRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

.detalles_service {
  padding: 140px var(--porcentaje_padding_standard);
  display: grid;
  grid-template-columns: 2fr 1fr;
  box-sizing: border-box;
  margin: 0;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 180px;
}

.textos_servicio {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 30px;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
}

.titulosparrafos {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.titulosparrafos h3 {
  font-family: var(--primary-font);
  font-weight: 400;
  font-size: 33px;
  line-height: 35px;
  letter-spacing: -1px;
  box-sizing: border-box;
  color: var(--black);
  margin: 0;
}

.titulosparrafos p {
  font-family: var(--secondary-font);
  font-size: 20px;
  line-height: 24px;
  color: var(--light_grey);
  box-sizing: border-box;
  margin: 0;
}

.services ul {
  column-count: 3;
  column-gap: 20px;
  padding-left: 0;
  box-sizing: border-box;
  margin: 0;
}

.services ul li {
  list-style: none;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: -0.8px;
  font-weight: 400;
  color: var(--red);
}

.services ul li:hover {
  color: var(--grey);
}

.downloadbutton {
  width: 100%;
  cursor: pointer;
}

.downloadbutton .download {
  background: var(--red);
  border-radius: var(--border-radius-button);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  gap: 10px;
  width: 100%;
}

.downloadbutton .download:hover {
  background: var(--black);
}

.downloadbutton .download span {
  font-family: var(--primary-font);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  text-decoration: underline;
}

.downloadbutton .download .iconoeye {
  background: var(--white);
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-small);
  align-items: center;
  justify-content: center;
}

.downloadbutton .download .iconoeye img {
  width: 26px;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.sello {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 0;
  height: fit-content;
  width: 30vw; /* Ajustado para ser responsive */
  margin: 0 auto; /* Centrado en la página */
  z-index: 5;
}

.selloback,
.selloback .imageback {
  position: relative;
  width: 30vw; /* Hace que el fondo sea responsive */
}

.selloback img {
  animation: rotate 20s linear infinite;
  width: 100%; /* Asegura que la imagen de fondo llene el contenedor */
}

.sellofront {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sellofront img {
  backface-visibility: hidden;
  animation: none;
  width: 20vw; /* Ajusta el tamaño del frente para que sea responsive */
}

.p-mobile {
  display: none;
}

/* Media Queries */
@media (max-width: 768px) {
  .p-desktop {
    display: none; /* Oculta el párrafo en la versión de escritorio */
  }

  .p-mobile {
    display: block; /* Muestra el párrafo duplicado justo antes del botón de descarga */
    order: 3; /* Asegúrate de que tiene el orden correcto si es necesario, dependiendo de tu estructura flex/grid */
  }

  /* Asegúrate de que .textos_servicio utiliza flex o grid si quieres usar 'order' en .p-mobile */
  .textos_servicio {
    display: flex;
    flex-direction: column;
  }

  .services ul {
    column-count: 1; /* Usa una sola columna en pantallas pequeñas */
  }

  .sello,
  .selloback,
  .selloback .imageback {
    width: 80vw; /* Aumenta el tamaño para pantallas pequeñas */
  }

  .sellofront img {
    width: 56vw; /* Ajusta proporcionalmente el tamaño de la imagen frontal */
  }
}

.quienes {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  width: 80%;
  gap: 50px;
  padding: 100px 0 100px var(--porcentaje_padding_standard);

  h2 {
    font-size: 33px;
    font-weight: 400;
    letter-spacing: -0.8px;
    line-height: 35px;
  }

  p {
    font-family: var(--secondary-font);
    font-size: 20px;
    line-height: 24px;
    color: var(--grey);
  }

  .ctasquienes {
    display: flex;
    flex-direction: column;
    gap: 30px;

    div {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      aspect-ratio: 2.06;
      border-radius: var(--border-radius-large);
      padding: 16px;
      font-size: clamp(10px, 1.5vw, 28px);
      line-height: clamp(11px, 1.6vw, 30px);
      letter-spacing: -0.8px;
      text-wrap: balance;
      position: relative;

      .icon {
        width: 10%;
        padding: var(--padding-icon);
        position: absolute;
        top: 16px;
        right: 16px;
      }

      h3 {
        width: 100%;
        position: absolute;
        padding: 16px;
        bottom: 0;
        left: 0;
        font-weight: 400;
      }
    }

    .explora {
      background: var(--red);
      color: var(--black);
    }

    .descubre {
      background: var(--grafito);
      color: var(--white);
    }
  }
}

.work {
  margin-top: -250px;
  padding-top: 400px;
  overflow: hidden;
  background: url('../img/backs/backquienes.jpg') top right no-repeat;
  background-size: 100%;
  width: 100%;
}

.worktitle {
  transform: rotate(-11deg);
  padding-bottom: 100px;

  .title_container {
    overflow: none;
  }
}

.method {
  overflow: hidden;
  background: url('../img/backs/backmethod.jpg') top right no-repeat;
  background-size: 100%;
  width: 100%;
  padding-top: 150px;
}

.method_details {
  display: grid;
  grid-template-columns: 1fr 40% 1fr;
  gap: 20px;
  padding: 50px 0 130px var(--porcentaje_padding_standard);
  width: 80%;

  .columna1,
  .columna2,
  .columna3 {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  p {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: var(--grey);

    span {
      font-weight: 500;
    }
  }

  .etapas_details {
    background: var(--soft_grey);
    /*aspect-ratio: 1.52;*/
    flex-direction: column;
    display: flex;
    gap: 30px;
    padding: var(--padding-etapas-details);
    border-radius: var(--border-radius-large);

    ul {
      display: grid;
      grid-template-columns: 1fr 1fr;
      column-gap: 20px;
      list-style-type: none;
      padding-left: 0;
      font-family: var(--secondary-font);
      color: var(--light_grey);
      gap: 20px;
    }
  }

  .columna1 {
    h3 {
      font-weight: 400;
      font-size: 33px;
      line-height: 35px;
      letter-spacing: -0.6px;
      margin: 0;
    }

    .cta_details:hover {
      background: var(--black);
    }

    .cta_details {
      padding: var(--padding-cta-details);
      border-radius: var(--border-radius-large);
      background: var(--red);
      color: var(--white);
      flex-direction: column;
    a {
      text-decoration: none;
      color: white;
    }

      h4 {
        font-size: 24px;
        font-weight: 300;
        line-height: 25px;
        letter-spacing: -0.6px;
        margin-bottom: 20px;
      }

      p {
        color: var(--white);
        font-size: 18px;
        line-height: 21px;
        font-family: var(--secondary-font);
      }

      .buttoncta {
        display: flex;
        padding: var(--padding-icon);
        align-items: center;
        text-decoration: none;
        gap: 10px;
        margin-top: 10px;

        img {
          width: 40px;
          padding: 10px;
          background: var(--white);
          aspect-ratio: 1;
          border-radius: var(--border-radius-small);
        }

        p {
          text-decoration: underline;
          font-family: var(--primary-font);
          font-size: 24px;
        }
      }
    }
  }
}

.brand_founders {
  padding: 0 var(--porcentaje_padding_standard);
  display: flex;
  flex-direction: column;
  gap: 40px;

  .titlebrands {
    display: flex;

    h1 {
      font-size: clamp(45px, 5vw, 120px);
      color: var(--red);
      font-weight: 300;
      line-height: clamp(45px, 5vw, 120px);
      text-wrap: balance;
    }

    .ctabrands {
      background: var(--white);
      border-radius: 20px;
      padding: 20px;
      box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
      height: fit-content;
      display: flex;
      flex-direction: column;
      gap: 20px;

      h3 {
        font-weight: 400;
        font-size: 29px;
        line-height: 30px;
        color: var(--red);
        text-wrap: balance;
      }

      p {
        font-family: var(--secondary-font);
        font-size: 18px;
        line-height: 24px;
        text-wrap: pretty;
      }

      span {
        display: flex;
        align-items: center;
        gap: 10px;

        img {
          width: 30px;
        }

        p {
          font-family: var(--primary-font);
          text-decoration: underline;
          font-size: 24px;
        }
      }
    }
  }

  

  ul {
    list-style-type: none;
    font-family: var(--secondary-font);
    font-size: 26px;
    font-weight: 300;
    color: var(--black);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    column-gap: 40px;
    padding-left: 0;
    margin-left: 0;

    li {
      padding: 20px 0;
      border-bottom: 1px solid var(--black);
      display: flex;
      align-items: center;
    }

    li:hover {
      color: var(--red);
    }
  }
}