/* Libro de Reclamaciones — INDECOPI */

.es-lr-page {
	background: #eef2fb;
	padding: 40px 0 64px;
	min-height: 60vh;
}

.es-lr-wrap {
	max-width: 920px;
}

.es-lr-alert {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 24px;
	font-size: 14px;
	line-height: 1.5;
}

.es-lr-alert--success {
	background: #e8f7ee;
	border: 1px solid #9ed9b3;
	color: #1c5c36;
}

.es-lr-alert--error {
	background: #fdecec;
	border: 1px solid #f0a8a8;
	color: #8b1e1e;
}

.es-lr-alert--warn {
	background: #fff8e6;
	border: 1px solid #f0d48a;
	color: #7a5a12;
}

/* Tarjeta empresa */
.es-lr-company-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid #d8e0f0;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 28px;
	box-shadow: 0 4px 18px rgba(26, 58, 110, 0.06);
}

.es-lr-company-card__logo img {
	width: 72px;
	object-fit: cover;
}

.es-lr-company-card__info {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 32px;
	font-size: 13px;
	line-height: 1.55;
	color: #334155;
}

.es-lr-company-card__info p {
	margin: 0 0 6px;
}

.es-lr-company-card__info a {
	color: #2b4acb;
	text-decoration: none;
}

.es-lr-company-card__info a:hover {
	text-decoration: underline;
}

/* Stepper */
.es-lr-stepper {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	gap: 0;
}

.es-lr-stepper__item {
	flex: 1;
	position: relative;
	background: #1a3a6e;
	color: rgba(255, 255, 255, 0.75);
	padding: 14px 28px 14px 20px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}

.es-lr-stepper__item:first-child {
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
	padding-left: 16px;
}

.es-lr-stepper__item.is-active {
	background: #E62020;
	color: #fff;
	z-index: 2;
}

.es-lr-stepper__item.is-done {
	background: #2A2E65;
	color: #fff;
}

/* Formulario */
.es-lr-form {
	background: #fff;
	border: 1px solid #d8e0f0;
	border-radius: 16px;
	padding: 28px 28px 32px;
	box-shadow: 0 4px 18px rgba(26, 58, 110, 0.05);
}

.es-lr-panel[hidden] {
	display: none !important;
}

.es-lr-section-title {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	color: #1a3a6e;
}

.es-lr-section-title:not(:first-child) {
	margin-top: 28px;
}

.es-lr-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin-bottom: 8px;
}

.es-lr-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.es-lr-field--full {
	grid-column: 1 / -1;
}

.es-lr-field label,
.es-lr-field-label {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.es-lr-field input[type="text"],
.es-lr-field input[type="email"],
.es-lr-field input[type="tel"],
.es-lr-field input[type="date"],
.es-lr-field input[type="file"],
.es-lr-field select,
.es-lr-field textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #c5d0e8;
	border-radius: 10px;
	font-size: 14px;
	color: #1e293b;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.es-lr-field-hint {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
}

.es-lr-dropzone {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 132px;
	padding: 20px 16px;
	border: 1.5px dashed rgba(42, 46, 101, 0.35);
	border-radius: 12px;
	background: #f7f9fc;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.es-lr-dropzone:hover,
.es-lr-dropzone:focus-visible {
	border-color: #2A2E65;
	background: #eef1f8;
	outline: none;
}

.es-lr-dropzone.is-dragover {
	border-color: #E62020;
	background: #fff5f5;
	box-shadow: 0 0 0 3px rgba(230, 32, 32, 0.12);
}

.es-lr-dropzone.has-file {
	border-style: solid;
	border-color: #2A2E65;
	background: #fff;
}

.es-lr-dropzone.has-file .es-lr-dropzone__input {
	pointer-events: none;
}

.es-lr-dropzone__input {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	opacity: 0;
	cursor: pointer;
	padding: 0 !important;
	border: 0 !important;
	margin: 0;
}

.es-lr-dropzone__content {
	text-align: center;
	pointer-events: none;
	color: #2A2E65;
}

.es-lr-dropzone__icon {
	display: inline-flex;
	margin-bottom: 8px;
	color: #2A2E65;
}

.es-lr-dropzone__title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #2A2E65;
}

