/* Copiado de blocks/testimonios-carrusel/style.css del sitio de referencia (allá era el CSS del bloque); rutas de íconos ajustadas a esta carpeta. */
/* Carrusel de testimonios — Figma Home 1131:32524. Ventana de 3 cards (x 153–1280), flechas en x=77 y 1316.8 (y=+142). */

.fs-tcar { position: relative; }
.fs-tcar__track {
  display: flex;
  gap: 20.5px; /* Figma: 20 y 21 */
  width: 1127px;
  max-width: 100%;
  margin-left: max(0px, calc(50% - 567px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.fs-tcar__track::-webkit-scrollbar { display: none; }

/* Card (componente Card / Testimonio): 362×321, borde 1px #57A232, radio 20; cita arriba, autor abajo */
.fs-tcar__card {
  display: flex;
  flex: 0 0 362px;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  height: 321px;
  margin: 0;
  padding: 40px 32px 20.92px; /* Figma mide desde el borde exterior: cita en +41/+33, línea del autor en +233.08 */
  border: 1px solid #57a232;
  border-radius: 20px;
  background: #fff;
  color: #706f6f;
  scroll-snap-align: start;
}
.fs-tcar__quote {
  max-width: 286px;
  margin: 0;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
}
/* Autor: línea superior 1px verde, alto 66, padding-top 14, gap 2; Bold 14/16; empresa subrayada */
.fs-tcar__autor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
  height: 66px;
  padding-top: 13px; /* 14 en Figma, contando el borde de 1px */
  border-top: 1px solid #57a232;
  overflow: hidden;
  font-family: var(--wp--preset--font-family--montserrat);
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
}
.fs-tcar__autor > * { max-width: 225px; }
.fs-tcar__empresa { color: inherit; text-decoration: underline; text-underline-position: from-font; }

.fs-tcar__prev,
.fs-tcar__next {
  position: absolute;
  top: 142px;
  width: 39.803px;
  height: 38.052px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.fs-tcar__prev { left: max(16px, calc(50% - 643px)); } /* sin salirse de la pantalla en desktops de menos de 1440 (ISE-043) */
.fs-tcar__next { left: min(calc(100% - 16px - 39.803px), calc(50% + 596.8px)); }
.fs-tcar__prev img,
.fs-tcar__next img { display: block; width: 100%; height: 100%; }
.fs-tcar__prev[disabled],
.fs-tcar__next[disabled] { cursor: default; }

/* Mobile — Figma Home Mobile 1131:29758: track hasta el borde derecho (padding 4/20/8/2), cards 310×295 (gap 16),
   padding 28/24/24 + borde; cita 15/21; autor 700 13/19 con línea arriba y padding 14 (cargo y empresa seguidos);
   flechas mobile centradas debajo. */
@media screen and (max-width: 749px) {
  .fs-tcar { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 16px; }
  .fs-tcar__track {
    order: -1;
    flex: 0 0 calc(100% + 20px);
    width: auto;
    max-width: none;
    margin: 0 -20px 0 0;
    padding: 4px 20px 8px 2px;
    gap: 16px;
    scroll-padding: 0 0 0 2px;
  }
  .fs-tcar__card { flex: 0 0 310px; height: 295px; padding: 28px 24px 24px; }
  .fs-tcar__quote { max-width: none; font-size: 15px; line-height: 21px; }
  .fs-tcar__autor { display: block; height: auto; padding-top: 14px; font-size: 13px; line-height: 19px; }
  .fs-tcar__autor > * { max-width: none; }
  .fs-tcar__autor > :first-child { display: block; }
  .fs-tcar__prev,
  .fs-tcar__next { position: static; width: 40px; height: 40px; background: url(../../icons/flecha-mobile-izq.svg) center / 40px 40px no-repeat; }
  .fs-tcar__next { background-image: url(../../icons/flecha-mobile-der.svg); }
  .fs-tcar__prev img,
  .fs-tcar__next img { display: none; }
}
