/* Ultracool · misma estética que scriptease y Go with the flow: mismas capas, oscuro por defecto,
   amarillo de acción en claro y degradado en oscuro. Solo cambian los colores con data-tema en <html>. */
:root {
  --bg: #fafafa; --card: #ffffff; --card2: #f5f5f5; --b1: #ececec; --b2: #d6d6d6;
  --t1: #0b0b0b; --t2: #4b4b4b; --t3: #8b8a86;
  --a: #f9cf49; --accion: #f9cf49;
  --gris: #8a8f98; --gris-suave: #eef0f3;
  --azul: #2563eb; --azul-suave: #e7efff;
  --verde: #16a34a; --verde-suave: #e3f6e9;
  --ambar: #b45309; --ambar-suave: #fdf1dc;
  --rojo: #dc2626; --rojo-suave: #fde7e7;
  --sombra: 0 0 0 1px rgba(23, 23, 40, .04), 0 1px 3px rgba(23, 23, 40, .05);
  --sombra-alta: 0 24px 60px -12px rgba(23, 23, 40, .28), 0 0 0 1px rgba(23, 23, 40, .05);
  --letra: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: light;
}
html[data-tema="oscuro"] {
  --bg: #0b0b0b; --card: #161616; --card2: #1f1f1f; --b1: #262626; --b2: #3a3a3a;
  --t1: #f5f5f5; --t2: #b8b8b8; --t3: #808080;
  --accion: linear-gradient(120deg, #9fe3c9, #e3f3b8 22%, #c9e4fb 45%, #dcb8ee 68%, #f5b8a8 85%, #f0a3bd);
  --gris: #9ca3af; --gris-suave: rgba(156, 163, 175, .14);
  --azul: #60a5fa; --azul-suave: rgba(96, 165, 250, .15);
  --verde: #4ade80; --verde-suave: rgba(74, 222, 128, .14);
  --ambar: #fbbf24; --ambar-suave: rgba(251, 191, 36, .15);
  --rojo: #f87171; --rojo-suave: rgba(248, 113, 113, .15);
  --sombra: 0 0 0 1px rgba(255, 255, 255, .05), 0 1px 3px rgba(0, 0, 0, .5);
  --sombra-alta: 0 24px 60px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--t1); font-family: var(--letra); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--t1); outline-offset: 2px; }
[hidden] { display: none !important; }
.li { width: 18px; height: 18px; flex: none; }

/* Marca */
.marca { display: inline-flex; font-size: 28px; font-weight: 800; letter-spacing: -.065em; line-height: 1; color: var(--t1); text-decoration: none; white-space: nowrap; }
.marca span { font-weight: 400; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--b2); border-radius: 999px; background: var(--card2); color: var(--t1); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--t3); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.peq { min-height: 34px; padding: 0 13px; font-size: 14px; }
.btn.peq .li { width: 15px; height: 15px; }
.btn.ico { width: 40px; padding: 0; }
.btn.peq.ico { width: 34px; }
.btn.rojo { color: var(--rojo); }
.btn.liso { border-color: transparent; background: transparent; color: var(--t2); }
.btn.liso:hover { background: var(--card2); color: var(--t1); }
.btn-pri { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 22px 6px 6px; border: 0; border-radius: 999px; background: var(--accion); color: #0b0b0b; font-size: 16px; font-weight: 800; white-space: nowrap; cursor: pointer; }
.btn-pri i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: #0b0b0b; color: #f9cf49; font-style: normal; }
.btn-pri:disabled { opacity: .55; cursor: default; }
.btn-pri.peq { min-height: 40px; padding: 4px 18px 4px 4px; font-size: 15px; }
.btn-pri.peq i { width: 32px; height: 32px; }

/* Campos */
.campo { display: block; width: 100%; border: 1px solid var(--b2); border-radius: 12px; background: var(--bg); color: var(--t1); font-size: 15px; line-height: 1.5; outline: none; }
input.campo { height: 44px; padding: 0 14px; }
textarea.campo { min-height: 96px; padding: 12px 14px; resize: vertical; }
.campo:focus { border-color: var(--t1); }
.campo::placeholder { color: var(--t3); }
.etiqueta { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--t2); }

/* Etiquetas de estado */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--gris-suave); color: var(--gris); font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.chip.pendiente { background: var(--ambar-suave); color: var(--ambar); }
.chip.cambios { background: var(--rojo-suave); color: var(--rojo); }
.chip.aceptado { background: var(--verde-suave); color: var(--verde); }
.chip.toca { background: var(--accion); color: #0b0b0b; }
.chip .li { width: 14px; height: 14px; }

/* Píldoras de filtro */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtros button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 1px solid var(--b2); border-radius: 999px; background: transparent; color: var(--t2); font-size: 15px; font-weight: 700; cursor: pointer; }
.filtros button b { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--card2); font-size: 12.5px; text-align: center; }
.filtros button[aria-pressed="true"] { border-color: transparent; background: var(--t1); color: var(--bg); }
.filtros button[aria-pressed="true"] b { background: rgba(128, 128, 128, .35); color: inherit; }

/* Tarjetas */
.tarjeta { border-radius: 18px; background: var(--card); box-shadow: var(--sombra); }
.vacio { display: grid; justify-items: center; gap: 6px; padding: 56px 24px; text-align: center; }
.vacio-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 18px; background: var(--card2); color: var(--t2); }
.vacio b { font-size: 18px; letter-spacing: -.02em; }
.vacio p { max-width: 46ch; font-size: 15px; line-height: 1.5; color: var(--t3); }
.vacio .btn, .vacio .btn-pri { margin-top: 12px; }

/* Aviso flotante */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--t1); color: var(--bg); font-size: 15px; font-weight: 700; box-shadow: var(--sombra-alta); }

/* ───────── La ficha de una pieza (la comparten la zona del cliente y la de la agencia) ───────── */
dialog.ficha { width: min(1120px, calc(100vw - 32px)); max-width: none; height: min(860px, calc(100dvh - 32px)); max-height: none; padding: 0; border: 0; border-radius: 22px; background: var(--card); color: var(--t1); box-shadow: var(--sombra-alta); overflow: hidden; }
dialog.ficha::backdrop { background: rgba(0, 0, 0, .6); }
.ficha-caja { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); height: 100%; }
.ficha-cab { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px 24px; }
.ficha-cab h2 { flex: 1; min-width: 0; font-size: 22px; overflow-wrap: anywhere; }
.ficha-etapas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 14px; border-bottom: 1px solid var(--b1); }
.ficha-etapas button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--b2); border-radius: 999px; background: transparent; color: var(--t2); font-size: 15px; font-weight: 700; cursor: pointer; }
.ficha-etapas button[aria-selected="true"] { border-color: transparent; background: var(--card2); color: var(--t1); box-shadow: inset 0 0 0 2px var(--t1); }
.ficha-cuerpo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); min-height: 0; }
.ficha-contenido, .ficha-lado { min-height: 0; overflow-y: auto; padding: 20px 24px 24px; }
.ficha-lado { display: flex; flex-direction: column; gap: 16px; border-left: 1px solid var(--b1); background: var(--bg); }
.ficha-version { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; font-size: 14px; color: var(--t3); }
.ficha-nota { margin-bottom: 14px; padding: 12px 14px; border-radius: 14px; background: var(--azul-suave); font-size: 14.5px; line-height: 1.5; }
.ficha-nota b { display: block; font-size: 13px; color: var(--azul); }
.guion { padding: 26px 28px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--b1); font-size: 17px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.video-caja { display: grid; place-items: center; border-radius: 16px; background: #000; overflow: hidden; }
.video-caja video { display: block; width: 100%; max-height: min(620px, 62dvh); background: #000; }
.sin-enviar { padding: 22px; border: 1.5px dashed var(--b2); border-radius: 16px; font-size: 15px; line-height: 1.5; color: var(--t3); }
.caja { padding: 16px; border-radius: 16px; background: var(--card); box-shadow: var(--sombra); }
.caja h3 { margin-bottom: 4px; font-size: 16px; }
.caja > p { margin-bottom: 12px; font-size: 14px; line-height: 1.45; color: var(--t3); }
.caja .campo + .campo, .caja .campo + .fila, .caja .archivo + .campo { margin-top: 10px; }
.fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fila.entre { justify-content: space-between; }
.resuelto { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.resuelto.aceptado { background: var(--verde-suave); }
.resuelto.cambios { background: var(--rojo-suave); }
.resuelto.pendiente { background: var(--ambar-suave); }
.resuelto .li { margin-top: 2px; }
.resuelto b { display: block; }
.error { font-size: 14px; line-height: 1.4; color: var(--rojo); }
.error:empty { display: none; }
.archivo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--b2); border-radius: 14px; }
.archivo input { position: absolute; width: 0; height: 0; opacity: 0; }
.archivo label:focus-within { outline: 2px solid var(--t1); outline-offset: 2px; }
.archivo span { flex: 1; min-width: 140px; font-size: 14px; color: var(--t3); overflow-wrap: anywhere; }
.progreso { height: 6px; margin-top: 10px; border-radius: 999px; background: var(--b1); overflow: hidden; }
.progreso div { width: 0; height: 100%; background: var(--accion); transition: width .15s; }

/* Conversación */
.hilo-titulo { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.hilo, .respuestas { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hilo > li { display: flex; flex-direction: column; gap: 4px; }
.respuestas { margin: 4px 0 0 18px; padding-left: 12px; border-left: 2px solid var(--b1); gap: 8px; }
.respuestas li { display: flex; flex-direction: column; }
.burbuja { align-self: flex-start; max-width: 92%; padding: 10px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--sombra); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.burbuja.mio { align-self: flex-end; background: var(--card2); }
.burbuja small { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 700; color: var(--t3); white-space: normal; }
.burbuja.hito { display: flex; align-items: flex-start; gap: 8px; align-self: stretch; max-width: 100%; box-shadow: none; font-weight: 600; background: var(--gris-suave); color: var(--t2); }
.burbuja.hito.aceptado { background: var(--verde-suave); color: var(--t1); }
.burbuja.hito.cambios { background: var(--rojo-suave); color: var(--t1); }
.burbuja.hito.cambios.hecho { background: var(--gris-suave); }
.burbuja.hito .li { margin-top: 2px; }
.burbuja.hito > span { min-width: 0; }
.burbuja.hecho { opacity: .8; }
.burbuja-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 0 6px; }
.burbuja-pie.mio { justify-content: flex-end; }
.burbuja-pie .chip { padding: 2px 8px; font-size: 12.5px; }
.enlace { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--t2); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.enlace:hover { color: var(--t1); text-decoration: underline; }
.enlace .li { width: 15px; height: 15px; }
.adjunto { display: block; margin-top: 8px; }
.adjunto img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; }
.adjuntar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13.5px; color: var(--t3); }
.adjuntar input { position: absolute; width: 0; height: 0; opacity: 0; }
.adjuntar label:focus-within { outline: 2px solid var(--t1); outline-offset: 2px; border-radius: 4px; }
.adjuntar span { overflow-wrap: anywhere; }
.respondiendo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; padding: 8px 12px; border-radius: 12px; background: var(--azul-suave); font-size: 13.5px; line-height: 1.4; }
.respondiendo span { min-width: 0; overflow-wrap: anywhere; }
.caja .campo + .respondiendo { margin-top: 10px; }
.caja .respondiendo + .campo { margin-top: 0; }
.hilo-vacio { font-size: 14.5px; color: var(--t3); }