.es-lr-dropzone__or {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.es-lr-dropzone__file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 14px;
	width: 100%;
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

.es-lr-dropzone__file[hidden] {
	display: none !important;
}

.es-lr-dropzone__filename {
	font-size: 14px;
	font-weight: 700;
	color: #1f2937;
	word-break: break-word;
}

.es-lr-dropzone__clear {
	border: 0;
	background: #fff1f1;
	color: #E62020;
	font: inherit;
	font-size: 12px;
	font-weight: 800;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
}

.es-lr-dropzone__clear:hover {
	background: #E62020;
	color: #fff;
}

.es-lr-dropzone__error {
	margin: 0;
	font-size: 12px;
	color: #E62020;
	font-weight: 600;
}

.es-lr-dropzone__error[hidden] {
	display: none !important;
}

.es-lr-field input:focus,
.es-lr-field select:focus,
.es-lr-field textarea:focus {
	outline: none;
	border-color: #5b8def;
	box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2);
}

.es-lr-field input.es-lr-invalid,
.es-lr-field select.es-lr-invalid,
.es-lr-field textarea.es-lr-invalid {
	border-color: #e62020;
}

.es-lr-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
}

.es-lr-radios label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
}

.es-lr-radios input {
	accent-color: #2b4acb;
}

.es-lr-input-prefix {
	display: flex;
	align-items: stretch;
}

.es-lr-input-prefix span {
	display: flex;
	align-items: center;
	padding: 0 12px;
	background: #eef2fb;
	border: 1px solid #c5d0e8;
	border-right: 0;
	border-radius: 10px 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
}

.es-lr-input-prefix input {
	border-radius: 0 10px 10px 0;
}

.es-lr-req {
	color: #e62020;
}

.es-lr-note {
	font-size: 12px;
	color: #64748b;
	margin: 0 0 14px;
	line-height: 1.5;
}

.es-lr-note--legal {
	font-size: 11px;
}

.es-lr-defs {
	margin-top: 10px;
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
}

.es-lr-defs p {
	margin: 0 0 6px;
}

.es-lr-required-note {
	font-size: 12px;
	color: #64748b;
	margin: 20px 0 0;
}

.es-lr-actions {
	display: flex;
	gap: 12px;
	margin-top: 28px;
}

.es-lr-actions--end {
	justify-content: flex-end;
}

.es-lr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.1s;
}

.es-lr-btn:hover {
	opacity: 0.92;
}

.es-lr-btn:active {
	transform: scale(0.98);
}

