/* =========================================================
   TRISTAR LOGISTICS PERU — Libro de Reclamaciones (LR-2)
   Complementa css/sitio.css (variables, navbar, footer).
   Todo lo propio de esta página usa el prefijo .lr-
   ========================================================= */
.lr-page {
    --lr-text: #0A192F;
    --lr-muted: #4A5468;          /* 7.6:1 sobre blanco */
    --lr-line: #DCD8CC;
    --lr-line-strong: #9AA0AE;
    --lr-surface: #FFFFFF;
    --lr-soft: #FAF8F3;
    --lr-gold-text: #7A5C22;      /* dorado legible sobre claro: 6.2:1 */
    --lr-error: #B42318;
    --lr-error-bg: #FEF3F2;
    --lr-ok: #1D6B3A;
    --lr-ok-bg: #EEF7F0;
    --lr-warn: #8A4B00;
    --lr-warn-bg: #FFF6E5;
    --lr-focus: #1F5FBF;
    background: var(--cream);
    color: var(--lr-text);
}

/* Accesibilidad general */
.lr-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.lr-skip {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 2000;
    background: var(--gold);
    color: var(--navy);
    padding: 12px 20px;
    font-weight: 600;
    text-decoration: none;
}
.lr-skip:focus { top: 12px; }

.lr-page a:focus-visible,
.lr-page button:focus-visible,
.lr-page input:focus-visible,
.lr-page textarea:focus-visible {
    outline: 3px solid var(--lr-focus);
    outline-offset: 2px;
}
/* Sobre fondo oscuro (navbar, hero, footer) el foco va en dorado */
.lr-page .navbar a:focus-visible,
.lr-page .navbar button:focus-visible,
.lr-page .footer a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}
.lr-page .mobile-toggle { min-width: 48px; min-height: 48px; }
main:focus { outline: none; }
[tabindex="-1"]:focus { outline: none; }

/* ---------- Introducción ---------- */
.lr-hero {
    position: relative;
    background: linear-gradient(160deg, var(--navy) 0%, #0d1b2a 45%, var(--navy-light) 100%);
    padding: 136px 24px 56px;
    text-align: center;
    overflow: hidden;
}
.lr-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,169,110,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,169,110,0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.lr-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.lr-eyebrow {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 16px;
}
.lr-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.lr-divider { width: 60px; height: 2px; background: var(--gold); margin: 0 auto 24px; }
.lr-hero-text {
    color: var(--gray-light);
    font-size: 17px;
    line-height: 1.8;
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto;
}

/* Indicador de pasos */
.lr-progreso {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.lr-progreso li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 8px;
    border: 1px solid rgba(201,169,110,0.22);
    color: var(--gray-light);
    font-size: 13px;
    letter-spacing: 0.5px;
}
.lr-progreso-num {
    width: 26px; height: 26px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(201,169,110,0.5);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
}
.lr-progreso li.is-actual { border-color: var(--gold); color: var(--white); }
.lr-progreso li.is-actual .lr-progreso-num { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lr-progreso li.is-hecho .lr-progreso-num { background: rgba(201,169,110,0.18); }

/* ---------- Disposición ---------- */
.lr-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 48px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}
.lr-principal { min-width: 0; }
.lr-lateral { position: sticky; top: 96px; display: grid; gap: 20px; }

/* ---------- Pasos ---------- */
.lr-form { display: grid; gap: 24px; }
.lr-paso {
    background: var(--lr-surface);
    border: 1px solid var(--lr-line);
    border-top: 3px solid var(--gold);
    padding: 36px 40px;
}
.lr-paso[hidden] { display: none; }
.lr-paso-cab { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 28px; }
.lr-paso-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--lr-gold-text);
    line-height: 1;
    padding-top: 2px;
    min-width: 42px;
}
.lr-paso, .lr-confirmacion { scroll-margin-top: 88px; }
.lr-paso h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--lr-text);
    scroll-margin-top: 104px;
}
.lr-opcional { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 400; color: var(--lr-muted); }
.lr-paso-desc { margin-top: 6px; font-size: 15px; color: var(--lr-muted); line-height: 1.6; }
.lr-obligatorio-nota { font-size: 13px; color: var(--lr-muted); margin: -12px 0 20px; }
.lr-req { color: var(--lr-error); font-weight: 600; }

.lr-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }

/* ---------- Campos ---------- */
.lr-campo { margin-bottom: 4px; min-width: 0; }
.lr-campo label,
.lr-campo legend {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--lr-text);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.lr-input {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;               /* evita el zoom automático de iOS */
    color: var(--lr-text);
    background: var(--lr-surface);
    border: 1px solid var(--lr-line-strong);
    border-radius: 2px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.lr-input:hover { border-color: var(--navy-lighter); }
.lr-input:focus { border-color: var(--lr-focus); box-shadow: 0 0 0 3px rgba(31,95,191,0.18); outline: none; }
.lr-input:focus-visible { outline: 3px solid var(--lr-focus); outline-offset: 1px; }
.lr-input[readonly] {
    background: var(--lr-soft);
    border-style: dashed;
    color: var(--lr-muted);
}
.lr-input[aria-invalid="true"] { border-color: var(--lr-error); border-width: 2px; }
.lr-textarea { min-height: 200px; resize: vertical; line-height: 1.6; }
.lr-ayuda { font-size: 13px; color: var(--lr-muted); margin-top: 6px; line-height: 1.5; }
.lr-contador { float: right; margin-left: 12px; }
.lr-error {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--lr-error);
    font-weight: 500;
    margin-top: 6px;
}
.lr-error::before { content: '!'; flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--lr-error); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.lr-error[hidden] { display: none; }

/* Tipo de reclamo: opciones como tarjetas */
.lr-tipos { border: 0; padding: 0; margin: 0 0 24px; }
.lr-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lr-opcion { position: relative; display: block; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.lr-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lr-opcion-caja {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 16px;
    border: 1px solid var(--lr-line-strong);
    background: var(--lr-surface);
    font-size: 15px;
    color: var(--lr-text);
    transition: border-color 0.2s, background 0.2s;
}
.lr-opcion:hover .lr-opcion-caja { border-color: var(--navy-lighter); background: var(--lr-soft); }
.lr-opcion-marca {
    flex: 0 0 20px;
    width: 20px; height: 20px;
    border: 2px solid var(--lr-line-strong);
    border-radius: 50%;
    position: relative;
}
.lr-opcion input:checked + .lr-opcion-caja { border: 2px solid var(--navy); background: #F7F3EA; font-weight: 600; padding: 13px 15px; }
.lr-opcion input:checked + .lr-opcion-caja .lr-opcion-marca { border-color: var(--navy); }
.lr-opcion input:checked + .lr-opcion-caja .lr-opcion-marca::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--navy);
}
.lr-opcion input:focus-visible + .lr-opcion-caja { outline: 3px solid var(--lr-focus); outline-offset: 2px; }
.lr-tipos[aria-invalid="true"] .lr-opcion-caja { border-color: var(--lr-error); }