/* Versiones y lo que cambió */
.versiones { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.versiones button { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border: 1px solid var(--b2); border-radius: 999px; background: transparent; color: var(--t2); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.versiones button[aria-pressed="true"] { border-color: transparent; background: var(--t1); color: var(--bg); }
.versiones button.cambios { margin-left: auto; border-style: dashed; }
.versiones button.cambios[aria-pressed="true"] { border-style: solid; background: var(--azul-suave); color: var(--azul); }
.versiones .li { width: 15px; height: 15px; }
.guion.dif, .copy.dif { white-space: pre-wrap; }
.dif ins, .dif-leyenda ins { padding: 1px 3px; border-radius: 4px; background: var(--verde-suave); color: var(--verde); text-decoration: none; font-weight: 600; }
.dif del, .dif-leyenda del { padding: 1px 3px; border-radius: 4px; background: var(--rojo-suave); color: var(--rojo); }
.dif-leyenda { margin-bottom: 12px; font-size: 13.5px; color: var(--t3); }

@media (max-width: 860px) {
  dialog.ficha { width: 100vw; height: 100dvh; border-radius: 0; }
  .ficha-cuerpo { display: block; overflow-y: auto; }
  .ficha-contenido, .ficha-lado { min-height: auto; overflow: visible; padding: 16px; }
  .ficha-lado { border-left: 0; border-top: 1px solid var(--b1); }
  .ficha-cab { padding: 14px 12px 10px 16px; }
  .ficha-cab h2 { font-size: 19px; }
  .ficha-etapas { padding: 0 16px 12px; }
  .guion { padding: 18px; font-size: 16px; }
}
/* ───────── El guion con su estructura, la vista previa en un móvil y el texto de la publicación ───────── */
.guion { white-space: normal; }
.guion section + section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--b1); }
.guion h4 { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); }
.guion p { margin: 0 0 8px; }
.guion p:last-child { margin-bottom: 0; }
.guion .g-acot { padding-left: 12px; border-left: 3px solid var(--b2); font-size: 15px; color: var(--t3); }
.guion .g-acot::before { content: "En pantalla · "; font-weight: 700; }
.referencia { margin-bottom: 14px; }
.video-doble { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 22px; align-items: start; }
.previa-redes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.previa-redes button { min-height: 32px; padding: 0 12px; border: 1px solid var(--b2); border-radius: 999px; background: transparent; color: var(--t2); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.previa-redes button[aria-pressed="true"] { border-color: transparent; background: var(--t1); color: var(--bg); }
.movil { position: relative; aspect-ratio: 9 / 16; margin: 7px; border-radius: 26px; background: #000; color: #fff; overflow: hidden; box-shadow: 0 0 0 6px var(--card2), 0 0 0 7px var(--b2); }
.movil video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.movil-seccion { position: absolute; left: 16px; top: 14px; font-size: 17px; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.previa[data-red^="tiktok"] .movil-seccion, .previa[data-red="youtube"] .movil-seccion { left: 50%; transform: translateX(-50%); font-size: 15px; }
.movil-play { position: absolute; inset: 0; display: grid; place-items: center; width: 64px; height: 64px; margin: auto; padding: 0 0 0 4px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 24px; cursor: pointer; }
.previa.sonando .movil-play { opacity: 0; pointer-events: none; }
.movil-lado { position: absolute; right: 10px; bottom: 92px; display: grid; gap: 18px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); pointer-events: none; }
.movil-lado .li { width: 26px; height: 26px; }
.movil-pie { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 56px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 13px; line-height: 1.35; pointer-events: none; }
.movil-quien { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.movil-quien b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.movil-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: #fff; color: #000; font-size: 13px; font-weight: 800; }
img.movil-av { object-fit: cover; }
.movil-pie p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.movil-avance { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.movil-avance i { display: block; width: 0; height: 100%; background: #fff; }
/* ══ Vista previa: el móvil con la app de cada red (opción A, elegida por Yago el 29 nov 2026) ══ */
/* ── El móvil. Todo va medido sobre una pantalla de 390 de ancho: --u es «un píxel» de esa pantalla. ── */
/* El móvil cabe entero en la ventana: su ancho se ajusta también a la altura que hay. */
.pv-tel { width: min(100%, 300px, max(170px, calc((100vh - 330px) * .462))); margin: 0 auto; container-type: inline-size; }
.pv-pant { position: relative; overflow: hidden; aspect-ratio: 390 / 844; background: #000; color: #fff; --u: calc(100cqw / 390); font: 400 calc(var(--u) * 14) / 1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: 0; }
.pv-tel.pv-iphone .pv-pant { border: calc(var(--u) * 10) solid #17181a; border-radius: calc(var(--u) * 56); box-shadow: 0 0 0 calc(var(--u) * 2) #3b3d40, 0 18px 40px rgba(0, 0, 0, .45); }
.pv-tel.pv-fino .pv-pant { aspect-ratio: 9 / 16; border-radius: calc(var(--u) * 26); box-shadow: 0 0 0 calc(var(--u) * 5) #1c2120, 0 0 0 calc(var(--u) * 6) #2c3632; }
.pv-pant svg { display: block; width: 100%; height: 100%; }
.pv-pant .pv-ic { display: block; flex: none; width: calc(var(--u) * var(--t, 28)); height: calc(var(--u) * var(--t, 28)); }
.pv-medio { position: absolute; inset: 0; }
.pv-medio > img, .pv-medio > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pv-sombra { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .34), transparent 17%, transparent 55%, rgba(0, 0, 0, .7)); pointer-events: none; }
.pv-isla { position: absolute; z-index: 6; top: calc(var(--u) * 11); left: 50%; width: calc(var(--u) * 112); height: calc(var(--u) * 32); margin-left: calc(var(--u) * -56); border-radius: 999px; background: #000; }
.pv-estado { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: calc(var(--u) * 52); padding: calc(var(--u) * 8) calc(var(--u) * 30) 0 calc(var(--u) * 38); font-size: calc(var(--u) * 15.5); font-weight: 600; }
.pv-estado span { display: flex; align-items: center; gap: calc(var(--u) * 5); }
.pv-indicador { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--u) * 8); width: calc(var(--u) * 134); height: calc(var(--u) * 5); margin-left: calc(var(--u) * -67); border-radius: 999px; background: #fff; }
.pv-arriba { position: absolute; z-index: 3; left: calc(var(--u) * 16); right: calc(var(--u) * 16); top: calc(var(--u) * var(--top, 58)); display: flex; align-items: center; justify-content: space-between; }
.pv-arriba > span { display: flex; align-items: center; gap: calc(var(--u) * 18); }
.pv-lado { position: absolute; z-index: 3; right: calc(var(--u) * 10); bottom: calc(var(--u) * var(--base, 100)); display: grid; justify-items: center; gap: calc(var(--u) * var(--hueco, 20)); filter: drop-shadow(0 calc(var(--u) * 1) calc(var(--u) * 2) rgba(0, 0, 0, .45)); }
.pv-lado > span { display: grid; justify-items: center; gap: calc(var(--u) * 4); font-size: calc(var(--u) * 12); font-weight: 600; }
.pv-pie { position: absolute; z-index: 3; left: calc(var(--u) * 14); right: calc(var(--u) * 76); bottom: calc(var(--u) * var(--base, 100)); text-shadow: 0 calc(var(--u) * 1) calc(var(--u) * 3) rgba(0, 0, 0, .5); }
.pv-quien { display: flex; align-items: center; gap: calc(var(--u) * 9); margin-bottom: calc(var(--u) * 9); }
.pv-quien b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pv-av { display: grid; place-items: center; flex: none; width: calc(var(--u) * var(--t, 32)); height: calc(var(--u) * var(--t, 32)); border-radius: 999px; overflow: hidden; background: #d92b2b; color: #fff; font-weight: 800; font-size: calc(var(--u) * var(--t, 32) * .45); text-shadow: none; }
.pv-av img { width: 100%; height: 100%; object-fit: cover; }
.pv-texto { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lineas, 2); overflow: hidden; margin: 0; overflow-wrap: anywhere; }
.pv-sonido { display: flex; align-items: center; gap: calc(var(--u) * 6); margin-top: calc(var(--u) * 9); font-size: calc(var(--u) * 13); white-space: nowrap; overflow: hidden; }
.pv-nav { position: absolute; z-index: 4; inset: auto 0 0; display: flex; align-items: flex-start; justify-content: space-around; height: calc(var(--u) * 84); padding: calc(var(--u) * 10) calc(var(--u) * 6) 0; background: #000; }
.pv-nav > span { display: grid; justify-items: center; gap: calc(var(--u) * 3); min-width: calc(var(--u) * 56); font-size: calc(var(--u) * 10.5); font-weight: 600; }
.pv-avance { position: absolute; z-index: 4; left: 0; right: 0; bottom: calc(var(--u) * var(--avance, 84)); height: calc(var(--u) * 2); background: rgba(255, 255, 255, .28); }
.pv-avance i { display: block; width: 32%; height: 100%; background: #fff; }

/* Instagram */
.pv-ig .pv-arriba b { display: flex; align-items: center; gap: calc(var(--u) * 5); font-size: calc(var(--u) * 23); font-weight: 700; letter-spacing: -.01em; }
.pv-ig .pv-seguir { flex: none; padding: calc(var(--u) * 5) calc(var(--u) * 11); border: calc(var(--u) * 1) solid rgba(255, 255, 255, .85); border-radius: calc(var(--u) * 8); font-size: calc(var(--u) * 13); font-weight: 600; }
.pv-ig .pv-audio { width: calc(var(--u) * 27); height: calc(var(--u) * 27); border: calc(var(--u) * 2) solid #fff; border-radius: calc(var(--u) * 7); overflow: hidden; }
.pv-audio img { width: 100%; height: 100%; object-fit: cover; }
.pv-ig .pv-mas { opacity: .8; }
/* TikTok */
.pv-tt .pv-arriba { justify-content: center; gap: calc(var(--u) * 20); font-size: calc(var(--u) * 17.5); }
.pv-tt .pv-arriba i { font-style: normal; font-weight: 600; opacity: .62; }
.pv-tt .pv-arriba b { position: relative; font-weight: 700; }
.pv-tt .pv-arriba b::after { content: ""; position: absolute; left: 50%; bottom: calc(var(--u) * -8); width: calc(var(--u) * 30); height: calc(var(--u) * 3); margin-left: calc(var(--u) * -15); border-radius: 999px; background: #fff; }
.pv-tt .pv-arriba .pv-ic { position: absolute; right: 0; }
.pv-tt .pv-sigue { position: relative; margin-bottom: calc(var(--u) * 8); }
.pv-tt .pv-sigue .pv-av { border: calc(var(--u) * 1.5) solid #fff; }
.pv-tt .pv-sigue em { position: absolute; left: 50%; bottom: calc(var(--u) * -10); display: grid; place-items: center; width: calc(var(--u) * 22); height: calc(var(--u) * 22); margin-left: calc(var(--u) * -11); border-radius: 999px; background: #fe2c55; font: 700 calc(var(--u) * 17) / 1 Arial, sans-serif; }
.pv-tt .pv-disco { display: grid; place-items: center; width: calc(var(--u) * 46); height: calc(var(--u) * 46); margin-top: calc(var(--u) * 6); border-radius: 999px; background: repeating-radial-gradient(circle, #2b2b2b 0 calc(var(--u) * 2), #161616 calc(var(--u) * 2) calc(var(--u) * 4)); }
.pv-tt .pv-pie b { font-size: calc(var(--u) * 16.5); font-weight: 700; }
.pv-tt .pv-pie .pv-texto { margin-top: calc(var(--u) * 5); font-size: calc(var(--u) * 14.5); }
.pv-tt .pv-crear { position: relative; display: grid; place-items: center; min-width: 0; width: calc(var(--u) * 45); height: calc(var(--u) * 30); margin-top: calc(var(--u) * 2); border-radius: calc(var(--u) * 9); background: #fff; color: #000; box-shadow: calc(var(--u) * -4) 0 0 #25f4ee, calc(var(--u) * 4) 0 0 #fe2c55; }
.pv-tt .pv-nav > span:not(.pv-on):not(.pv-crear) { opacity: .75; }
/* YouTube */
.pv-yt .pv-lado { --hueco: 14; right: calc(var(--u) * 6); }
.pv-yt .pv-lado > span > i { display: grid; place-items: center; width: calc(var(--u) * 44); height: calc(var(--u) * 44); border-radius: 999px; background: rgba(0, 0, 0, .36); }
.pv-yt .pv-lado small { font-size: calc(var(--u) * 12); font-weight: 500; }
.pv-yt .pv-suscribir { flex: none; padding: calc(var(--u) * 7) calc(var(--u) * 13); border-radius: 999px; background: #fff; color: #0f0f0f; font-size: calc(var(--u) * 12.5); font-weight: 600; text-shadow: none; }
.pv-yt .pv-pie .pv-texto { font-size: calc(var(--u) * 15); }
.pv-yt .pv-nav { background: #0f0f0f; }
.pv-yt .pv-crear { display: grid; place-items: center; min-width: 0; width: calc(var(--u) * 38); height: calc(var(--u) * 38); margin-top: calc(var(--u) * -3); border-radius: 999px; background: #272727; }
.pv-yt .pv-audio { width: calc(var(--u) * 38); height: calc(var(--u) * 38); border: calc(var(--u) * 2) solid #fff; border-radius: calc(var(--u) * 7); overflow: hidden; }
/* Facebook */
.pv-fb .pv-arriba b { font-size: calc(var(--u) * 23); font-weight: 700; }
.pv-fb .pv-lado { --hueco: 22; }
.pv-fb .pv-quien b { font-size: calc(var(--u) * 15.5); font-weight: 700; }
.pv-fb .pv-quien u { flex: none; text-decoration: none; font-size: calc(var(--u) * 15.5); font-weight: 700; }
.pv-fb .pv-pildora { display: inline-flex; align-items: center; gap: calc(var(--u) * 6); max-width: 100%; margin-top: calc(var(--u) * 9); padding: calc(var(--u) * 5) calc(var(--u) * 10); border-radius: 999px; background: rgba(0, 0, 0, .34); font-size: calc(var(--u) * 12.5); white-space: nowrap; overflow: hidden; text-shadow: none; }
.pv-fb .pv-comentar { position: absolute; z-index: 4; left: calc(var(--u) * 12); right: calc(var(--u) * 12); bottom: calc(var(--u) * var(--campo, 30)); display: flex; align-items: center; height: calc(var(--u) * 42); padding: 0 calc(var(--u) * 16); border-radius: 999px; background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); font-size: calc(var(--u) * 14.5); }

/* ── Publicación de fotos (carrusel) ── */
.pv-feed { position: absolute; inset: 0; display: flex; flex-direction: column; background: #000; }
.pv-feed .pv-cab { display: flex; align-items: center; gap: calc(var(--u) * 10); flex: none; height: calc(var(--u) * 46); margin-top: calc(var(--u) * var(--top, 52)); padding: 0 calc(var(--u) * 14); }
.pv-feed .pv-cab div { flex: 1; text-align: center; font-size: calc(var(--u) * 16.5); font-weight: 700; line-height: 1.15; }
.pv-feed .pv-cab div small { display: block; font-size: calc(var(--u) * 11); font-weight: 600; letter-spacing: .04em; color: #a8a8a8; text-transform: uppercase; }
.pv-feed .pv-autor { display: flex; align-items: center; gap: calc(var(--u) * 10); flex: none; height: calc(var(--u) * 54); padding: 0 calc(var(--u) * 12); }
.pv-feed .pv-autor b { flex: 1; font-weight: 600; }
.pv-feed .pv-anillo { padding: calc(var(--u) * 2); border-radius: 999px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.pv-feed .pv-anillo .pv-av { border: calc(var(--u) * 2) solid #000; }
.pv-feed .pv-foto { position: relative; flex: none; aspect-ratio: 4 / 5; min-height: 0; overflow: hidden; background: #111; }
.pv-feed .pv-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-cuenta { position: absolute; right: calc(var(--u) * 12); top: calc(var(--u) * 12); padding: calc(var(--u) * 5) calc(var(--u) * 10); border-radius: 999px; background: rgba(18, 18, 18, .72); font-size: calc(var(--u) * 12.5); font-weight: 500; }
.pv-feed .pv-acciones { position: relative; display: flex; align-items: center; gap: calc(var(--u) * 16); flex: none; height: calc(var(--u) * 48); padding: 0 calc(var(--u) * 13); }
.pv-feed .pv-acciones .pv-ic:last-child { margin-left: auto; }
.pv-puntos { position: absolute; left: 50%; display: flex; gap: calc(var(--u) * 4); transform: translateX(-50%); }
.pv-puntos i { width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 999px; background: #5c5c5c; }
.pv-puntos i.pv-on { background: #0095f6; }
.pv-feed .pv-leyenda { padding: 0 calc(var(--u) * 13); }
.pv-feed .pv-leyenda b { font-weight: 600; }
.pv-feed .pv-leyenda small { display: block; margin-top: calc(var(--u) * 6); font-size: calc(var(--u) * 12); color: #a8a8a8; }
/* TikTok con fotos: la imagen entera sobre su propia sombra */
.pv-borroso { position: absolute; inset: 0; }
.pv-borroso img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(calc(var(--u) * 22)) brightness(.5); transform: scale(1.2); }
.pv-borroso img:last-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pv-tt .pv-puntos { bottom: calc(var(--u) * var(--puntos, 92)); z-index: 3; }
.pv-tt .pv-puntos i { background: rgba(255, 255, 255, .45); } .pv-tt .pv-puntos i.pv-on { background: #fff; }
/* Facebook con fotos */
.pv-fbf { background: #18191a; }
.pv-fbf .pv-cab { justify-content: flex-start; } .pv-fbf .pv-cab div { flex: none; text-align: left; }
.pv-fbf .pv-tarjeta { flex: none; background: #242526; }
.pv-fbf .pv-autor { height: calc(var(--u) * 62); }
.pv-fbf .pv-autor > span:not(.pv-av):not(.pv-ic) { flex: 1; line-height: 1.25; } .pv-fbf .pv-autor b { display: block; font-size: calc(var(--u) * 15.5); }
.pv-fbf .pv-autor small { display: flex; align-items: center; gap: calc(var(--u) * 4); font-size: calc(var(--u) * 13); color: #b0b3b8; }
.pv-fbf .pv-texto { padding: 0 calc(var(--u) * 14) calc(var(--u) * 11); font-size: calc(var(--u) * 15.5); }
.pv-fbf .pv-mosaico { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: calc(var(--u) * 3); aspect-ratio: 1 / 1; background: #18191a; }
.pv-fbf .pv-mosaico > div { position: relative; overflow: hidden; } .pv-fbf .pv-mosaico > div:first-child { grid-row: span 2; }
.pv-fbf .pv-mosaico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-fbf .pv-mosaico em { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); font: 600 calc(var(--u) * 30) / 1 inherit; font-style: normal; }
.pv-fbf .pv-reacciones { display: flex; justify-content: space-around; height: calc(var(--u) * 46); margin: 0 calc(var(--u) * 14); border-top: calc(var(--u) * 1) solid #3e4042; color: #b0b3b8; font-size: calc(var(--u) * 14); font-weight: 600; }
.pv-fbf .pv-reacciones span { display: flex; align-items: center; gap: calc(var(--u) * 7); }
/* YouTube, vídeo normal: el reproductor arriba (16:9) y la página debajo. */
.pv-ver { position: absolute; inset: 0; background: #0f0f0f; }
.pv-ver .pv-cuerpo { position: absolute; left: calc(var(--u) * 14); right: calc(var(--u) * 14); top: calc(var(--u) * 284); }
.pv-ver .pv-titulo { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font-size: calc(var(--u) * 18); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.pv-ver small { display: block; margin: calc(var(--u) * 5) 0 calc(var(--u) * 14); font-size: calc(var(--u) * 12.5); color: #aaa; }
.pv-ver .pv-quien b { flex: 1; font-size: calc(var(--u) * 15); }
.pv-chips { display: flex; gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 6); overflow: hidden; }
.pv-chips > span { display: flex; align-items: center; gap: calc(var(--u) * 7); flex: none; height: calc(var(--u) * 34); padding: 0 calc(var(--u) * 13); border-radius: 999px; background: #272727; font-size: calc(var(--u) * 13); font-weight: 600; }
.pv-chips i { width: calc(var(--u) * 1); height: calc(var(--u) * 18); background: #555; }
.pv-coment { margin-top: calc(var(--u) * 14); padding: calc(var(--u) * 12) calc(var(--u) * 14); border-radius: calc(var(--u) * 12); background: #272727; }
.pv-coment b { display: block; font-size: calc(var(--u) * 14); }
.pv-coment span { display: block; margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 13); color: #aaa; }
.previa[data-red="youtube"][data-yt="video"] .pv-medio { top: calc(var(--u) * 52); bottom: auto; height: calc(var(--u) * 219.4); z-index: 2; background: #000; }
.previa[data-red="youtube"][data-yt="video"] .pv-medio > video { object-fit: contain; }
.previa[data-red="youtube"][data-yt="video"] .pv-sombra { display: none; }
.previa[data-red="youtube"][data-yt="video"] .pv-avance { top: calc(var(--u) * 269.4); bottom: auto; z-index: 3; }
.previa[data-red="youtube"][data-yt="video"] .movil-play { inset: calc(var(--u) * 52) 0 auto 0; margin: calc(var(--u) * 70) auto 0; }
.pub-obligatorio { margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ambar); }
/* En la app: el vídeo es uno solo y encima va la capa de la red que se mira. */
.pv-capa { position: absolute; inset: 0; pointer-events: none; }
.pv-medio { bottom: calc(var(--u) * 84); }
.previa[data-red="facebook"] .pv-medio { bottom: 0; }
.pv-medio > video { cursor: pointer; }
.pv-avance { --avance: 84; }
.previa[data-red="facebook"] .pv-avance { --avance: 0; }
.pv-pant .movil-play { z-index: 7; width: calc(var(--u) * 78); height: calc(var(--u) * 78); font-size: calc(var(--u) * 30); }
.pv-pant .movil-flecha { z-index: 7; }
.previa[data-red="facebook"] .movil-flecha { display: none; }

/* La capa de cada red sobre el vídeo: lo que su app pone encima. */
.ov { position: absolute; inset: 0; isolation: isolate; pointer-events: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); --ov-base: 58px; }
.ov::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0, 0, 0, .32), transparent 16%, transparent 52%, rgba(0, 0, 0, .74)); }
.ov .li { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.ov .li.lleno { fill: currentColor; }
.ov-top { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 19px; font-weight: 800; }
.ov-top > span { display: inline-flex; align-items: center; gap: 14px; }
.ov-top .li { width: 22px; height: 22px; }
.ov-lado { position: absolute; right: 8px; bottom: calc(var(--ov-base) + 6px); display: grid; justify-items: center; gap: 15px; }
.ov-lado > span { display: grid; justify-items: center; gap: 3px; }
.ov-lado small { font-size: 10px; font-weight: 600; white-space: nowrap; }
.ov-pie { position: absolute; left: 12px; right: 62px; bottom: calc(var(--ov-base) + 6px); font-size: 13px; line-height: 1.35; }
.ov-quien { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13.5px; }
.ov-quien b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-av { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 999px; object-fit: cover; background: #fff; color: #000; font-size: 13px; font-weight: 800; text-shadow: none; }
.ov-av.mini { width: 22px; height: 22px; font-size: 10px; }
.ov-copy { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; overflow-wrap: anywhere; }
.ov-copy:empty { display: none; }
.ov-sonido { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.ov-sonido .li { flex: none; width: 13px; height: 13px; }
.ov-sonido span { overflow: hidden; text-overflow: ellipsis; }
.ov-pildora { flex: none; padding: 4px 11px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.ov-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 48px; display: flex; align-items: center; justify-content: space-around; padding: 0 4px; background: #000; text-shadow: none; }
.ov-nav > span { display: grid; justify-items: center; gap: 2px; min-width: 40px; }
.ov-nav small { font-size: 9px; font-weight: 600; opacity: .9; }
.ov-nav .li { width: 22px; height: 22px; filter: none; }
.ov-audio { width: 26px; height: 26px; border: 2px solid #fff; border-radius: 7px; background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7); }
/* Instagram */
.ov-ig .ov-pildora { border: 1px solid rgba(255, 255, 255, .9); }
/* TikTok */
.ov-tt .ov-top { justify-content: center; gap: 18px; font-size: 16px; }
.ov-tt .ov-top > span { font-weight: 600; opacity: .72; }
.ov-tt .ov-top b { position: relative; }
.ov-tt .ov-top b::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -6px; height: 2.5px; border-radius: 2px; background: #fff; }
.ov-tt .ov-top .li { position: absolute; right: 0; }
.ov-tt .ov-lado { gap: 17px; }
.ov-tt .ov-lado .li { width: 30px; height: 30px; }
.ov-sigue { position: relative; margin-bottom: 6px; }
.ov-sigue .ov-av { width: 40px; height: 40px; border: 1.5px solid #fff; }
.ov-sigue i { position: absolute; left: 50%; bottom: -8px; width: 18px; height: 18px; margin-left: -9px; border-radius: 999px; background: #fe2c55; font: 700 14px/18px system-ui, sans-serif; text-align: center; text-shadow: none; }
.ov-disco { width: 34px; height: 34px; border: 7px solid #1c1c1c; border-radius: 999px; background: radial-gradient(circle, #8a8a8a 0 30%, #2b2b2b 32%); }
.ov-tt .ov-crear { min-width: 0; width: 38px; height: 26px; border-radius: 8px; background: #fff; color: #000; box-shadow: -3px 0 0 #25f4ee, 3px 0 0 #fe2c55; place-items: center; }
.ov-tt .ov-crear .li { width: 18px; height: 18px; stroke-width: 3; }
/* YouTube */
.ov-yt .ov-lado { gap: 13px; }
.ov-yt .ov-pildora { padding: 4px 9px; border-radius: 999px; background: #fff; color: #0f0f0f; font-size: 11px; text-shadow: none; }
.ov-yt .ov-quien { gap: 6px; }
.ov-yt .ov-quien .ov-av { width: 26px; height: 26px; font-size: 11px; }
.ov-yt .ov-crear { min-width: 0; width: 32px; height: 32px; border-radius: 999px; background: #272727; place-items: center; }
.ov-yt .ov-crear .li { width: 20px; height: 20px; }
/* Facebook */
.ov-fb { --ov-base: 54px; }
.ov-enlace { flex: none; font-weight: 700; }
.ov-publico { display: flex; align-items: center; gap: 5px; margin: -4px 0 7px 40px; font-size: 11px; opacity: .9; }
.ov-publico .li { width: 11px; height: 11px; }
.ov-comentar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .85); font-size: 12.5px; text-shadow: none; }
/* Otras redes */
.ov-gen { --ov-base: 10px; }
/* La barra de avance, justo encima de la barra de abajo de cada app */
.previa[data-red="instagram"] .movil-avance, .previa[data-red^="tiktok"] .movil-avance, .previa[data-red="youtube"] .movil-avance { bottom: 48px; }
.previa[data-red="facebook"] .movil-avance { bottom: 54px; }
.previa-controles { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.previa-controles input { flex: 1; min-width: 0; accent-color: var(--t1); }
.previa-pista { margin-top: 8px; font-size: 13.5px; color: var(--t3); }
.movil.fotos { background: #111; }
.movil.fotos .movil-lado { display: none; }
.movil.fotos .movil-pie { padding-right: 14px; }
.movil-foto { display: block; width: 100%; height: 100%; object-fit: contain; }
.movil-flecha { position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0 0 3px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.movil-flecha.izq { left: 8px; }
.movil-flecha.der { right: 8px; }
.movil-cuenta { position: absolute; right: 12px; top: 14px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pub-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 10px; }
.pub-fotos figure { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--card2); }
.pub-fotos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pub-fotos .n { position: absolute; left: 5px; top: 5px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.pub-fotos button { position: absolute; bottom: 4px; width: 24px; height: 24px; padding: 0 0 2px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.pub-fotos button[data-foto-izq] { left: 4px; }
.pub-fotos button[data-foto-quitar] { right: 4px; }
.pub-rd-ic:disabled { opacity: .3; cursor: not-allowed; }
.pub-pr-abrir { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 16px; padding: 12px 14px; border: 1.5px dashed var(--b2); border-radius: 14px; background: transparent; color: var(--t1); font: inherit; text-align: left; cursor: pointer; }
.pub-pr-abrir:hover { border-color: var(--t2); background: var(--card2); }
.pub-pr-abrir b { display: block; font-size: 15px; }
.pub-pr-abrir small { display: block; font-size: 13px; color: var(--t3); }
.pub-pruebas { margin: 4px 0 16px; padding: 14px; border: 1px solid var(--b1); border-radius: 14px; }
.pub-pruebas > .etiqueta { display: flex; align-items: center; justify-content: space-between; }
.pub-pruebas .enlace { border: 0; background: none; color: var(--t3); font: inherit; font-size: 13px; cursor: pointer; }
.pub-pruebas .pub-nota { margin-bottom: 12px; }
.pub-pr { margin-bottom: 12px; }
.pub-pr-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.pub-pr-cab > span { flex: 1; min-width: 80px; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-pr-cab select.campo { width: auto; height: 36px; padding: 0 10px; font-size: 13.5px; }
.pub-pr textarea.campo { min-height: 70px; }
.pub-pr-paso { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--t2); }
.pub-pr-paso select.campo { width: auto; height: 36px; padding: 0 10px; font-size: 13.5px; }
.pub-sin-video.pulsable { cursor: pointer; }
.pub-sin-video.pulsable:hover, .pub-sin-video.pulsable:focus-within { border-color: var(--t2); color: var(--t1); }
.pub-foto-mas { display: grid; place-items: center; aspect-ratio: 4 / 5; border: 1.5px dashed var(--b2); border-radius: 10px; color: var(--t3); font-size: 24px; cursor: pointer; }
.pub-foto-mas:hover { border-color: var(--t2); color: var(--t1); }
.pub-fijo .enlace { margin-left: 10px; cursor: pointer; }
.pub-rd-fmt.sin { color: var(--t3); }
.pub-menu button:disabled { opacity: .4; cursor: not-allowed; }
.copy-caja h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 16px; }
.copy { padding: 16px 18px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--b1); font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy-vacio { font-size: 14.5px; line-height: 1.5; color: var(--t3); }
/* Lista de producción: lo que hace falta para grabar */
.guion ~ .copy-caja { margin-top: 22px; }
.prod { display: grid; gap: 14px; }
.prod-cat h4 { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.prod-cat ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.prod-cat li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; padding: 9px 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--b1); font-size: 15px; line-height: 1.4; }
.prod-cat li small { font-size: 13.5px; color: var(--t3); }
.prod-cat li em { font-size: 13px; font-style: normal; color: var(--t3); }
.prod-rodaje { margin-bottom: 10px; padding: 0; }
.prod-rodaje summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 14px 18px; font-size: 15.5px; cursor: pointer; list-style: none; }
.prod-rodaje summary::-webkit-details-marker { display: none; }
.prod-rodaje summary::after { content: "⌄"; margin-left: auto; font-size: 18px; line-height: 1; color: var(--t3); }
.prod-rodaje[open] summary::after { transform: rotate(180deg); }
.prod-rodaje summary span { font-size: 14px; color: var(--t3); }
.prod-rodaje .prod { padding: 0 18px 18px; }
.caja.resuelto { box-shadow: none; }
.deshacer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.deshacer small { font-size: 13.5px; color: var(--t2); }
.resuelto .error { display: block; margin-top: 6px; }
.resuelto .error:empty { display: none; }

@media (max-width: 860px) {
  .video-doble { grid-template-columns: minmax(0, 1fr); }
  .previa { width: 100%; max-width: 320px; margin: 0 auto; }
}

/* ───────── Calendario de publicaciones ───────── */
.cal-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.cal-cab h2 { font-size: 24px; }
.cal-leyenda { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-right: 8px; font-size: 13.5px; color: var(--t3); }
.cal-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.cal-leyenda i { width: 10px; height: 10px; border-radius: 3px; }
.cal-leyenda i.programada { background: var(--azul); }
.cal-leyenda i.publicada { background: var(--verde); }
.cal-leyenda i.borrador { border: 1.5px dashed var(--t3); }
.cal-semana, .cal-rejilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-semana { margin-bottom: 6px; }
.cal-semana span { padding: 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.cal-dia { display: flex; flex-direction: column; gap: 4px; min-height: 118px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: var(--sombra); }
.cal-dia.fuera { background: transparent; box-shadow: inset 0 0 0 1px var(--b1); }
.cal-dia.fuera .cal-num, .cal-dia.pasado .cal-num { color: var(--t3); }
.cal-dia.suelta { box-shadow: 0 0 0 2px var(--t1); }
.cal-dia-cab { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.cal-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.cal-dia.hoy .cal-num { background: var(--accion); color: #0b0b0b; }
.cal-largo { display: none; }
.cal-mas { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: var(--card2); color: var(--t1); font-size: 17px; line-height: 1; cursor: pointer; opacity: 0; }
.cal-dia:hover .cal-mas, .cal-mas:focus-visible { opacity: 1; }
.cal-pub { display: flex; flex-direction: column; gap: 1px; width: 100%; padding: 5px 8px; border: 0; border-left: 3px solid var(--gris); border-radius: 8px; background: var(--gris-suave); color: var(--t1); font-size: 13px; line-height: 1.3; text-align: left; cursor: pointer; }
.cal-pub[draggable="true"] { cursor: grab; }
.cal-pub.programada { border-left-color: var(--azul); background: var(--azul-suave); }
.cal-pub.publicada { border-left-color: var(--verde); background: var(--verde-suave); }
.cal-pub.error { border-left-color: var(--rojo); background: var(--rojo-suave); }
.cal-pub.borrador { border-left-style: dashed; }
.cal-hora { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--t2); }
.cal-hora i { width: 8px; height: 8px; border-radius: 999px; }
.cal-tit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; overflow-wrap: anywhere; }
.cal-tit b { font-weight: 800; }
.cal-nada { margin-top: 14px; font-size: 15px; color: var(--t3); text-align: center; }
/* El calendario por semana: una columna por día, una fila por hora */
.logo-red { flex: none; width: 16px; height: 16px; fill: currentColor; }
.logo-red.r-instagram { color: #e4405f; }
.logo-red.r-facebook { color: #0866ff; }
.logo-red.r-youtube { color: #ff0000; }
.logo-red.r-linkedin { color: #0a66c2; }
.filtros button .logo-red { margin-right: -2px; }
.filtros button[aria-pressed="true"] .logo-red { color: inherit; }
.ana-titulo + .filtros { margin-top: -6px; }
b.logo-red.sin { display: grid; place-items: center; width: auto; font-size: 10px; }
.cal-redes { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.cal-redes span { display: inline-flex; }
.cal-prueba { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--ambar-suave); color: var(--ambar); font-size: 10.5px; font-style: normal; font-weight: 800; }
.cal-redes .logo-red { width: 14px; height: 14px; }
.previa-redes button { display: inline-flex; align-items: center; gap: 7px; }
.previa-redes button[aria-pressed="true"] .logo-red { color: inherit; }
.sem { overflow-x: auto; border-radius: 16px; background: var(--card); box-shadow: var(--sombra); }
.sem-rejilla { display: grid; grid-template-columns: 56px repeat(7, minmax(116px, 1fr)); min-width: 868px; }
.sem-esquina, .sem-dia { border-bottom: 1px solid var(--b1); }
.sem-dia { padding: 10px 6px; border-left: 1px solid var(--b1); font-size: 14px; color: var(--t2); text-align: center; text-transform: capitalize; }
.sem-dia b { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; }
.sem-dia.hoy b { background: var(--accion); color: #0b0b0b; }
.sem-hora { padding: 5px 8px 0 0; border-top: 1px solid var(--b1); font-size: 12px; color: var(--t3); text-align: right; font-variant-numeric: tabular-nums; }
.sem-celda { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 36px; padding: 3px 4px; border-top: 1px solid var(--b1); border-left: 1px solid var(--b1); cursor: pointer; }
.sem-celda.media { border-top-style: dashed; border-top-color: color-mix(in srgb, var(--b1) 60%, transparent); }
.sem-hora.media { border-top-color: transparent; }
.sem-esquina + .sem-dia ~ .sem-hora:first-of-type, .sem-rejilla > .sem-hora:nth-child(9), .sem-rejilla > .sem-celda:nth-child(-n+16) { border-top: 0; }
.sem-celda.hoy { background: color-mix(in srgb, var(--t1) 4%, transparent); }
.sem-celda.pasado { cursor: default; }
.sem-celda.pasado .cal-pub { opacity: .8; }
.sem-celda:not(.pasado):hover { background: var(--card2); }
.sem-celda:not(.pasado):empty:hover::after { content: "+ " attr(data-hora); position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--t3); pointer-events: none; }
.sem-celda.suelta { box-shadow: inset 0 0 0 2px var(--t1); }
.sem + .cal-nada { text-align: left; font-size: 13.5px; }
.chip.programada { background: var(--azul-suave); color: var(--azul); }
.chip.publicada { background: var(--verde-suave); color: var(--verde); }
.chip.error { background: var(--rojo-suave); color: var(--rojo); }
/* En el móvil el mes no cabe: pasa a ser una lista con los días que tienen algo (y hoy). */
@media (max-width: 760px) {
  .cal-semana, .cal-leyenda { display: none; }
  .cal-rejilla { grid-template-columns: 1fr; }
  .cal-dia { min-height: 0; padding: 12px; }
  .cal-dia.fuera, .cal-dia.vacio:not(.hoy) { display: none; }
  .cal-num { display: none; }
  .cal-largo { display: inline-block; font-size: 14.5px; font-weight: 700; }
  .cal-largo::first-letter { text-transform: uppercase; }
  .cal-dia.hoy .cal-largo::after { content: " · hoy"; color: var(--t3); text-transform: none; }
  .cal-mas { opacity: 1; }
  .cal-pub { padding: 8px 10px; font-size: 14.5px; }
}

/* ───────── Analíticas ─────────
   Colores de los gráficos: paleta validada para daltonismo sobre las dos superficies (claro #fff, oscuro #161616).
   Un color por red, siempre el mismo; el texto nunca lleva el color del dato. */
.ana { --serie: #2a78d6; --r-instagram: #2a78d6; --r-tiktok: #eb6834; --r-youtube: #1baf7a; --r-facebook: #eda100; --r-linkedin: #e87ba4; display: grid; gap: 16px; }
html[data-tema="oscuro"] .ana { --serie: #3987e5; --r-instagram: #3987e5; --r-tiktok: #d95926; --r-youtube: #199e70; --r-facebook: #c98500; --r-linkedin: #d55181; }
.ana-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ana-actualizado { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13.5px; color: var(--t3); }
.filtros.peq button { min-height: 32px; padding: 0 12px; font-size: 13.5px; }
.ana-fechas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14.5px; font-weight: 600; color: var(--t2); }
.ana-fechas label { display: inline-flex; align-items: center; gap: 8px; }
.ana-fechas input { height: 38px; padding: 0 12px; border: 1px solid var(--b2); border-radius: 999px; background: transparent; color: var(--t1); font: inherit; font-variant-numeric: tabular-nums; }
.ana-fechas input:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.ana-abrir.ana-red-btn { display: inline-flex; align-items: center; gap: 10px; }
.ana-red-btn small { display: block; font-size: 12.5px; font-weight: 500; color: var(--t3); }
.ana-tabla tr.ana-total td { border-bottom: 0; font-weight: 800; }
.ana-titulo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 10px; font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--t2); }
.ana-titulo span { font-size: 13.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--t3); }
.ana-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 12px; }
.ana-cifra { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--card); box-shadow: var(--sombra); }
.ana-cifra-nombre { font-size: 14px; font-weight: 600; color: var(--t2); }
.ana-cifra-valor { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ana-cambio { font-size: 12.5px; line-height: 1.35; color: var(--t3); }
.ana-cambio b { font-weight: 700; color: var(--t2); }
.ana-cambio.sube b { color: var(--verde); }
.ana-cambio.baja b { color: var(--rojo); }
.ana-caja { padding: 20px 22px; min-width: 0; }
.ana-caja > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ana-caja h2 { font-size: 19px; }
.ana-sub { margin: 2px 0 12px; font-size: 13.5px; color: var(--t3); }
.ana-caja > header .ana-sub { margin: 0; }
.ana-dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.ana-barras svg { display: block; overflow: visible; }
.ana-barras .rejilla { stroke: var(--b1); stroke-width: 1; }
.ana-barras .eje { fill: var(--t3); font-size: 11.5px; font-family: inherit; font-variant-numeric: tabular-nums; }
.ana-barras .barra { fill: var(--serie); }
.ana-barras .barra.sobre { filter: brightness(1.25); }
.ana-barras .zona { fill: transparent; outline: none; }
.ana-barras .linea { fill: none; stroke: var(--serie); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ana-barras .area { fill: var(--serie); opacity: .14; }
.ana-barras .punto { stroke: var(--card); stroke-width: 2; }
.ana-barras .punto.oculto { opacity: 0; }
.ana-barras .punto.oculto.sobre { opacity: 1; }
.ana-forma { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 16px 0 18px; }
.ana-forma .ana-sub { flex: 1 1 260px; margin: 0; }
.ana-forma .filtros { flex: none; gap: 2px; padding: 3px; border: 1px solid var(--b2); border-radius: 999px; }
.ana-forma .filtros button { min-height: 28px; padding: 0 12px; border: 0; font-size: 13px; }
.ana-barras .marca { fill: var(--t2); opacity: .28; }
.ana-barras .zona:focus-visible { stroke: var(--t1); stroke-width: 2; }
.ana-datos { margin-top: 10px; font-size: 14px; }
.ana-datos summary { width: max-content; cursor: pointer; font-weight: 700; color: var(--t2); }
.ana-datos .ana-tabla { margin-top: 10px; max-height: 260px; overflow-y: auto; }
.ana-redes { display: grid; gap: 14px; }
.ana-red { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; font-size: 15px; }
.ana-red-nombre { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.ana-red-nombre i { width: 10px; height: 10px; border-radius: 3px; }
.ana-red > b { font-variant-numeric: tabular-nums; }
.ana-red-barra { grid-column: 1 / -1; height: 12px; border-radius: 0 4px 4px 0; background: var(--card2); }
.ana-red-barra i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.ana-red small { grid-column: 1 / -1; font-size: 13px; color: var(--t3); }
.ana-horas { display: grid; grid-template-columns: 34px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.ana-horas span { font-size: 11.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.ana-hora { text-align: left; }
.ana-horas i { display: block; aspect-ratio: 1; min-height: 12px; border-radius: 3px; background: var(--card2); }
.ana-horas i.n1 { background: color-mix(in srgb, var(--serie) 22%, var(--card2)); }
.ana-horas i.n2 { background: color-mix(in srgb, var(--serie) 42%, var(--card2)); }
.ana-horas i.n3 { background: color-mix(in srgb, var(--serie) 62%, var(--card2)); }
.ana-horas i.n4 { background: color-mix(in srgb, var(--serie) 82%, var(--card2)); }
.ana-horas i.n5 { background: var(--serie); }
.ana-horas i[data-pista]:hover, .ana-horas i[data-pista]:focus-visible { outline: 2px solid var(--t1); outline-offset: 1px; }
.ana-conectados { display: flex; align-items: flex-end; gap: 3px; height: 130px; }
.ana-conectados i { flex: 1; min-width: 2px; border-radius: 3px 3px 0 0; background: color-mix(in srgb, var(--serie) 55%, var(--card2)); }
.ana-conectados i.mejor, .ana-conectados.retencion i { background: var(--serie); }
.ana-conectados-eje { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--t3); }
.ana-buscado { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: b; }
.ana-buscado li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--b1); font-size: 15px; }
.ana-buscado li span { overflow-wrap: anywhere; }
.ana-buscado li b { font-variant-numeric: tabular-nums; }
.ana-tabla a.ana-abrir { text-decoration: none; }
.ana-tabla a.ana-abrir:hover { text-decoration: underline; }
.post-comentarios { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.post-comentarios li { padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--b1); }
.post-comentarios p { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.post-comentarios small { display: block; margin-top: 4px; font-size: 13px; color: var(--t3); }
.ana-pie { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--t3); }
.ana-pie b { color: var(--t2); }
.ana > .ana-pie { margin: 0; }
.ana-nada { padding: 18px 0 6px; font-size: 15px; color: var(--t3); }
.ana-tabla { overflow-x: auto; }
.ana-tabla table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ana-tabla th { padding: 0 10px 8px; border-bottom: 1px solid var(--b1); text-align: left; font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--t3); }
.ana-tabla th button { padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ana-tabla th button:hover, .ana-tabla th[aria-sort="descending"] button, .ana-tabla th[aria-sort="ascending"] button { color: var(--t1); }
.ana-tabla td { padding: 10px; border-bottom: 1px solid var(--b1); vertical-align: middle; }
.ana-tabla tr:last-child td { border-bottom: 0; }
.ana-tabla .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ana-tabla th:first-child, .ana-tabla td:first-child { padding-left: 0; }
.ana-post { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.ana-post img, .ana-mini { display: grid; place-items: center; flex: none; width: 40px; height: 54px; border-radius: 8px; object-fit: cover; background: var(--card2); color: var(--t3); }
.ana-post b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ana-post small { display: block; font-size: 13px; color: var(--t3); }
.ana-post a { color: var(--t2); font-weight: 700; }
.ana-pista { position: fixed; z-index: 60; display: grid; gap: 1px; max-width: 280px; padding: 8px 12px; border-radius: 12px; background: var(--t1); color: var(--bg); font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: var(--sombra-alta); }
.ana-pista b { font-size: 14.5px; }
.ana-pista span { opacity: .75; }
@media (max-width: 860px) {
  .ana-dos { grid-template-columns: minmax(0, 1fr); }
  .ana-actualizado { margin-left: 0; }
  .ana-caja { padding: 16px; }
  .ana-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ana-cifra-valor { font-size: 25px; }
  .ana-post { min-width: 150px; gap: 10px; }
  .ana-post img, .ana-mini { width: 32px; height: 44px; }
  .ana-tabla td, .ana-tabla th { padding-left: 8px; padding-right: 8px; }
}

/* La ficha de una publicación: una frase y una cifra, y las preguntas debajo */
dialog.post { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--t1); box-shadow: var(--sombra-alta); overflow-y: auto; }
dialog.post::backdrop { background: rgba(0, 0, 0, .6); }
.post-caja { --serie: #2a78d6; padding: 22px 26px 26px; }
html[data-tema="oscuro"] .post-caja { --serie: #3987e5; }
.post-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.post-cab img, .post-sin { display: grid; place-items: center; flex: none; width: 46px; height: 62px; border-radius: 10px; object-fit: cover; background: var(--card2); color: var(--t3); }
.post-cab-txt { flex: 1; min-width: 0; }
.post-cab-txt b { display: block; font-size: 15.5px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-cab-txt span { font-size: 13px; color: var(--t3); }
.post-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 20px; margin-bottom: 18px; }
.post-veces { font-size: clamp(40px, 7vw, 56px); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.post-veces.mejor { color: var(--verde); }
.post-veces.peor { color: var(--rojo); }
.post-veces.igual { color: var(--ambar); }
html[data-tema="oscuro"] .post-veces.mejor { background: var(--accion); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-hero h2 { font-size: 19px; line-height: 1.2; }
.post-hero p { margin-top: 5px; font-size: 14px; line-height: 1.45; color: var(--t2); }
.post-preguntas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.post-pregunta { padding: 14px 0; border-top: 1px solid var(--b1); }
.post-pregunta h3 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t3); }
.post-pregunta h3 em { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-style: normal; letter-spacing: 0; text-transform: none; }
.post-pregunta h3 em.mejor { background: var(--verde-suave); color: var(--verde); }
.post-pregunta h3 em.peor { background: var(--rojo-suave); color: var(--rojo); }
.post-pregunta h3 em.igual { background: var(--ambar-suave); color: var(--ambar); }
.post-pregunta > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.post-respuesta { margin: 6px 0 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.post-respuesta span { color: var(--t3); font-weight: 500; }
.post-datos { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 13px; color: var(--t2); font-variant-numeric: tabular-nums; }
.post-datos b { color: var(--t1); }
.post-texto { padding-top: 16px; border-top: 1px solid var(--b1); }
.post-caja > .ana-pie { margin-top: 14px; }
.ana-tabla tr[data-post] { cursor: pointer; }
.port tr[data-ir-cliente] { cursor: pointer; }
.port tr[data-ir-cliente]:hover td { background: var(--card2); }
.port td small { display: block; font-size: 12.5px; font-weight: 500; color: var(--t3); }
.port td b + small, .port td .chip + small { display: inline; }
.port th small { font-weight: 500; }
.port-cliente { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.port-cliente .inicial { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--card2); font-weight: 800; }
.port-redes { display: flex !important; align-items: center; gap: 6px; margin-top: 3px; }
.port-redes .logo-red { width: 13px; height: 13px; }
.port-nada { color: var(--t3); }
.port-aviso { color: var(--ambar); }
.inf-objs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.inf-objs .etiqueta { margin-bottom: 6px; }
.inf-lista { display: grid; gap: 8px; }
.inf-inicio { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--t2); }
.inf-inicio .campo { width: auto; height: 38px; }
.inf-plan td { padding: 8px 6px; }
.inf-plan td:first-child { white-space: nowrap; }
.inf-plan td small { display: block; font-size: 12.5px; color: var(--t3); }
.inf-plan input.campo { min-width: 104px; height: 38px; }
.inf-barra.con-ritmo { position: relative; overflow: visible; }
.inf-barra.con-ritmo i { max-width: 100%; }
.inf-barra u { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--t1); }
.inf-ritmo { display: block; margin-top: 7px; font-size: 13.5px; color: var(--t3); }
.inf-ritmo.sube { color: var(--verde); }
.inf-ritmo.baja { color: var(--rojo); }
.ana-tabla td.inf-si b { color: var(--verde); }
.inf-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--b1); border-radius: 14px; background: transparent; color: var(--t1); font: inherit; text-align: left; cursor: pointer; }
.inf-fila:hover, .inf-fila[aria-current="true"] { border-color: var(--b2); background: var(--card2); }
.inf-fila b { display: block; }
.inf-fila small { font-size: 13px; color: var(--t3); }
.inf-botones { margin-top: 16px; }
.inf-hueco { flex: 1; }
.inf-previa { padding: 30px 32px; }
.inf-doc { gap: 28px; }
.inf-doc h3 { margin-bottom: 12px; font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--t2); }
.inf-cab small { display: block; margin-bottom: 6px; font-size: 14px; color: var(--t3); }
.inf-cab h2 { font-size: 28px; }
.inf-lectura { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--a); font-size: 16.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.inf-metas { display: grid; gap: 16px; }
.inf-meta header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 7px; font-size: 15px; }
.inf-meta header span { color: var(--t2); font-variant-numeric: tabular-nums; }
.inf-meta header span b { color: var(--t1); }
.inf-barra { height: 10px; border-radius: 999px; background: var(--card2); overflow: hidden; }
.inf-barra i { display: block; height: 100%; border-radius: 999px; background: var(--serie); }
.inf-meta.hecho .inf-barra i { background: var(--verde); }
.inf-red { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.inf-top { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.inf-top li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 18px; padding: 12px 0; border-bottom: 1px solid var(--b1); }
.inf-top li:last-child { border-bottom: 0; }
.inf-puesto { font-size: 20px; font-weight: 800; color: var(--t3); font-variant-numeric: tabular-nums; }
.inf-pieza b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.inf-pieza small, .inf-dato small { display: block; font-size: 13px; color: var(--t3); }
.inf-pieza a { color: var(--t2); font-weight: 700; }
.inf-redes { display: inline-flex; gap: 6px; margin-right: 8px; vertical-align: -2px; color: var(--t2); }
.inf-redes .logo-red { width: 14px; height: 14px; }
.inf-dato { text-align: right; font-variant-numeric: tabular-nums; }
.inf-dato b { display: block; font-size: 17px; }
@media (max-width: 640px) { .inf-previa { padding: 22px 18px; } .inf-top li { grid-template-columns: 26px minmax(0, 1fr) auto; } .inf-top li .inf-dato:last-child { display: none; } }
.prueba { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--b1); }
.prueba-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; }
.prueba-cab b::first-letter { text-transform: uppercase; }
.prueba-cab > span:not(.chip) { flex: 1; min-width: 180px; font-size: 13.5px; color: var(--t3); }
.ana-tabla tr.prueba-gana td:first-child { box-shadow: inset 3px 0 0 var(--verde); padding-left: 12px; }
.ana-tabla td b { font-weight: 800; }
.ana-etq { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 5px; }
.ana-etq i { padding: 1px 8px; border-radius: 999px; background: var(--card2); color: var(--t2); font-size: 12px; font-style: normal; font-weight: 600; }
.ana-etq button { padding: 1px 4px; border: 0; background: none; color: var(--t3); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ana-etq button:hover { color: var(--t1); text-decoration: underline; }
.ana-fun .ana-red-barra { grid-column: auto; }
.ana-fun { display: grid; grid-template-columns: minmax(60px, 1fr) auto; align-items: center; gap: 10px; min-width: 160px; }
.ana-tabla td.ana-fecha { white-space: nowrap; color: var(--t2); }
.ana.cargando > :not(.ana-filtros) { opacity: .45; pointer-events: none; transition: opacity .15s; }
.prueba-tipo { font-style: normal; font-weight: 700; color: var(--t2); }
.prueba-tipo.es { color: var(--ambar); }
.chip.mini { padding: 2px 9px; font-size: 12px; cursor: help; }
.ana-auto { margin-left: 6px; font-size: 11.5px; font-weight: 600; color: var(--t3); }
.ana-gancho { margin: 12px 0 4px; padding: 10px 14px; border-left: 3px solid var(--a); font-size: 15px; line-height: 1.45; }
.ana-gancho small { display: block; font-size: 12px; font-weight: 700; color: var(--t3); }
.ana-etiquetar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-top: 14px; }
.ana-tabla th.ana-suya, .ana-tabla td.ana-suya { background: color-mix(in srgb, var(--t1) 5%, transparent); color: var(--t1); }
.ana-ejemplo { display: block; max-width: 34ch; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--t3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 4px; }
.dec-col h3, .apr h3 { margin-bottom: 10px; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--t2); }
.dec-col h3 span { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--card2); font-size: 12px; letter-spacing: 0; }
.dec-item { display: block; width: 100%; margin-bottom: 8px; padding: 11px 13px; border: 1px solid var(--b1); border-radius: 14px; background: transparent; color: var(--t1); font: inherit; text-align: left; cursor: pointer; }
.dec-item:hover { border-color: var(--b2); background: var(--card2); }
.dec-item b { display: block; margin-bottom: 6px; font-weight: 600; overflow-wrap: anywhere; }
.dec-item small { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--t3); }
.apr { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--b1); }
.apr ul { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.apr li { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: 10px; background: var(--card2); }
.apr li span { flex: 1; overflow-wrap: anywhere; }
.apr li small { flex: none; font-size: 12.5px; color: var(--t3); }
.apr .fila { gap: 8px; } .apr .fila .campo { flex: 1; }
.inf-aprendido { display: grid; gap: 8px; margin: 0; padding-left: calc(var(--u, 1px) * 0 + 20px); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .dec { grid-template-columns: 1fr; } .ana-etiquetar { grid-template-columns: 1fr; } }
.ana-voz { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--t3); cursor: help; }
.ana-voz.si { color: var(--verde); }
.ana-voz .li, .ana-pie .li { width: 13px; height: 13px; vertical-align: -2px; }
.ana-tabla-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.ana-tabla tr.ana-grupo { cursor: pointer; }
.ana-tabla tr.ana-grupo:hover td { background: var(--card2); }
.ana-tabla tr.ana-hija td { background: color-mix(in srgb, var(--card2) 55%, transparent); }
.ana-tabla tr.ana-hija td:first-child { padding-left: 26px; }
.ana-tabla tr.ana-hija .ana-abrir { display: inline-flex; align-items: center; gap: 7px; }
.ana-en { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; vertical-align: -3px; color: var(--t2); }
.ana-en span { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 700; }
.ana-en .logo-red { width: 14px; height: 14px; }
.ana-tabla tr[data-post]:hover td { background: var(--card2); }
.ana-abrir { display: block; padding: 0; border: 0; background: none; color: var(--t1); font: inherit; font-weight: 600; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.ana-abrir:hover { text-decoration: underline; }
@media (max-width: 640px) {
  dialog.post { inset: 0; margin: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .post-caja { padding: 16px 16px 24px; }
  .post-hero { grid-template-columns: minmax(0, 1fr); }
  .post-preguntas { grid-template-columns: minmax(0, 1fr); }
  .post-cab .btn:not(.ico) { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Pantalla de entrada del equipo (solo publicado) */
.entrar { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.entrar-caja { display: grid; gap: 14px; width: min(360px, 100%); padding: 28px; border: 1px solid var(--b1); border-radius: 20px; background: var(--card); }
.entrar-texto { margin: -4px 0 4px; font-size: 15px; color: var(--t2); }
.entrar-campo { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--t2); }
.entrar-boton { min-height: 44px; margin-top: 4px; border-color: var(--accion); background: var(--accion); color: #0b0b0b; font-weight: 700; }
