/* ===== SECTION: resultados ===== */
/* Prueba social: banda --surface, tarjetas --ground, capturas sin recortar (object-fit: contain)
   sobre un escenario uniforme. Todas las historias visibles a la vez: una columna en móvil,
   dos en tablet, tres en desktop. Sin carril horizontal. */

#resultados{ background:var(--surface); }
#resultados > div > h2{ margin-bottom:1.1rem; }
.proof-lede{
  color:var(--muted); font-size:.95rem; line-height:1.6; max-width:44ch;
  margin:0 auto clamp(1.75rem,4vw,2.5rem); text-align:center; text-wrap:balance;
}

/* ---- cifras de prueba social ---- */
.proof-stats{
  list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px; margin:0 auto clamp(2.25rem,5vw,3.25rem); padding:0; max-width:760px;
}
.proof-stats li{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  padding:16px 8px 14px; text-align:center; background:var(--ground);
  border:1px solid var(--line); border-radius:var(--radius-sm);
}
.proof-stats strong{
  font-family:var(--serif); font-weight:400; font-size:1.45rem; line-height:1; color:var(--ink); white-space:nowrap;
  letter-spacing:-.01em; font-variation-settings:'opsz' 36;
}
.proof-stats li > span{ font-size:.74rem; line-height:1.35; color:var(--muted); }
.proof-stats .stars{ color:var(--kraft); font-size:.78rem; letter-spacing:.1em; margin-bottom:2px; white-space:nowrap; }
.proof-stats .stars i{ font-style:normal; }
/* cifras animadas (proof-count.js): dígitos tabulares para que no salten al contar */
.proof-stats .count{ font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:no-preference){
  .proof-stats .stars i{ display:inline-block; opacity:.25; transform:scale(.7); transition:opacity .35s ease, transform .45s var(--ease); }
  .proof-stats .stars.is-lit i{ opacity:1; transform:scale(1); }
  .proof-stats .stars.is-lit i:nth-child(2){ transition-delay:.18s; }
  .proof-stats .stars.is-lit i:nth-child(3){ transition-delay:.36s; }
  .proof-stats .stars.is-lit i:nth-child(4){ transition-delay:.54s; }
  .proof-stats .stars.is-lit i:nth-child(5){ transition-delay:.72s; }
}

/* ---- tarjetas ---- */
.proof-card{
  margin:0; min-width:0; background:var(--white); border:1px solid var(--line-strong);
  border-radius:var(--radius); overflow:hidden;
  box-shadow:0 1px 2px rgba(20,20,19,.04), 0 18px 40px -28px rgba(20,20,19,.35);
}
.proof-copy h3{ font-size:1.15rem; line-height:1.25; margin:6px 0 6px; }
.proof-copy p{ color:var(--muted); font-size:.9rem; line-height:1.55; margin:0; }
.proof-meta{ display:block; font-size:.72rem; line-height:1.3; color:var(--muted); letter-spacing:.02em; }

