/**
 * Libro de Reclamaciones Virtual: estilos de la página.
 * Usa las variables del tema (teal, arena, ultra-dark, Playfair + gesta).
 * El badge del footer vive en style.css porque se carga en todo el sitio.
 */

.lr {
	--lr-ink: var(--color-vibe-ultra-dark);
	--lr-teal: var(--color-vibe-tertiary-2);
	--lr-teal-light: var(--color-vibe-tertiary);
	--lr-sand: var(--color-vibe-secondary-4);
	--lr-sand-light: var(--color-vibe-secondary-3);
	--lr-line: var(--color-gray-200);
	--lr-danger: #b8322e;
	width: 100%;
	max-width: 96rem;
	margin: 0 auto;
	padding: 0 0 8rem;
	color: var(--color-vibe-dark);
	font-family: var(--font-secondary);
}

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

/* Reinicia el relleno superior global de p / li / a */
.lr p,
.lr li,
.lr dd,
.lr dt {
	padding-top: 0;
	margin-left: 0;
	text-align: left;
}

/* El tema justifica los p de las páginas: se alinea con mayor especificidad */
.pages__box .page--content .lr p {
	text-align: left;
}

.pages__box .page--content .lr .lr-success p {
	text-align: center;
}

.pages__box .page--content .lr .lr-success p.lr-success__note--warn {
	text-align: left;
}

.lr h2 {
	text-align: left;
	margin-bottom: 0;
}

/* ---------- Introducción ---------- */
.lr-intro {
	display: grid;
	gap: 2.4rem;
	margin: 2rem 0 3rem;
}

.lr-eyebrow {
	font: 700 1.3rem/1.4 var(--font-secondary);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lr-teal);
	margin-bottom: 1rem;
}

.lr-intro__title {
	font-size: clamp(3.2rem, 5vw, 4.4rem);
	line-height: 1.15;
	color: var(--lr-ink);
	margin-bottom: 1.6rem;
}

.lr-intro__lead {
	font: 300 1.7rem/2.6rem var(--font-secondary);
	max-width: 56rem;
}

.lr-intro__lead strong {
	font-weight: 600;
	color: var(--lr-ink);
}

.lr-intro__facts {
	list-style: none;
	display: grid;
	gap: 1.2rem;
	margin: 2.4rem 0 0;
}

.lr-intro__facts li {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	font: 400 1.5rem/2rem var(--font-secondary);
}

.lr-intro__facts span {
	flex: none;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--lr-teal);
	color: var(--color-white);
	font: 700 1.4rem/1 var(--font-secondary);
}

.lr-company {
	align-self: start;
	background: var(--lr-ink);
	color: var(--color-gray-300);
	border-radius: var(--radius-md);
	border-top: 0.4rem solid var(--lr-teal);
	padding: 2.4rem;
}

.lr-company__title {
	font: 700 1.2rem/1.4 var(--font-secondary);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lr-sand-light);
	margin-bottom: 1.6rem;
}

.lr-company dl {
	display: grid;
	gap: 0.2rem;
}

.lr-company dt {
	font: 400 1.2rem/1.6 var(--font-secondary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-gray-400);
	margin-top: 1.2rem;
}

.lr-company dt:first-child {
	margin-top: 0;
}

.lr-company dd {
	font: 400 1.5rem/2.2rem var(--font-secondary);
	color: var(--color-white);
}

/* ---------- Secciones del formulario ---------- */
.lr-form {
	display: grid;
	gap: 2.4rem;
}

.lr-section {
	min-width: 0;
	background: var(--color-white);
	border: 1px solid var(--lr-line);
	border-radius: var(--radius-md);
	padding: 2.4rem 2rem 2.8rem;
	display: grid;
	gap: 2rem;
}

.lr-section__title {
	display: flex;
	align-items: center;
	gap: 1.2rem;
	float: left; /* mantiene la leyenda dentro del flujo del grid */
	width: 100%;
	font: 500 2.4rem/3rem var(--font-primary);
	color: var(--lr-ink);
	padding: 0;
	margin-bottom: 0.4rem;
}

.lr-section__title + * {
	clear: both;
}

.lr-section__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	background: var(--lr-teal);
	color: var(--color-white);
	font: 700 1.6rem/1 var(--font-secondary);
}

.lr-grid {
	display: grid;
	gap: 2rem;
}

.lr-field {
	display: grid;
	gap: 0.7rem;
	align-content: start;
	min-width: 0;
}

.lr-field label,
.lr-label {
	font: 600 1.3rem/1.8rem var(--font-secondary);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-gray-500);
}

.lr-field label small {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 400;
	color: var(--color-gray-400);
}

.lr b {
	color: var(--lr-teal);
	font-weight: 700;
}

