/* La animación «del borrador al CV pulido» (static/js/polish.js; diseño
   2026-10-09, 4c y 6a). Las medidas son las de la escena del diseño, en
   píxeles de 1920 × 1080 (1100 × 619 la pequeña): el script la escala al
   ancho de la caja. Los colores, los del diseño: la escena es una ilustración
   y no cambia con el tema. */

.polish {
  position: relative; width: 100%; aspect-ratio: 1920 / 1080; overflow: hidden;
  border-radius: 16px; background: #f3f5f8; border: 1px solid #e6eaf3;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Naskh Arabic",
               "Noto Sans Devanagari", "Nirmala UI", system-ui, "Segoe UI", sans-serif;
  color: #1a2338;
}
.polish[data-compact] { aspect-ratio: 1100 / 619; border-radius: 14px; }
.pa-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pa-world { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }

.pa-belt {
  position: absolute; top: 787px; width: 700px; height: 16px; border-radius: 8px; background: #e3e8f2;
  background-image: linear-gradient(90deg, #cdd5e5 0 4px, transparent 4px); background-size: 30px 100%;
  box-shadow: inset 0 -2px 0 rgba(26, 35, 56, .06);
}
.pa-shadow {
  position: absolute; left: 690px; top: 800px; width: 540px; height: 56px;
  background: radial-gradient(ellipse at center, rgba(26, 35, 56, .16), transparent 70%);
}
.pa-clip { position: absolute; top: 0; height: 1080px; overflow: hidden; }

.pa-card {
  position: absolute; top: 305px; width: 560px; height: 470px; box-sizing: border-box; padding: 30px 36px;
  background: #fff; border: 1px solid #e3e7ef; border-radius: 20px;
  box-shadow: 0 1px 2px rgba(26, 35, 56, .06), 0 18px 44px rgba(26, 35, 56, .09);
}
/* La etiqueta va encima de la tarjeta: la tarjeta no recorta. */
.pa-clip .pa-card { overflow: visible; }
.pa-label {
  position: absolute; top: -50px; inset-inline-start: 4px; display: flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #68748f;
  line-height: 1.1; white-space: nowrap;
}
.pa-check { display: inline-flex; justify-content: center; flex: none; width: 0; }
.pa-check svg { width: 28px; height: 28px; flex: none; }
.pa-check circle { fill: #0a8150; }
.pa-check path { stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.pa-entry { display: flex; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #e3e7ef; }
.pa-entry-logo {
  width: 56px; height: 56px; flex: none; border-radius: 12px; background: #16336b; color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 800; letter-spacing: .02em;
}
.pa-entry-text { flex: 1; min-width: 0; }
.pa-entry-role { font-size: 26px; font-weight: 800; line-height: 1.2; color: #1a2338; }
.pa-entry-sub { font-size: 24px; font-weight: 500; line-height: 1.3; color: #68748f; }

.pa-words { display: flex; flex-wrap: wrap; gap: 2px 13px; align-content: flex-start; }
.pa-word { display: inline-block; font-size: 28px; line-height: 1.5; opacity: 0; }
.pa-word.is-err {
  text-decoration-line: underline; text-decoration-style: wavy; text-decoration-color: rgba(229, 72, 77, 0);
  text-decoration-thickness: 2.5px; text-underline-offset: 9px;
}

.pa-clean { margin: 0; font-size: 28px; line-height: 1.55; font-weight: 500; color: #1a2338; text-wrap: pretty; }
.pa-nowrap { white-space: nowrap; }
.pa-hi {
  font-weight: 700; background-image: linear-gradient(rgba(28, 86, 233, .14), rgba(28, 86, 233, .14));
  background-repeat: no-repeat; background-position: 0 0; background-size: 0 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 6px; padding: 2px 4px; margin: 0 -4px;
}
[dir=rtl] .pa-hi { background-position: 100% 0; }

.pa-machine { position: absolute; left: 720px; top: 240px; width: 480px; height: 580px; transform-origin: 50% 100%; }
.pa-machine-body { position: absolute; inset: 0; background: #fff; border: 2px solid #dfe4ee; border-radius: 30px; }
.pa-slot {
  position: absolute; top: 53px; width: 20px; height: 494px; border-radius: 10px; background: #1a2338;
  box-shadow: inset 0 0 0 4px #2c3753;
}
.pa-slot-l { left: -10px; }
.pa-slot-r { right: -10px; }
.pa-badge-row { position: absolute; top: 40px; left: 0; right: 0; display: flex; justify-content: center; }
.pa-badge {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 10px 22px; background: #fff;
  border: 1.5px solid #dfe4ee; color: #1a2338; font-size: 24px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.pa-logo { height: 28px; width: auto; flex: none; display: block; }
.pa-screen {
  position: absolute; left: 40px; top: 124px; width: 400px; height: 300px; border-radius: 18px;
  background: #f5f8ff; border: 1px solid #dbe4fb; overflow: hidden;
}
.pa-stripes {
  position: absolute; inset: 0; background-size: 40px 40px;
  background-image: linear-gradient(135deg, rgba(28, 86, 233, .06) 25%, transparent 25%, transparent 50%,
                    rgba(28, 86, 233, .06) 50%, rgba(28, 86, 233, .06) 75%, transparent 75%, transparent);
}
.pa-fixes { position: absolute; inset: 0; padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pa-fix { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.4; white-space: nowrap; opacity: 0; }
.pa-bad { position: relative; color: #b42318; font-weight: 500; }
.pa-strike { position: absolute; inset-inline-start: 0; top: 54%; height: 2.5px; width: 0; background: #b42318; border-radius: 2px; }
.pa-arrow { color: #68748f; }
.pa-good { display: inline-block; color: #1c56e9; font-weight: 700; }
.pa-bar { position: absolute; left: 40px; top: 456px; width: 400px; height: 14px; border-radius: 999px; background: #e3e7ef; overflow: hidden; }
.pa-bar-fill { position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0; background: #1c56e9; border-radius: 999px; }
.pa-bar-done { background: #0a8150; opacity: 0; }
.pa-status { position: absolute; left: 40px; right: 40px; top: 488px; height: 34px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.pa-working, .pa-done { position: absolute; inset-inline-start: 0; top: 0; white-space: nowrap; opacity: 0; }
.pa-working { color: #68748f; }
.pa-done { color: #0a8150; }
.pa-spark { position: absolute; width: 40px; height: 40px; color: #1c56e9; fill: currentColor; opacity: 0; }

/* Dónde va: debajo de la guía del paso 1 (4c) y bajo «Con tecnología de
   OpenAI» en el paso 3 (6a). */
.polish-pitch { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
/* En el escritorio, la tercera fila del paso 1, a todo el ancho (la guía es la
   segunda); en una columna, en su sitio del HTML: subir → guía → animación → vista previa. */
.step-split > .polish-pitch { grid-column: 1 / -1; grid-row: 3; }
@media (max-width: 900px) {
  .step-split > .polish-pitch { grid-column: auto; grid-row: auto; }
}
.polish-pitch-head { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.polish-pitch-head .hero-eyebrow { margin: 0; }
.polish-pitch-box { width: 100%; max-width: 880px; }
.polish-compact { width: 100%; max-width: 460px; margin: 0 auto; }
.powered-row { align-items: center; gap: 8px; }
.powered-logo { width: 15px; height: 15px; flex: none; display: block; }

.polish-pause { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 30px; }
/* Con el dedo, 44 px (la auditoría, 2026-11-15; app.css, «Con el dedo»). */
@media (pointer: coarse) { .polish-pause { min-width: 44px; min-height: 44px; } }
.polish-pause[hidden] { display: none; }
.polish-pause .bi { width: 14px; height: 14px; }
.polish-pause[aria-pressed=false] .ico-play,
.polish-pause[aria-pressed=true] .ico-pause { display: none; }
