/* Autorizar (2026-10-28): mismo estilo que ElecafOps — fondo #F2F2F4, tarjetas blancas redondeadas, cápsulas, acción negra, acento #0147FF. */
#autoScreen { position: fixed; inset: 0; z-index: 90; background: #F2F2F4; overflow-y: auto; display: none; font-family: "Segoe UI", -apple-system, system-ui, sans-serif; color: #111318; -webkit-font-smoothing: antialiased; }
#autoScreen.active { display: block; }
#autoContenido { max-width: 560px; margin: 0 auto; padding: 18px 16px 90px; }
.av-top { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.av-top > div:first-child, .av-sp { flex: 1; }
.av-top h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.av-top p { color: #6B7080; font-size: 14px; margin-top: 2px; }
.av-pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: #fff; color: #111318; font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 10px 16px; box-shadow: 0 1px 3px rgba(17,19,24,.08); cursor: pointer; }
.av-pill .material-symbols-outlined { font-size: 19px; }
.av-pill.azul { background: #E6EDFF; color: #0147FF; box-shadow: none; padding: 8px 14px; font-size: 13px; }
.av-pill.ancho { width: 100%; margin-top: 8px; }
.av-volver { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 3px rgba(17,19,24,.08); display: grid; place-items: center; cursor: pointer; flex: none; }
.av-resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.av-resumen div { background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: 0 1px 3px rgba(17,19,24,.06); }
.av-resumen b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.av-resumen span { color: #6B7080; font-size: 13px; }
.av-grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.av-red { border: 0; background: #fff; border-radius: 26px; padding: 18px 16px 16px; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; font: inherit; color: inherit; box-shadow: 0 1px 3px rgba(17,19,24,.06); cursor: pointer; transition: transform .1s; }
.av-red:active { transform: scale(.97); }
.av-red b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.av-cuenta { color: #6B7080; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; }
.av-cuenta em { font-style: normal; color: #0147FF; font-weight: 800; }
.av-logo { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex: none; }
.av-logo i { width: 34px; height: 34px; background: #fff; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.av-logo.chico { width: 44px; height: 44px; border-radius: 13px; }
.av-logo.chico i { width: 24px; height: 24px; }
.av-negro { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: #111318; color: #fff; font: inherit; font-size: 16px; font-weight: 700; border-radius: 999px; padding: 15px 18px; margin-bottom: 16px; cursor: pointer; }
.av-dia { margin-bottom: 18px; }
.av-dia-cab { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; }
.av-dia-cab h2 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.av-post { background: #fff; border-radius: 22px; padding: 10px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(17,19,24,.06); display: flex; flex-direction: column; gap: 10px; }
.av-post.publicado { opacity: .6; }
.av-medios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.av-pieza { position: relative; margin: 0; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #E4E5EA; }
.av-pieza video, .av-pieza img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.av-pieza figcaption { position: absolute; left: 8px; top: 8px; z-index: 2; background: rgba(17,19,24,.72); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.av-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(17,19,24,.55); color: #fff; display: grid; place-items: center; font-size: 34px !important; pointer-events: none; }
.av-pieza.sonando .av-play { display: none; }
.av-sin { display: none; position: absolute; inset: 0; place-items: center; color: #6B7080; font-size: 13px; font-weight: 700; }
.av-pieza.sin img { display: none; }
.av-pieza.sin .av-sin { display: grid; }
.av-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 4px 4px; }
.av-info .av-btn { margin-top: 2px; width: 100%; justify-content: center; padding: 13px 16px; font-size: 15px; }
.av-vista { display: inline-flex; gap: 2px; background: #E4E5EA; border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.av-vista button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: #6B7080; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.av-vista button.sel { background: #fff; color: #111318; box-shadow: 0 1px 3px rgba(17,19,24,.1); }
.av-vista .material-symbols-outlined { font-size: 18px; }
/* Vista PC: más ancha, tarjetas en grilla y las redes en una fila. */
#autoScreen[data-vista="pc"] #autoContenido { max-width: 1360px; padding: 24px 28px 90px; }
#autoScreen[data-vista="pc"] .av-grilla { grid-template-columns: repeat(5, 1fr); }
#autoScreen[data-vista="pc"] .av-resumen { max-width: 520px; }
#autoScreen[data-vista="pc"] .av-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 14px; }
#autoScreen[data-vista="pc"] .av-lista .av-post { margin-bottom: 0; }
#autoScreen[data-vista="pc"] .av-negro { max-width: 420px; }
.av-info h3 { font-size: 15px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.av-estado { font-size: 11px; font-weight: 800; border-radius: 999px; padding: 3px 9px; text-transform: uppercase; letter-spacing: .03em; }
.av-estado.naranja { background: #FFF1DC; color: #B25E00; }
.av-estado.verde { background: #E3F6EA; color: #1E8E4B; }
.av-estado.gris { background: #ECEDF1; color: #6B7080; }
.av-estado.rojo { background: #FDE7E8; color: #D23A3A; }
.av-cuando { display: inline-flex; align-items: center; gap: 5px; border: 0; background: #F2F2F4; color: #111318; font: inherit; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 7px 12px; cursor: pointer; }
.av-cuando .material-symbols-outlined { font-size: 17px; color: #0147FF; }
.av-btn { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: #0147FF; color: #fff; font: inherit; font-size: 14px; font-weight: 800; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.av-btn .material-symbols-outlined { font-size: 19px; }
.av-btn.quitar { background: #F2F2F4; color: #6B7080; font-weight: 700; }
.av-link { color: #0147FF; font-size: 13px; font-weight: 700; }
.av-error { color: #D23A3A; font-size: 12px; }
.av-vacio { text-align: center; color: #6B7080; padding: 40px 10px; }
.av-vacio .material-symbols-outlined { font-size: 44px; opacity: .5; }
#avHoja { position: fixed; inset: 0; z-index: 105; background: rgba(17,19,24,.4); display: none; align-items: flex-end; justify-content: center; }
#avHoja.show { display: flex; }
#avHojaCuerpo { background: #fff; width: 100%; max-width: 560px; border-radius: 26px 26px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); font-family: "Segoe UI", -apple-system, system-ui, sans-serif; color: #111318; }
#avHojaCuerpo h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.av-hoja-sub { color: #6B7080; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.av-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.av-chips button { border: 0; background: #F2F2F4; font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 9px 13px; cursor: pointer; color: #111318; }
.av-chips button.sel { background: #111318; color: #fff; }
.av-fila { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.av-fila input { flex: 1; min-width: 0; font: inherit; font-size: 15px; border: 1px solid #E4E5EA; border-radius: 14px; padding: 10px 12px; background: #fff; color: #111318; }
#avHojaCuerpo .av-negro { margin: 14px 0 0; }
.av-rechazar { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; background: transparent; color: #D23A3A; font: inherit; font-size: 14px; font-weight: 700; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.av-rechazar .material-symbols-outlined { font-size: 18px; }
/* Visor: un solo video o imagen a pantalla completa (se crea al tocar, se borra al cerrar). */
#avVisor { position: fixed; inset: 0; z-index: 120; background: rgba(10,11,14,.94); display: flex; align-items: center; justify-content: center; padding: 12px; }
#avVisor video, #avVisor img { max-width: 100%; max-height: 100%; border-radius: 16px; background: #000; }
#avVisor button { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.av-pieza { cursor: pointer; }
