.carousel-container-tarjetas {
  position: relative;
  max-width: 80%;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  width: 100%;
  height: 220px;
  cursor: default;
}

.carousel-tarjetas {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding-top: 10px;
  padding-left: 60px;
  padding-right: 60px;
}

.carousel-item-tarjetas {
  display: flex;
  flex-direction: column;
  background-color: white;
  text-align: center;
  padding: 0px;
  border-radius: 5px;
  width: 550px;
  height: 170px;
  flex-shrink: 0;
}

.carousel-item-tarjetas:hover {
  box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.35);
  border-radius: 5px;
}

.carousel-item-tarjetas .figureTarjetas {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: white;
  border-radius: 5px 5px 0 0;
  position: relative;
  width: 100%;
  height: 100px;
}

.carousel-item-tarjetas .figureTarjetas img {
  border-radius: 5px 5px 0 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item-tarjetas .texto-tarjetas {
  background-color: white;
  padding: 8px;
  text-align: left;
  flex: 1;
  border-radius: 0 0 5px 5px;
}

.titulo1 {
  margin-top: 0;
  margin-bottom: 5px;
  font-weight: bold;
}

.linea1 {
  margin-bottom: 3px;
  line-height: .80;
}

.linea2 {
  line-height: .90;
}

.ver-mas {
  display: inline-block;
  padding: 5px 20px;
  margin-top: 5px;
  font-size: 1rem; /* Base más grande para escritorio (~16px) */
  color: #007bff;
  text-decoration: none;
  border: 1px solid #007bff;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.ver-mas:hover {
  background-color: #007bff;
  color: white;
}

/* Responsive */



/* Escritorio grande (LG, ≥ 1200px) */
@media (min-width: 1200px) {

  .carousel-container-tarjetas {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    width: 100%;
    height: 220px;
    cursor: default;
  }
  
  .carousel-tarjetas {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 10px;
    padding-left: 60px;
    padding-right: 60px;
  }
  
  .carousel-item-tarjetas {
    display: flex;
    flex-direction: column;
    background-color: white;
    text-align: center;
    padding: 0px;
    border-radius: 5px;
    width: 550px;
    height: 170px;
    flex-shrink: 0;
  }
  
  .carousel-item-tarjetas:hover {
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.35);
    border-radius: 5px;
  }
  
  .carousel-item-tarjetas .figureTarjetas {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: white;
    border-radius: 5px 5px 0 0;
    position: relative;
    width: 100%;
    height: 100px;
  }
  
  .carousel-item-tarjetas .figureTarjetas img {
    border-radius: 5px 5px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-item-tarjetas .texto-tarjetas {
    background-color: white;
    padding: 8px;
    text-align: left;
    flex: 1;
    border-radius: 0 0 5px 5px;
  }
  
}

/* Escritorio mediano (MD, 992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {

  .carousel-container-tarjetas {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    width: 100%;
    height: 220px;
    cursor: default;
  }
  
  .carousel-tarjetas {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 10px;
    padding-left: 60px;
    padding-right: 60px;
  }
  
  .carousel-item-tarjetas {
    display: flex;
    flex-direction: column;
    background-color: white;
    text-align: center;
    padding: 0px;
    border-radius: 5px;
    width: 550px;
    height: 170px;
    flex-shrink: 0;
  }
  
  .carousel-item-tarjetas:hover {
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.35);
    border-radius: 5px;
  }
  
  .carousel-item-tarjetas .figureTarjetas {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: white;
    border-radius: 5px 5px 0 0;
    position: relative;
    width: 100%;
    height: 100px;
  }
  
  .carousel-item-tarjetas .figureTarjetas img {
    border-radius: 5px 5px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-item-tarjetas .texto-tarjetas {
    background-color: white;
    padding: 8px;
    text-align: left;
    flex: 1;
    border-radius: 0 0 5px 5px;
  }
  
}

/* Tableta (SM, 768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {

  .carousel-container-tarjetas {
    position: relative;
    max-width: 80%;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
    width: 100%;
    height: 220px;
    cursor: default;
  }
  
  .carousel-tarjetas {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-top: 10px;
    padding-left: 60px;
    padding-right: 60px;
  }
  
  .carousel-item-tarjetas {
    display: flex;
    flex-direction: column;
    background-color: white;
    text-align: center;
    padding: 0px;
    border-radius: 5px;
    width: 550px;
    height: 170px;
    flex-shrink: 0;
  }
  
  .carousel-item-tarjetas:hover {
    box-shadow: 0px 0px 5px 5px rgba(0, 0, 0, 0.35);
    border-radius: 5px;
  }
  
  .carousel-item-tarjetas .figureTarjetas {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: white;
    border-radius: 5px 5px 0 0;
    position: relative;
    width: 100%;
    height: 100px;
  }
  
  .carousel-item-tarjetas .figureTarjetas img {
    border-radius: 5px 5px 0 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-item-tarjetas .texto-tarjetas {
    background-color: white;
    padding: 8px;
    text-align: left;
    flex: 1;
    border-radius: 0 0 5px 5px;
  }
  
}




@media (max-width: 767px) {
  .carousel-container-tarjetas {
      height: 300px;
      overflow-x: hidden;
  }
  .carousel-tarjetas {
      overflow-x: auto;
      transition: none;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
      -ms-overflow-style: none;
      scrollbar-width: none;
      padding-left: 0;
      scroll-snap-type: x mandatory;
  }
  .carousel-tarjetas::-webkit-scrollbar {
      display: none;
  }
  .carousel-item-tarjetas {
      width: 100vw;
      max-width: none;
      height: 250px;
      scroll-snap-align: center;
  }
  .carousel-item-tarjetas .figureTarjetas {
      width: 100%;
      height: 150px;
  }
  .carousel-item-tarjetas .texto-tarjetas {
      padding: 8px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      font-size: 1rem; /* Base para evitar herencia pequeña */
  }
  .titulo1 {
      font-size: 1.2rem;
  }
  .linea1, .linea2 {
      font-size: 0.9rem;
  }
  .ver-mas {
      font-size: 4rem !important; /* Aumentado a ~24px, forzado */
      padding: 8px 25px; /* Más grande para proporción */
      align-self: flex-end; /* Alineado a la derecha */
  }
}

/* Móvil muy pequeño (< 412px) */
@media (max-width: 412px) {
  .carousel-container-tarjetas {
      height: 250px;
  }
  .carousel-item-tarjetas {
      width: 80vw;
      height: 220px;
  }
  .carousel-item-tarjetas .figureTarjetas {
      width: 100%;
      height: 120px;
  }
  .titulo1 {
      font-size: 1rem;
  }
  .linea1, .linea2 {
      font-size: 0.8rem;
  }
  .ver-mas {
      font-size: 1.2rem !important; /* Aumentado a ~19.2px, forzado */
      padding: 6px 20px;
      align-self: flex-end; /* Alineado a la derecha */
  }
}