/* ============================================================
   Escorts Col — Modal de reporte
   ============================================================ */

.ecr-modal {
	--r-brand: #c33c61; --r-dark: #8e2d55; --r-soft: #fef2f5;
	--r-ink: #0f172a; --r-muted: #64748b; --r-border: #e2e8f0;
	position: fixed; inset: 0; z-index: 99999;
	display: flex; align-items: center; justify-content: center;
	padding: 20px;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.ecr-modal[hidden] { display: none }
.ecr-modal *, .ecr-modal *::before, .ecr-modal *::after { box-sizing: border-box }

.ecr-modal-fondo {
	position: absolute; inset: 0;
	background: rgba(15, 23, 42, .62);
	backdrop-filter: blur(3px);
	animation: ecr-fade .18s ease;
}
@keyframes ecr-fade { from { opacity: 0 } to { opacity: 1 } }

.ecr-modal-caja {
	position: relative;
	width: 100%; max-width: 520px; max-height: 90vh;
	overflow-y: auto;
	background: #fff; border-radius: 16px;
	padding: 28px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
	animation: ecr-up .22s cubic-bezier(.16, 1, .3, 1);
}
@keyframes ecr-up { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.ecr-modal-x {
	position: absolute; top: 14px; right: 16px;
	width: 32px; height: 32px;
	border: none; background: none; cursor: pointer;
	font-size: 26px; line-height: 1; color: var(--r-muted);
	border-radius: 8px;
}
.ecr-modal-x:hover { background: #f1f5f9; color: var(--r-ink) }

.ecr-modal-caja h2 {
	margin: 0 0 6px; font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.5rem; color: var(--r-ink);
}
.ecr-modal-sub { margin: 0 0 20px; font-size: 13.5px; color: var(--r-muted); line-height: 1.5 }

/* ---------- Motivos ---------- */
.ecr-motivos { border: none; padding: 0; margin: 0 0 18px }
.ecr-motivos legend {
	padding: 0; margin-bottom: 10px;
	font-size: 13px; font-weight: 700; color: var(--r-ink);
}
.ecr-motivo {
	display: flex; align-items: flex-start; gap: 11px;
	padding: 11px 13px; margin-bottom: 7px;
	border: 1.5px solid var(--r-border); border-radius: 10px;
	cursor: pointer; transition: border-color .15s, background .15s;
}
.ecr-motivo:hover { border-color: #cbd5e1; background: #f8fafc }
.ecr-motivo input { accent-color: var(--r-brand); width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; cursor: pointer }
.ecr-motivo-txt { display: flex; flex-direction: column; gap: 2px }
.ecr-motivo-txt strong { font-size: 13.5px; font-weight: 600; color: var(--r-ink) }
.ecr-motivo-txt em { font-style: normal; font-size: 12px; color: var(--r-muted); line-height: 1.45 }
.ecr-motivo:has(input:checked) { border-color: var(--r-brand); background: var(--r-soft) }
.ecr-motivo:has(input:checked) .ecr-motivo-txt strong { color: var(--r-dark) }

.ecr-motivo.is-critico { border-color: #fecaca; background: #fffafa }
.ecr-motivo.is-critico:hover { border-color: #fca5a5 }
.ecr-motivo.is-critico .ecr-motivo-txt strong { color: #991b1b }
.ecr-motivo.is-critico:has(input:checked) { border-color: #dc2626; background: #fef2f2 }

/* ---------- Campo de detalle ---------- */
.ecr-campo { margin-bottom: 16px }
.ecr-campo label { display: block; font-size: 13px; font-weight: 600; color: var(--r-ink); margin-bottom: 7px }
.ecr-op { font-weight: 400; color: var(--r-muted); font-size: 12px }
.ecr-campo textarea {
	width: 100%; padding: 11px 13px;
	border: 1.5px solid var(--r-border); border-radius: 10px;
	font-family: inherit; font-size: 13.5px; line-height: 1.5;
	color: var(--r-ink); resize: vertical;
}
.ecr-campo textarea:focus { outline: none; border-color: var(--r-brand); box-shadow: 0 0 0 3px rgba(195, 60, 97, .1) }

/* ---------- Aviso de emergencia ---------- */
.ecr-emergencia {
	padding: 13px 15px; margin-bottom: 16px;
	background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
	font-size: 12.5px; line-height: 1.6; color: #7f1d1d;
}
.ecr-emergencia[hidden] { display: none }
.ecr-emergencia strong { display: block; margin-bottom: 4px; color: #991b1b }
.ecr-emergencia a { color: #b91c1c; font-weight: 700 }

/* ---------- Honeypot ---------- */
.ecr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }

/* ---------- Pie ---------- */
.ecr-modal-pie { display: flex; gap: 10px; align-items: center }
.ecr-modal-enviar {
	flex: 1; padding: 12px 22px; border: none; border-radius: 10px;
	background: linear-gradient(135deg, var(--r-brand), var(--r-dark));
	color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.ecr-modal-enviar:hover { box-shadow: 0 7px 18px rgba(195, 60, 97, .3) }
.ecr-modal-enviar:disabled { opacity: .6; cursor: wait }
.ecr-modal-cancel {
	padding: 12px 20px; border: 1px solid var(--r-border); border-radius: 10px;
	background: #fff; color: var(--r-muted);
	font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.ecr-modal-cancel:hover { background: #f8fafc; color: var(--r-ink) }

.ecr-legal { margin: 14px 0 0; font-size: 11px; line-height: 1.5; color: #94a3b8 }

/* ---------- Confirmación ---------- */
.ecr-modal-ok { text-align: center; padding: 12px 0 }
.ecr-modal-ok[hidden] { display: none }
.ecr-ok-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px; margin-bottom: 14px;
	background: #d1fae5; color: #059669;
	font-size: 26px; border-radius: 50%;
}
.ecr-modal-ok h3 { margin: 0 0 8px; font-size: 1.2rem; color: var(--r-ink) }
.ecr-modal-ok p { margin: 0 0 20px; font-size: 13.5px; line-height: 1.6; color: var(--r-muted) }

@media (max-width: 560px) {
	.ecr-modal { padding: 0; align-items: flex-end }
	.ecr-modal-caja { max-width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; padding: 24px 20px }
	.ecr-modal-pie { flex-direction: column-reverse }
	.ecr-modal-cancel, .ecr-modal-enviar { width: 100% }
}