.lr input[type="text"],
.lr input[type="tel"],
.lr input[type="email"],
.lr select,
.lr textarea {
	width: 100%;
	font: 400 1.6rem/2.4rem var(--font-secondary);
	color: var(--lr-ink);
	background: var(--color-background);
	border: 1px solid var(--color-gray-300);
	border-radius: var(--radius-md);
	padding: 1.2rem 1.8rem;
	transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.lr textarea {
	resize: vertical;
	min-height: 11rem;
}

.lr select {
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" fill="none"><path d="M1 1.5L6 6.5L11 1.5" stroke="%232b8e98" stroke-width="2" stroke-linecap="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 1.8rem center;
	padding-right: 4.4rem;
}

.lr input::placeholder,
.lr textarea::placeholder {
	color: var(--color-gray-400);
	font-weight: 300;
}

.lr input:hover,
.lr select:hover,
.lr textarea:hover {
	border-color: var(--lr-teal-light);
}

.lr input:focus,
.lr select:focus,
.lr textarea:focus {
	outline: none;
	border-color: var(--lr-teal);
	background: var(--color-white);
	box-shadow: 0 0 0 0.3rem rgba(43, 142, 152, 0.22);
}

.lr .is-invalid {
	border-color: var(--lr-danger) !important;
	background: #fdf3f2;
}

.lr-help {
	font: 300 1.3rem/1.8rem var(--font-secondary);
	color: var(--color-gray-500);
}

.lr-error {
	font: 500 1.3rem/1.8rem var(--font-secondary);
	color: var(--lr-danger);
}

.lr-money {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 1rem;
}

/* ---------- Opciones (radios y checks) ---------- */
.lr-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.lr-choice,
.lr-type {
	position: relative;
	cursor: pointer;
}

.lr-choice input,
.lr-type input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.lr-choice span {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 1rem 2rem 1rem 1.6rem;
	border: 1px solid var(--color-gray-300);
	border-radius: 99px;
	background: var(--color-background);
	font: 400 1.5rem/2.2rem var(--font-secondary);
	color: var(--lr-ink);
	transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.lr-choice span::before {
	content: "";
	flex: none;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	border: 2px solid var(--color-gray-400);
	background: var(--color-white);
	transition: border-color 0.25s, box-shadow 0.25s;
}

.lr-choice:hover span {
	border-color: var(--lr-teal-light);
}

.lr-choice input:checked + span {
	border-color: var(--lr-teal);
	background: #eaf5f6;
}

.lr-choice input:checked + span::before {
	border-color: var(--lr-teal);
	box-shadow: inset 0 0 0 0.35rem var(--lr-teal);
}

.lr-choice input:focus-visible + span,
.lr-type input:focus-visible + .lr-type__box {
	outline: 3px solid var(--lr-teal-light);
	outline-offset: 2px;
}

.lr-types {
	display: grid;
	gap: 1.2rem;
}

.lr-type__box {
	display: grid;
	gap: 0.5rem;
	height: 100%;
	padding: 1.8rem 2rem;
	border: 1px solid var(--color-gray-300);
	border-radius: var(--radius-md);
	background: var(--color-background);
	transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.lr-type__box strong {
	font: 500 2rem/2.6rem var(--font-primary);
	color: var(--lr-ink);
}

.lr-type__box small {
	font: 300 1.4rem/2rem var(--font-secondary);
	color: var(--color-gray-500);
}

.lr-type:hover .lr-type__box {
	border-color: var(--lr-teal-light);
}

.lr-type input:checked + .lr-type__box {
	border-color: var(--lr-teal);
	background: #eaf5f6;
	box-shadow: inset 0 0 0 1px var(--lr-teal);
}

.lr-check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1.2rem;
	align-items: start;
	font: 300 1.5rem/2.3rem var(--font-secondary);
	cursor: pointer;
}

.lr-check input {
	appearance: none;
	flex: none;
	width: 2.2rem;
	height: 2.2rem;
	margin-top: 0.1rem;
	padding: 0;
	border: 2px solid var(--color-gray-400);
	border-radius: 0.6rem;
	background: var(--color-white);
	cursor: pointer;
	transition: background 0.25s, border-color 0.25s;
}

.lr-check input:checked {
	background: var(--lr-teal) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="10" viewBox="0 0 12 10" fill="none"><path d="M1 5L4.5 8.5L11 1.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 1.2rem no-repeat;
	border-color: var(--lr-teal);
}

.lr-check input:focus-visible {
	outline: 3px solid var(--lr-teal-light);
	outline-offset: 2px;
}

.lr-check a {
	color: var(--lr-teal);
	text-decoration: underline;
	text-underline-offset: 0.3rem;
	font: inherit;
}

.lr-check a:hover {
	color: var(--lr-ink);
}

.lr-subcard {
	display: grid;
	gap: 1.6rem;
	background: #f3efe4;
	border-left: 0.4rem solid var(--lr-sand);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	padding: 2rem;
}

.lr-subcard__title {
	font: 600 1.4rem/2rem var(--font-secondary);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--lr-ink);
}

.lr-legal {
	list-style: none;
	display: grid;
	gap: 1rem;
	background: var(--color-background);
	border-radius: var(--radius-sm);
	padding: 1.8rem 2rem;
}

.lr-legal li {
	position: relative;
	padding-left: 1.8rem;
	font: 300 1.4rem/2.1rem var(--font-secondary);
	color: var(--color-gray-500);
}

.lr-legal li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.9rem;
	width: 0.6rem;
	height: 0.6rem;
	border-radius: 50%;
	background: var(--lr-teal);
}

