/* EDICION POR VOZ -- estilos PROPIOS (prefijo ev-). Colores y tipografia: los de la app (style.css), no los del demo. No toca ninguna regla existente. */
.ev-raiz {
  --ev-amarillo: var(--accent-2, #ffdd57);
  --ev-verde: var(--verde, #7ee0a0);
  --ev-aviso: #f2994a;
  position: fixed; inset: 0; z-index: 9000; overflow-y: auto; padding-top: var(--franja-alto, 0px);   /* la franja DESARROLLO (franja_desarrollo.js) reserva su alto en --franja-alto: no tapa el encabezado */
  -webkit-overflow-scrolling: touch;
  background: var(--bg, #0f1117); color: var(--text, #e8eaf0);
  font-family: inherit; font-size: 16px; line-height: 1.35;
}
html.ev-abierta, html.ev-abierta body { overflow: hidden; }
/* RESETEO DE LOS BOTONES DENTRO DEL OVERLAY: style.css tiene `button { width: 100%; margin-top: 12px; min-height: 48px; fondo verde... }` para toda la app. `:where` no suma especificidad: las reglas ev-* de abajo
   (que van DESPUES) ganan, y lo que no declaran queda en cero en vez de heredar el verde de la app. */
.ev-raiz :where(button) { display: inline-block; width: auto; margin: 0; min-height: 0; padding: 0; background: transparent; color: inherit; border: 0; border-radius: 0; font: inherit; gap: 0; text-align: left; cursor: pointer; box-sizing: border-box; }
.ev-cargando { padding: 40px 16px; text-align: center; color: var(--text-dim, #c2c8d8); }
.ev-pantalla { min-height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; }
.ev-al-pie { margin-top: auto; }

.ev-encabezado { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ev-titulos { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ev-titulo { font-size: 18px; font-weight: 700; }
.ev-sub { font-size: 12px; color: var(--text-dim, #c2c8d8); }
.ev-icono-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; display: flex; align-items: center; justify-content: center; padding: 0; }
.ev-deshacer { margin-left: auto; flex: 0 0 auto; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; display: flex; align-items: center; gap: 6px; font: inherit; }
.ev-deshacer:disabled { opacity: .45; }
.ev-deshacer-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.ev-deshacer-txt b { font-size: 13px; }
.ev-deshacer-txt small { font-size: 10px; color: var(--text-dim, #c2c8d8); max-width: 110px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ev-video { position: relative; height: 176px; border-radius: 18px; background: var(--surface-2, #1f2330); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ev-video.corto { height: 230px; }
.ev-video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.ev-video-falso { color: var(--text-dim, #c2c8d8); font-size: 13px; padding: 6px 10px; border: 1px dashed var(--border, #2a2f3d); border-radius: 10px; }

.ev-h2 { font-size: 17px; font-weight: 800; }
.ev-h3 { font-size: 15px; font-weight: 700; }
.ev-etq { font-size: 12px; font-weight: 700; color: var(--text-dim, #c2c8d8); }
.ev-dim { font-size: 13px; color: var(--text-dim, #c2c8d8); }
.ev-nota { background: var(--surface, #171a23); border-radius: 12px; padding: 10px 14px; font-size: 12px; color: var(--text-dim, #c2c8d8); line-height: 1.5; }

.ev-modo { display: flex; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; min-height: 70px; box-sizing: border-box; padding: 10px 16px; text-align: left; border-radius: 16px; border: 1px solid var(--ev-amarillo); background: var(--surface, #171a23); color: inherit; font: inherit; text-align: left; }
.ev-modo svg { color: var(--ev-amarillo); flex: 0 0 auto; }
.ev-modo.grande { padding: 16px; align-items: center; }
.ev-modo-txt { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; text-align: left; }
.ev-modo-txt b { font-size: 16px; font-weight: 700; }
.ev-modo-txt small { font-size: 12px; color: var(--text-dim, #c2c8d8); line-height: 1.4; }
.ev-modo.grande .ev-modo-txt small { font-size: 13px; }
.ev-disco { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 26px; background: var(--ev-amarillo); color: #1a1a1a; display: flex; align-items: center; justify-content: center; }
.ev-disco svg { color: #1a1a1a; }
.ev-disco.verde { background: var(--ev-verde); }

.ev-fila2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-boton { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--border, #2a2f3d); background: transparent; color: inherit; font: inherit; font-size: 13px; font-weight: 700; padding: 0 12px; }
.ev-boton.grande { min-height: 52px; border-radius: 14px; font-size: 15px; font-weight: 800; }
.ev-boton.amarillo { background: var(--ev-amarillo); color: #1a1a1a; border: none; }
.ev-boton.verde { background: var(--ev-verde); color: #10241a; border: none; }
.ev-boton.aviso { color: var(--ev-aviso); }
.ev-boton:disabled { opacity: .45; }

.ev-tarjeta { display: flex; flex-direction: column; gap: 8px; background: var(--surface, #171a23); border: 1px solid var(--border, #2a2f3d); border-radius: 16px; padding: 14px; }
.ev-etiqueta { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--ev-amarillo); }
.ev-pregunta { font-size: 18px; font-weight: 700; line-height: 1.4; }

.ev-lineas { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.ev-linea { display: block; width: 100%; box-sizing: border-box; text-align: left; background: var(--surface, #171a23); border: 2px solid transparent; border-radius: 10px; padding: 9px 12px; color: var(--text-dim, #c2c8d8); font: inherit; }
.ev-linea.marcada { background: #2a1e14; border-color: var(--ev-aviso); color: var(--text, #e8eaf0); text-decoration: line-through; }
/* ELEGIDA, NO SACADA (24/10/2026): tachado = «se saca». En los selectores de frase de efectos/placas/iconos/filtros la elegida solo se resalta. */
.ev-linea.elegida { background: #1f2a14; border-color: var(--ev-amarillo); color: var(--text, #e8eaf0); text-decoration: none; }
.ev-linea.elegida.marcada { text-decoration: none; }
.ev-aviso-linea { font-size: 13px; color: var(--ev-aviso); font-weight: 700; margin-top: 6px; }
.ev-caja-sel { display: flex; flex-direction: column; gap: 6px; }

.ev-barra-accion { display: flex; gap: 10px; }
.ev-barra-accion .ev-boton { flex: 1 1 auto; }
.ev-mic { width: 56px; height: 52px; flex: 0 0 56px; border-radius: 14px; border: none; background: var(--ev-amarillo); color: #1a1a1a; display: flex; align-items: center; justify-content: center; padding: 0; }
.ev-mic.escuchando { background: var(--rojo, #c9372c); color: #fff; }

.ev-item { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); }
.ev-cita { font-size: 15px; line-height: 1.5; }

.ev-tramo { text-align: center; font-size: 13px; color: var(--text-dim, #c2c8d8); }
.ev-antes-ahora { font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.ev-antes-ahora small { color: var(--text-dim, #c2c8d8); }
.ev-encuadres { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; font: inherit; font-size: 13px; }
.ev-chip.on { border-color: var(--ev-amarillo); background: #2a2713; }

/* ---- ETAPA B: Imagenes y clips ---- */
.ev-agregar { gap: 10px; }
.ev-agregar svg { flex: 0 0 auto; }
.ev-recurso { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 14px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; text-align: left; }
.ev-recurso-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; text-align: left; }
.ev-recurso-txt b { font-size: 14px; font-weight: 700; }
.ev-recurso-txt small { font-size: 12px; color: var(--text-dim, #c2c8d8); line-height: 1.4; }
.ev-mini { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; background: var(--surface-2, #1f2330); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text-dim, #c2c8d8); overflow: hidden; }
.ev-mini img { width: 100%; height: 100%; object-fit: cover; }
.ev-mini.grande { width: 84px; height: 64px; flex-basis: 84px; }
.ev-video.recurso { height: 240px; }
.ev-video img { width: 100%; height: 100%; object-fit: contain; }
.ev-video-falso.borde { border: 3px solid var(--ev-amarillo); padding: 70px 40px; font-size: 13px; border-radius: 12px; }
.ev-ver-hoy { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 22px; background: rgba(15, 17, 23, .85); color: inherit; font-size: 12px; }
.ev-acciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-accion { min-height: 76px; border-radius: 14px; border: 1px solid var(--ev-amarillo); background: var(--surface, #171a23); color: inherit; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; padding: 10px 14px; text-align: left; }
.ev-accion b { font-size: 15px; font-weight: 700; }
.ev-accion small { font-size: 12px; color: var(--text-dim, #c2c8d8); }
.ev-accion.aviso { border-color: var(--ev-aviso); }
.ev-panel { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-pista { font-size: 12px; flex: 1 1 auto; }
.ev-clip-barra { position: relative; height: 40px; border-radius: 10px; background: var(--surface-2, #1f2330); touch-action: none; }
.ev-clip-ventana { position: absolute; top: 0; bottom: 0; border: 3px solid var(--ev-amarillo); border-radius: 8px; background: rgba(255, 221, 87, .18); box-sizing: border-box; touch-action: none; cursor: grab; }
.ev-clip-escala { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-dim, #c2c8d8); }
.ev-clip-txt { color: var(--ev-amarillo); font-weight: 700; }
.ev-campo { flex: 1 1 auto; min-height: 44px; border-radius: 12px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; padding: 0 12px; font: inherit; font-size: 15px; margin: 0; width: auto; }
.ev-escribir { display: flex; gap: 8px; }
.ev-pedido { background: var(--surface, #171a23); border-radius: 12px; padding: 10px 14px; }
.ev-pedido small { color: var(--text-dim, #c2c8d8); font-size: 12px; }
.ev-cita-caja { display: flex; gap: 10px; background: var(--surface, #171a23); border-radius: 12px; padding: 10px 12px; font-size: 15px; line-height: 1.5; }
.ev-cita-caja small { color: var(--ev-amarillo); font-weight: 700; }
.ev-aviso-linea.libre { color: var(--ev-verde); }
.ev-aviso-linea.pisa { color: var(--ev-aviso); }
.ev-candidata { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border-radius: 14px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; text-align: left; }
.ev-dicho-grande { font-size: 20px; font-weight: 700; line-height: 1.4; }
.ev-sello { position: absolute; top: 14px; left: 14px; background: rgba(15, 17, 23, .82); border: 1px solid var(--border, #2a2f3d); border-radius: 10px; padding: 6px 10px; font-size: 12px; }
.ev-linea.con-tiempo { display: flex; gap: 10px; }
.ev-linea.con-tiempo small { color: var(--ev-amarillo); font-weight: 700; min-width: 34px; }

/* ---- ETAPA C: cajas, subtitulos, hook, copy y etiqueta ---- */
.ev-pantalla.compacta { gap: 8px; }
.ev-titulo.chico { font-size: 16px; }
.ev-video.alto { height: 220px; }
.ev-video.vista { height: 200px; }
.ev-video.vista.cabeza, .ev-video.alto { align-items: flex-end; padding-bottom: 14px; box-sizing: border-box; }
.ev-opcion-mini { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 12px 6px 6px; border-radius: 14px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; text-align: left; }
.ev-opcion-mini b { font-size: 15px; }
.ev-th { position: relative; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; background: var(--surface-2, #1f2330); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ev-th.base.abajo { align-items: flex-end; } .ev-th.base.centro { align-items: center; }
.ev-th-cara { position: absolute; left: 50%; top: 4px; width: 34px; height: 44px; transform: translateX(-50%); }
.ev-th-caja { position: relative; z-index: 1; margin-bottom: 4px; padding: 1px 3px; font-size: 5px; font-weight: 800; line-height: 1.1; text-align: center; color: #111; border-radius: 2px; }
.ev-th-caja.amarilla { background: var(--ev-amarillo); } .ev-th-caja.clara { background: #f4f6fa; } .ev-th-caja.arriba { margin-bottom: 14px; }
.ev-th-sub { position: relative; z-index: 1; font-size: 6px; font-weight: 800; color: #fff; text-shadow: 0 0 2px #000; margin-top: 22px; }
.ev-th.plena { background: #2f6fed; color: #fff; font-size: 6px; font-weight: 800; text-align: center; padding: 4px; box-sizing: border-box; }
.ev-th-lista { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; font-size: 6px; font-weight: 700; color: #fff; }
.ev-th-lista b, .ev-lista-mini b, .ev-item-lista b { color: var(--ev-verde); }
.ev-th.lineas { flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 8px; box-sizing: border-box; }
.ev-th.lineas i { display: block; height: 3px; border-radius: 2px; background: var(--text-dim, #c2c8d8); }
.ev-th.feed { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 4px; box-sizing: border-box; }
.ev-th.feed i { background: var(--surface, #171a23); border-radius: 2px; } .ev-th.feed i.on { background: var(--ev-amarillo); }
.ev-area { width: 100%; box-sizing: border-box; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); color: inherit; font: inherit; font-size: 16px; resize: vertical; }
.ev-hook-caja { max-width: 86%; padding: 6px 10px; border-radius: 6px; background: var(--ev-amarillo); color: #111; font-size: 15px; font-weight: 900; text-align: center; line-height: 1.15; }
.ev-centro-abajo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ev-escribir-caja { width: 100%; }
.ev-frase-marco { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--ev-amarillo); background: #2a2713; font-size: 15px; }
.ev-formato { padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #111; }
.ev-formato.cabeza { background: #f4f6fa; } .ev-formato.plena { background: #2f6fed; color: #fff; }
.ev-placa-mini { padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.ev-placa-mini.clara, .ev-placa-vista.clara { background: #f4f6fa; color: #111; } .ev-placa-mini.azul, .ev-placa-vista.azul { background: #2f6fed; color: #fff; }
.ev-placa-vista { max-width: 86%; padding: 8px 12px; border-radius: 6px; font-size: 15px; font-weight: 900; text-align: center; }
.ev-lista-mini { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; } .ev-lista-mini.grande { font-size: 15px; }
.ev-item-lista { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ev-texto { font-size: 14px; line-height: 1.4; }
.ev-tabs { display: flex; gap: 6px; overflow-x: auto; }
.ev-tab { flex: 1 0 auto; min-height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); font-size: 13px; font-weight: 700; }
.ev-tab.on { border-color: var(--ev-amarillo); background: #2a2713; color: var(--ev-amarillo); }
.ev-hashtags { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-hashtag { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 18px; background: var(--surface-2, #1f2330); font-size: 13px; }
.ev-hashtag button { width: 28px; height: 28px; border-radius: 14px; font-size: 16px; text-align: center; }
.ev-hashtag-mas { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px dashed var(--ev-amarillo); color: var(--ev-amarillo); font-size: 13px; font-weight: 700; }
.ev-grilla { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.ev-grilla-mia, .ev-grilla-otro { aspect-ratio: 3 / 4; border-radius: 8px; background: var(--surface-2, #1f2330); display: flex; align-items: flex-end; justify-content: center; padding: 6px; box-sizing: border-box; font-size: 9px; font-weight: 800; text-align: center; color: var(--text-dim, #c2c8d8); }
.ev-grilla-mia { border: 2px solid var(--ev-amarillo); color: #fff; }
.ev-grilla-texto { font-size: 11px; line-height: 1.1; }
/* LA TARJETA «ASI QUEDA EN TU PERFIL» CON LA PORTADA (24/10/2026): la portada limpia de fondo y el texto de la etiqueta encima, abajo, sobre un degradado para que se lea. */
.ev-grilla-mia.con-portada { position: relative; overflow: hidden; padding: 0; }
.ev-grilla-portada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-grilla-mia.con-portada .ev-grilla-texto { position: relative; z-index: 1; width: 100%; padding: 14px 6px 6px; box-sizing: border-box; text-align: center; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.8); background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); }
.ev-opcion-mini { width: 100%; justify-content: flex-start; }
.ev-pantalla > .ev-campo { flex: 0 0 auto; }
.ev-th.feed i { display: block; min-height: 18px; }
.ev-th-lista { margin-left: 4px; line-height: 1.25; }

/* ---- ETAPA D: subir una tuya, efectos e iconos, candado, reordenar ---- */
.ev-archivo-oculto { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.ev-subir-caja { display: flex; flex-direction: column; gap: 6px; }
.ev-subir { gap: 8px; }
.ev-progreso { height: 14px; border-radius: 7px; background: var(--surface-2, #1f2330); overflow: hidden; }
.ev-progreso-barra { height: 100%; background: var(--ev-amarillo); border-radius: 7px; transition: width .2s ease; }
.ev-candado { padding: 8px 12px; border-radius: 10px; background: #2a2713; border: 1px solid var(--ev-amarillo); font-size: 13px; }
.ev-iconos-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev-icono-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 84px; padding: 8px 4px; border-radius: 14px; border: 1px solid var(--border, #2a2f3d); background: var(--surface, #171a23); text-align: center; }
.ev-icono-item small { font-size: 12px; color: var(--text-dim, #c2c8d8); }
.ev-glifo { font-size: 30px; line-height: 1; }
.ev-glifo.grande { font-size: 40px; }
.ev-icono-elegido { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; background: var(--surface, #171a23); border: 1px solid var(--ev-amarillo); }
.ev-recurso.reordenando { cursor: default; }
.ev-orden { display: flex; flex-direction: column; gap: 6px; margin-left: auto; }
.ev-orden .ev-icono-btn { width: 44px; height: 44px; font-size: 20px; justify-content: center; text-align: center; }
.ev-orden .ev-icono-btn:disabled { opacity: .35; }
.ev-raiz .oculto { display: none !important; }

/* Inventario de graficos e iconos: vistas (maqueta 9:16) */
.ev-icono-vista { width: 100%; aspect-ratio: 9 / 16; max-height: 150px; object-fit: contain; border-radius: 8px; background: #000; }
.ev-icono-vista.grande { width: 54px; max-height: none; }

/* LOS RELLENOS SON NEUTROS (sin texto entre corchetes) y el rango de frases */
.ev-mini-neutra { display: block; width: 100%; height: 100%; min-height: 36px; border-radius: 8px; background: var(--surface-2, #1f2330); }
.ev-raiz .ev-linea.marcada { background: color-mix(in srgb, var(--ev-amarillo) 18%, transparent); box-shadow: inset 3px 0 0 var(--ev-amarillo); }
/* PUBLICAR ENTERO A LA VISTA (telefono de 360 px): el overlay mide el alto visible y el boton queda pegado al pie con aire debajo */
.ev-raiz { height: 100dvh; max-height: 100dvh; }
.ev-raiz .ev-pantalla { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
.ev-raiz #evPublicar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2; box-shadow: 0 -8px 16px var(--bg, #0f1117); }
.ev-dicho { font-size: 13px; color: var(--text-dim, #c2c8d8); }
