/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */
.banner-wrapper {
  background-color: var(--dp-dark-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-right: auto;
  margin-left: auto;
  color: var(--dp-white);
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  .content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 82px 60px;
    gap: var(--dp-gap-medium);
    z-index: 1;

    h1 {
      margin-block-end: 0;
    }

    h6 {
      font-weight: 500;
    }

    .texts {
      text-align: left;
      margin-top: var(--dp-gap-medium);

      p {
        margin-right: var(--dp-gap-medium);
        margin-left: var(--dp-gap-medium);
        margin-top: var(--dp-gap);
        font-size: 18px;
      }
    }

    .button {
      max-width: 320px;
    }

    .scroll-down {
      align-items: center;
      margin-top: 100px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      font-weight: 700;
      font-size: 18px;
      text-align: center;
    }
  }
}

.banner-services {
  .banner-wrapper {
    .content {
      h6 {
        font-weight: 500;
        font-size: 20px;
      }
    }
  }
}

@media (width <= 1024px) {
  .banner-wrapper {
    padding: var(--dp-gap-small);
    margin-bottom: var(--dp-gap-small);

    .content {
      h1 {
        margin-block-end: 0;
      }

      padding: 0;
      gap: var(--dp-gap);

      p {
        margin-right: 0;
        margin-left: 0;
      }

      .scroll-down {
        margin-top: 0;
        margin-bottom: var(--dp-gap-medium);
      }

      .texts {
        margin-top: var(--dp-gap-big);
        p {
          margin-right: 0;
          margin-left: 0;
          margin-top: 0;

        }
      }
    }
  }
}

@media (width <= 580px) {
  .banner-wrapper {
    padding-top: 100px;
  }
}
.counts {
  border-radius: var(--dp-gap);
  border: 1px solid var(--dp-gray-light);
  padding: var(--dp-gap);
  background-color: var(--dp-white);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-row-gap: var(--dp-gap-medium);

  .count {
    padding: var(--dp-gap);
    position: relative;

    h3 {
      color: var(--dp-blue);
    }

    p {
      margin: 0;
      text-align: center;
      font-size: 20px;
    }
  }
}

@media (width >= 768px) {
  .counts {
    .count:not(:nth-child(3n))::after {
      content: '';
      position: absolute;
      top: 15%;
      height: 80%;
      right: 0;
      border-right: 1px solid var(--dp-gray-light);
    }
  }
}

@media (width <= 768px) {
  .counts {
    padding: var(--dp-gap-small);
    grid-row-gap: var(--dp-gap-extra-small);
    grid-template-columns: repeat(2, 1fr);

    .count:not(:nth-child(2n))::after {
      content: '';
      position: absolute;
      top: 15%;
      height: 80%;
      right: 0;
      border-right: 1px solid var(--dp-gray-light);
    }

    .count {
      h3 {
        margin-bottom: var(--dp-gap-extra-small);
      }

      p {
        font-size: 18px;
      }
    }
  }
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dp-gray-light);
  background: none;
  color: var(--dp-black);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.pagination-item:hover:not(.active):not(.disabled) {
  background-color: #f3f4f6;
  color: #374151;
}

.pagination-item.active {
  background-color: var(--dp-blue);
  color: var(--dp-white);
  font-weight: 600;
}

.pagination-item.disabled {
  color: var(--dp-gray);
  cursor: not-allowed;
}

.pagination-item.disabled:hover {
  background: none;
}

.pagination-item.nav-button {
  padding: 0 2px;
  font-size: 16px;
  font-weight: 600;
}

.pagination-item.ellipsis {
  cursor: default;
  font-weight: 600;
}

.pagination-item.ellipsis:hover {
  background: none;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 480px) {
  .pagination {
    gap: 2px;
    padding: 6px;
  }

  .pagination-item {
    min-width: 28px;
    height: 28px;
    font-size: 13px;
  }
}
:root {
  --dp-shape-left-tx: -25%;
  --dp-shape-left-ty: -20%;
  --dp-shape-right-tx: 25%;
  --dp-shape-right-ty: 20%;
  --dp-shape-left-rotate: 80deg;
  --dp-shape-right-rotate: 80deg;

}

