/* Testimonios con Foto 2.0.1 — estilos aislados bajo .tcf-gallery */
.tcf-gallery{
  --tcf-desktop:3;--tcf-tablet:2;--tcf-mobile:1;
  --tcf-visible:var(--tcf-desktop);--tcf-gap:32px;--tcf-padding:32px;
  --tcf-photo-size:160px;--tcf-radius:0px;--tcf-max-width:100%;
  --tcf-bg:#ebebeb;--tcf-card-bg:transparent;--tcf-name:#222;
  --tcf-role:#222;--tcf-text:#222;--tcf-accent:#ad0a3f;
  --tcf-font-name:16px;--tcf-font-role:16px;--tcf-font-quote:15px;
  position:relative;box-sizing:border-box;width:100%;max-width:var(--tcf-max-width);
  min-width:0;margin-inline:auto;padding:var(--tcf-padding);
  color:var(--tcf-text);background:var(--tcf-bg);direction:ltr;
}
.tcf-gallery *, .tcf-gallery *::before,.tcf-gallery *::after{box-sizing:border-box}
.tcf-gallery .tcf-viewport{width:100%;min-width:0;overflow:hidden}
.tcf-gallery .tcf-track{
  display:grid;grid-template-columns:repeat(var(--tcf-visible),minmax(0,1fr));
  gap:var(--tcf-gap);min-width:0;align-items:stretch;
}
/* El carrusel sólo utiliza flex al inicializar JS. Sin JS queda una cuadrícula navegable. */
.tcf-gallery.tcf-mode-carrusel.tcf-ready .tcf-viewport{touch-action:pan-y}
.tcf-gallery.tcf-mode-carrusel.tcf-ready .tcf-track{
  display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;
  gap:var(--tcf-gap);align-items:stretch;transition:transform .35s ease;
  will-change:transform;transform:translate3d(0,0,0)
}
.tcf-gallery.tcf-mode-carrusel.tcf-ready .tcf-card{
  flex:0 0 calc((100% - (var(--tcf-visible) - 1) * var(--tcf-gap)) / var(--tcf-visible));
  width:calc((100% - (var(--tcf-visible) - 1) * var(--tcf-gap)) / var(--tcf-visible));
  max-width:none;min-width:0
}
.tcf-gallery .tcf-card{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  min-width:0;max-width:100%;margin:0;padding:14px 12px;border:0;border-radius:var(--tcf-radius);
  box-shadow:none;background:var(--tcf-card-bg);color:inherit;text-align:center;
}
.tcf-gallery.tcf-no-shadow .tcf-card{box-shadow:none}
.tcf-gallery.tcf-shadow .tcf-card{box-shadow:0 4px 18px rgba(0,0,0,.12)}
.tcf-gallery.tcf-align-izquierda .tcf-card{align-items:flex-start;text-align:left}
.tcf-gallery.tcf-align-derecha .tcf-card{align-items:flex-end;text-align:right}
.tcf-gallery .tcf-photo{
  display:block;flex:none;width:var(--tcf-photo-size);height:var(--tcf-photo-size);
  max-width:100%;object-fit:cover;object-position:center;margin:0 0 18px;
  border:0;border-radius:50%;box-shadow:none
}
.tcf-gallery.tcf-shape-cuadrado .tcf-photo{border-radius:0}
.tcf-gallery.tcf-shape-redondeado .tcf-photo{border-radius:16px}
.tcf-gallery .tcf-person{display:block;margin:0 0 16px;line-height:1.35;overflow-wrap:anywhere;color:inherit}
.tcf-gallery .tcf-name,.tcf-gallery .tcf-role{display:block;font-family:inherit;font-style:normal;font-weight:700;line-height:1.35;text-transform:none;letter-spacing:normal}
.tcf-gallery .tcf-name{color:var(--tcf-name);font-size:var(--tcf-font-name)}
.tcf-gallery .tcf-role{color:var(--tcf-role);font-size:var(--tcf-font-role)}
.tcf-gallery .tcf-quote,.tcf-gallery .tcf-quote p{
  padding:0;margin:0;border:0;box-shadow:none;background:transparent;
  color:var(--tcf-text);font-family:inherit;font-size:var(--tcf-font-quote);
  font-style:italic;font-weight:400;line-height:1.48;text-align:inherit;
  text-transform:none;letter-spacing:normal;overflow-wrap:anywhere;
}
.tcf-gallery .tcf-quote p+p{margin-top:10px}
.tcf-gallery .tcf-controls{display:flex;justify-content:center;align-items:center;gap:16px;min-height:40px;margin-top:20px}
.tcf-gallery .tcf-controls[hidden],.tcf-gallery .tcf-dots[hidden]{display:none!important}
.tcf-gallery .tcf-controls button{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;min-width:40px;min-height:40px;
  padding:0;border:1px solid var(--tcf-accent);border-radius:50%;
  background:transparent;color:var(--tcf-accent);font:normal 26px/1 Arial,sans-serif;
  cursor:pointer;box-shadow:none;transition:background .15s ease,color .15s ease
}
.tcf-gallery .tcf-controls button:hover{background:var(--tcf-accent);color:#fff}
.tcf-gallery .tcf-controls button:disabled{opacity:.35;cursor:not-allowed}
.tcf-gallery .tcf-controls button:disabled:hover{background:transparent;color:var(--tcf-accent)}
.tcf-gallery .tcf-controls button:focus-visible,.tcf-gallery:focus-visible,
.tcf-gallery .tcf-dots button:focus-visible{outline:3px solid var(--tcf-accent);outline-offset:3px}
/* Navegación a los costados: controles fuera del área de las tarjetas, sin contador. */
.tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales.tcf-ready.tcf-has-navigation{
  --tcf-arrow-space:48px;
}
.tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales.tcf-ready.tcf-has-navigation .tcf-viewport{
  width:calc(100% - 2 * var(--tcf-arrow-space));
  margin-inline:auto;
}
.tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls{
  position:absolute;inset:0;z-index:2;display:block;
  margin:0;min-height:0;pointer-events:none;
}
.tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls button{
  position:absolute;top:50%;transform:translateY(-50%);
  pointer-events:auto;
}
.tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls .tcf-prev{left:8px}
.tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls .tcf-next{right:8px}
@media(max-width:600px){
  .tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales.tcf-ready.tcf-has-navigation{--tcf-arrow-space:44px}
  .tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls button{
    width:36px;height:36px;min-width:36px;min-height:36px;
  }
  .tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls .tcf-prev{left:4px}
  .tcf-gallery.tcf-mode-carrusel.tcf-arrows-laterales .tcf-controls .tcf-next{right:4px}
}
.tcf-gallery .tcf-dots{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:12px}
.tcf-gallery .tcf-dots button{display:inline-block;width:10px;height:10px;min-width:10px;min-height:10px;padding:0;
  border:1px solid var(--tcf-accent);border-radius:50%;background:transparent;cursor:pointer;box-shadow:none}
.tcf-gallery .tcf-dots button[aria-current="true"]{background:var(--tcf-accent)}
@media(max-width:980px){.tcf-gallery{--tcf-visible:var(--tcf-tablet)}}
@media(max-width:600px){.tcf-gallery{--tcf-visible:var(--tcf-mobile)}}
@media(prefers-reduced-motion:reduce){.tcf-gallery.tcf-mode-carrusel.tcf-ready .tcf-track{transition:none}}
