/* MS-News · Formulario de reporteros (móvil primero) */
#msn-rep.msn-rep { --msn-primary: #e30613; --msn-dark: #111; --r: 12px; max-width: 760px; margin: 0 auto; padding: 0 0 96px; color: #1a1a1a;
	font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
/* Aislamiento del tema: se anulan los estilos heredados del tema dentro del formulario. */
#msn-rep :where(div, span, header, nav, section, figure, label, button, input, textarea, select, a, h2, h3, p, ul, ol, li, img, strong, b, i, em, small, blockquote, datalist) { all: revert; }
#msn-rep :where(button, input, textarea, select) { font-family: inherit; }

#msn-rep.msn-rep *, #msn-rep.msn-rep *::before, #msn-rep.msn-rep *::after { box-sizing: border-box; }
#msn-rep.msn-rep [hidden] { display: none !important; }
#msn-rep .msn-rep__loading, #msn-rep .msn-rep__muted { text-align: center; color: #777; padding: 30px 10px; }
#msn-rep.msn-rep.is-busy { pointer-events: none; }
#msn-rep.msn-rep.is-busy .msn-rep__bar { opacity: .7; }

/* Cabecera */
#msn-rep .msn-rep__top { position: sticky; top: 0; z-index: 20; background: var(--msn-dark); color: #fff; border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
body.admin-bar #msn-rep .msn-rep__top { top: 46px; }
@media (min-width: 783px) { body.admin-bar #msn-rep .msn-rep__top { top: 32px; } }
#msn-rep .msn-rep__top > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; }
#msn-rep .msn-rep__top > div strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#msn-rep .msn-rep__top > div span { opacity: .8; white-space: nowrap; }
#msn-rep .msn-rep__top a { color: #fff; }
#msn-rep .msn-rep__tabs { display: grid; grid-template-columns: 1fr 1fr; }
#msn-rep .msn-rep__tabs button { background: none; border: 0; color: #bbb; font-weight: 700; font-size: 15px; padding: 11px 6px; border-bottom: 3px solid transparent; cursor: pointer; }
#msn-rep .msn-rep__tabs button.is-on { color: #fff; border-bottom-color: var(--msn-primary); }

/* Tarjetas */
#msn-rep .msn-rep__card { background: #fff; border: 1px solid #e5e5e5; border-radius: var(--r); padding: 16px; margin: 14px 10px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
#msn-rep .msn-rep__card h3 { margin: 0 0 12px; font-size: 17px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
#msn-rep .msn-rep__card h3 em, #msn-rep .msn-rep__card h3 small { font-style: normal; font-weight: 500; font-size: 12px; color: #888; }
#msn-rep.msn-rep label, #msn-rep .msn-rep__label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 12px; }
#msn-rep.msn-rep small { font-weight: 400; color: #888; }
#msn-rep.msn-rep input[type=text], #msn-rep.msn-rep input[type=url], #msn-rep.msn-rep textarea, #msn-rep .msn-rep__editor {
	display: block; width: 100%; margin-top: 6px; padding: 12px 13px; font: inherit; font-size: 16px; font-weight: 400; color: inherit;
	border: 1.5px solid #d0d0d0; border-radius: 10px; background: #fafafa; transition: border-color .15s, background .15s; }
#msn-rep.msn-rep textarea { resize: vertical; min-height: 54px; }
#msn-rep.msn-rep textarea[data-k="title"] { font-size: 19px; font-weight: 700; line-height: 1.25; }
#msn-rep.msn-rep input:focus, #msn-rep.msn-rep textarea:focus, #msn-rep .msn-rep__editor:focus { outline: 0; border-color: var(--msn-primary); background: #fff; }
#msn-rep .msn-rep__row2 { display: grid; gap: 0 12px; margin-top: 12px; }
@media (min-width: 600px) { #msn-rep .msn-rep__row2 { grid-template-columns: 1fr 1fr; } }
#msn-rep .msn-rep__count { float: right; font-size: 12px; font-weight: 600; color: #999; }
#msn-rep .msn-rep__count.is-ok { color: #0a8a3a; } #msn-rep .msn-rep__count.is-low { color: #c98a00; } #msn-rep .msn-rep__count.is-high { color: #c62828; }
#msn-rep .msn-rep__editing { margin: 12px 10px 0; padding: 10px 12px; background: #fff7e0; border-radius: 10px; font-size: 14px; }
#msn-rep .msn-rep__link { background: none; border: 0; color: var(--msn-primary); font-weight: 700; cursor: pointer; padding: 0 4px; }

/* Foto */
#msn-rep .msn-rep__pick { display: grid; gap: 10px; }
@media (min-width: 520px) { #msn-rep .msn-rep__pick { grid-template-columns: 1fr 1fr; } }
#msn-rep .msn-rep__pickbtn { position: relative; display: grid !important; place-items: center; min-height: 110px; margin: 0 !important; border: 2px dashed var(--msn-primary);
	border-radius: var(--r); color: var(--msn-primary); font-size: 17px !important; background: color-mix(in srgb, var(--msn-primary) 6%, #fff); cursor: pointer; text-align: center; }
#msn-rep .msn-rep__pickbtn--alt { border-color: #bbb; color: #555; background: #fafafa; min-height: 70px; }
#msn-rep .msn-rep__pickbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#msn-rep .msn-rep__pick.is-busy { opacity: .4; pointer-events: none; }
#msn-rep .msn-rep__progress { height: 6px; background: #eee; border-radius: 6px; overflow: hidden; margin-top: 10px; }
#msn-rep .msn-rep__progress i { display: block; height: 100%; width: 3%; background: var(--msn-primary); transition: width .2s; }
#msn-rep .msn-rep__preview { position: relative; border-radius: var(--r); overflow: hidden; background: #000; }
#msn-rep .msn-rep__preview img { display: block; width: 100%; max-height: 360px; object-fit: contain; }
#msn-rep .msn-rep__preview button { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; border: 0; border-radius: 30px; padding: 8px 14px; font-weight: 700; cursor: pointer; }

/* Categorías y etiquetas */
#msn-rep .msn-rep__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
#msn-rep .msn-rep__chip { border: 1.5px solid #d0d0d0; background: #fff; border-radius: 30px; padding: 9px 14px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
#msn-rep .msn-rep__chip.is-on { background: var(--c); border-color: var(--c); color: #fff; }
#msn-rep .msn-rep__tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; padding: 6px; border: 1.5px solid #d0d0d0; border-radius: 10px; background: #fafafa; }
#msn-rep .msn-rep__tags span { display: inline-flex; align-items: center; gap: 4px; background: #222; color: #fff; border-radius: 20px; padding: 5px 6px 5px 11px; font-size: 14px; font-weight: 600; }
#msn-rep .msn-rep__tags span button { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
#msn-rep .msn-rep__tags input { flex: 1; min-width: 140px; border: 0 !important; margin: 0 !important; background: none !important; padding: 6px !important; }
#msn-rep .msn-rep__switch { display: flex !important; align-items: center; gap: 10px; font-weight: 600 !important; cursor: pointer; margin-top: 4px !important; }
#msn-rep .msn-rep__switch input { position: absolute; opacity: 0; }
#msn-rep .msn-rep__switch span { width: 46px; height: 26px; border-radius: 26px; background: #ccc; position: relative; flex: none; transition: background .2s; }
#msn-rep .msn-rep__switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
#msn-rep .msn-rep__switch input:checked + span { background: var(--msn-primary); }
#msn-rep .msn-rep__switch input:checked + span::after { transform: translateX(20px); }
#msn-rep .msn-rep__switch-t { font-style: normal; }

/* Editor */
#msn-rep .msn-rep__tools { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; position: sticky; top: 92px; z-index: 5; background: #fff; }
#msn-rep .msn-rep__tools button { flex: none; border: 1px solid #d0d0d0; background: #f4f4f4; border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
#msn-rep .msn-rep__editor { min-height: 220px; line-height: 1.6; }
#msn-rep .msn-rep__editor:empty::before { content: attr(data-placeholder); color: #999; }
#msn-rep .msn-rep__editor p { margin: 0 0 .8em; }
#msn-rep .msn-rep__editor h2 { font-size: 1.2em; margin: .6em 0 .4em; }
#msn-rep .msn-rep__editor blockquote { border-left: 4px solid var(--msn-primary); margin: .6em 0; padding: .2em 0 .2em 12px; font-style: italic; }

/* Galería */
#msn-rep .msn-rep__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-bottom: 14px; }
#msn-rep .msn-rep__gallery figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eee; }
#msn-rep .msn-rep__gallery img { width: 100%; height: 100%; object-fit: cover; }
#msn-rep .msn-rep__gallery figure button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
#msn-rep .msn-rep__add { position: relative; display: grid !important; place-items: center; aspect-ratio: 1; margin: 0 !important; border: 2px dashed #bbb; border-radius: 10px; font-size: 30px !important; color: #888; cursor: pointer; }
#msn-rep .msn-rep__add input { position: absolute; inset: 0; opacity: 0; }
#msn-rep .msn-rep__add.is-busy { animation: msn-rep-pulse 1s infinite; }
@keyframes msn-rep-pulse { 50% { opacity: .4; } }

/* SEO */
#msn-rep .msn-rep__slug { display: flex; align-items: center; margin-top: 6px; border: 1.5px solid #d0d0d0; border-radius: 10px; background: #fafafa; overflow: hidden; }
#msn-rep .msn-rep__slug span { padding: 0 0 0 12px; color: #888; font-size: 13px; font-weight: 400; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; }
#msn-rep .msn-rep__slug input { border: 0 !important; margin: 0 !important; background: none !important; padding-left: 2px !important; }
#msn-rep .msn-rep__serp { border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px 14px; margin: 4px 0 14px; background: #fff; font-family: Arial, sans-serif; }
#msn-rep .msn-rep__serp-url { font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#msn-rep .msn-rep__serp-t { color: #1a0dab; font-size: 18px; line-height: 1.3; margin: 3px 0; }
#msn-rep .msn-rep__serp-d { color: #4d5156; font-size: 13px; line-height: 1.5; }
#msn-rep .msn-rep__score { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
#msn-rep .msn-rep__score div { flex: 1; height: 10px; background: #eee; border-radius: 10px; overflow: hidden; }
#msn-rep .msn-rep__score i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
#msn-rep .msn-rep__score.is-good i { background: #16a34a; } #msn-rep .msn-rep__score.is-mid i { background: #f59e0b; } #msn-rep .msn-rep__score.is-bad i { background: #dc2626; }
#msn-rep .msn-rep__checks { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; }
#msn-rep .msn-rep__checks li { padding: 4px 0 4px 26px; position: relative; }
#msn-rep .msn-rep__checks li::before { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 900; }
#msn-rep .msn-rep__checks li.ok::before { content: "✓"; background: #16a34a; }
#msn-rep .msn-rep__checks li.no { color: #666; }
#msn-rep .msn-rep__checks li.no::before { content: "!"; background: #f59e0b; }

/* Barra inferior fija */
#msn-rep .msn-rep__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	background: rgba(255,255,255,.97); border-top: 1px solid #e5e5e5; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
#msn-rep .msn-rep__note { flex: 1; font-size: 12px; color: #777; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#msn-rep .msn-rep__btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 30px; padding: 13px 20px; font: inherit; font-weight: 800; font-size: 15px;
	background: var(--msn-primary); color: #fff !important; cursor: pointer; text-decoration: none; white-space: nowrap; }
#msn-rep .msn-rep__btn--ghost { background: #f0f0f0; color: #222 !important; }
#msn-rep .msn-rep__btn--wa { background: #25D366; }
@media (min-width: 800px) { #msn-rep .msn-rep__bar { left: 50%; transform: translateX(-50%); max-width: 760px; border-radius: 16px 16px 0 0; } }

/* Recuperar, avisos y pantalla final */
#msn-rep .msn-rep__restore { margin: 12px 10px 0; padding: 12px; background: #e8f1ff; border-radius: 10px; font-size: 14px; }
#msn-rep .msn-rep__restore button { border: 0; border-radius: 20px; padding: 6px 12px; font-weight: 700; margin: 6px 6px 0 0; cursor: pointer; background: #fff; }
#msn-rep .msn-rep__restore button[data-r="yes"] { background: #1d4ed8; color: #fff; }
#msn-rep .msn-rep__toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 40; max-width: 92vw; background: #111; color: #fff; padding: 12px 18px; border-radius: 12px;
	font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .4s; }
#msn-rep .msn-rep__toast.is-err { background: #b91c1c; }
#msn-rep .msn-rep__toast.is-out { opacity: 0; }
#msn-rep .msn-rep__done { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: grid; place-items: center; padding: 16px; }
#msn-rep .msn-rep__done-in { background: #fff; border-radius: 18px; padding: 26px 20px; text-align: center; max-width: 420px; width: 100%; display: grid; gap: 10px; }
#msn-rep .msn-rep__done-in h2 { margin: 0; font-size: 21px; }
#msn-rep .msn-rep__done-in p { margin: 0 0 6px; color: #555; }
#msn-rep .msn-rep__done-ico { font-size: 46px; }

/* Mis noticias */
#msn-rep .msn-rep__list { list-style: none; margin: 12px 10px; padding: 0; display: grid; gap: 10px; }
#msn-rep .msn-rep__list li { display: flex; gap: 12px; background: #fff; border: 1px solid #e5e5e5; border-radius: var(--r); padding: 10px; }
#msn-rep .msn-rep__list img, #msn-rep .msn-rep__noimg { width: 76px; height: 76px; border-radius: 8px; object-fit: cover; flex: none; background: #eee; display: grid; place-items: center; font-size: 26px; }
#msn-rep .msn-rep__list b { display: block; line-height: 1.25; font-size: 15px; }
#msn-rep .msn-rep__list small { display: block; margin-top: 4px; }
#msn-rep .msn-rep__st { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 10px; margin-right: 6px; background: #eee; color: #444; }
#msn-rep .msn-rep__st--publish { background: #dcfce7; color: #166534; } #msn-rep .msn-rep__st--pending { background: #fef3c7; color: #92400e; }
#msn-rep .msn-rep__acts { margin-top: 6px; display: flex; gap: 8px; }
#msn-rep .msn-rep__acts button, #msn-rep .msn-rep__acts a { border: 1px solid #d0d0d0; background: #fff; border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 700; color: #222; text-decoration: none; cursor: pointer; }

/* Acceso */
#msn-rep.msn-rep--login { padding: 24px 16px; background: #fff; border-radius: var(--r); border: 1px solid #e5e5e5; margin: 16px 10px; }
#msn-rep.msn-rep--login h2 { margin-top: 0; }
#msn-rep.msn-rep--login input[type=text], #msn-rep.msn-rep--login input[type=password] { width: 100%; padding: 12px; font-size: 16px; border: 1.5px solid #d0d0d0; border-radius: 10px; }
#msn-rep.msn-rep--login input[type=submit] { background: var(--msn-primary); color: #fff; border: 0; border-radius: 30px; padding: 12px 26px; font-weight: 800; font-size: 16px; cursor: pointer; }

/* Cámara integrada */
#msn-rep button.msn-rep__pickbtn { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
#msn-rep .msn-rep__native { position: relative; display: block; margin: 10px 0 0; font-size: 13px; font-weight: 500; color: #777; text-decoration: underline; text-align: center; cursor: pointer; }
#msn-rep .msn-rep__native input { position: absolute; inset: 0; opacity: 0; width: 100%; }
#msn-rep button.msn-rep__add { font: inherit; font-size: 26px; background: #fafafa; cursor: pointer; width: 100%; height: 100%; }
#msn-rep .msn-rep__cam { position: fixed; inset: 0; z-index: 99999; background: #000; display: flex; align-items: center; justify-content: center; }
#msn-rep .msn-rep__cam video, #msn-rep .msn-rep__cam .msn-rep__cam-shot { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; border: 0; }
#msn-rep .msn-rep__cam-msg { position: absolute; left: 20px; right: 20px; top: 45%; color: #fff; text-align: center; font-size: 16px; line-height: 1.5; }
#msn-rep .msn-rep__cam-alt { position: relative; display: inline-block; margin-top: 14px; background: #fff; color: #111; border-radius: 30px; padding: 10px 18px; font-weight: 800; }
#msn-rep .msn-rep__cam-alt input { position: absolute; inset: 0; opacity: 0; }
#msn-rep .msn-rep__cam-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; justify-content: space-between; }
#msn-rep .msn-rep__cam-top button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; cursor: pointer; }
#msn-rep .msn-rep__cam-bar { position: absolute; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 14px; }
#msn-rep .msn-rep__cam-shoot { width: 76px; height: 76px; border-radius: 50%; border: 5px solid #fff; background: var(--msn-primary); cursor: pointer; box-shadow: 0 0 0 3px rgba(0,0,0,.4); }
#msn-rep .msn-rep__cam-shoot:active { transform: scale(.92); }
#msn-rep .msn-rep__cam-confirm button { border: 0; border-radius: 30px; padding: 14px 22px; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; background: rgba(255,255,255,.92); color: #111; }
#msn-rep .msn-rep__cam-confirm button[data-c="use"] { background: var(--msn-primary); color: #fff; }