.about-description {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--dp-gap);
  width: 50%;
  font-size: 18px;
}

.about-why {
  .subtitle {
    text-align: center;
  }

  display: flex;
  flex-direction: column;
  gap: var(--dp-gap-medium);

  .box-image-text {
    .text {
      gap: var(--dp-gap-small);
    }
  }
}

.banner-about-us {
  h6 {
    max-width: 700px;
  }
}

@media (width <= 1024px) {
  .about-description {
    width: 100%;
  }
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-2456px);
  }
}

.slider-about {
  position: relative;
  max-height: 600px;

  .control-slide {
    z-index: 2;
    position: absolute;
    width: 30%;
    height: 100%;
    cursor: url('/themes/tdp/images/arrow-left.svg'), auto;

    &.next {
      right: 0;
      cursor: url('/themes/tdp/images/arrow-right.svg'), auto;
    }
  }

  .wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
    .content {
      display: flex;
      will-change: transform;
      gap: var(--dp-gap-big);
      div {
        display: flex;
        gap: var(--dp-gap-big);
        align-items: center;
        img {
          max-width: 70vw;
          height: auto;
        }
      }
    }
  }
}

@media (width <= 1024px) {
  .slider-about {
    .control-slide {
      display: none;
    }
    .wrapper {
      .content {
        gap: var(--dp-gap-medium);
        transform: translateX(0);
        cursor: grab;
        div {
          gap: var(--dp-gap-medium);
        }
        .mirror {
          display: none;
        }
        .origin {
          user-select: none;
          img {
            transition: transform 0.3s ease-in-out;
          }
        }
      }
    }

    .grabbing {
      cursor: grabbing;
    }
  }
}
.box-image-text {
  h3 {
    margin-bottom: var(--dp-gap-medium);
  }

  .content {
    border-radius: var(--dp-gap-medium);
    border: 1px solid var(--dp-gray-light);
    padding: var(--dp-gap-medium);
  }

  .items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dp-gap-medium);
  }

  .items.reverse {
    flex-direction: row-reverse;
  }

  .text {
    display: flex;
    flex-direction: column;
    gap: var(--dp-gap-medium);
    flex: 1;
    text-align: left;

    .button {
      max-width: 300px;
    }
  }

  .text {
    h4 {
      margin-bottom: var(--dp-gap);
    }

    p {
      font-size: 18px;
      line-height: 1.2;
    }

    h6 {
      margin-bottom: var(--dp-gap-small);
    }
  }

  .text-second {
    p {
      font-size: 15px;
    }
    .no_black_subheading {
      font-size: 18px;
      line-height: 1.25;
      font-weight: 400;
      margin-bottom: var(--dp-gap-small);
    }
  }

  .image-container {
    img {
      border-radius: 16px;
    }
  }

  &.dark {
    color: var(--dp-white);

    .content {
      background-color: var(--dp-dark-primary);
    }
  }
  &.light {
    .content {
      background-color: var(--dp-white);
    }
  }
  &.transparent {
    .content {
      border: none;
      padding: 0;
    }
  }

  /* --- RESPONSIVE (Tablets y móviles) --- */
  @media (width <= 1024px) {
    .content {
      padding: var(--dp-gap);
    }

    h3 {
      font-size: 32px;
    }

    .text {
      max-width: 100%;

      h4 {
        font-size: 24px;
        margin-bottom: 0;
      }

      p {
        font-size: 16px;
      }

      h6 {
        font-size: 18px;
      }
    }

    .items,
    .items.reverse {
      flex-direction: column-reverse;
      text-align: left;
      gap: var(--dp-gap);
    }

    .image-container {
      img {
        width: 100%;
        height: auto;
      }
    }
  }
}
