/* smartnews · admin (Greener). Barra de 64 px a la izquierda con la g, Helvetica, blanco; azul y verde Greener. */
@font-face { font-family: "Coolvetica"; src: url("fonts/coolvetica-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Neue Web"; src: url("fonts/helvetica-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Neue Web"; src: url("fonts/helvetica-neue-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --blue: #1941f5; --green: #5bc656; --red: #eb4626; --yellow: #f9d949;
  --ink: #111; --muted: #6b6b6b; --line: #e7e5df; --soft: #f6f5f1; --card: #fff;
  --head: "Coolvetica", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Helvetica Neue Web", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #fff; color: var(--ink); font: 15px/1.45 var(--text); -webkit-font-smoothing: antialiased; }
.sprite { position: absolute; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* Barra */
.bar { position: fixed; inset: 0 auto 0 0; width: 64px; background: var(--ink); display: flex; flex-direction: column; align-items: center; padding: 16px 0; gap: 6px; z-index: 10; }
.logo { color: #fff; display: block; margin-bottom: 18px; }
.logo svg { width: 15px; height: 34px; display: block; }
.nav { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #9a9a9a; text-decoration: none; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav svg { width: 24px; height: 24px; }
.nav span { position: absolute; left: 54px; background: var(--ink); color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.nav:hover span { opacity: 1; }
.nav:hover { color: #fff; }
.nav.on { color: #fff; background: var(--blue); }
.nav.out { margin-top: auto; }

.app { margin-left: 64px; min-height: 100%; padding: 28px 32px 80px; max-width: 1500px; }
.cargando, .vacio { color: var(--muted); padding: 40px 0; }

h1 { font: 400 30px/1.1 var(--head); margin: 0 0 6px; }
h2 { font: 700 12px/1.2 var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 30px 0 10px; }
.sub { color: var(--muted); margin: 0 0 18px; }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Botones */
.btn { border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.azul { background: var(--blue); color: #fff; box-shadow: none; }
.btn.verde { background: var(--green); color: var(--ink); box-shadow: none; }
.btn.rojo { color: var(--red); }
.btn.confirmar { background: var(--ink); color: #fff; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.mini { padding: 6px 11px; font-size: 12px; }

/* Lista de ediciones */
.filas { display: grid; gap: 6px; }
.fila { display: grid; grid-template-columns: 54px minmax(160px, 1.4fr) 110px 150px 150px 70px 120px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.fila:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.fila .id { color: var(--muted); font-size: 13px; }
.fila .quien { font-weight: 700; }
.fila .chico { color: var(--muted); font-size: 13px; }
.estado { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--soft); }
.estado.revisar { background: var(--yellow); }
.estado.marcha { background: #e6ecff; color: var(--blue); }
.estado.hecha { background: #e4f5e3; color: #1d6b1a; }
.estado.mal { background: #fde3dd; color: #a3260d; }

/* Detalle de una edición */
.edicion { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.vista { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; background: #faf9f6; }
.vista iframe { width: 100%; border: 0; display: block; min-height: 70vh; }
.pestanas { display: flex; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; align-items: center; }
.pestanas button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 12px; cursor: pointer; color: var(--muted); }
.pestanas button.on { background: var(--blue); color: #fff; }
.pestanas .nota { margin-left: auto; color: var(--muted); font-size: 12px; }

.panel { position: sticky; top: 20px; display: grid; gap: 14px; }
.caja { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 16px; background: #fff; }
.caja h3 { font: 700 13px/1.3 var(--text); margin: 0 0 10px; }
.caja p { margin: 0 0 10px; }
.caja .chico, .chico { color: var(--muted); font-size: 13px; }
.aviso { border-radius: 14px; padding: 12px 14px; background: #e6ecff; color: #0c2a9e; font-size: 14px; }
.aviso.mal { background: #fde3dd; color: #8a1f0a; }
.aviso.ok { background: #e4f5e3; color: #164f14; }
.acciones { display: flex; gap: 8px; flex-wrap: wrap; }

.nota-cor { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.nota-cor:first-of-type { border-top: 0; padding-top: 0; }
.nota-cor .el { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; color: var(--blue); }
.nota-cor .el button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
textarea { width: 100%; min-height: 76px; resize: vertical; border: 0; border-radius: 10px; padding: 10px 11px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); line-height: 1.45; }
textarea:focus, input:focus, select:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--blue); }

details { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
details summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.prob { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.prob b { color: var(--ink); }
.prob:last-child { border-bottom: 0; }
.hist { font-size: 13px; padding: 6px 0; }

/* Perfiles */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tarjeta { display: block; padding: 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.tarjeta:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.tarjeta b { display: block; font-size: 16px; margin-bottom: 4px; }
.form { display: grid; gap: 14px; max-width: 880px; }
.campo { display: grid; gap: 5px; }
.campo label { font-weight: 700; font-size: 13px; }
.campo .ayuda { color: var(--muted); font-size: 12.5px; }
.dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
input, select { width: 100%; border: 0; border-radius: 10px; padding: 10px 11px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.seccion-ed { display: grid; grid-template-columns: 220px 1fr 34px; gap: 8px; align-items: start; margin-bottom: 8px; }
.seccion-ed textarea { min-height: 60px; }
.seccion-ed button { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; padding-top: 6px; }

/* Nueva edición */
.nueva { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--soft); margin: 10px 0 4px; }
.nueva .campo { min-width: 150px; }

/* Entrada */
.entrada { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.entrada h1 { font-size: 40px; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; z-index: 20; max-width: 90vw; }
.toast.mal { background: var(--red); }

@media (max-width: 1100px) {
  .edicion { grid-template-columns: 1fr; }
  .panel { position: static; }
}
@media (max-width: 760px) {
  .app { padding: 18px 14px 80px; }
  .fila { grid-template-columns: 44px 1fr auto; }
  .fila .ocultar { display: none; }
  .seccion-ed { grid-template-columns: 1fr 34px; }
  .seccion-ed input { grid-column: 1 / -1; }
}
.mt { margin: 10px 0 0 !important; }
