#lr-wrap { max-width: 760px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.lr-aviso { background: #1a3a6b; color: #fff; border-radius: 8px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.lr-aviso > span { font-size: 28px; }
.lr-aviso strong { display: block; font-size: 14px; }
.lr-aviso small { font-size: 12px; color: #93c5fd; }
.lr-proveedor { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 16px; margin-bottom: 16px; font-size: 13px; }
.lr-proveedor p { margin: 3px 0; color: #374151; }
.lr-seccion { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 22px 24px; margin-bottom: 16px; }
.lr-seccion h3 { margin: 0 0 18px; font-size: 15px; font-weight: 700; color: #1a3a6b; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; letter-spacing: -.01em; }
.lr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .lr-grid { grid-template-columns: 1fr; gap: 12px; } }
.lr-f { margin-bottom: 16px; }
.lr-f label { display: block; font-size: 12.5px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.lr-f label span { color: #e02424; }
.lr-f input[type="text"], .lr-f input[type="email"], .lr-f input[type="tel"],
.lr-f input[type="number"], .lr-f input[type="date"], .lr-f select, .lr-f textarea {
    width: 100%; padding: 10px 13px; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 14px; box-sizing: border-box;
    background: #fff; color: #1a1a1a; transition: border-color .2s, box-shadow .2s;
}
.lr-f input:focus, .lr-f select:focus, .lr-f textarea:focus {
    outline: none; border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.1);
}
.lr-contador {
    text-align: right; font-size: 11px; color: #9ca3af; margin-top: 3px;
}
.lr-contador.lr-contador-limite { color: #e02424; font-weight: 600; }
.lr-radio-group { display: flex; gap: 20px; margin-top: 4px; }
.lr-radio-opt { display: flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.lr-radio-opt input { width: auto; }
.lr-aviso-legal { background: #f8fafc; border-color: #cbd5e1; }
.lr-aviso-legal p { margin: 0 0 12px; }
.lr-aviso-legal small { color: #475569; line-height: 1.6; }
.lr-chk { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: #374151; line-height: 1.5; }
.lr-chk input { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: #1a3a6b; }
.lr-chk a { color: #1a3a6b; }
#lr-btn { width: 100%; padding: 13px; background: #1a3a6b; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px; transition: background .2s; }
#lr-btn:hover { background: #1e4d9b; }
#lr-btn:disabled { background: #93c5fd; cursor: not-allowed; }
#lr-msg { padding: 14px 16px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
#lr-msg.ok  { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
#lr-msg.err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.lr-legal { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 10px; }

/* Apoderado */
#lr-apoderado { margin-top: 14px; }
.lr-apoderado-titulo { background: #fef3c7; border: 1px solid #fbbf24; border-radius: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: #92400e; margin-bottom: 12px; }
.lr-pdf-btn { display:inline-block;background:#1a3a6b;color:#fff;padding:9px 18px;border-radius:6px;text-decoration:none;font-size:13px;font-weight:600;margin-top:4px; }
.lr-pdf-btn:hover { background:#1e4d9b;color:#fff; }

/* Cards seleccionables: Reclamo / Queja */
.lr-f-full { grid-column: 1 / -1; }
.lr-tipo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .lr-tipo-cards { grid-template-columns: 1fr; } }

.lr-tipo-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    text-align: left; background: #fff; border: 2px solid #e5e7eb; border-radius: 12px;
    padding: 16px 18px; cursor: pointer; font-family: inherit;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lr-tipo-card:hover { border-color: #94a3b8; background: #f8fafc; }
.lr-tipo-card:focus-visible { outline: 2px solid #1a3a6b; outline-offset: 2px; }

.lr-tipo-card.is-selected {
    border-color: #1a3a6b; background: #f5f8ff;
    box-shadow: 0 0 0 3px rgba(26,58,107,.08);
}
.lr-tipo-card-icon { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.lr-tipo-card-title { font-size: 14px; font-weight: 700; color: #111827; }
.lr-tipo-card.is-selected .lr-tipo-card-title { color: #1a3a6b; }
.lr-tipo-card-desc { font-size: 11.5px; color: #6b7280; line-height: 1.45; }

/* Select oculto visualmente pero presente en el DOM (accesibilidad + compatibilidad
   con jQuery :visible usado por la validación del wizard). offsetWidth/offsetHeight
   siguen siendo > 0 (1px) para que el wizard detecte el campo correctamente. */
.lr-visually-hidden-select {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Modales de confirmación y éxito de envío */
.lr-modal-overlay {
    position: fixed; inset: 0; background: rgba(17,24,39,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 100000; padding: 16px; box-sizing: border-box;
}
.lr-modal-box {
    background: #fff; border-radius: 14px; max-width: 440px; width: 100%;
    padding: 28px 26px; box-shadow: 0 10px 40px rgba(0,0,0,.2); text-align: center;
}
.lr-modal-icon-ok { font-size: 42px; margin-bottom: 6px; }
.lr-modal-title { font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 10px; }
.lr-modal-text { font-size: 14px; color: #374151; line-height: 1.55; margin: 0 0 16px; }
.lr-modal-warning {
    background: #fef9c3; border: 1px solid #fde047; color: #854d0e;
    border-radius: 8px; padding: 10px 14px; font-size: 12.5px; margin-bottom: 14px; text-align: left;
}
.lr-modal-info {
    background: #f0fdf4; border: 1px solid #86efac; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 18px; text-align: left; font-size: 13px; color: #1f2937;
}
.lr-modal-info p { margin: 4px 0; }
.lr-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lr-modal-btn {
    flex: 1 1 auto; min-width: 140px; padding: 11px 16px; border-radius: 8px;
    font-size: 13.5px; font-weight: 600; border: none; cursor: pointer; transition: background .15s ease;
}
.lr-modal-btn-primary { background: #1a3a6b; color: #fff; }
.lr-modal-btn-primary:hover { background: #1e4d9b; }
.lr-modal-btn-secondary { background: #f3f4f6; color: #374151; }
.lr-modal-btn-secondary:hover { background: #e5e7eb; }

/* Adjuntos */
.lr-adjuntos-info { font-size: 11px; color: #6b7280; margin: 4px 0 0; }
#lr-adjuntos-lista { margin-top: 6px; }
.lr-adjunto-item { font-size: 12px; color: #374151; background: #f3f4f6; border-radius: 4px; padding: 5px 10px; margin-top: 4px; }

/* Wizard: barra de progreso */
.lr-wizard-progress { margin-bottom: 22px; }
.lr-wizard-bar { height: 4px; background: #e5e7eb; border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
.lr-wizard-bar-fill { height: 100%; width: 25%; background: #1a3a6b; border-radius: 4px; transition: width .35s ease; }
.lr-wizard-steps { display: flex; justify-content: space-between; }
.lr-wizard-step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; opacity: .45; transition: opacity .25s ease; }
.lr-wizard-step.is-active, .lr-wizard-step.is-done { opacity: 1; }
.lr-wizard-step-num {
    width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; color: #6b7280;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
    transition: background .25s ease, color .25s ease;
}
.lr-wizard-step.is-active .lr-wizard-step-num { background: #1a3a6b; color: #fff; }
.lr-wizard-step.is-done .lr-wizard-step-num { background: #065f46; color: #fff; }
.lr-wizard-step-label { font-size: 11px; color: #374151; font-weight: 600; text-align: center; }
@media (max-width: 600px) { .lr-wizard-step-label { display: none; } }

/* Wizard: paneles de paso */
.lr-step-panel { display: none; animation: lr-fade-in .3s ease; }
.lr-step-panel.is-active { display: block; }
@keyframes lr-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Wizard: navegación */
.lr-wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 16px; }
.lr-wizard-btn {
    flex: 0 0 auto; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: background .2s ease, transform .1s ease;
}
.lr-wizard-btn:active { transform: scale(.98); }
.lr-wizard-btn-primary { background: #1a3a6b; color: #fff; }
.lr-wizard-btn-primary:hover { background: #1e4d9b; }
.lr-wizard-btn-secondary { background: #f3f4f6; color: #374151; }
.lr-wizard-btn-secondary:hover { background: #e5e7eb; }

/* Errores de validacion visual amigable */
.lr-f.lr-f-error input, .lr-f.lr-f-error select, .lr-f.lr-f-error textarea {
    border-color: #e02424; background: #fef2f2;
}
.lr-f-error-msg { color: #e02424; font-size: 11.5px; margin-top: 4px; display: none; }
.lr-f.lr-f-error .lr-f-error-msg { display: block; }

/* Drag & drop de adjuntos */
.lr-dropzone {
    position: relative; border: 2px dashed #cbd5e1; border-radius: 10px;
    padding: 26px 16px; text-align: center; background: #f8fafc; cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}
.lr-dropzone:hover, .lr-dropzone.is-dragover { border-color: #1a3a6b; background: #eff6ff; }
.lr-dropzone-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.lr-dropzone-text { margin: 0; font-size: 13px; color: #475569; }
.lr-dropzone-text strong { color: #1a3a6b; }
.lr-dropzone input[type="file"] {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}

.lr-adjunto-card {
    display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; padding: 8px 12px; margin-top: 6px;
}
.lr-adjunto-card-icon { font-size: 18px; flex-shrink: 0; }
.lr-adjunto-card-info { flex: 1; min-width: 0; }
.lr-adjunto-card-name { font-size: 12.5px; color: #1f2937; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-adjunto-card-size { font-size: 11px; color: #9ca3af; }
.lr-adjunto-card-remove {
    background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 16px;
    padding: 2px 6px; border-radius: 4px; flex-shrink: 0; transition: color .15s ease, background .15s ease;
}
.lr-adjunto-card-remove:hover { color: #e02424; background: #fef2f2; }

/* License notice — shown when plugin has no active license */
.lr-license-notice {
    border: 2px solid #e2a03f;
    background: #fffbf0;
    border-radius: 8px;
    padding: 20px 24px;
    max-width: 560px;
    margin: 20px auto;
    font-family: sans-serif;
}
.lr-license-notice p { margin: 0 0 8px; }
.lr-license-notice p:last-child { margin-bottom: 0; font-size: .92em; color: #555; }
