/* =====================================================================
   CIP CDSM TARAPOTO — Libro de Reclamaciones Virtual
   ---------------------------------------------------------------------
   Estilos exclusivos de libro-reclamos.php. Todas las clases llevan el
   prefijo .lr para no afectar al resto del sitio. Usa los tokens de
   redesign.css (con valores de respaldo por si no está cargado).
   ===================================================================== */

.lr {
	--lr-red: var(--cip-red, #E31E24);
	--lr-red-dark: var(--cip-red-darker, #A3141A);
	--lr-red-soft: var(--cip-red-soft, rgba(227, 30, 36, 0.08));
	--lr-gold: var(--cip-gold, #D7B56D);
	--lr-gold-ink: var(--cip-gold-ink, #8A6D2F);
	--lr-gold-soft: var(--cip-gold-soft, rgba(215, 181, 109, 0.14));
	--lr-ink: var(--cip-ink, #2A2A29);
	--lr-text: var(--cip-text, #4A4A48);
	--lr-muted: var(--cip-muted, #6B6A66);
	--lr-line: var(--cip-line, #E6E3DC);
	--lr-surface: #FFFFFF;
	--lr-surface-2: var(--cip-surface-2, #F7F6F2);
	--lr-ok: #1E8E5A;
	--lr-ok-soft: rgba(30, 142, 90, 0.1);
	--lr-head: var(--cip-font-head, 'Poppins', 'Open Sans', Arial, sans-serif);
	--lr-body: var(--cip-font-body, 'Inter', 'Open Sans', Arial, sans-serif);
	--lr-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--lr-shadow: 0 1px 2px rgba(23, 23, 22, 0.04), 0 12px 32px -12px rgba(23, 23, 22, 0.14);

	background: var(--lr-surface-2);
	color: var(--lr-text);
	font-family: var(--lr-body);
	padding: 0 0 72px;
}

.lr *, .lr *::before, .lr *::after { box-sizing: border-box; }
.lr h2, .lr h3, .lr h4, .lr-modal h3 { font-family: var(--lr-head); color: var(--lr-ink); letter-spacing: -0.01em; text-transform: none; }

/* ---------------------------------------------------------------------
   Franja de garantías (se superpone a la cabecera)
   --------------------------------------------------------------------- */
.lr-promises {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: -36px 0 32px;
	position: relative;
	z-index: 2;
}
.lr-promise {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--lr-surface);
	border: 1px solid var(--lr-line);
	border-radius: 14px;
	padding: 16px 18px;
	box-shadow: var(--lr-shadow);
}
.lr-promise__icon {
	flex: 0 0 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--lr-red-soft);
	color: var(--lr-red);
	font-size: 18px;
}
.lr-promise strong { display: block; font-family: var(--lr-head); color: var(--lr-ink); font-size: 15px; line-height: 1.25; }
.lr-promise span { font-size: 13px; color: var(--lr-muted); line-height: 1.35; }

/* ---------------------------------------------------------------------
   Layout principal
   --------------------------------------------------------------------- */
.lr-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
}

.lr-card {
	background: var(--lr-surface);
	border: 1px solid var(--lr-line);
	border-radius: 18px;
	box-shadow: var(--lr-shadow);
}

/* ---------------------------------------------------------------------
   Pestañas (control segmentado)
   --------------------------------------------------------------------- */
.lr-tabs {
	display: flex;
	gap: 4px;
	padding: 6px;
	margin: 20px 20px 0;
	background: var(--lr-surface-2);
	border: 1px solid var(--lr-line);
	border-radius: 14px;
}
.lr-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border: 0;
	background: transparent;
	border-radius: 10px;
	padding: 12px 14px;
	font: 600 14px/1.2 var(--lr-head);
	color: var(--lr-muted);
	cursor: pointer;
	transition: background .2s var(--lr-ease), color .2s var(--lr-ease), box-shadow .2s var(--lr-ease);
}
.lr-tab:hover { color: var(--lr-ink); }
.lr-tab[aria-selected="true"] {
	background: var(--lr-surface);
	color: var(--lr-red);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px -4px rgba(0, 0, 0, .12);
}
.lr-panel { padding: 24px 28px 28px; }
.lr-panel[hidden] { display: none; }

/* ---------------------------------------------------------------------
   Indicador de pasos
   --------------------------------------------------------------------- */
.lr-stepper {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: 0 0 28px;
	padding: 0;
	counter-reset: lrstep;
}
.lr-stepper li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--lr-muted);
	text-align: center;
}
.lr-stepper li::before {
	content: "";
	position: absolute;
	top: 17px;
	left: calc(-50% + 22px);
	right: calc(50% + 22px);
	height: 2px;
	border-radius: 2px;
	background: var(--lr-line);
	transition: background .3s var(--lr-ease);
}
.lr-stepper li:first-child::before { display: none; }
.lr-stepper__dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--lr-surface);
	border: 2px solid var(--lr-line);
	color: var(--lr-muted);
	font: 700 14px/1 var(--lr-head);
	transition: all .25s var(--lr-ease);
}
.lr-stepper li.is-active { color: var(--lr-ink); }
.lr-stepper li.is-active .lr-stepper__dot {
	border-color: var(--lr-red);
	color: var(--lr-red);
	box-shadow: 0 0 0 5px var(--lr-red-soft);
}
.lr-stepper li.is-done .lr-stepper__dot { background: var(--lr-red); border-color: var(--lr-red); color: #fff; }
.lr-stepper li.is-done::before, .lr-stepper li.is-active::before { background: var(--lr-red); }

/* ---------------------------------------------------------------------
   Pasos del formulario
   --------------------------------------------------------------------- */
.lr-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.lr-step:not(.is-active) { display: none; }
.lr-step.is-active { animation: lr-in .35s var(--lr-ease); }
@keyframes lr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lr-step__head { margin-bottom: 20px; }
.lr-step__head h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.lr-step__head p { margin: 0; font-size: 14px; color: var(--lr-muted); }

.lr-row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lr-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lr-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.lr-field--full { grid-column: 1 / -1; }

.lr-label {
	font: 600 13px/1.3 var(--lr-head);
	color: var(--lr-ink);
	margin: 0;
}
.lr-label .lr-req { color: var(--lr-red); margin-left: 2px; }
.lr-label .lr-opt { color: var(--lr-muted); font-weight: 500; font-family: var(--lr-body); }
.lr-hint { font-size: 12.5px; color: var(--lr-muted); margin: 0; }

.lr-input,
.lr select.lr-input,
.lr textarea.lr-input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font: 400 15px/1.4 var(--lr-body);
	color: var(--lr-ink);
	background: var(--lr-surface);
	border: 1.5px solid var(--lr-line);
	border-radius: 10px;
	box-shadow: none;
	transition: border-color .2s var(--lr-ease), box-shadow .2s var(--lr-ease), background .2s;
	-webkit-appearance: none;
	appearance: none;
}
.lr select.lr-input {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236B6A66' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}
.lr select.lr-input:disabled { background-color: var(--lr-surface-2); color: var(--lr-muted); cursor: not-allowed; }
.lr textarea.lr-input { height: auto; min-height: 160px; padding: 12px 14px; resize: vertical; }
.lr-input::placeholder { color: #A9A7A1; }
.lr-input:hover { border-color: #CFCBC1; }
.lr-input:focus { outline: none; border-color: var(--lr-red); box-shadow: 0 0 0 4px var(--lr-red-soft); }
.lr-input.is-invalid { border-color: var(--lr-red); background-color: #FFFAFA; }
.lr-input.is-valid { border-color: rgba(30, 142, 90, .55); }

.lr-error {
	color: var(--lr-red) !important;
	font-size: 12.5px;
	font-weight: 500;
	margin: 0;
}
.lr-error::before { content: "\f06a"; font-family: "Font Awesome 5 Free"; font-weight: 900; margin-right: 6px; }

/* Selector de tipo de documento (chips) */
.lr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-chip { position: relative; }
.lr-chip input { position: absolute; opacity: 0; pointer-events: none; }
.lr-chip span {
	display: inline-flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border: 1.5px solid var(--lr-line);
	border-radius: 999px;
	font: 600 13.5px/1 var(--lr-head);
	color: var(--lr-text);
	background: var(--lr-surface);
	cursor: pointer;
	transition: all .2s var(--lr-ease);
}
.lr-chip span:hover { border-color: #CFCBC1; }
.lr-chip input:checked + span { background: var(--lr-ink); border-color: var(--lr-ink); color: #fff; }
.lr-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--lr-red-soft); border-color: var(--lr-red); }

/* Selector de área (tarjetas) */
.lr-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lr-area { position: relative; margin: 0; }
.lr-area input { position: absolute; opacity: 0; pointer-events: none; }
.lr-area__box {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1.5px solid var(--lr-line);
	border-radius: 12px;
	background: var(--lr-surface);
	cursor: pointer;
	transition: all .2s var(--lr-ease);
}
.lr-area__box:hover { border-color: #CFCBC1; transform: translateY(-1px); }
.lr-area__icon {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--lr-surface-2);
	color: var(--lr-muted);
	font-size: 16px;
	transition: all .2s var(--lr-ease);
}
.lr-area__name { font: 600 14px/1.25 var(--lr-head); color: var(--lr-ink); }
.lr-area input:checked + .lr-area__box { border-color: var(--lr-red); background: #FFFBFB; box-shadow: 0 0 0 4px var(--lr-red-soft); }
.lr-area input:checked + .lr-area__box .lr-area__icon { background: var(--lr-red); color: #fff; }
.lr-area input:focus-visible + .lr-area__box { border-color: var(--lr-red); box-shadow: 0 0 0 4px var(--lr-red-soft); }

/* Contador de caracteres */
.lr-counter { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lr-counter__n { font-size: 12.5px; color: var(--lr-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lr-counter__n.is-ok { color: var(--lr-ok); }

/* Resumen previo al envío */
.lr-summary {
	border: 1px solid var(--lr-line);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 20px;
}
.lr-summary__group { padding: 16px 18px; border-bottom: 1px solid var(--lr-line); }
.lr-summary__group:last-child { border-bottom: 0; }
.lr-summary__title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
	font: 700 12px/1 var(--lr-head);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--lr-gold-ink);
}
.lr-summary__edit {
	border: 0;
	background: none;
	padding: 4px 0;
	font: 600 13px/1 var(--lr-body);
	color: var(--lr-red);
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.lr-summary__edit:hover { text-decoration: underline; }
.lr-summary dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.lr-summary dt { color: var(--lr-muted); font-weight: 500; }
.lr-summary dd { margin: 0; color: var(--lr-ink); word-break: break-word; white-space: pre-line; }

.lr-legal {
	display: flex;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--lr-gold-soft);
	font-size: 13px;
	line-height: 1.5;
	color: var(--lr-text);
	margin-bottom: 20px;
}
.lr-legal i { color: var(--lr-gold-ink); margin-top: 3px; }

.lr-alert {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--lr-red-soft);
	color: var(--lr-red-dark) !important;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 16px;
}

/* ---------------------------------------------------------------------
   Botones
   --------------------------------------------------------------------- */
.lr-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 20px;
	margin-top: 4px;
	border-top: 1px solid var(--lr-line);
}
.lr-actions__spacer { flex: 1; }
.lr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 48px;
	padding: 0 24px;
	border-radius: 12px;
	border: 1.5px solid transparent;
	font: 600 15px/1 var(--lr-head);
	cursor: pointer;
	text-decoration: none !important;
	transition: all .2s var(--lr-ease);
	white-space: nowrap;
}
.lr-btn--primary { background: var(--lr-red); color: #fff !important; box-shadow: 0 6px 16px -6px rgba(227, 30, 36, .55); }
.lr-btn--primary:hover { background: var(--lr-red-dark); transform: translateY(-1px); }
.lr-btn--ghost { background: transparent; border-color: var(--lr-line); color: var(--lr-ink) !important; }
.lr-btn--ghost:hover { background: var(--lr-surface-2); border-color: #CFCBC1; }
.lr-btn--dark { background: var(--lr-ink); color: #fff !important; }
.lr-btn--dark:hover { background: #000; }
.lr-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--lr-red-soft); }
.lr-btn[hidden] { display: none; }

.lr-btn.is-loading { pointer-events: none; opacity: .85; }
.lr-btn.is-loading i { display: none; }
.lr-btn.is-loading::before {
	content: "";
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	animation: lr-spin .7s linear infinite;
}
@keyframes lr-spin { to { transform: rotate(360deg); } }

/* El cargador global de js.js no se usa en esta página: el botón muestra su propio estado */
.loader { display: none !important; }

/* ---------------------------------------------------------------------
   Consulta de reclamo
   --------------------------------------------------------------------- */
.lr-lookup {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 14px;
	align-items: start;
}
.lr-lookup .lr-btn { margin-top: 25px; }
.lr-lookup .lr-input { text-transform: uppercase; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.lr-lookup .lr-input::placeholder { text-transform: none; letter-spacing: 0; }

.lr-empty {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
	padding: 20px;
	border: 1.5px dashed var(--lr-line);
	border-radius: 14px;
	color: var(--lr-muted);
	font-size: 14px;
}
.lr-empty i { font-size: 26px; color: #CFCBC1; }

/* Tabla original de js.js: se mantiene como fuente de datos */
.lr .view_reclamo .lr-source { display: none; }

.lr-result {
	margin-top: 8px;
	border: 1px solid var(--lr-line);
	border-radius: 16px;
	overflow: hidden;
	animation: lr-in .35s var(--lr-ease);
}
.lr-result__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	background: var(--lr-ink);
	color: #fff;
}
.lr-result__code { font: 700 18px/1.2 var(--lr-head); letter-spacing: .04em; color: #fff; }
.lr-result__code small { display: block; font: 500 11px/1.4 var(--lr-body); letter-spacing: .08em; text-transform: uppercase; color: var(--lr-gold); }
.lr-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	font: 600 12.5px/1 var(--lr-head);
	background: rgba(255, 255, 255, .12);
	color: #fff;
}
.lr-badge--ok { background: var(--lr-ok); }
.lr-badge--wait { background: var(--lr-gold); color: var(--lr-ink); }

.lr-result__body { padding: 20px; }
.lr-result__meta { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0 0 22px; font-size: 14px; }
.lr-result__meta dt { color: var(--lr-muted); font-weight: 500; }
.lr-result__meta dd { margin: 0; color: var(--lr-ink); white-space: pre-line; word-break: break-word; }

.lr-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.lr-track li { position: relative; text-align: center; padding: 0 6px; font-size: 13px; color: var(--lr-muted); }
.lr-track li::before {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(-50% + 20px);
	right: calc(50% + 20px);
	height: 2px;
	background: var(--lr-line);
}
.lr-track li:first-child::before { display: none; }
.lr-track__dot {
	width: 32px;
	height: 32px;
	margin: 0 auto 8px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--lr-surface-2);
	border: 2px solid var(--lr-line);
	color: var(--lr-muted);
	font-size: 13px;
}
.lr-track strong { display: block; font: 600 13.5px/1.3 var(--lr-head); color: var(--lr-ink); }
.lr-track li.is-done .lr-track__dot { background: var(--lr-ok); border-color: var(--lr-ok); color: #fff; }
.lr-track li.is-done::before { background: var(--lr-ok); }
.lr-track li.is-current .lr-track__dot { border-color: var(--lr-gold); color: var(--lr-gold-ink); background: var(--lr-gold-soft); animation: lr-pulse 1.8s ease-out infinite; }
.lr-track li.is-current::before { background: linear-gradient(90deg, var(--lr-ok), var(--lr-gold)); }
@keyframes lr-pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 181, 109, .5); } 100% { box-shadow: 0 0 0 10px rgba(215, 181, 109, 0); } }

/* ---------------------------------------------------------------------
   Columna lateral
   --------------------------------------------------------------------- */
.lr-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.lr-aside .lr-card { padding: 22px; }
.lr-aside h4 { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.lr-aside h4 i { color: var(--lr-red); font-size: 15px; }
.lr-aside p { font-size: 14px; line-height: 1.6; margin: 0; }

.lr-official { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.lr-official img { width: 64px; height: auto; border-radius: 8px; border: 1px solid var(--lr-line); }
.lr-official strong { display: block; font: 700 15px/1.3 var(--lr-head); color: var(--lr-ink); }
.lr-official span { font-size: 12.5px; color: var(--lr-gold-ink); font-weight: 600; }

.lr-compare { display: grid; gap: 10px; }
.lr-compare__item { padding: 14px; border-radius: 12px; background: var(--lr-surface-2); border-left: 3px solid var(--lr-red); }
.lr-compare__item--alt { border-left-color: var(--lr-gold); }
.lr-compare__item strong { display: block; font: 700 13px/1.3 var(--lr-head); color: var(--lr-ink); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.lr-compare__item p { font-size: 13px; line-height: 1.5; color: var(--lr-text); }

.lr-how { list-style: none; margin: 0; padding: 0; counter-reset: lrhow; }
.lr-how li { position: relative; padding: 0 0 16px 40px; font-size: 13.5px; line-height: 1.5; counter-increment: lrhow; }
.lr-how li:last-child { padding-bottom: 0; }
.lr-how li::before {
	content: counter(lrhow);
	position: absolute;
	left: 0;
	top: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--lr-gold-soft);
	color: var(--lr-gold-ink);
	font: 700 12px/1 var(--lr-head);
}
.lr-how li::after { content: ""; position: absolute; left: 12px; top: 30px; bottom: 4px; width: 2px; background: var(--lr-line); }
.lr-how li:last-child::after { display: none; }
.lr-how strong { color: var(--lr-ink); }

.lr-contact { background: var(--lr-ink) !important; border-color: var(--lr-ink) !important; color: rgba(255, 255, 255, .8); }
.lr-contact h4 { color: #fff; }
.lr-contact h4 i { color: var(--lr-gold); }
.lr-contact p { color: rgba(255, 255, 255, .75); margin-bottom: 14px; }
.lr-contact__links { display: flex; gap: 8px; flex-wrap: wrap; }
.lr-contact__links a {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 42px;
	padding: 0 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .1);
	color: #fff !important;
	font: 600 13.5px/1 var(--lr-head);
	text-decoration: none !important;
	transition: background .2s;
	white-space: nowrap;
}
.lr-contact__links a:hover { background: rgba(255, 255, 255, .18); }

/* ---------------------------------------------------------------------
   Modal de confirmación
   --------------------------------------------------------------------- */
.lr-modal .modal-dialog { max-width: 460px; }
.lr-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; font-family: var(--lr-body); }
.lr-modal .modal-body { padding: 36px 32px 28px; text-align: center; }
.lr-modal .close { position: absolute; top: 14px; right: 18px; z-index: 2; }
.lr-success-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--lr-ok-soft);
	color: var(--lr-ok);
	font-size: 30px;
	animation: lr-pop .5s var(--lr-ease);
}
@keyframes lr-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.lr-modal h3 { font: 700 21px/1.3 var(--lr-head); color: var(--lr-ink); margin: 0 0 8px; }
.lr-modal .lr-modal__lead { font-size: 14px; line-height: 1.55; color: var(--lr-muted); margin: 0 0 22px; }
.lr-credentials { display: grid; gap: 10px; margin-bottom: 14px; text-align: left; }
.lr-credential {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 12px 16px;
	border-radius: 12px;
	background: var(--lr-surface-2);
	border: 1px dashed #CFCBC1;
}
.lr-credential small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lr-muted); }
.lr-credential b { font: 700 18px/1.3 var(--lr-head); letter-spacing: .06em; color: var(--lr-ink); }
.lr-copy {
	border: 0;
	background: var(--lr-surface);
	border: 1px solid var(--lr-line);
	border-radius: 8px;
	height: 34px;
	padding: 0 12px;
	font: 600 12.5px/1 var(--lr-body);
	color: var(--lr-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}
.lr-copy:hover { border-color: #CFCBC1; }
.lr-copy.is-copied { color: var(--lr-ok); border-color: rgba(30, 142, 90, .4); }
.lr-modal__note { font-size: 12.5px; color: var(--lr-muted); margin: 0 0 22px; }
.lr-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 991px) {
	.lr-grid { grid-template-columns: 1fr; }
	.lr-aside { position: static; }
	.lr-promises { grid-template-columns: 1fr; margin-top: -28px; }
}
@media (max-width: 767px) {
	.lr-panel { padding: 20px 16px 22px; }
	.lr-tabs { margin: 14px 14px 0; }
	.lr-row, .lr-row--3 { grid-template-columns: 1fr; gap: 0; }
	.lr-areas { grid-template-columns: 1fr; }
	.lr-stepper span.lr-stepper__label { display: none; }
	.lr-stepper li.is-active span.lr-stepper__label { display: block; }
	.lr-lookup { grid-template-columns: 1fr; gap: 0; }
	.lr-lookup .lr-btn { margin: 4px 0 0; width: 100%; }
	.lr-summary dl, .lr-result__meta { grid-template-columns: 1fr; gap: 2px; }
	.lr-summary dd, .lr-result__meta dd { margin-bottom: 8px; }
	.lr-actions .lr-btn { flex: 1; padding: 0 16px; }
	.lr-actions__spacer { display: none; }
	.lr-modal .modal-body { padding: 32px 20px 22px; }
	.lr-modal__actions { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
	.lr-tab { font-size: 13px; padding: 11px 8px; gap: 6px; }
	.lr-track li { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.lr *, .lr *::before, .lr *::after, .lr-modal * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------
   Archivos adjuntos
   --------------------------------------------------------------------- */
.lr-drop {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 22px 16px;
	border: 1.5px dashed #CFCBC1;
	border-radius: 12px;
	background: var(--lr-surface-2);
	text-align: center;
	cursor: pointer;
	transition: border-color .2s var(--lr-ease), background .2s var(--lr-ease);
}
.lr-drop:hover, .lr-drop.is-over { border-color: var(--lr-red); background: #FFFBFB; }
.lr-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.lr-drop:focus-within { border-color: var(--lr-red); box-shadow: 0 0 0 4px var(--lr-red-soft); }
.lr-drop__icon { font-size: 24px; color: var(--lr-red); }
.lr-drop__text { font-size: 14px; color: var(--lr-text); }
.lr-drop__text b { color: var(--lr-ink); }

.lr-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lr-files:empty { display: none; }
.lr-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--lr-line);
	border-radius: 10px;
	background: var(--lr-surface);
	font-size: 13.5px;
}
.lr-file > i { color: var(--lr-red); font-size: 18px; width: 20px; text-align: center; }
.lr-file__name { flex: 1; min-width: 0; color: var(--lr-ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-file__size { color: var(--lr-muted); font-size: 12.5px; white-space: nowrap; }
.lr-file__remove {
	border: 0;
	background: none;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	color: var(--lr-muted);
	cursor: pointer;
}
.lr-file__remove:hover { background: var(--lr-red-soft); color: var(--lr-red); }
