/* ═══════════════════════════════════════════════════════════════════════════
   SWEET LITTLE TRAUMA — VIDEOCLIP (/videoclip/)
   ───────────────────────────────────────────────────────────────────────────
   Cinco pasos numerados a la izquierda y, a la derecha, la tarjeta que dice qué
   se va a recibir y cuánto cuesta. Después de producir, un solo panel con el
   avance y el resultado.

   Todo el color, la tipografía y los radios salen de las variables de app.css
   y estetica.css (--g0…--g10, --tinta, --acento, --f-rara, --f-serif): acá no
   se define ningún valor de paleta. El acento es el rosa del sitio y se usa
   para lo ELEGIDO y para lo que cuesta: la ventana de la onda, la opción
   marcada, el tope. Nada más lleva color.

   Mobile primero: a 375 px no hay desplazamiento horizontal. Cada texto largo
   (nombre de archivo, mensaje de error) corta por donde puede.
   ═══════════════════════════════════════════════════════════════════════════ */

.pagina-videoclip .vc { max-width: 1240px; }

/* ── CABECERA ─────────────────────────────────────────────────────────────── */
.vc-cabecera { max-width: 70ch; padding: 18px 0 30px; }
.vc-rotulo {
  margin: 0 0 14px;
  font: 500 10px/1 var(--mono);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--acento);
}
.vc-cabecera h1 { font-size: clamp(40px, 6.2vw, 84px); line-height: .98; margin: 0 0 20px; }
.vc-bajada { margin: 0; max-width: 58ch; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.65; color: var(--tinta-dim); }

.vc-aviso {
  margin: 0 0 22px; padding: 12px 16px;
  border: 1px solid var(--linea-fuerte); border-left: 3px solid var(--acento);
  border-radius: 8px; background: var(--capa); color: var(--tinta); font-size: 13px;
}

/* ── LA GRILLA ────────────────────────────────────────────────────────────── */
.vc-armado {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr);
  gap: clamp(28px, 4.4vw, 68px);
  align-items: start;
}
.vc-pasos { min-width: 0; border-bottom: 1px solid var(--linea); }
/* Mientras se prepara o se revisa, los pasos se quedan quietos pero se ven. */
.vc-armado.en-curso .vc-pasos { opacity: .5; }

.vc-paso { padding: 30px 0; border-top: 1px solid var(--linea); }
.vc-paso:first-child { border-top: 1px solid var(--linea-fuerte); }
.vc-paso-titulo {
  display: flex; align-items: baseline; gap: 16px;
  margin: 0 0 18px;
  font: 500 clamp(20px, 2vw, 26px)/1.2 var(--f-rara);
  letter-spacing: -.03em;
}
.vc-num {
  font: 400 clamp(26px, 2.6vw, 34px)/1 var(--f-serif);
  color: var(--acento);
  letter-spacing: 0;
  min-width: 1.6em;
}
.vc-paso-cuerpo { min-width: 0; display: grid; gap: 16px; }
.vc-ayuda { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--tinta-dim); }
.vc-ayuda a, .vc-nota a { color: var(--acento); text-decoration: underline; text-underline-offset: 3px; }

/* ── PASO 1 · LA CANCIÓN ──────────────────────────────────────────────────── */
.vc-soltar {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 26px 24px; min-height: 112px;
  border: 1px dashed var(--g8); border-radius: 12px; background: var(--g1);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.vc-soltar::before {
  content: ''; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--acento);
  background:
    linear-gradient(var(--acento), var(--acento)) 50% 50% / 14px 1.6px no-repeat,
    linear-gradient(var(--acento), var(--acento)) 50% 50% / 1.6px 14px no-repeat;
}
.vc-soltar:hover, .vc-soltar.encima { border-color: var(--acento); background: var(--acento-soft); }
.vc-soltar input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vc-soltar:focus-within { outline: 2px solid var(--acento); outline-offset: 3px; }
.vc-soltar-texto { display: grid; gap: 4px; min-width: 0; }
.vc-soltar-texto b { font-weight: 600; font-size: 15px; }
.vc-soltar-texto small { font-size: 12.5px; line-height: 1.5; color: var(--tinta-dim); }