.es-lr-btn--primary {
	background: linear-gradient(135deg, #4a6cf7, #2b4acb);
	color: #fff;
}

.es-lr-btn--primary:hover {
	background: linear-gradient(135deg, #b42525, #a31d1d);
	color: #fff;
}

.es-lr-btn--secondary {
	background: #b8e8f5;
	color: #1a3a6e;
}

/* Legal footer */
.es-lr-legal-footer {
	margin-top: 28px;
	font-size: 11px;
	line-height: 1.6;
	color: #64748b;
}

.es-lr-legal-footer ul {
	margin: 0;
	padding-left: 18px;
}

.es-lr-legal-footer li + li {
	margin-top: 6px;
}

.es-lr-legal-footer a {
	color: #2b4acb;
}

@media (max-width: 767px) {
	.es-lr-page {
		padding: 24px 0 48px;
	}

	.es-lr-company-card {
		flex-direction: column;
		padding: 18px;
	}

	.es-lr-company-card__info {
		grid-template-columns: 1fr;
	}

	.es-lr-stepper {
		flex-direction: column;
		gap: 4px;
	}

	.es-lr-stepper__item,
	.es-lr-stepper__item:first-child {
		clip-path: none;
		border-radius: 8px;
		padding: 12px 14px;
	}

	.es-lr-grid {
		grid-template-columns: 1fr;
	}

	.es-lr-form {
		padding: 20px 16px 24px;
	}

	.es-lr-actions {
		flex-direction: column;
	}

	.es-lr-btn {
		width: 100%;
	}

	.es-lr-receipt__meta {
		grid-template-columns: 1fr;
	}

	.es-lr-receipt__actions {
		flex-direction: column;
	}

	.es-lr-receipt__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* Spinner de envío */
.es-lr-loading {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.es-lr-loading[hidden] {
	display: none !important;
}

.es-lr-loading__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.es-lr-loading__box {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	text-align: center;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	min-width: 260px;
}

.es-lr-spinner {
	display: inline-block;
	width: 44px;
	height: 44px;
	border: 4px solid #dbe4f8;
	border-top-color: #2b4acb;
	border-radius: 50%;
	animation: es-lr-spin 0.8s linear infinite;
}

@keyframes es-lr-spin {
	to { transform: rotate(360deg); }
}

.es-lr-loading__text {
	margin: 16px 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #1a3a6e;
}

.es-lr-loading__sub {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

body.es-lr-is-submitting {
	overflow: hidden;
}

/* Comprobante de éxito */
.es-lr-receipt {
	background: #fff;
	border: 1px solid #d8e0f0;
	border-radius: 16px;
	padding: 28px;
	box-shadow: 0 4px 18px rgba(26, 58, 110, 0.06);
}

.es-lr-receipt__hero {
	text-align: center;
	margin-bottom: 24px;
}

.es-lr-receipt__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #e8f7ee;
	color: #1c7a3e;
	margin-bottom: 12px;
}

.es-lr-receipt__title {
	margin: 0 0 8px;
	font-size: 22px;
	color: #1a3a6e;
}

.es-lr-receipt__intro {
	margin: 0;
	font-size: 14px;
	color: #475569;
	line-height: 1.5;
}

.es-lr-receipt__warn {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff8e6;
	border: 1px solid #f0d48a;
	color: #7a5a12;
	font-size: 13px;
	line-height: 1.5;
}

.es-lr-receipt__code-box {
	text-align: center;
	background: linear-gradient(135deg, #f0f5ff, #eef2fb);
	border: 2px dashed #5b8def;
	border-radius: 14px;
	padding: 22px 18px;
	margin-bottom: 22px;
}

.es-lr-receipt__code-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 8px;
}

.es-lr-receipt__code {
	display: block;
	font-size: 28px;
	line-height: 1.2;
	color: #000070;
	letter-spacing: 0.04em;
}

.es-lr-receipt__code-hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
}

.es-lr-receipt__meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.es-lr-receipt__meta-item {
	background: #f6f8fb;
	border: 1px solid #e3e7ef;
	border-radius: 10px;
	padding: 12px 14px;
}

.es-lr-receipt__meta-item span {
	display: block;
	font-size: 11px;
	color: #64748b;
	margin-bottom: 4px;
}

.es-lr-receipt__meta-item strong {
	font-size: 14px;
	color: #1e293b;
}

.es-lr-receipt__company {
	font-size: 13px;
	color: #475569;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e8edf8;
}

.es-lr-receipt__company p {
	margin: 0 0 4px;
}

.es-lr-receipt__details-title {
	margin: 0 0 14px;
	font-size: 16px;
	color: #1a3a6e;
}

.es-lr-receipt__list {
	margin: 0;
}

.es-lr-receipt__row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #eef2fb;
}

.es-lr-receipt__row:last-child {
	border-bottom: 0;
}

.es-lr-receipt__row dt {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.es-lr-receipt__row dd {
	margin: 0;
	font-size: 14px;
	color: #1e293b;
	word-break: break-word;
}

.es-lr-receipt__actions {
	display: flex;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.es-lr-receipt__actions .es-lr-btn--primary {
	text-decoration: none;
}

.es-lr-receipt__footer-note {
	margin: 16px 0 0;
	font-size: 12px;
	color: #64748b;
	text-align: center;
	line-height: 1.5;
}

@media print {
	body * {
		visibility: hidden;
	}

	.es-lr-receipt,
	.es-lr-receipt * {
		visibility: visible;
	}

	.es-lr-receipt {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		border: 0;
		box-shadow: none;
		padding: 0;
	}

	.es-lr-receipt__actions,
	.es-lr-receipt__footer-note,
	.es-footer,
	.theme-saber-header,
	.es-lr-company-card {
		display: none !important;
	}
}

/* Tom Select — ubicación (como matrícula online) */
.es-lr-form .ts-wrapper {
	width: 100%;
}

.es-lr-form .ts-control {
	min-height: 20px;
	padding: 4px;
	border: 0;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	color: #1e293b;
	background: #fff;
	box-shadow: none;
}

.es-lr-form .ts-wrapper.single .ts-control {
	border: 1px solid #c5d0e8;
	border-radius: 10px;
	padding: 15px 10px;
}

.es-lr-form .ts-wrapper.focus .ts-control {
	border-color: #5b8def;
	box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2);
}

.es-lr-form .ts-wrapper.disabled .ts-control,
.es-lr-form .ts-wrapper.disabled .ts-control input {
	background: #f1f4f7;
	color: #9aa6b2;
	cursor: not-allowed;
}

.es-lr-form .ts-wrapper.es-lr-invalid .ts-control {
	border-color: #e62020;
}

.es-lr-form .ts-dropdown {
	border: 1px solid #c5d0e8;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(15, 28, 42, 0.14);
	margin-top: 4px;
}