/* Adjunto */
.lr-adjunto { display: grid; gap: 12px; }
.lr-adjunto-zona {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 20px;
    border: 1.5px dashed var(--lr-line-strong);
    background: var(--lr-soft);
    color: var(--lr-gold-text);
    text-align: center;
    cursor: pointer;
    margin-bottom: 0 !important;
}
.lr-adjunto-titulo { font-size: 16px; font-weight: 600; color: var(--lr-text); }
.lr-adjunto-sub { font-size: 13px; font-weight: 400; color: var(--lr-muted); }
.lr-adjunto-caja { position: relative; }
/* El input real queda encima de la zona: clic, toque y teclado funcionan sin duplicar controles */
.lr-file {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}
.lr-adjunto-caja:hover .lr-adjunto-zona { border-color: var(--navy-lighter); background: #F4F0E6; }
.lr-adjunto-caja:focus-within .lr-adjunto-zona { outline: 3px solid var(--lr-focus); outline-offset: 2px; border-style: solid; }
.lr-adjunto-elegido:empty { display: none; }
.lr-adjunto-elegido {
    font-size: 14px;
    color: var(--lr-text);
    background: var(--lr-soft);
    border-left: 3px solid var(--gold);
    padding: 10px 14px;
    overflow-wrap: anywhere;
}
.lr-btn-texto-link {
    justify-self: start;
    min-height: 44px;
    background: none;
    border: 0;
    padding: 0 4px;
    color: var(--lr-error);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Datos recuperados */
.lr-recuperados {
    background: var(--lr-soft);
    border: 1px solid var(--lr-line);
    border-left: 3px solid var(--navy);
    padding: 20px 24px;
}
.lr-recuperados-etiqueta {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--lr-muted);
    margin-bottom: 16px;
}
.lr-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.lr-dl dt { font-size: 13px; color: var(--lr-muted); margin-bottom: 2px; }
.lr-dl dd { font-size: 16px; font-weight: 600; color: var(--lr-text); overflow-wrap: anywhere; }
.lr-dl dd:empty::before { content: '—'; color: var(--lr-muted); font-weight: 400; }

/* ---------- Botones ---------- */
.lr-acciones { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.lr-acciones-centro { justify-content: center; }
.lr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 32px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.lr-btn-primario { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lr-btn-primario:hover:not(:disabled) { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(201,169,110,0.28); }
.lr-btn-secundario { background: transparent; color: var(--navy); border-color: var(--navy); }
.lr-btn-secundario:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.lr-btn-ancho { width: 100%; }
.lr-btn:disabled { cursor: not-allowed; opacity: 0.75; transform: none; box-shadow: none; }
.lr-btn[hidden] { display: none; }

.lr-spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(10,25,47,0.25);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: lr-giro 0.8s linear infinite;
}
.lr-btn[aria-busy="true"] .lr-spinner { display: inline-block; }
@keyframes lr-giro { to { transform: rotate(360deg); } }

/* ---------- Mensajes ---------- */
.lr-estado:empty { display: none; }
.lr-estado {
    margin-top: 20px;
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.6;
    border-left: 4px solid var(--lr-line-strong);
    background: var(--lr-soft);
    color: var(--lr-text);
}
.lr-estado strong { display: block; margin-bottom: 2px; }
.lr-estado.is-error { border-color: var(--lr-error); background: var(--lr-error-bg); }
.lr-estado.is-ok { border-color: var(--lr-ok); background: var(--lr-ok-bg); }
.lr-estado.is-aviso { border-color: var(--lr-warn); background: var(--lr-warn-bg); }
.lr-estado.is-cargando { border-color: var(--gold); }
.lr-estado-centro { text-align: center; border: 0; background: none; padding: 0; }

.lr-errores {
    background: var(--lr-error-bg);
    border: 1px solid #F4C7C3;
    border-left: 4px solid var(--lr-error);
    padding: 18px 22px;
}
.lr-errores-titulo { font-weight: 600; color: var(--lr-error); margin-bottom: 6px; }
.lr-errores ul { padding-left: 20px; }
.lr-errores li { font-size: 15px; margin: 4px 0; }
.lr-errores a { color: var(--lr-error); font-weight: 500; }

/* ---------- Proveedor ---------- */
.lr-proveedor {
    background: var(--lr-surface);
    border: 1px solid var(--lr-line);
    border-left: 3px solid var(--navy);
    padding: 18px 24px;
    margin-bottom: 24px;
}
.lr-proveedor-titulo {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--lr-gold-text);
    margin-bottom: 12px;
}
.lr-proveedor-datos { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px 24px; }
.lr-proveedor-datos dt { font-size: 12px; color: var(--lr-muted); }
.lr-proveedor-datos dd { font-size: 15px; font-weight: 600; color: var(--lr-text); overflow-wrap: anywhere; }
.lr-proveedor-ancho { grid-column: 1 / -1; }

/* Dato que falta confirmar (RUC, texto de privacidad): visible y sin inventar el valor */
.lr-pendiente {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--lr-warn);
    background: #FFFCF5;
    border: 1px dashed #D4B06A;
    padding: 2px 8px;
}

/* ---------- Paso 1: sin número de orden ---------- */
.lr-sin-orden { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.lr-sin-orden .lr-ayuda { margin: 0; }
.lr-sin-orden[hidden] { display: none; }
.lr-enlace {
    min-height: 44px;
    background: none;
    border: 0;
    padding: 0 2px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--lr-text);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
    cursor: pointer;
}
.lr-enlace:hover { color: var(--lr-gold-text); }

