/* Página Clips (videos para Mercado Libre) */
.clips-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 24px; margin-bottom: 14px; border: 1px solid rgba(255,196,0,.28); border-radius: 12px;
  background: linear-gradient(125deg, rgba(255,196,0,.12), var(--bg2) 46%, rgba(77,156,248,.10));
}
.clips-eyebrow { color: var(--text2); font: 600 10px var(--mono); letter-spacing: 1.2px; }
.clips-hero h2 { margin-top: 6px; font-size: 24px; }
.clips-hero p { margin-top: 5px; max-width: 640px; color: var(--text2); font-size: 12px; line-height: 1.5; }
.clips-resumen { display: grid; justify-items: end; gap: 2px; white-space: nowrap; color: var(--text2); font-size: 11px; }
.clips-resumen strong { font: 700 34px var(--mono); color: var(--text); line-height: 1; }
.clips-alerta { margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(240,93,93,.4); background: rgba(240,93,93,.10); color: var(--text); font-size: 12px; }
.clips-alerta ul { margin: 6px 0 0 18px; }
.clips-lista { display: grid; gap: 8px; }
.clips-vacio { padding: 34px 16px; text-align: center; color: var(--text3); font-size: 13px; }
.clips-fila {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg2);
}
.clips-fila > img, .clips-sinfoto { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; background: #fff; cursor: zoom-in; display: grid; place-items: center; font-size: 22px; }
.clips-info { display: grid; gap: 2px; min-width: 0; }
.clips-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clips-info small { color: var(--text3); font: 10px var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clips-info small.clips-error { color: var(--red); font-family: inherit; white-space: normal; }
.clips-acciones { display: flex; gap: 8px; align-items: center; justify-content: flex-end; min-width: 150px; }
.clips-barra { width: 150px; height: 8px; border-radius: 999px; background: var(--bg4, rgba(127,127,127,.25)); overflow: hidden; }
.clips-barra i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffcc1a, #f0a800); transition: width .6s ease; }

.clips-panel { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(8,10,18,.78); }
.clips-panel.abierto { display: flex; }
.clips-caja { display: flex; flex-direction: column; width: min(760px, 96vw); max-height: 92vh; border: 1px solid var(--border); border-radius: 14px; background: var(--bg2); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; }
.clips-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.clips-cab div { display: grid; gap: 2px; min-width: 0; }
.clips-cab strong { font-size: 15px; }
.clips-cab small { color: var(--text3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clips-cuerpo { padding: 14px 18px; overflow-y: auto; }
.clips-paso { display: flex; align-items: center; gap: 8px; margin: 14px 0 8px; font-size: 13px; font-weight: 600; }
.clips-paso:first-child { margin-top: 0; }
.clips-paso b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffcc1a; color: #241a00; font-size: 12px; }
.clips-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.clips-foto { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.clips-foto img { width: 100%; height: 100%; object-fit: contain; }
.clips-foto.elegida { opacity: 1; border-color: #ffcc1a; }
.clips-foto span { position: absolute; top: 5px; left: 5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #ffcc1a; color: #241a00; font: 700 12px var(--mono); }
.clips-foto em { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px; background: rgba(10,11,13,.78); color: #fff; font: 600 9px var(--mono); font-style: normal; text-align: center; }
.clips-textos { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: 13px/1.6 inherit; resize: vertical; }
.clips-nota { display: block; margin-top: 6px; color: var(--text3); font-size: 11px; }
.clips-musica { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.clips-musica label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.clips-pie { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); }
.clips-pie span { margin-right: auto; color: var(--text3); font-size: 11px; }
.clips-visor { display: grid; grid-template-columns: minmax(200px, 270px) 1fr; gap: 20px; align-items: start; }
.clips-visor video { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.clips-como { display: grid; gap: 10px; font-size: 13px; }
.clips-como ol { margin-left: 18px; display: grid; gap: 6px; line-height: 1.45; }
.clips-como small { color: var(--text3); font: 10px var(--mono); }
.clips-visor-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 760px) {
  .clips-hero { flex-direction: column; align-items: flex-start; }
  .clips-resumen { justify-items: start; }
  .clips-fila { grid-template-columns: 48px minmax(0, 1fr); }
  .clips-fila > img, .clips-sinfoto { width: 48px; height: 48px; }
  .clips-estado, .clips-acciones { grid-column: 1 / -1; justify-content: flex-start; }
  .clips-visor { grid-template-columns: 1fr; }
  .clips-visor video { max-width: 260px; margin: 0 auto; }
}

/* Elegir cómo hacer el clip y formularios (video propio / IA) */
.clips-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.clips-opcion { display: grid; gap: 8px; justify-items: start; align-content: start; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.clips-opcion:not(:disabled):hover { border-color: #ffcc1a; transform: translateY(-2px); }
.clips-opcion:disabled { opacity: .55; cursor: not-allowed; }
.clips-opcion-icono { font-size: 30px; line-height: 1; }
.clips-opcion strong { font-size: 15px; }
.clips-opcion span:not(.clips-opcion-icono) { color: var(--text2); font-size: 12px; line-height: 1.5; }
.clips-opcion em { padding: 3px 10px; border-radius: 999px; background: rgba(255,204,26,.16); color: var(--text); font: 600 11px var(--mono); font-style: normal; }
.clips-pie-nota { padding: 0 18px 16px; color: var(--text3); font-size: 11px; line-height: 1.5; }
.clips-paso span { color: var(--text3); font-weight: 400; font-size: 11px; }
.clips-video-zona { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
.clips-video-previa { display: grid; place-items: center; aspect-ratio: 9 / 16; border: 1px dashed var(--border); border-radius: 12px; background: #000; overflow: hidden; font-size: 34px; }
.clips-video-previa video { width: 100%; height: 100%; object-fit: cover; }
.clips-video-datos { display: grid; gap: 10px; justify-items: start; }
.clips-tramo { display: grid; gap: 10px; width: 100%; }
.clips-tramo[hidden], .clips-subida[hidden], .clips-tramo label[hidden] { display: none; }
.clips-tramo label { display: grid; gap: 4px; color: var(--text2); font-size: 12px; }
.clips-tramo input[type=range] { width: 100%; accent-color: #f0a800; }
.clips-select, .clips-input { min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.clips-select option { background: var(--bg2); color: var(--text); }
.clips-guion-cab { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.clips-guion { display: grid; gap: 8px; margin-bottom: 8px; }
.clips-guion .clips-vacio { padding: 18px 12px; border: 1px dashed var(--border); border-radius: 10px; }
.clips-toma { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; }
.clips-toma span { margin-top: 8px; padding: 3px 0; border-radius: 999px; background: rgba(255,204,26,.16); color: var(--text); font: 600 10px var(--mono); text-align: center; }
.clips-toma-texto { width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: 13px/1.45 inherit; resize: vertical; }
.clips-ancho { width: 100%; }
.clips-subida { display: grid; gap: 6px; margin-top: 12px; color: var(--text2); font-size: 12px; }
.clips-subida .clips-barra { width: 100%; }
.clips-aviso-suave { color: var(--yellow, #f0a800); }
.clips-error { color: var(--red); }
.clips-alerta-suave { margin: 12px 0 0; border-color: rgba(255,196,0,.4); background: rgba(255,196,0,.10); line-height: 1.5; }
.clips-como .clips-alerta-suave { margin: 0; }
@media (max-width: 760px) {
  .clips-opciones { grid-template-columns: 1fr; }
  .clips-toma { grid-template-columns: 1fr; gap: 4px; }
  .clips-toma span { justify-self: start; margin-top: 0; padding: 3px 12px; }
  .clips-video-zona { grid-template-columns: 110px 1fr; }
}
.clips-nota + .clips-subir { margin-top: 8px; }
.clips-rehacer { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px dashed var(--border); border-radius: 12px; }
.clips-rehacer small { color: var(--text2); font: 12px/1.45 var(--font, inherit); font-family: inherit; }