.vc-lectura { margin: 0; font-size: 13px; color: var(--tinta-dim); }
.vc-lectura.mala, .vc-mala { color: #ffc1b8; }
.vc-lectura.mala { padding: 10px 14px; border: 1px solid #ffc1b84d; border-radius: 8px; background: #ffc1b810; }

.vc-ficha {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 10px 14px; border: 1px solid var(--g6); border-radius: 10px; background: var(--g1);
}
.vc-ficha-texto { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 14px; }
.vc-visto { flex: none; color: var(--verde); font-weight: 700; }
.vc-enlace {
  flex: none; padding: 8px 6px; min-height: 40px; background: none; border: 0;
  color: var(--tinta-dim); text-decoration: underline; text-underline-offset: 3px; font-size: 13px;
}
.vc-enlace:hover { color: var(--tinta); }

/* La onda y su recuadro de 30 s. */
.vc-onda { display: grid; gap: 10px; min-width: 0; }
.vc-onda-marco {
  position: relative; height: 112px; touch-action: pan-y;
  border: 1px solid var(--g6); border-radius: 10px; background: var(--g1); overflow: hidden;
}
.vc-onda-lienzo { display: block; width: 100%; height: 100%; cursor: pointer; color: var(--tinta-faint); }
.vc-onda-ventana {
  position: absolute; top: 0; bottom: 0; min-width: 14px;
  border: 2px solid var(--acento); border-radius: 8px; background: var(--acento-soft);
  cursor: grab; touch-action: none;
}
.vc-onda-ventana.arrastrando { cursor: grabbing; }
.vc-onda-ventana.es-entera { cursor: default; border-color: transparent; background: transparent; }
.vc-onda-ventana:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }
.vc-asa {
  position: absolute; top: 50%; width: 6px; height: 28px; margin-top: -14px;
  border-radius: 3px; background: var(--acento); pointer-events: none;
}
.vc-asa-izq { left: -4px; }
.vc-asa-der { right: -4px; }
.vc-onda-ventana.es-entera .vc-asa { display: none; }
.vc-onda-tiempos {
  display: flex; justify-content: space-between; gap: 12px;
  font: 500 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--tinta-dim);
}
.vc-onda-rango { color: var(--tinta); font-weight: 600; text-align: center; }

.vc-escucha { display: grid; gap: 8px; }
.vc-escucha small { font-size: 12px; color: var(--tinta-dim); }
.vc-escucha audio { width: 100%; height: 40px; }

