@import "../../src/scss/init";

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;

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

.card-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  //max-height: 9.6rem; // 1.6 * 6 líneas
  overflow: hidden;
  text-overflow: ellipsis;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: red;

  .card-body {
    padding: 1.25rem;

    .card-title {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #222;
    }
  }
}
.card-equal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  .card-body {
    flex-grow: 1;
  }
}

.card-equal {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease-in-out;

  &:hover {
    transform: translateY(-4px);
  }
}

.card-img-top {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

.card-body {
  padding: 1.25rem;

  .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
  }

  .card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
  }
}

.bg-card{
  background-color: red;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
  &:hover {
    transform: translateY(-4px);
  }
}

.paragraph--type--cards-slider {
  padding: 2rem 0;
  //background-color: red;

  .carousel-inner {
    display: flex;
    justify-content: center;
    align-items: stretch;


    .carousel-item {
      display: flex;
      justify-content: center;
      align-items: stretch;
    }

    .col {
      max-width: 400px;
      flex: 0 0 auto;
    }
  }

  .carousel-control-prev,
  .carousel-control-next {
    filter: invert(1);
    width: 5%;
  }

  .carousel-indicators {
    bottom: -30px;

    button {
      background-color: #343a40;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      opacity: 0.5;
      transition: opacity 0.3s ease;

      &.active {
        opacity: 1;
      }
    }
  }
}