/* ---------- Consumidor ---------- */
.lr-paso > .lr-campo, .lr-paso > .lr-grid-2, .lr-paso > .lr-grid-doc { margin-bottom: 18px; }
.lr-grid-doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0 24px; }
.lr-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230A192F' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.lr-page select.lr-select:focus-visible { outline: 3px solid var(--lr-focus); outline-offset: 1px; }
.lr-check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 4px; }
.lr-check input { width: 22px; height: 22px; accent-color: var(--navy); flex: 0 0 22px; cursor: pointer; }
.lr-check label { font-size: 15px; color: var(--lr-text); cursor: pointer; }
.lr-page .lr-check input:focus-visible { outline: 3px solid var(--lr-focus); outline-offset: 2px; }
.lr-representante {
    border: 1px solid var(--lr-line);
    background: var(--lr-soft);
    padding: 18px 20px 4px;
    margin-top: 12px;
}
.lr-representante[hidden] { display: none; }
.lr-representante legend { font-size: 14px; font-weight: 700; padding: 0 6px; color: var(--lr-text); }

/* ---------- Detalle ---------- */
.lr-opciones-3 { grid-template-columns: repeat(3, 1fr); }
.lr-opcion-def .lr-opcion-caja { align-items: flex-start; }
.lr-opcion-def .lr-opcion-marca { margin-top: 2px; }
.lr-opcion-def strong { display: block; font-size: 16px; }
.lr-opcion-def-texto { display: block; font-size: 14px; font-weight: 400; color: var(--lr-muted); margin-top: 2px; line-height: 1.5; }
.lr-monto { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.lr-textarea-corta { min-height: 120px; }

/* ---------- Envío ---------- */
.lr-plazo {
    font-size: 15px;
    font-weight: 600;
    color: var(--lr-text);
    background: var(--lr-ok-bg);
    border-left: 4px solid var(--lr-ok);
    padding: 12px 16px;
    margin-bottom: 16px;
}
.lr-privacidad { font-size: 14px; color: var(--lr-muted); line-height: 1.6; }
.lr-privacidad p + p { margin-top: 6px; }
.lr-tarjeta-plazo {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
}

/* ---------- Constancia ---------- */
.lr-ticket-correlativo {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}
.lr-ticket-etiqueta-2 { margin-top: 10px; }
#lr-copia-estado { margin: 20px auto 0; max-width: 560px; text-align: left; }
.lr-constancia { margin-top: 36px; text-align: left; border-top: 1px solid var(--lr-line); padding-top: 24px; }
.lr-constancia-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--lr-text);
    margin-bottom: 8px;
}
.lr-constancia-grupo { margin-top: 18px; }
.lr-constancia-grupo h4 {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--lr-gold-text);
    margin-bottom: 6px;
}
.lr-constancia-grupo dl { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 4px 16px; }
.lr-constancia-grupo dt { font-size: 14px; color: var(--lr-muted); }
.lr-constancia-grupo dd { font-size: 14px; font-weight: 600; color: var(--lr-text); overflow-wrap: anywhere; white-space: pre-wrap; }
.lr-plazo-constancia { margin: 20px 0 0; }

/* Campo trampa antiespam: fuera de la vista y del lector de pantalla */
.lr-trampa {
    position: absolute !important;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ---------- Lateral ---------- */
.lr-tarjeta {
    background: var(--navy);
    color: var(--gray-light);
    padding: 28px;
    border: 1px solid var(--border);
}
.lr-tarjeta-titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}
.lr-checklist { list-style: none; display: grid; gap: 10px; }
.lr-checklist li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; }
.lr-checklist li::before {
    content: ''; position: absolute; left: 0; top: 6px;
    width: 12px; height: 7px;
    border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}
