/* Eco · acento coral */
:root { --acc: #c2452d; --acc-ink: #ffffff; --acc-soft: rgba(194,69,45,.11); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --acc: #ef8a6f; --acc-ink: #0f0f0e; --acc-soft: rgba(239,138,111,.13); } }

/* redes */
.rb { flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--rc); color: #fff; display: inline-grid; place-items: center; font: 600 10.5px/1 var(--fi); font-style: normal; letter-spacing: 0; }
.rchip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--bg-2); font-size: 12.5px; }
.rchip i { width: 22px; height: 22px; border-radius: 50%; background: var(--rc); color: #fff; display: grid; place-items: center; font: 600 9.5px/1 var(--fi); font-style: normal; }
.rbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pav { width: 28px; height: 28px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font: 500 11px/1 var(--fd); flex: none; }
.pav.lg { width: 44px; height: 44px; font-size: 15px; }

/* publicar */
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.pub-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.step-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.step-h h3 { margin: 0; }
.sn { font-family: var(--fd); font-size: 11px; letter-spacing: .14em; color: var(--acc); width: 26px; }
.lnk { margin-left: auto; font-size: 12.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.lnk[aria-pressed="true"] { color: var(--acc); text-decoration: none; font-weight: 500; }
.marcas-sel { display: flex; gap: 8px; flex-wrap: wrap; }
.msel { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 7px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card-2); font-size: 13.5px; transition: border-color .25s, background .25s; }
.msel[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 46px 20px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .25s, background .25s, transform .25s; }
.drop:hover, .drop.over { border-color: var(--acc); background: var(--acc-soft); }
.drop.over { transform: scale(1.01); }
.drop b { font-family: var(--fd); font-weight: 300; font-size: 1.45rem; letter-spacing: -.01em; }
.drop > span:last-child { font-size: 12.5px; color: var(--ink-3); }
.drop-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; margin-bottom: 8px; }
.drop-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.files { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.fi { position: relative; flex: none; width: 116px; height: 150px; margin: 0; border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.fi img, .fi video { width: 100%; height: 100%; object-fit: cover; }
.fi-d { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 6px; }
.fi figcaption { position: absolute; inset: auto 0 0; display: flex; justify-content: center; gap: 6px; padding: 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.fi figcaption button { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.92); color: #111; font-size: 15px; line-height: 1; }
.fi figcaption button[disabled] { opacity: .35; }
.fi.add { display: grid; place-content: center; justify-items: center; border: 1.5px dashed var(--line-2); background: none; cursor: pointer; color: var(--ink-3); }
.fi.add span { font-size: 28px; font-weight: 300; }
.finfo { margin: 10px 0 0; text-transform: none; letter-spacing: .04em; font-size: 11.5px; }
.tipo-seg { margin-top: 14px; }

.redes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.red { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); text-align: left; transition: border-color .25s, background .25s, opacity .25s; }
.red .grow { min-width: 0; }
.red b { display: block; font-weight: 500; font-size: 13.5px; }
.red small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.red .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: #fff; flex: none; }
.red.on { border-color: var(--rc); box-shadow: inset 0 0 0 1px var(--rc); background: color-mix(in srgb, var(--rc) 6%, var(--card-2)); }
.red.on .tick { background: var(--rc); border-color: var(--rc); }
.red.off { opacity: .48; }
.red .pill { flex: none; }
.warn-note { background: var(--warn-soft); color: var(--ink-2); margin-top: 12px; font-size: 12.5px; line-height: 1.6; }

.ttabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; }
.ttabs button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; position: relative; }
.ttabs button[data-ed="todas"] { padding: 0 14px; }
.ttabs button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ttabs .rb { width: 24px; height: 24px; border-radius: 50%; }
.ttabs .bad, .tfoot .bad { color: var(--bad); font-weight: 600; }
.ttabs button[aria-pressed="true"] .bad { color: #ffb3a8; }
.edot { position: absolute; top: 2px; left: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); border: 1.5px solid var(--card); }
.tfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.tfoot .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.prog { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.prog .inp { max-width: 240px; }
.opts { margin-top: 14px; font-size: 13px; }
.opts summary { cursor: pointer; color: var(--ink-3); margin-bottom: 10px; }
.pub-cta { position: sticky; bottom: 14px; z-index: 5; }
.pub-cta .btn { width: 100%; box-shadow: var(--shadow); }
.pub-cta .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* vista previa */
.pub-prev { min-width: 0; }
.prev-sticky { position: sticky; top: 84px; }
.prev-h { margin-bottom: 10px; }
.prev-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.prev-tabs button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; }
.prev-tabs button[aria-pressed="true"] { background: var(--rc); border-color: var(--rc); color: #fff; }
.prev-n { font-size: 11.5px; margin: 10px 0 0; text-align: center; }
.phone { height: min(600px, calc(100vh - 210px)); min-height: 420px; max-width: 100%; margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 9px; background: #0e0e0d; box-shadow: var(--shadow); }
.scr { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #fff; color: #111; font: 12.5px/1.4 var(--fi); }
.scr .ph { color: #999; }
.scr .ht { color: #2a5bd7; font-weight: 400; }
.ph-empty { display: grid; place-items: center; text-align: center; padding: 30px; color: #888; }
.phone.dark .scr { background: #000; color: #fff; }
.scr .full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), transparent 18%, transparent 55%, rgba(0,0,0,.7)); pointer-events: none; }
.rl-top { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-size: 13px; opacity: .9; }
.rl-side { position: absolute; right: 10px; bottom: 120px; display: grid; gap: 16px; text-align: center; font-size: 20px; }
.rl-side small { display: block; font-size: 10px; }
.rl-cap { position: absolute; left: 12px; right: 52px; bottom: 18px; }
.rl-cap p { margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.rl-cap .ht { color: #fff; font-weight: 600; }
.rl-u { display: flex; align-items: center; gap: 8px; }
.rl-u b { font-weight: 600; }
.rl-u em { font-style: normal; font-size: 11px; border: 1px solid rgba(255,255,255,.7); border-radius: 6px; padding: 1px 7px; }
.rl-u .pav { width: 26px; height: 26px; border: 1.5px solid #fff; }
.st-bar { position: absolute; top: 10px; left: 10px; right: 10px; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.4); }
.st-bar i { display: block; width: 35%; height: 100%; background: #fff; border-radius: inherit; }
.st-h { position: absolute; top: 22px; left: 12px; display: flex; align-items: center; gap: 8px; }
.st-h small { opacity: .7; }
.st-f { position: absolute; left: 12px; right: 12px; bottom: 16px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 8px 14px; font-size: 12px; opacity: .85; }
.fd { overflow-y: auto; scrollbar-width: none; }
.fd-h { display: flex; align-items: center; gap: 9px; padding: 34px 12px 10px; }
.fd-h b { display: block; font-weight: 600; font-size: 12.5px; }
.fd-h small { display: block; color: #777; font-size: 11px; }
.fd-h em { margin-left: auto; font-style: normal; color: #777; }
.fd-m { position: relative; aspect-ratio: 4 / 5; background: #eee; }
.fd-m.sq { aspect-ratio: 4 / 5; }
.fd-m img, .fd-m video { width: 100%; height: 100%; object-fit: cover; }
.fd-dots { position: absolute; bottom: -18px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.fd-dots i { width: 5px; height: 5px; border-radius: 50%; background: #ccc; }
.fd-dots i.on { background: #2a5bd7; }
.fd-n { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.fd-a { display: flex; gap: 16px; padding: 10px 12px 4px; font-size: 15px; }
.fd-c { margin: 0; padding: 4px 12px 16px; font-size: 12px; white-space: normal; }
.fd-c.top { padding-top: 0; }
.fd-c b:first-child { font-weight: 600; }
.yt-v { aspect-ratio: 16 / 9; background: #000; margin-top: 26px; }
.yt-v video, .yt-v img { width: 100%; height: 100%; object-fit: contain; }
.yt-i { padding: 12px; }
.yt-i b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.yt-i small { color: #666; font-size: 11px; }
.yt-d { margin: 0 12px; padding: 10px; background: #f2f2f2; border-radius: 10px; font-size: 11.5px; max-height: 40%; overflow: hidden; }
.pin { padding-top: 26px; }
.pin-m { margin: 0 12px; border-radius: 18px; overflow: hidden; }
.pin-m img, .pin-m video { width: 100%; max-height: 360px; object-fit: cover; }
.pin-b { padding: 12px 16px; }
.pin-b b { font-size: 15px; font-weight: 600; }
.pin-b p { margin: 6px 0 10px; color: #444; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pin-u { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* progreso */
.pub-prog { padding: 6px 0 4px; }
.bar.big { height: 10px; margin: 10px 0; }
.bar.big i { transition: width .25s; }
.pub-prog [data-det] { font-size: 12.5px; margin: 0; min-height: 18px; }

/* publicaciones */
.posts { display: grid; gap: 8px; }
.post { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: border-color .25s; }
.post:hover { border-color: var(--ink-3); }
.post .grow { min-width: 0; display: grid; gap: 4px; }
.pthumb { position: relative; flex: none; width: 58px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg-2); display: grid; place-items: center; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.ptxt { font-family: var(--fd); font-size: 20px; color: var(--ink-3); }
.pn, .pv { position: absolute; font-style: normal; font-size: 10px; color: #fff; background: rgba(0,0,0,.55); border-radius: 5px; padding: 1px 5px; }
.pn { top: 4px; right: 4px; } .pv { bottom: 4px; left: 4px; }
.pm { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.ellip2 { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
.pr { display: flex; gap: 4px; flex-wrap: wrap; }
.pr .rb { width: 22px; height: 22px; border-radius: 6px; font-size: 9px; position: relative; }
.pr .rb.s-error::after, .pr .rb.s-publicado::after, .pr .rb.s-enviando::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--card); }
.pr .rb.s-publicado::after { background: var(--ok); }
.pr .rb.s-error::after { background: var(--bad); }
.pr .rb.s-enviando::after { background: var(--info); }
.pr .rb.s-programado, .pr .rb.s-cancelado { opacity: .55; }
.pe { flex: none; display: grid; justify-items: end; gap: 6px; }
.pe small { font-size: 11.5px; color: var(--ink-3); }
.det { display: flex; gap: 18px; align-items: flex-start; }
.det .grow { flex: 1; min-width: 0; }
.det-img { width: 130px; border-radius: 12px; flex: none; }
.det .row small.ellip { max-width: 420px; }

/* calendario */
.cal-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-h h2 { font-size: 1.6rem; min-width: 210px; text-align: center; }
.cal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.cw, .cg { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cw span { padding: 10px; font-family: var(--fd); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.cd { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; align-content: start; gap: 4px; cursor: pointer; transition: background .2s; }
.cd:nth-child(7n) { border-right: 0; }
.cd:hover { background: var(--bg); }
.cd.vacio { cursor: default; background: var(--bg); }
.cd.pasado { cursor: default; }
.cd.pasado .cn { opacity: .5; }
.cn { font-family: var(--fd); font-size: 13px; padding: 2px 4px; }
.cd.hoy .cn { background: var(--acc); color: var(--acc-ink); border-radius: 999px; width: max-content; padding: 2px 8px; }
.ci { display: block; width: 100%; text-align: left; font-size: 11px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--mc) 14%, var(--card)); border-left: 3px solid var(--mc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci span { font-weight: 600; }
.ci.prog { background: none; border: 1px dashed var(--mc); border-left: 3px solid var(--mc); }
.cmas { font-size: 11px; color: var(--ink-3); padding-left: 4px; }

/* marcas */
.mredes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.mr { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; background: var(--bg); font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.mr span:not(.pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr .rb { filter: grayscale(1); opacity: .45; width: 24px; height: 24px; }
.mr.on { color: var(--ink); }
.mr.on .rb { filter: none; opacity: 1; }
.colores { display: flex; gap: 8px; flex-wrap: wrap; }
.colores button { width: 30px; height: 30px; border-radius: 50%; }
.colores button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }

/* soltar en cualquier parte */
.soltar { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: color-mix(in srgb, var(--acc) 82%, transparent); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s; }
.soltar.on { opacity: 1; }
.soltar div { display: grid; justify-items: center; gap: 6px; padding: 60px 80px; border: 2px dashed rgba(255,255,255,.8); border-radius: 26px; }
.soltar b { font-family: var(--fd); font-weight: 300; font-size: 2.6rem; }

/* acceso */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(380px, 100%); padding: 32px 28px; }
.login h1 { font-size: 2.4rem; }
.login .pav { color: var(--acc-ink); }

@media (max-width: 1100px) { .pub-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .prev-sticky { position: static; }
  .redes, .mredes { grid-template-columns: 1fr; }
  .cd { min-height: 70px; padding: 3px; }
  .ci { font-size: 0; padding: 0; height: 6px; border-radius: 3px; }
  .cal-h h2 { min-width: 0; font-size: 1.3rem; }
  .det { flex-direction: column; }
  .pub-cta { bottom: 76px; }
}