/* ── OPCIONES (radios de verdad, con cara de botón) ───────────────────────── */
.vc-opciones { display: flex; flex-wrap: wrap; gap: 10px; min-width: 0; }
.vc-opcion { position: relative; display: inline-flex; min-width: 0; max-width: 100%; cursor: pointer; }
.vc-opcion input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.vc-opcion-texto {
  display: grid; gap: 2px; align-content: center; min-height: 46px; min-width: 0;
  padding: 10px 18px; border: 1px solid var(--g7); border-radius: 10px; background: var(--g1);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.vc-opcion-texto b { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.vc-opcion-texto small { font-size: 11px; letter-spacing: .02em; color: var(--tinta-dim); }
.vc-opcion:hover .vc-opcion-texto { border-color: var(--g9); }
.vc-opcion input:checked + .vc-opcion-texto { border-color: var(--acento); background: var(--acento-soft); }
.vc-opcion input:focus-visible + .vc-opcion-texto { outline: 2px solid var(--acento); outline-offset: 2px; }
.vc-opcion.apagada { cursor: not-allowed; }
.vc-opcion.apagada .vc-opcion-texto { opacity: .55; border-style: dashed; }

/* ── PASO 2 · LA FOTO ─────────────────────────────────────────────────────── */
.vc-acciones-foto { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vc-subir-foto { position: relative; cursor: pointer; overflow: hidden; }
.vc-subir-foto input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.vc-subir-foto:focus-within { outline: 2px solid var(--acento); outline-offset: 3px; }
.vc-o { font: 400 16px var(--f-serif); color: var(--tinta-dim); }
.vc-miniatura { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--g0); }
.vc-ficha-foto { padding: 8px 14px 8px 8px; }
.vc-personajes { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.vc-personaje {
  display: grid; gap: 6px; padding: 8px; text-align: left; min-width: 0;
  color: var(--tinta); font-size: 12px;
  border: 1px solid var(--g6); border-radius: 10px; background: var(--g1);
}
.vc-personaje:hover { border-color: var(--acento); }
.vc-personaje img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.vc-personaje span { overflow-wrap: anywhere; line-height: 1.3; }

/* El encuadre: la foto con un recuadro de la forma del formato; lo de adentro es lo que se manda a OmniHuman. */
.vc-encuadre { display: grid; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--g6); border-radius: 10px; background: var(--g1); }
.vc-encuadre[hidden] { display: none; }
.vc-enc-cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.vc-enc-cabecera b { font-weight: 600; font-size: 14px; }
.vc-enc-medida { font: 500 11px var(--mono); letter-spacing: .06em; color: var(--tinta-dim); }
.vc-enc-marco {
  position: relative; justify-self: start; overflow: hidden; touch-action: none; cursor: pointer;
  border-radius: 8px; background: var(--g0); user-select: none;
}
.vc-enc-imagen { display: block; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.vc-enc-ventana {
  position: absolute; box-sizing: border-box; cursor: grab;
  border: 2px solid var(--acento); border-radius: 4px;
  box-shadow: 0 0 0 100vmax rgba(10, 10, 11, .58);
}
.vc-enc-ventana:active { cursor: grabbing; }
.vc-enc-aviso { margin: 0; padding: 10px 14px; font-size: 13px; color: #ffc1b8; border: 1px solid #ffc1b84d; border-radius: 8px; background: #ffc1b810; }
.vc-enc-aviso[hidden] { display: none; }
.vc-enc-ventana:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

.vc-casilla { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--g6); border-radius: 10px; background: var(--capa); cursor: pointer; font-size: 13.5px; line-height: 1.5; }
.vc-casilla input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acento); }
.vc-casilla:focus-within { outline: 2px solid var(--acento); outline-offset: 2px; }

/* ── LA TARJETA ───────────────────────────────────────────────────────────── */
.vc-tarjeta {
  position: sticky; top: calc(var(--barra) + 24px); min-width: 0;
  display: grid; gap: 16px;
  padding: 28px; border: 1px solid var(--g6); border-top: 2px solid var(--acento);
  border-radius: 14px; background: var(--g1);
}
.vc-tarjeta-titulo { margin: 0; font: 500 24px/1.15 var(--f-rara); letter-spacing: -.035em; }
.vc-vacia { margin: 0; color: var(--tinta-dim); line-height: 1.6; }
.vc-resumen { margin: 0; font: 500 13px/1.6 var(--mono); letter-spacing: .01em; overflow-wrap: anywhere; color: var(--tinta); }
.vc-que {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 8px;
  counter-reset: paso; font-size: 13.5px; line-height: 1.5; color: var(--tinta-dim);
}
.vc-que li { counter-increment: paso; display: flex; gap: 12px; }
.vc-que li::before { content: counter(paso); flex: none; font: 400 16px/1.3 var(--f-serif); color: var(--acento); min-width: 1em; }

.vc-precio { display: grid; gap: 6px; padding: 16px 0; border-block: 1px solid var(--linea-fuerte); }
.vc-precio-fila { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0; }
.vc-precio-fila span { flex: 1 1 auto; font-size: 13px; color: var(--tinta-dim); }
.vc-precio-fila b { font: 500 clamp(26px, 2.6vw, 34px)/1 var(--f-rara); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.vc-precio-fila small { font: 500 10px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--tinta-dim); }
.vc-precio-fila.fuerte b { color: var(--acento); }
.vc-nota { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--tinta-dim); }
.vc-tiempo { margin: 0; font-size: 13px; color: var(--tinta); }
.vc-saldo { margin: 0; font: 500 11px var(--mono); letter-spacing: .06em; color: var(--tinta-dim); }
.vc-pista { margin: -6px 0 0; font-size: 12.5px; color: var(--tinta-dim); text-align: center; }
.vc-entera { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--g8); border-radius: 10px; font-size: 13.5px; line-height: 1.55; }
.vc-entera p { margin: 0; }
.vc-tiempo-caja { display: grid; gap: 8px; }
.vc-tiempo-caja p { margin: 0; }