.lr-tarjeta-contacto { background: var(--lr-surface); color: var(--lr-muted); border: 1px solid var(--lr-line); }
.lr-tarjeta-contacto .lr-tarjeta-titulo { color: var(--lr-text); }
.lr-tarjeta-contacto p { font-size: 15px; line-height: 1.7; margin-bottom: 8px; }
.lr-contacto-lista { list-style: none; display: grid; gap: 4px; margin-top: 12px; }
.lr-contacto-lista li { display: grid; gap: 0; }
.lr-contacto-tipo { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lr-muted); }
.lr-tarjeta-contacto a {
    color: var(--lr-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    display: inline-block;
    padding: 4px 0;
    min-height: 44px;
    line-height: 36px;
}

/* ---------- Confirmación ---------- */
.lr-confirmacion {
    background: var(--lr-surface);
    border: 1px solid var(--lr-line);
    border-top: 3px solid var(--lr-ok);
    padding: 48px 40px 40px;
    text-align: center;
}
.lr-conf-icono {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--lr-ok-bg);
    color: var(--lr-ok);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #B9DCC4;
}
.lr-confirmacion h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--lr-text);
    margin-bottom: 8px;
}
.lr-conf-texto { color: var(--lr-muted); font-size: 16px; }
.lr-ticket {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin: 28px auto 4px;
    padding: 22px 36px;
    background: var(--navy);
    border: 1px solid var(--gold);
    max-width: 100%;
}
.lr-ticket-etiqueta { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lr-ticket-codigo {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 2px;
    overflow-wrap: anywhere;
}
.lr-ticket-fecha { font-size: 13px; color: var(--gray-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .lr-layout { grid-template-columns: 1fr; padding: 40px 32px 80px; }
    .lr-lateral { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .lr-hero { padding: 100px 16px 30px; }
    .lr-eyebrow { font-size: 11px; letter-spacing: 3px; margin-bottom: 10px; }
    .lr-hero h1 { font-size: 31px; margin-bottom: 14px; }
    .lr-divider { margin-bottom: 16px; }
    .lr-hero-text { font-size: 15px; line-height: 1.65; }
    .lr-progreso { gap: 6px; margin-top: 20px; }
    .lr-progreso li { padding: 5px; }
    .lr-progreso-num { width: 24px; height: 24px; }
    .lr-progreso-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .lr-progreso li.is-actual { padding-right: 12px; }
    .lr-progreso li.is-actual .lr-progreso-txt { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
    .lr-layout { padding: 24px 16px 64px; gap: 20px; }
    .lr-lateral { grid-template-columns: 1fr; }
    .lr-tarjeta { padding: 22px 20px; }
    .lr-paso { padding: 26px 18px; }
    .lr-paso-cab { gap: 14px; margin-bottom: 22px; }
    .lr-paso-num { font-size: 24px; min-width: 32px; }
    .lr-paso h2 { font-size: 21px; }
    .lr-grid-2, .lr-opciones, .lr-opciones-3, .lr-dl, .lr-grid-doc, .lr-proveedor-datos { grid-template-columns: 1fr; }
    .lr-proveedor { padding: 16px 18px; }
    .lr-constancia-grupo dl { grid-template-columns: 1fr; gap: 0; }
    .lr-constancia-grupo dd { margin-bottom: 8px; }
    .lr-ticket-correlativo { font-size: 18px; }
    .lr-acciones .lr-btn { width: 100%; }
    .lr-contador { float: none; display: block; margin: 4px 0 0; }
    .lr-confirmacion { padding: 36px 18px 28px; }
    .lr-confirmacion h2 { font-size: 25px; }
    .lr-ticket { padding: 18px 20px; width: 100%; }
    .lr-ticket-codigo { font-size: 22px; letter-spacing: 1px; }
    .footer { padding: 40px 16px; }
    .footer-links { justify-content: center; gap: 8px 20px; }
    .footer-links a, .footer-legal a { display: inline-block; padding: 10px 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .lr-btn, .lr-input, .lr-opcion-caja { transition: none; }
    .lr-btn-primario:hover:not(:disabled) { transform: none; }
    .lr-spinner { animation-duration: 2.4s; }
}

/* ---------- Impresión: constancia limpia ---------- */
@media print {
    .navbar, .footer, .lr-hero, .lr-lateral, .lr-skip, .lr-acciones, #lr-copiar-estado,
    .lr-conf-icono, .lr-conf-texto, .lr-form, .lr-proveedor { display: none !important; }
    .lr-page { background: #fff; color: #000; }
    .lr-layout { display: block; padding: 0; }
    .lr-confirmacion { border: 0; padding: 0; text-align: left; }
    .lr-confirmacion h2 { font-size: 20px; }
    .lr-ticket { display: block; background: #fff; border: 2px solid #000; padding: 12px 16px; margin: 12px 0; }
    .lr-ticket > span { display: block; }
    .lr-ticket-codigo, .lr-ticket-correlativo, .lr-ticket-etiqueta, .lr-ticket-fecha { color: #000; }
    #lr-copia-estado { background: none; border: 1px solid #000; margin: 8px 0; max-width: none; }
    .lr-constancia { border-top: 1px solid #000; margin-top: 12px; padding-top: 12px; }
    .lr-constancia-grupo { break-inside: avoid; }
    .lr-constancia-grupo dt, .lr-constancia-grupo dd, .lr-constancia-grupo h4 { color: #000; }
    .lr-plazo { background: none; border: 1px solid #000; color: #000; }
}