/* ---- destacados: video + audio ---- */
.proof-featured{ display:grid; gap:22px; margin-bottom:22px; }
.proof-video{ display:grid; grid-template-columns:128px minmax(0,1fr); gap:18px; align-items:center; padding:14px 18px 14px 14px; }
.proof-video-frame{ aspect-ratio:9/16; border-radius:10px; overflow:hidden; background:#141413; border:1px solid var(--line); }
.proof-video video{ display:block; width:100%; height:100%; object-fit:cover; }
.proof-audio{ padding:20px 18px 18px; }
.proof-audio audio{ display:block; width:100%; margin-top:18px; }

/* ---- historias: rejilla vertical, todo visible ---- */
.proof-grid{ display:grid; grid-template-columns:1fr; gap:22px; }
.proof-shot{ display:flex; flex-direction:column; }
.proof-frame{
  display:flex; align-items:center; justify-content:center; height:260px; padding:16px;
  background:var(--surface-2); border-bottom:1px solid var(--line); text-decoration:none;
}
.proof-frame img{
  display:block; width:auto; height:auto; max-width:100%; max-height:100%; object-fit:contain;
  background:var(--white); border:1px solid var(--line); border-radius:6px;
  box-shadow:0 18px 36px -24px rgba(20,20,19,.4);
}
.proof-shot figcaption{ flex:1 1 auto; padding:14px 16px 18px; font-size:.86rem; line-height:1.5; color:var(--muted); background:var(--white); }
.proof-shot figcaption strong{ display:block; margin:0 0 4px; color:var(--ink); font-weight:500; font-size:.98rem; }
/* insignia de verificado (estilo Instagram) junto a cada nombre */
.proof-shot figcaption strong::after{
  content:""; display:inline-block; width:1em; height:1em; margin-left:.3em; vertical-align:-.12em;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.60 12.00 Q23.26 15.02 20.31 16.80 Q20.24 20.24 16.80 20.31 Q15.02 23.26 12.00 21.60 Q8.98 23.26 7.20 20.31 Q3.76 20.24 3.69 16.80 Q0.74 15.02 2.40 12.00 Q0.74 8.98 3.69 7.20 Q3.76 3.76 7.20 3.69 Q8.98 0.74 12.00 2.40 Q15.02 0.74 16.80 3.69 Q20.24 3.76 20.31 7.20 Q23.26 8.98 21.60 12.00Z' fill='%230095f6'/%3E%3Cpath d='M7.6 12.3l2.9 2.8 5.9-6' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.proof-shot .proof-meta{
  display:inline-flex; align-items:center; gap:5px; margin-bottom:8px; padding:3px 8px 3px 6px;
  border:1px solid var(--line); border-radius:var(--pill); color:var(--body-ink); font-size:.68rem;
}
.proof-shot .proof-meta::before{
  content:""; width:12px; height:12px; border-radius:50%; background:var(--cactus);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* capturas anchas y bajas: en móvil el marco se ajusta a la imagen en vez de dejar aire */
@media (max-width:1024px){
  .proof-shot-wide .proof-frame{ height:auto; min-height:0; padding:22px 16px; }
}

/* ---- tablet ---- */
@media (min-width:641px){
  .proof-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ---- desktop ---- */
@media (min-width:1025px){
  .proof-stats{ gap:14px; }
  .proof-stats li{ gap:6px; }
  .proof-stats li{ padding:20px 18px 18px; }
  .proof-stats strong{ font-size:1.9rem; }
  .proof-stats li > span{ font-size:.82rem; }
  .proof-featured{ grid-template-columns:1.2fr 1fr; gap:20px; margin-bottom:20px; }
  .proof-video{ grid-template-columns:172px minmax(0,1fr); gap:28px; padding:20px 28px 20px 20px; }
  .proof-copy h3{ font-size:1.35rem; }
  .proof-audio{ display:flex; flex-direction:column; justify-content:center; padding:28px 30px; }
  .proof-audio audio{ margin-top:22px; }
  .proof-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
  .proof-frame{ height:296px; padding:22px; }
  .proof-shot figcaption{ padding:18px 20px 20px; font-size:.9rem; }
}

@media (prefers-reduced-motion:no-preference){
  .proof-frame img{ transition:transform .3s var(--ease); }
  .proof-frame:hover img{ transform:translateY(-2px); }
}

/* ---- móvil: tarjeta en foco ----
   proof-focus.js escribe --focus (0 = en el centro, 1 = lejos) en cada historia.
   La del centro se ve a tamaño completo; las demás se reducen (hasta 16 %) y atenúan (hasta 55 %). */
@media (max-width:640px) and (prefers-reduced-motion:no-preference){
  .proof-grid.has-focus .proof-shot{
    --focus:1;
    transform:scale(calc(1 - .16 * var(--focus)));
    opacity:calc(1 - .55 * var(--focus));
    transform-origin:50% 50%;
    will-change:transform, opacity;
    /* suaviza los saltos entre eventos de scroll (Android dispara menos por segundo) */
    transition:transform .16s ease-out, opacity .16s ease-out;
  }
  .proof-grid.has-focus .proof-shot.is-focus{
    box-shadow:0 1px 2px rgba(20,20,19,.06), 0 24px 48px -24px rgba(20,20,19,.45);
  }
}