/* ---------- Botones (mismo lenguaje que las calculadoras) ---------- */
.lr-btn {
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1.2rem 2.4rem 1.2rem 5.6rem;
	border: 0;
	border-radius: 99px;
	font: 500 1.5rem/2rem var(--font-secondary);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--color-white);
	cursor: pointer;
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.lr-btn::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 4.4rem;
	height: 4.4rem;
	border-radius: 99px;
	z-index: -1;
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.lr-btn::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 1.8rem;
	width: 0.9rem;
	height: 1.4rem;
	background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="14" viewBox="0 0 9 14" fill="none"><path d="M1 1L7 7L1 13" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>') center / contain no-repeat;
	transform: translateY(-50%);
	transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
}

.lr-btn:hover::before,
.lr-btn:focus-visible::before {
	width: 100%;
}

.lr-btn:hover::after,
.lr-btn:focus-visible::after {
	transform: translate(0.4rem, -50%);
}

.lr-btn:focus-visible {
	outline: 3px solid var(--lr-teal-light);
	outline-offset: 3px;
}

.lr-btn--submit,
.lr-btn--primary {
	background: var(--lr-sand);
}

.lr-btn--submit::before,
.lr-btn--primary::before {
	background: var(--lr-teal);
}

.lr-btn--submit {
	justify-self: start;
	margin-top: 0.8rem;
}

.lr-btn--submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.lr-btn--ghost {
	background: transparent;
	color: var(--lr-ink);
	box-shadow: inset 0 0 0 1px var(--color-gray-400);
}

.lr-btn--ghost::before {
	background: var(--lr-ink);
}

.lr-btn--ghost::after {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="14" viewBox="0 0 9 14" fill="none"><path d="M1 1L7 7L1 13" stroke="white" stroke-width="2" stroke-linecap="round"/></svg>');
}

.lr-btn--ghost:hover {
	color: var(--color-white);
}

/* ---------- Alertas ---------- */
.lr-alert {
	background: #fdf3f2;
	border: 1px solid #efc2bf;
	border-left: 0.4rem solid var(--lr-danger);
	border-radius: var(--radius-sm);
	padding: 1.4rem 1.8rem;
	font: 500 1.5rem/2.2rem var(--font-secondary);
	color: #7d221f;
}

/* ---------- Pantalla de éxito ---------- */
.lr-success {
	display: grid;
	justify-items: center;
	gap: 1.6rem;
	text-align: center;
	background: var(--color-white);
	border: 1px solid var(--lr-line);
	border-top: 0.4rem solid var(--lr-teal);
	border-radius: var(--radius-md);
	padding: 4rem 2rem;
	margin-bottom: 2rem;
}

.lr-success:focus {
	outline: none;
}

.lr-success__icon {
	display: grid;
	place-items: center;
	width: 7rem;
	height: 7rem;
	border-radius: 50%;
	background: var(--lr-teal);
	color: var(--color-white);
	font: 700 3.6rem/1 var(--font-secondary);
}

.lr .lr-success__title {
	text-align: center;
	font-size: 3.4rem;
	line-height: 4rem;
	color: var(--lr-ink);
}

.lr-success__lead,
.lr-success__note {
	max-width: 52rem;
	font: 300 1.6rem/2.4rem var(--font-secondary);
}

.lr-success__note--warn {
	background: #fdf6e7;
	border-left: 0.4rem solid var(--lr-sand);
	padding: 1.2rem 1.6rem;
	text-align: left;
}

.lr-success__code {
	display: grid;
	gap: 0.4rem;
	width: 100%;
	max-width: 44rem;
	background: var(--lr-ink);
	color: var(--color-white);
	border-radius: var(--radius-md);
	padding: 2rem;
}

.lr-success__label {
	font: 600 1.2rem/1.6 var(--font-secondary);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lr-sand-light);
}

.lr-success__number {
	font: 500 3.2rem/4rem var(--font-primary);
	letter-spacing: 0.04em;
	word-break: break-all;
}

.lr-success__date {
	font: 300 1.3rem/1.8rem var(--font-secondary);
	color: var(--color-gray-300);
}

.lr-success__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.4rem;
	margin-top: 1rem;
}

/* ---------- Trampa para bots ---------- */
.lr-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Tablet y escritorio ---------- */
@media screen and (min-width: 600px) {
	.lr-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
	.lr-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.lr-types {
		grid-template-columns: repeat(2, 1fr);
	}
	.lr-section {
		padding: 3rem 3rem 3.2rem;
	}
}

@media screen and (min-width: 992px) {
	.lr-intro {
		grid-template-columns: 1.4fr 1fr;
		gap: 4rem;
		align-items: start;
		margin-bottom: 4rem;
	}
	.lr-intro__facts {
		grid-template-columns: repeat(3, auto);
		justify-content: start;
		gap: 2.4rem;
	}
}

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