.vc-producir {
  width: 100%; min-height: 56px; padding: 14px 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.vc-taller { justify-self: center; font-size: 12.5px; color: var(--tinta-dim); text-decoration: underline; text-underline-offset: 3px; }
.vc-taller:hover { color: var(--tinta); }
.vc-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.vc-botones .boton-acento { flex: 1 1 auto; }

.vc-tarjeta-ocupada { align-content: start; }
.vc-trabajando { margin: 0; font: 500 17px/1.4 var(--f-rara); letter-spacing: -.02em; }
.vc-pulso { width: 10px; height: 10px; border-radius: 50%; background: var(--acento); animation: vc-pulso 1.3s var(--ease) infinite; }
@keyframes vc-pulso { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ── PRODUCCIÓN: EL AVANCE Y EL RESULTADO ─────────────────────────────────── */
/* Haciéndose o terminado: el título se achica y la bajada se va. */
.vc.en-produccion .vc-cabecera { padding: 6px 0 10px; }
.vc.en-produccion .vc-cabecera h1 { font-size: clamp(22px, 2.4vw, 30px); margin: 0; }
.vc.en-produccion .vc-bajada { display: none; }
.vc-produccion { max-width: 760px; margin: 8px 0 0; display: grid; gap: 22px; min-width: 0; }
.vc-prod-titulo { font: 500 clamp(30px, 4vw, 48px)/1.05 var(--f-rara); letter-spacing: -.045em; outline: none; }
.vc-etapas { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.vc-etapa { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 0 16px 2px; border-top: 1px solid var(--linea); font-size: 16px; color: var(--tinta-dim); }
.vc-etapa:last-child { border-bottom: 1px solid var(--linea); }
.vc-punto { flex: none; width: 12px; height: 12px; border: 1px solid var(--g9); border-radius: 50%; }
.vc-etapa.hecho { color: var(--tinta); }
.vc-etapa.hecho .vc-punto { background: var(--verde); border-color: var(--verde); }
.vc-etapa.activo { color: var(--tinta); font-weight: 600; }
.vc-etapa.activo .vc-punto { background: var(--acento); border-color: var(--acento); animation: vc-pulso 1.3s var(--ease) infinite; }
.vc-etapa .vc-visto { margin-left: auto; }
.vc-medidor { height: 6px; border-radius: 3px; background: var(--g6); overflow: hidden; }
.vc-medidor-relleno { display: block; height: 100%; width: 0; background: var(--acento); transition: width .7s var(--ease); }
.vc-gasto { margin: 0; font: 500 14px var(--mono); letter-spacing: .02em; }
.vc-notas { display: grid; gap: 6px; }
/* El tope por hora: el recorrido espera y sigue solo. No es una alarma, por eso no lleva el ámbar de la pausa. */
.vc-espera {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  padding: 16px 20px; min-width: 0;
  border: 1px solid var(--linea-fuerte); border-left: 3px solid var(--acento); border-radius: 10px; background: var(--capa);
}
.vc-espera[hidden] { display: none; }
.vc-espera p { margin: 0; flex: 1 1 260px; min-width: 0; font-size: 14px; line-height: 1.55; color: var(--tinta); }
.vc-pausa { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--ambar); border-radius: 12px; background: #ffd3a012; }
.vc-pausa h3 { font: 500 20px var(--f-rara); letter-spacing: -.03em; }
.vc-final { display: grid; gap: 16px; }
.vc-final h3 { font: 500 24px var(--f-rara); letter-spacing: -.03em; }
.vc-video { width: min(100%, 360px); max-height: 74vh; justify-self: start; border-radius: 12px; background: #000; object-fit: contain; }
.vc-video.ancho { width: 100%; max-height: none; aspect-ratio: 16 / 9; }
.vc-legal { margin: 0; font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-faint); }

/* ── PANTALLAS ANGOSTAS ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .vc-armado { grid-template-columns: minmax(0, 1fr); }
  .vc-tarjeta { position: static; }
}
@media (max-width: 600px) {
  .vc-cabecera { padding-top: 6px; }
  .vc-paso { padding: 24px 0; }
  .vc-paso-titulo { gap: 12px; }
  .vc-soltar { padding: 20px 16px; gap: 14px; }
  .vc-opcion { flex: 1 1 100%; }
  .vc-opcion-texto { width: 100%; }
  .vc-miradas .vc-opcion { flex: 1 1 calc(50% - 5px); }
  .vc-tarjeta { padding: 22px 18px; }
  .vc-botones > * { flex: 1 1 100%; }
  .vc-onda-tiempos { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .vc-pulso, .vc-etapa.activo .vc-punto { animation: none; }
  .vc-medidor-relleno { transition: none; }
}
