/* THE RESET · prueba social junto al formulario (#aplicar). Va después de styles.css.
   Escritorio: columna izquierda, bajo la intro y sobre el camino de admisión. "Es para ti si…" pasa a una franja bajo la rejilla.
   Móvil: proof.js mueve el bloque dentro de la tarjeta del formulario (franja compacta sobre cada paso). */
.proof{position:relative;grid-area:proof;margin-top:clamp(16px,2.4vh,24px);padding:20px 24px 14px 26px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(38,28,21,.7),rgba(18,13,10,.82));overflow:hidden;isolation:isolate}
.proof::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:2px;border-radius:2px;background:linear-gradient(180deg,var(--ember),rgba(255,97,26,.08))}
.proof::after{content:"\201C";position:absolute;right:14px;top:-18px;z-index:-1;font:600 150px/1 var(--f-serif);color:rgba(255,97,26,.13);pointer-events:none}
.proof .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* todas las citas se apilan en la misma celda: la altura es la de la más larga y nada se mueve al rotar */
.proof__stage{display:grid}
.proof__item{grid-area:1/1;display:flex;flex-direction:column;justify-content:space-between;gap:16px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .7s var(--ease),transform .7s var(--ease),visibility 0s .7s}
.proof__item.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .7s var(--ease) .12s,transform .7s var(--ease) .12s,visibility 0s}
.proof__txt{padding-right:38px;font:500 clamp(17px,1.3vw,19px)/1.48 var(--f-sans);color:var(--bone-2);text-wrap:pretty}
.proof__txt b{font-weight:700;color:var(--bone)}
.proof__who{display:flex;align-items:center;gap:13px}
.proof__who img{flex:none;width:48px;height:48px;border-radius:50%;object-fit:cover;border:1.5px solid rgba(255,138,76,.55);box-shadow:0 0 0 4px rgba(255,97,26,.08)}
.proof__id{display:grid;gap:3px;min-width:0;margin-right:auto}
.proof__name{font:800 25px/.95 var(--f-display);letter-spacing:.03em;text-transform:uppercase;color:var(--peach)}
.proof__role{font:500 14.5px/1.3 var(--f-sans);color:var(--mute)}
.proof__vid{flex:none;display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 13px 0 10px;border-radius:999px;border:1px solid rgba(255,138,76,.42);background:rgba(255,97,26,.08);font:700 13.5px/1 var(--f-sans);color:#FFD9C2;transition:background-color .3s,border-color .3s}
.proof__vid .i{width:16px;height:16px;color:var(--ember-hi)}
.proof__vid:hover{background:rgba(255,97,26,.18);border-color:rgba(255,138,76,.75)}
.proof__item:not(.is-on) .proof__vid{pointer-events:none}

/* control: segmentos finos (uno por testimonio) + pausa */
.proof__ctl{display:flex;align-items:center;gap:10px;margin-top:10px}
.proof__segs{display:flex;flex:1;gap:4px;min-width:0}
.proof__seg{position:relative;flex:1;height:24px;padding:0;display:grid;align-items:center}
.proof__seg i{display:block;position:relative;height:3px;border-radius:3px;background:rgba(243,238,231,.14);overflow:hidden;transition:background-color .3s}
.proof__seg:hover i{background:rgba(243,238,231,.3)}
.proof__seg i::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--ember-lo),var(--ember) 70%,#FFB27E);transform:scaleX(0);transform-origin:left}
.proof__seg[aria-current="true"] i::before{transform:scaleX(1)}
.proof.is-run:not(.is-held) .proof__seg[aria-current="true"] i::before{transform:scaleX(0);animation:proofBar var(--pr-t,7s) linear forwards}
@keyframes proofBar{to{transform:scaleX(1)}}
.proof__pause{flex:none;display:grid;place-items:center;width:32px;height:32px;margin-right:-6px;border-radius:50%;color:var(--mute);transition:color .3s,background-color .3s}
.proof__pause:hover{color:var(--bone);background:rgba(243,238,231,.08)}
.proof__pause svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.proof__pause .p-play{display:none;fill:currentColor;stroke-width:1.6}
.proof__pause[aria-pressed="true"] .p-play{display:block}
.proof__pause[aria-pressed="true"] .p-pause{display:none}
.proof.is-static .proof__pause{display:none}
.proof :is(button):focus-visible{outline:2px solid var(--ember-hi);outline-offset:2px;border-radius:6px}

/* "Es para ti si…" y el camino: el camino sigue en la columna izquierda; la tablilla pasa a una franja bajo la rejilla */
@media (min-width:901px){
  .apply__grid{grid-template-areas:"intro card" "proof card" "more card" "tablet tablet";grid-template-rows:auto auto 1fr auto}
  .apply__more{display:contents}
  .apply__more .path{grid-area:more;align-self:start}
  .apply__more .tablet{grid-area:tablet;margin-top:clamp(28px,4.5vh,44px)}
  .tablet{display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr);column-gap:clamp(28px,4vw,56px);align-items:center}
  .tablet__t{grid-row:1/3;white-space:nowrap;font-size:clamp(34px,3vw,44px);margin-bottom:0}
  .tablet__list{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-top:0}
  .tablet__no{margin-top:12px}
  .apply.is-booking .apply__grid{grid-template-areas:"card"}
  .apply.is-booking .proof{display:none}
}
@media (min-width:1101px){
  .tablet__list{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (min-width:901px) and (max-height:760px){
  .proof{margin-top:12px;padding:16px 22px 10px 24px}
  .proof__txt{font-size:16.5px}
  .proof__name{font-size:23px}
  .proof__who img{width:42px;height:42px}
  .apply__more .tablet{margin-top:24px}
}

/* móvil: franja compacta dentro de la tarjeta del formulario */
@media (max-width:900px){
  .apply__grid>.proof{grid-area:auto}
  .af .proof{margin:14px 0 0;padding:12px 14px 6px 16px;border-radius:14px}
  .af .proof::before{top:12px;bottom:12px}
  .af .proof::after{font-size:96px;right:8px;top:-12px}
  .af .proof__item{gap:10px}
  .af .proof__item{flex-direction:column-reverse;justify-content:flex-end}
  .af .proof__txt{padding-right:20px;font-size:15px;line-height:1.42}
  .af .proof__who{gap:10px}
  .af .proof__who img{width:34px;height:34px;box-shadow:0 0 0 3px rgba(255,97,26,.08)}
  .af .proof__name{font-size:20px}
  .af .proof__role{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .af .proof__id{min-width:0;flex:1;margin-right:0}
  .af .proof__vid{height:32px;padding:0 11px 0 8px;font-size:13px}
  .af .proof__ctl{margin-top:2px}
  .af .proof__seg{height:20px}
  .apply.is-booking .af .proof,.af.is-done .proof{display:none}
}

html.lowfx .proof__item{transition-duration:.01ms,.01ms,0s;transform:none}
@media (prefers-reduced-motion:reduce){
  .proof__item,.proof__item.is-on{transform:none;transition:opacity .01ms,visibility 0s}
  .proof.is-run:not(.is-held) .proof__seg[aria-current="true"] i::before{animation:none;transform:scaleX(1)}
}
