body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  transition: all 0.3s;
}

/* text */

.text-decorator {
  b,
  strong {
    color: var(--e-global-color-secondary);
  }
}

/* Proyectos */

.card-wrapper {
  cursor: pointer;
  overflow: hidden;
  position: relative;
  height: 100%;
  filter: grayscale(0);
  transition: all 0.5s ease;

  img {
    transition: all 0.5s ease;
  }

  .title h2 {
    transition: all 0.5s ease;
  }

  .card-content {
    height: 100%;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    background: rgba(0, 0, 0, 0.3);
  }

  &:hover {
    img {
      filter: grayscale(100%);
    }

    .title h2 {
      color: var(--e-global-color-secondary);
    }
  }
}

/* categories-shorcode */

.categories-shorcode {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  text-align: left;
  gap: 10px;
  margin: 0;
  padding: 0;

  li {
    list-style: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 10px 10px;
    font-size: 18px;
    font-weight: 600;

    a {
      color: var(--e-global-color-text);

      &:hover {
        color: var(--e-global-color-secondary);
      }
    }
  }
}

.categories-shorcode-single {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-align: left;

  li {
    list-style: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 10px 10px;
    font-size: 16px;
    font-weight: 600;

    a {
      color: var(--e-global-color-text);

      &:hover {
        color: var(--e-global-color-secondary);
      }
    }
  }
}

/* tags shorcode */

.tags-shorcode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-align: left;

  li {
    list-style: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 10px 10px;
    font-size: 16px;
    font-weight: 600;

    a {
      color: var(--e-global-color-text);

      &:hover {
        color: var(--e-global-color-secondary);
      }
    }
  }
}

/* pagination blog */

.elementor-pagination .page-numbers {
  border: 1px solid;
  padding: 5px 10px;
}

/* post categories shorcode */

.categories-shorcode-posts {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;

  li {
    list-style: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 10px 0px !important;
    font-size: 18px;
    font-weight: 500;

    a {
      color: var(--e-global-color-text);

      &:hover {
        color: var(--e-global-color-secondary);
      }
    }
  }
}

/* destacados */

.posts-destacados {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;

  li {
    list-style: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 10px 0px !important;
    font-size: 18px;
    font-weight: 500;

    a {
      color: var(--e-global-color-text);

      &:hover {
        color: var(--e-global-color-secondary);
      }
    }
  }
}

.menu-lan {
  background: var(--e-global-color-secondary);
}

.title-stroke {
  color: transparent !important;
  -webkit-text-stroke: 2px var(--e-global-color-secondary);
  text-stroke: 1px var(--e-global-color-secondary);

  .elementor-icon-list-text {
    color: transparent !important;
    -webkit-text-stroke: 2px var(--e-global-color-secondary);
    text-stroke: 1px var(--e-global-color-secondary);
  }
}

/* List categia comparativa */
.categories-comparativa {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  text-align: left;

  li {
    list-style: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 10px 10px;
    font-size: 20px;
    font-weight: 400;

    a {
      color: var(--e-global-color-text);

      &:hover {
        color: var(--e-global-color-secondary);
      }
    }
  }
}

/* creditos  */

.creditos-footer {
  font-family: var(--e-global-typography-primary-font-family);
  font-size: 16px;
  color: #fff;
}

.creditos-footer a {
  display: inline;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: underline !important;

  img {
    vertical-align: middle;
    margin: 0 8px;
    margin-top: -4px;
  }
}

.creditos-footer a:hover {
  color: var(--e-global-color-secondary);
}

/* reviews */

.testimonial-box {
  color: #fff;
  margin-bottom: 40px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 300px;
}

.testimonial-box .review-text {
  background-color: #fff;
  color: #000;
  padding: 24px 32px;
  font-size: 1.1em;
  line-height: 1.6;
  font-weight: 400;
  border-radius: 16px 16px 0 0;
  position: relative;
}

.testimonial-box .review-text::before {
  content: "“";
  font-size: 2em;
  color: #000;
  position: absolute;
  top: 16px;
  left: 16px;
}

.testimonial-box .review-footer {
  background-color: #8b0e0e; /* rojo oscuro */
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 24px 32px;
  gap: 16px;
}

.testimonial-box .review-footer img {
  border-radius: 50%;
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 2px solid #fff;
}

.testimonial-box .review-footer .info {
  display: flex;
  flex-direction: column;
}

.testimonial-box .review-footer .info .stars {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 4px;
}

.testimonial-box .review-footer .info strong {
  font-size: 1.2em;
  font-weight: 600;
}

.testimonial-box .review-footer .info small {
  font-size: 0.9em;
  opacity: 0.9;
}

/* tabs services */

.tabs-services {
  .e-n-tabs-heading {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 99;

    @media (max-width: 768px) {
      position: relative;
      left: 0;
      bottom: 0;
      transform: none;
      text-align: center;
      width: 100%;
    }
  }

  .e-n-tab-title {
    border-radius: 50px !important;
    border: 5px solid #fff !important;
    background: #d9d9d9;
    width: 92px !important;
    height: 92px !important;
    padding: 0 !important;
    display: table !important;
    flex-basis: inherit !important;

    &[aria-selected="true"] {
      background: var(--e-global-color-primary) !important;
      border: 5px solid #fff !important;
    }
  }

  .e-n-tab-title-text {
    display: none !important;
  }
}
