/* Canal Ético: hereda tipografía de la web y usa los colores globales de Elementor cuando existen. */
.ce-canal {
	--ce-primary: var(--e-global-color-primary, #1261a6);
	--ce-text: var(--e-global-color-text, #1d2327);
	--ce-border: #c9d2dc;
	--ce-ok-bg: #edf7ee;
	--ce-ok-border: #2e7d32;
	--ce-error-bg: #fdecea;
	--ce-error-border: #c62828;
	max-width: 760px;
	margin: 0 auto;
	color: var(--ce-text);
}
.ce-canal *, .ce-canal *::before, .ce-canal *::after { box-sizing: border-box; }
.ce-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; border-bottom: 2px solid var(--ce-border); }
.ce-tabs a { padding: 10px 16px; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.ce-tabs a.is-active { border-bottom-color: var(--ce-primary); color: var(--ce-primary); }
.ce-intro p { margin: 0 0 12px; }
.ce-form fieldset { border: 1px solid var(--ce-border); border-radius: 8px; padding: 16px 20px 8px; margin: 0 0 20px; }
.ce-form legend { font-weight: 700; padding: 0 6px; }
.ce-field { margin: 0 0 16px; }
.ce-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.ce-help { display: block; font-size: .9em; opacity: .8; margin: 0 0 6px; }
.ce-form input[type="text"], .ce-form input[type="email"], .ce-form input[type="tel"], .ce-form input[type="password"], .ce-form select, .ce-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--ce-border); border-radius: 6px; font: inherit; color: inherit; background: #fff;
}
.ce-form input:focus, .ce-form select:focus, .ce-form textarea:focus { outline: 2px solid var(--ce-primary); outline-offset: 1px; }
.ce-check label, .ce-radio label { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; font-weight: 400; }
.ce-check input, .ce-radio input { margin-top: .3em; flex: none; }
.ce-form:has(input[name="ce_mode"][value="anonima"]:checked) .ce-reporter { display: none; }
.ce-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ce-button { display: inline-block; padding: 12px 24px; border: 0; border-radius: 6px; background: var(--ce-primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.ce-button:hover, .ce-button:focus { filter: brightness(1.1); }
.ce-link { background: none; border: 0; padding: 0; color: var(--ce-primary); text-decoration: underline; cursor: pointer; font: inherit; }
.ce-box { border-left: 4px solid; border-radius: 6px; padding: 12px 16px; margin: 0 0 20px; }
.ce-box ul { margin: 0 0 0 1.2em; }
.ce-ok { background: var(--ce-ok-bg); border-color: var(--ce-ok-border); }
.ce-error { background: var(--ce-error-bg); border-color: var(--ce-error-border); }
.ce-credentials { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 1.15em; margin: 16px 0; }
.ce-credentials dt { font-weight: 700; }
.ce-credentials dd { margin: 0; }
.ce-credentials code { font-size: 1.1em; letter-spacing: .05em; background: #fff; padding: 2px 8px; border-radius: 4px; word-break: break-all; }
.ce-privacy { margin: 0 0 12px; }
.ce-privacy summary { cursor: pointer; font-weight: 600; color: var(--ce-primary); }
.ce-privacy ul { margin: 10px 0 10px 1.2em; }
.ce-meta { margin: 0 0 6px; }
.ce-msg { border: 1px solid var(--ce-border); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; }
.ce-msg-mine { background: #f6f8fa; }
.ce-msg-them { border-left: 4px solid var(--ce-primary); }
.ce-msg-head { font-size: .85em; opacity: .75; margin: 0 0 6px; }
.ce-logout { margin-top: 24px; }
@media (max-width: 600px) {
	.ce-form fieldset { padding: 12px 12px 4px; }
	.ce-tabs a { flex: 1 1 100%; }
}
@media print {
	.ce-tabs, .ce-print, .ce-logout { display: none; }
}
