/* =========================================================
   CANAL DE DENUNCIAS POR CALIDAD EXCESIVA
   Diseño: proyectos/p_1 (mockup). Textos en
   /data/calidad-excesiva/presentacion.json; este archivo solo presenta.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
.cde-page {
	--cde-orange: #FF5F1F;
	--cde-orange-dark: #E9500F;
	--cde-orange-soft: #FFF3EC;
	--cde-ink: #1C1C1E;
	--cde-text: #4A4A4F;
	--cde-muted: #7A7A80;
	--cde-line: #D9DBE0;
	--cde-bg: #F3F4F6;
	--cde-dark: #1F1F21;
	--cde-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--cde-radius: 6px;
	--cde-header-h: 100px; /* alto del header del sitio (igual que Derecho Minero / Red Flag) */
}

.cde-page,
.cde-page *,
.cde-page *::before,
.cde-page *::after { box-sizing: border-box; }

.cde-page {
	position: relative;
	background: var(--cde-bg);
	font-family: var(--cde-font);
	color: var(--cde-text);
}
.cde-page p { margin: 0; }
.cde-page h1,
.cde-page h2 { margin: 0; font-family: var(--cde-font); }
.cde-page button,
.cde-page input,
.cde-page textarea { font-family: var(--cde-font); }
.cde-page [hidden] { display: none !important; }

.cde-wrap { display: block; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.cde-accent { color: var(--cde-orange); }
.cde-req { color: var(--cde-orange); }

/* ---------- 2. Header del sitio superpuesto ----------
   El header (#masthead) es semitransparente con menú blanco: la página sube
   detrás de él y lleva una franja oscura para que el menú se lea. */
body.cde-page-body .cde-page {
	margin-top: calc(-1 * var(--cde-header-h));
	padding-top: var(--cde-header-h);
	background: linear-gradient(180deg, var(--cde-dark) 0, var(--cde-dark) var(--cde-header-h), var(--cde-bg) var(--cde-header-h));
	z-index: 1;
}
body.cde-page-body .site-content,
body.cde-page-body #content,
body.cde-page-body .site-main,
body.cde-page-body .page-content,
body.cde-page-body .ehf-template-hello-elementor > .page-wrapper {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
body.cde-page-body #masthead { position: relative; z-index: 10; }

/* ---------- 3. Migas ---------- */
.cde-crumbs { padding: 16px 0 0; font-size: 13px; color: var(--cde-ink); }
.cde-crumbs a { color: var(--cde-muted) !important; text-decoration: none; }
.cde-crumbs a:hover { color: var(--cde-orange) !important; }
.cde-crumbs__sep { margin: 0 8px; color: var(--cde-muted); }

/* ---------- 4. Hero ---------- */
.cde-hero { padding: 36px 0 26px; }
.cde-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.cde-hero__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cde-orange); }
.cde-hero__title {
	display: flex;
	flex-direction: column;
	margin-top: 8px !important;
	font-size: clamp(32px, 3.8vw, 52px);
	line-height: 1.04;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--cde-ink) !important;
}
.cde-hero__lead { margin-top: 16px !important; max-width: 560px; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.35; color: var(--cde-text); }

