:root { --morado: #5f2a8c; --morado-osc: #4a1f70; --tinta: #251f30; --gris: #6b6478; --linea: #e4dfec; --fondo: #f5f3f8; --verde: #2e7d1c; --rojo: #c22a18; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--fondo); color: var(--tinta); line-height: 1.5; }
a { color: var(--morado); }
h1 { font-size: 1.5rem; margin: 0 0 .75rem; text-wrap: balance; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
main > h2 { margin-top: 1.75rem; }
.barra { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; background: #fff; border-bottom: 3px solid var(--morado); padding: .5rem 1.25rem; }
.marca { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--tinta); font-weight: 600; }
.marca img { height: 44px; }
.barra nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.barra nav a { text-decoration: none; font-weight: 600; }
.barra form { margin: 0; }
main { max-width: 1060px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.caja { background: #fff; border: 1px solid var(--linea); border-radius: 6px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; }
.tabla { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
th { font-size: .78rem; color: var(--gris); text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
tr.inactiva { opacity: .55; }
td form { margin: 0; }
.derecha { text-align: right; white-space: nowrap; }
.sub { color: var(--gris); font-size: .84rem; }
.mini { width: 90px; } .mini img { max-width: 76px; max-height: 40px; display: block; }
.titulo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.titulo h1 { margin: 0; }
.ficha { display: flex; align-items: center; gap: 1rem; } .ficha img { max-width: 150px; max-height: 64px; }
.boton { display: inline-block; background: var(--morado); color: #fff; border: 1px solid var(--morado); border-radius: 5px; padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.boton:hover { background: var(--morado-osc); }
.boton.claro { background: #fff; color: var(--morado); } .boton.claro:hover { background: #f1ebf8; }
.boton.rojo { background: var(--rojo); border-color: var(--rojo); }
.boton.ancho { width: 100%; }
.enlace { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--morado); cursor: pointer; }
.enlace.rojo { color: var(--rojo); font-weight: 400; }
label { display: block; font-size: .88rem; font-weight: 600; color: var(--gris); margin-bottom: .7rem; }
input:not([type=checkbox]):not([type=color]), select, textarea { display: block; width: 100%; margin-top: .2rem; padding: .5rem .6rem; border: 1px solid #cbc4d6; border-radius: 5px; font: inherit; color: var(--tinta); background: #fff; }
textarea { resize: vertical; }
:focus-visible { outline: 3px solid #1c87d6; outline-offset: 1px; }
.casilla { display: flex; align-items: center; gap: .5rem; font-weight: 400; color: var(--tinta); }
.rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1rem; align-items: end; }
.rejilla .doble { grid-column: span 2; } .rejilla .todo { grid-column: 1 / -1; }
.logo-actual img { max-width: 180px; max-height: 70px; display: block; margin-bottom: .4rem; }
.acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.aviso { padding: .7rem 1rem; border-radius: 5px; margin-bottom: 1rem; border: 1px solid; }
.aviso.ok { background: #eef8ea; border-color: #b9dfae; color: #205c13; }
.aviso.error { background: #fdeeec; border-color: #f1bdb6; color: #8d1e10; }
.aviso.atencion { background: #fff6e0; border-color: #eed598; color: #6f5210; }
.etiqueta { display: inline-block; font-size: .78rem; font-weight: 600; padding: .1rem .6rem; border-radius: 20px; background: #edeaf2; color: var(--gris); }
.etiqueta.borrador { background: #fff1cc; color: #6f5210; }
.etiqueta.finalizado { background: #dff2d8; color: #205c13; }
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.cifra { background: #fff; border: 1px solid var(--linea); border-top: 3px solid var(--morado); border-radius: 5px; padding: .7rem .9rem; }
.cifra span { display: block; font-size: .82rem; color: var(--gris); }
.cifra b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.cifra em { font-style: normal; font-size: .82rem; color: var(--gris); }
em.sube { color: var(--verde); font-weight: 600; } em.baja { color: var(--rojo); font-weight: 600; }
.subida { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: .6rem; }
.subida input { flex: 1; min-width: 220px; margin: 0; }
.auto { background: #f6f3fa; border-radius: 5px; padding: .7rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.auto ul { margin: .3rem 0 0; padding-left: 1.1rem; }
summary { cursor: pointer; font-weight: 600; color: var(--gris); font-size: .9rem; }
.peligro { margin-top: 2rem; } .peligro form { margin-top: .75rem; }
.vacio { color: var(--gris); }
.acceso { max-width: 360px; margin: 8vh auto; text-align: center; } .acceso img { max-width: 240px; } .acceso label { text-align: left; }
@media (max-width: 720px) {
  .rejilla { grid-template-columns: 1fr; } .rejilla .doble { grid-column: auto; }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
input[type=color] { display: block; width: 100%; height: 2.6rem; margin-top: .2rem; padding: 2px; border: 1px solid #cbc4d6; border-radius: 5px; background: #fff; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #8b849a; }
.bloque { border: 1px solid var(--linea); border-radius: 5px; padding: .7rem .9rem; margin-bottom: .6rem; }
.bloque > summary { color: var(--tinta); font-size: 1rem; }
.bloque[open] > summary { margin-bottom: .7rem; }
.bloque h3 { font-size: .95rem; margin: .5rem 0; }
fieldset { border: 1px solid var(--linea); border-radius: 5px; padding: .5rem .6rem 0; margin: 0 0 .8rem; min-width: 0; }
legend { font-size: .82rem; font-weight: 600; padding: 0 .3rem; }
.cuatro, .tres, .par, .fila { display: grid; column-gap: .7rem; }
.cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.par { grid-template-columns: 1fr 2fr; }
.fila { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.fila textarea, .cuatro textarea, .tres textarea, .par textarea { font-size: .86rem; }
.imagen { border: 1px dashed #b9b0c8; border-radius: 5px; padding: .5rem; margin-bottom: .7rem; }
.imagen:focus-within, .imagen:focus, .imagen.encima { border-color: var(--morado); border-style: solid; background: #f6f3fa; }
.imagen label { margin-bottom: .3rem; }
.imagen img { display: block; max-width: 100%; max-height: 90px; margin-bottom: .4rem; }
.imagen input { font-size: .8rem; }
.acciones { align-items: center; }
.acciones.fijas { position: sticky; bottom: 0; background: #fff; padding: .6rem 0; }
@media (max-width: 720px) { .cuatro, .tres, .par, .fila { grid-template-columns: 1fr; } }
.apartado { margin: 1rem 0 .4rem; padding-top: .8rem; border-top: 1px solid var(--linea); }
code { background: #f1ebf8; border-radius: 3px; padding: 0 .3rem; font-size: .85em; overflow-wrap: anywhere; }
.rejilla > .todo { grid-column: 1 / -1; }
.color { display: flex; gap: .5rem; align-items: center; }
.color input[type=color] { width: 3.4rem; flex: none; }
.color input[type=text] { flex: 1; min-width: 0; font-family: Consolas, "Courier New", monospace; }

/* ---- redes sociales ---- */
main { max-width: 1200px; }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.acciones form { margin: 0; }
.filtro { margin: 0; } .filtro select { margin: 0; min-width: 190px; }
fieldset { border: 0; padding: 0; margin: 0 0 .8rem; } legend { font-size: .88rem; font-weight: 600; color: var(--gris); }
.calendario { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; margin-bottom: 1.25rem; }
.dsem { background: #faf8fc; font-size: .76rem; font-weight: 700; color: var(--gris); text-transform: uppercase; padding: .45rem .5rem; }
.dia { background: #fff; min-height: 118px; padding: .3rem .35rem .45rem; display: flex; flex-direction: column; gap: .3rem; }
.dia.fuera { background: #faf8fc; }
.num { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--gris); }
.num a { text-decoration: none; font-size: 1.15rem; line-height: 1; padding: 0 .3rem; border-radius: 4px; }
.num a:hover { background: #f1ebf8; }
.hoy .num span { background: var(--morado); color: #fff; border-radius: 99px; padding: 0 .45rem; font-weight: 700; }
.ficha { display: block; text-decoration: none; color: var(--tinta); font-size: .76rem; line-height: 1.35; border-left: 4px solid var(--c, #5f2a8c); background: #f7f5fa; border-radius: 4px; padding: .25rem .4rem; overflow: hidden; }
.ficha:hover { background: #efe9f6; }
.ficha b, .ficha .resumen, .ficha .marca-estado { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha .resumen { color: var(--gris); }
.ficha .marca-estado { font-weight: 700; font-size: .7rem; }
.ficha.publicada .marca-estado { color: var(--verde); } .ficha.error .marca-estado { color: var(--rojo); } .ficha.a_mano .marca-estado { color: #92500a; }
.ficha.error { background: #fdeeec; } .ficha.a_mano { background: #fff4e2; }
.hora { font-weight: 700; font-variant-numeric: tabular-nums; }
.red { display: inline-block; font-size: .62rem; font-weight: 800; color: #fff; border-radius: 3px; padding: 0 .25rem; margin-right: .15rem; vertical-align: 1px; }
.red.instagram { background: #b4246c; } .red.linkedin { background: #0a66c2; }
.lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.atencion { border-color: #e9b567; }
.estado { display: inline-block; border-radius: 99px; padding: .05rem .6rem; font-size: .76rem; font-weight: 700; background: #eeeaf3; }
.estado.publicada { background: #e5f4e1; color: var(--verde); } .estado.error { background: #fdeeec; color: var(--rojo); } .estado.a_mano { background: #fff4e2; color: #92500a; }
.punto { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); vertical-align: -1px; }
.medios { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.medios figure { margin: 0; width: 170px; } .medios img, .medios video { width: 100%; max-height: 220px; object-fit: contain; background: #f2eff6; border-radius: 6px; display: block; }
.medios figcaption { font-size: .74rem; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.texto { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: .9rem; }
.contador.pasado { color: var(--rojo); font-weight: 700; }
code { background: #f1ebf8; border-radius: 3px; padding: 0 .25rem; font-size: .85em; }
@media (max-width: 760px) {
  .calendario { grid-template-columns: 1fr; }
  .dsem, .dia.fuera, .dia.vacio:not(.hoy) { display: none; }
  .dia { min-height: 0; }
}
