.admin-noticias-editor-page {
	--editor-surface: #0b0c0f;
	--editor-border: rgba(255, 255, 255, 0.1);
	--editor-border-soft: rgba(255, 255, 255, 0.06);
	--editor-text-muted: #9ca3af;
}

.admin-noticias-editor-page .noticias-editor-card {
	position: relative;
	overflow: hidden;
}

.admin-noticias-editor-page .noticias-editor-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), transparent 58%);
	pointer-events: none;
}

.admin-noticias-editor-page .noticias-editor-toolbar {
	gap: 0.45rem;
	max-width: 980px;
	margin-inline: auto;
}

.admin-noticias-editor-page .noticias-editor-toolbar button {
	backdrop-filter: blur(1px);
}

.admin-noticias-editor-page .noticias-editor-toolbar button:hover {
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.admin-noticias-editor-page .sticky.top-4 {
	max-width: 980px;
	margin-inline: auto;
}

.admin-noticias-editor-page [data-news-editor-target="editor"] {
	max-width: 980px;
	margin-inline: auto;
}

.admin-noticias-editor-page [data-news-editor-state].is-active {
	background: rgba(49, 197, 244, 0.22);
	border-color: rgba(49, 197, 244, 0.56);
	color: #ffffff;
	box-shadow: 0 0 0 1px rgba(49, 197, 244, 0.38) inset;
}

.admin-noticias-editor-page .noticias-editor-surface {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.5));
	border-color: var(--editor-border);
	max-width: 980px;
	margin-inline: auto;
}

.admin-noticias-editor-page .news-editor {
	min-height: 340px;
	font-size: 1.1rem;
	line-height: 1.9;
	max-width: 68ch;
	margin-inline: auto;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.admin-noticias-editor-page .news-editor::after {
	content: "";
	display: block;
	clear: both;
}

.admin-noticias-editor-page input[name="noticia[titulo]"] {
	max-width: 980px;
	margin-inline: auto;
	font-size: clamp(2rem, 5vw, 4.2rem);
	line-height: 0.96;
	text-transform: uppercase;
}

.admin-noticias-editor-page textarea[name="noticia[copete]"] {
	max-width: 68ch;
	margin-inline: auto;
	font-size: 1.04rem;
	line-height: 1.7;
}

.admin-noticias-editor-page .news-editor p {
	margin: 0 0 1.35rem;
}

.admin-noticias-editor-page .news-editor p:last-child {
	margin-bottom: 0;
}

.admin-noticias-editor-page .news-editor a {
	color: #104E8B;
	text-decoration: underline;
	text-underline-offset: 0.22em;
	cursor: pointer;
	transition: color 0.2s ease;
}

.admin-noticias-editor-page .news-editor a:hover {
	color: #1E6BB8;
}

.admin-noticias-editor-page .news-editor .noticia-imagen,
.admin-noticias-editor-page .news-editor .noticia-video {
	clear: both;
	position: relative;
	margin: 1.2rem auto;
	border-radius: 1.1rem;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	padding: 0.6rem;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-left,
.admin-noticias-editor-page .news-editor .noticia-video-left {
	float: left;
	margin-right: 1.4rem;
	max-width: 48%;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-right,
.admin-noticias-editor-page .news-editor .noticia-video-right {
	float: right;
	margin-left: 1.4rem;
	max-width: 48%;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-small,
.admin-noticias-editor-page .news-editor .noticia-video-small {
	width: 25%;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-medium,
.admin-noticias-editor-page .news-editor .noticia-video-medium {
	width: 50%;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-large,
.admin-noticias-editor-page .news-editor .noticia-video-large {
	width: 75%;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-full,
.admin-noticias-editor-page .news-editor .noticia-video-full {
	width: 100%;
}

.admin-noticias-editor-page .news-editor .noticia-editor-inline-image {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: contain;
	background: #020202;
	border-radius: 0.8rem;
}

.admin-noticias-editor-page .news-editor .noticia-video iframe,
.admin-noticias-editor-page .news-editor .noticia-video video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0.8rem;
	border: 0;
	background: #020202;
}

.admin-noticias-editor-page .news-editor .noticia-imagen-caption,
.admin-noticias-editor-page .news-editor .noticia-video-caption {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	color: #9ca3af;
}

@media (max-width: 767px) {
	.admin-noticias-editor-page .news-editor .noticia-imagen-left,
	.admin-noticias-editor-page .news-editor .noticia-video-left,
	.admin-noticias-editor-page .news-editor .noticia-imagen-right,
	.admin-noticias-editor-page .news-editor .noticia-video-right,
	.admin-noticias-editor-page .news-editor .noticia-imagen-small,
	.admin-noticias-editor-page .news-editor .noticia-imagen-medium,
	.admin-noticias-editor-page .news-editor .noticia-imagen-large,
	.admin-noticias-editor-page .news-editor .noticia-video-small,
	.admin-noticias-editor-page .news-editor .noticia-video-medium,
	.admin-noticias-editor-page .news-editor .noticia-video-large {
		float: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

.admin-noticias-editor-page [data-news-editor-target="slashMenu"] {
	max-width: 980px;
	margin-inline: auto;
}

.admin-noticias-editor-page input,
.admin-noticias-editor-page textarea,
.admin-noticias-editor-page select {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-noticias-editor-page input:focus,
.admin-noticias-editor-page textarea:focus,
.admin-noticias-editor-page select:focus {
	outline: none;
	border-color: rgba(49, 197, 244, 0.45);
	box-shadow: 0 0 0 2px rgba(49, 197, 244, 0.12);
}

.admin-noticias-editor-page select option {
	background-color: #050505;
	color: white;
	padding: 0.5rem;
}

.admin-noticias-editor-page select option:checked {
	background: linear-gradient(#31c5f4, #31c5f4);
	background-color: #31c5f4;
	color: white;
}

.admin-noticias-editor-page .noticias-editor-preview-card [data-news-editor-target="preview"] {
	max-width: 980px;
	margin-inline: auto;
	font-size: 1.1rem;
	line-height: 1.9;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.admin-noticias-editor-page .noticias-editor-actions {
	padding-top: 0.25rem;
	border-top: 1px solid var(--editor-border-soft);
}

@media (max-width: 1279px) {
	.admin-noticias-editor-page .noticias-editor-grid {
		gap: 1rem;
	}
}