.cde-hero__art { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 210px; }
.cde-hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cde-hero__lines path { fill: none; stroke: #C9CCD2; stroke-width: 1.2; }
/* El recorte trae fondo gris: se difuminan los bordes para que se funda con la página. */
.cde-hero__img {
	position: relative;
	display: block;
	width: 220px;
	height: auto;
	mix-blend-mode: multiply;
	-webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
	mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.cde-hero__note {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 240px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #E9E8E6;
	font-size: 13px;
	line-height: 1.4;
	color: var(--cde-ink);
}
.cde-hero__note svg { flex: 0 0 22px; color: var(--cde-orange); }

/* ---------- 5. Panel + tarjeta ---------- */
.cde-body { padding: 4px 0 36px; }
.cde-body__grid { display: grid; grid-template-columns: 405px 1fr; gap: 18px; align-items: stretch; }

.cde-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	border-radius: var(--cde-radius);
	background: linear-gradient(180deg, #2B2B2E 0%, #1E1E20 100%);
	color: #fff;
}
.cde-panel__content { padding: 44px 44px 24px; }
.cde-panel__title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; font-weight: 800; color: #fff !important; }
.cde-panel__title .cde-accent { display: block; }
.cde-panel__line { margin-top: 2px !important; font-size: 17px; line-height: 1.55; color: #E8E8EA; }
.cde-panel__title + .cde-panel__line { margin-top: 22px !important; }
.cde-panel__rule { display: block; width: 54px; height: 3px; margin: 28px 0 22px; background: var(--cde-orange); }
.cde-panel__close { font-size: 15px; line-height: 1.5; color: #D6D6DA; }
.cde-panel__img { display: block; width: 100%; height: auto; }

.cde-card {
	padding: 40px 34px 30px;
	border: 1px solid #E4E5E9;
	border-radius: var(--cde-radius);
	background: #fff;
}
.cde-card__title { font-size: clamp(22px, 2vw, 28px); font-weight: 800; color: var(--cde-ink) !important; }
.cde-card__hint { margin-top: 4px !important; font-size: 14px; color: var(--cde-muted); }

/* ---------- 6. Formulario ---------- */
.cde-form { display: block; }
.cde-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cde-field { display: block; margin-top: 22px; }
.cde-label { display: block; margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--cde-ink); }
.cde-page .cde-field input,
.cde-page .cde-field textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cde-line);
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	color: var(--cde-ink);
	transition: border-color .2s, box-shadow .2s;
}
.cde-page .cde-field textarea { min-height: 88px; resize: vertical; }
.cde-page .cde-field input::placeholder,
.cde-page .cde-field textarea::placeholder { color: #8E9096; }
.cde-page .cde-field input:focus,
.cde-page .cde-field textarea:focus { outline: none; border-color: var(--cde-orange); box-shadow: 0 0 0 3px rgba(255, 95, 31, .14); }
.cde-page .is-invalid { border-color: #D93025 !important; }

.cde-fieldset { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }

/* Nivel (tarjetas radio) */
.cde-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cde-level {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 15px 18px;
	border: 1px solid var(--cde-line);
	border-radius: 4px;
	font-size: 14px;
	color: var(--cde-ink);
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.cde-level:hover { border-color: var(--cde-orange); }
.cde-level:has(input:checked) { border-color: var(--cde-orange); background: var(--cde-orange-soft); font-weight: 700; }

/* Radio personalizado (nivel y publicar) */
.cde-page .cde-level input,
.cde-page .cde-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cde-radio { flex: 0 0 22px; width: 22px; height: 22px; border: 1.5px solid #8E9096; border-radius: 50%; background: #fff; transition: box-shadow .2s, border-color .2s; }
input:checked + .cde-radio { border-color: var(--cde-orange); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 11px var(--cde-orange); }
input:focus-visible + .cde-radio { outline: 2px solid var(--cde-orange); outline-offset: 2px; }

/* Archivo */
.cde-file { margin-top: 24px; }
.cde-file__pick { position: relative; display: inline-flex; align-items: center; gap: 14px; font-size: 14px; color: var(--cde-ink); cursor: pointer; }
.cde-file__pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cde-file__pick svg {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	padding: 6px;
	border-radius: 50%;
	background: #F0F1F3;
	color: var(--cde-text);
	transition: background .2s, color .2s;
}
.cde-file__pick:hover svg { background: var(--cde-orange-soft); color: var(--cde-orange); }
.cde-file__pick strong { font-weight: 600; }
.cde-file__help { display: block; margin-top: 2px; font-size: 12px; color: var(--cde-muted); }
.cde-file__pick input:focus-visible ~ svg { outline: 2px solid var(--cde-orange); outline-offset: 2px; }
.cde-file__chosen { display: flex; align-items: center; gap: 12px; margin: 8px 0 0 48px !important; font-size: 13px; color: var(--cde-ink); }
.cde-page .cde-file__remove { padding: 0; border: 0; background: none; color: var(--cde-orange) !important; font-size: 13px; text-decoration: underline; cursor: pointer; }

/* Publicar */
.cde-publish { display: flex; flex-wrap: wrap; gap: 14px 80px; }
.cde-choice { position: relative; display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--cde-ink); cursor: pointer; }

/* Privacidad */
.cde-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 13px; line-height: 1.45; color: var(--cde-text); cursor: pointer; }
.cde-check input { flex: 0 0 16px; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--cde-orange); cursor: pointer; }
.cde-check a, .cde-check u { color: var(--cde-ink) !important; text-decoration: underline; }

.cde-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cde-error { margin-top: 16px !important; font-size: 13px; color: #D93025; }

.cde-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 20px; }
.cde-foot__note { font-size: 12px; color: var(--cde-muted); }
.cde-page .cde-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 24px;
	border: 0;
	border-radius: 4px;
	background: var(--cde-orange);
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(255, 95, 31, .22);
	transition: background .2s, transform .2s;
}
.cde-page .cde-btn:hover { background: var(--cde-orange-dark); transform: translateY(-1px); }
.cde-page .cde-btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* El tema (Hello Elementor) pinta los botones de fucsia (#c36) en :focus/:active: se anula. */
.cde-page .cde-btn:focus,
.cde-page .cde-btn:active,
.cde-page .cde-btn:focus-visible {
	background: var(--cde-orange-dark) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.cde-page .cde-btn:focus-visible { outline: 2px solid var(--cde-orange); outline-offset: 3px; }
.cde-page .cde-file__remove:hover,
.cde-page .cde-file__remove:focus,
.cde-page .cde-file__remove:active {
	background: none !important;
	color: var(--cde-orange-dark) !important;
}

/* Éxito */
.cde-ok { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 420px; text-align: center; }
.cde-ok__ico { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 16px; border-radius: 50%; background: var(--cde-orange); color: #fff; font-size: 30px; font-weight: 700; }
.cde-ok__text { max-width: 440px; margin: 10px 0 26px !important; font-size: 15px; line-height: 1.5; color: var(--cde-text); }

/* ---------- 7. Pie ---------- */
.cde-footnote { padding: 0 0 26px; text-align: center; font-size: 13px; color: var(--cde-muted); }
.cde-footnote .cde-wrap { padding-top: 16px; border-top: 1px solid var(--cde-line); }

/* ---------- 8. Responsive ---------- */
@media (max-width: 1100px) {
	.cde-body__grid { grid-template-columns: 1fr; }
	.cde-panel { flex-direction: row; align-items: stretch; }
	.cde-panel__content { flex: 1; }
	.cde-panel__img { width: 40%; object-fit: cover; }
}
@media (max-width: 900px) {
	.cde-hero__grid { grid-template-columns: 1fr; }
	.cde-hero__art { display: none; }
	.cde-levels { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 640px) {
	.cde-wrap { padding: 0 16px; }
	.cde-hero { padding: 24px 0 18px; }
	.cde-panel { flex-direction: column; }
	.cde-panel__content { padding: 30px 24px 20px; }
	.cde-panel__img { width: 100%; }
	.cde-card { padding: 26px 18px 22px; }
	.cde-row { grid-template-columns: 1fr; gap: 0; }
	.cde-publish { flex-direction: column; gap: 12px; }
	.cde-foot { flex-direction: column-reverse; align-items: stretch; }
	.cde-page .cde-btn { width: 100%; }
}
