/* ========================================================= */
/* Testimonios reales en video vertical 9:16                 */
/* ========================================================= */

.testimonial-rail{
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 2px 20px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#c8d6e5 transparent;
}
.testimonial-rail::-webkit-scrollbar{height:8px}
.testimonial-rail::-webkit-scrollbar-thumb{background:#c8d6e5;border-radius:99px}

/* Casos de empresas: solo hay 3 piezas. En pantallas donde entran las tres,
   el grupo se centra y cada tarjeta crece hasta 360px para ocupar el ancho
   (antes quedaba todo el aire a la derecha). En móvil sigue siendo carrusel. */
@media(min-width:870px){
  .testimonial-rail--empresas{
    justify-content:center;
  }
  .testimonial-rail--empresas .testimonial-card{
    flex:1 1 0;
    min-width:232px;
    max-width:360px;
  }
}

.testimonial-card{
  flex:0 0 clamp(232px,25vw,300px);
  scroll-snap-align:start;
  background:#fff;
  border:1px solid rgba(200,162,75,.38);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(6,39,93,.07);
  display:flex;
  flex-direction:column;
}
.testimonial-card--featured{
  flex-basis:clamp(232px,25vw,300px);
  border-color:rgba(200,162,75,.72);
  box-shadow:0 18px 44px rgba(6,39,93,.12);
}

.testimonial-media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:9/16;
  border:0;
  padding:0;
  background:#06275d;
  cursor:pointer;
  overflow:hidden;
}
.testimonial-poster{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}
.testimonial-media:hover .testimonial-poster{transform:scale(1.035)}
.testimonial-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(6,39,93,.02) 45%,rgba(6,39,93,.62) 100%);
  pointer-events:none;
}
.testimonial-badge{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  background:rgba(6,39,93,.82);
  color:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  padding:5px 9px;
  border-radius:999px;
  backdrop-filter:blur(4px);
}
.testimonial-play{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:2;
  width:58px;
  height:58px;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:var(--blue);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 30px rgba(0,0,0,.3);
  transition:transform .2s ease, color .2s ease;
}
.testimonial-media:hover .testimonial-play{transform:translate(-50%,-50%) scale(1.08);color:var(--green)}
.testimonial-play svg{width:22px;height:22px;fill:currentColor;margin-left:3px}

.testimonial-body{
  padding:18px 18px 20px;
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}
.testimonial-quote{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:#3b5066;
  font-style:italic;
}
.testimonial-name{
  margin:auto 0 0;
  display:flex;
  flex-direction:column;
  gap:2px;
  font-size:13px;
  line-height:1.3;
}
.testimonial-name strong{color:var(--navy);font-size:14px}
.testimonial-name span{color:var(--muted);font-size:12px}

/* Modal de testimonio */
.modal--testimonial .modal-card{
  max-width:980px;
  padding:0;
  overflow:hidden;
  background:#0b1f3a;
}
.modal--testimonial .close{
  background:rgba(255,255,255,.14);
  color:#fff;
  z-index:5;
}
.modal--testimonial .close:hover{background:rgba(255,255,255,.24)}

.testimonial-player{
  display:grid;
  grid-template-columns:minmax(0,420px) 1fr;
  align-items:stretch;
}
.testimonial-player-frame{
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.testimonial-player-frame video{
  width:auto;
  height:min(78vh,720px);
  max-width:100%;
  aspect-ratio:9/16;
  border-radius:16px;
  background:#000;
  display:block;
}
.testimonial-player-info{
  padding:44px 40px;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}
.testimonial-player-info .eyebrow{color:#6bd36f}
.testimonial-player-info h2{font-size:clamp(28px,3vw,40px);margin:0;line-height:1.1}
.testimonial-player-meta{color:#b9c8dc;font-size:14px;margin:0}
.testimonial-player-info blockquote{
  margin:8px 0 12px;
  font-size:17px;
  line-height:1.65;
  color:#e2ecf7;
  border-left:3px solid #6bd36f;
  padding-left:16px;
}
.testimonial-player-info .cta{
  align-self:flex-start;
  background:var(--green);
  box-shadow:none;
}

@media(max-width:900px){
  .testimonial-card{flex-basis:240px}
}
@media(max-width:800px){
  .testimonial-player{grid-template-columns:1fr}
  .testimonial-player-frame{padding:14px}
  .testimonial-player-frame video{height:min(62vh,560px)}
  .testimonial-player-info{padding:26px 24px 30px}
  .testimonial-player-info .cta{align-self:stretch;text-align:center}
}
@media(max-width:480px){
  .testimonial-card{flex-basis:230px}
  .testimonial-body{padding:15px 15px 17px}
  .testimonial-quote{font-size:13.5px}
}


/* V5 - 5 testimonios en un solo renglon en escritorio (08/11/2026).
   Debajo de 1280 vuelve a ser carrusel con scroll horizontal. */
@media(min-width:1280px){
  #studentTestimonials{justify-content:center}
  #studentTestimonials .testimonial-card{flex:1 1 0;min-width:0;max-width:300px}
  #studentTestimonials .testimonial-card--featured{flex-basis:0}
}
