/* =========================================================
   Libro de Reclamaciones Perú v6
   Estilo limpio tipo PedidosYa — inputs sin borde, fondo gris
   ========================================================= */

#lrp-wrapper, #lrp-wrapper * {
    box-sizing: border-box;
}
#lrp-wrapper {
    max-width: 680px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #111;
}

/* ── CABECERA COMERCIO ─────────────────────────── */
#lrp-wrapper .lrp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
#lrp-wrapper .lrp-header-minimal {
    justify-content: flex-start;
}
#lrp-wrapper .lrp-header-logo {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
}
#lrp-wrapper .lrp-header-info {
    flex: 1;
}
#lrp-wrapper .lrp-header-nombre {
    font-weight: 700;
    font-size: 15px;
}
#lrp-wrapper .lrp-header-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 2px;
}
#lrp-wrapper .lrp-header-badge {
    margin-left: auto;
    text-align: right;
}
#lrp-wrapper .lrp-header-badge-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #111;
    text-transform: uppercase;
}
#lrp-wrapper .lrp-header-badge-sub {
    font-size: 11px;
    color: #bbb;
    margin-top: 1px;
}

/* ── TÍTULO INTRO ─────────────────────────────── */
#lrp-wrapper .lrp-intro {
    margin-bottom: 28px;
}
#lrp-wrapper .lrp-intro h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111;
}
#lrp-wrapper .lrp-intro p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ── SECCIONES ────────────────────────────────── */
#lrp-wrapper .lrp-section {
    margin-bottom: 32px;
}
#lrp-wrapper .lrp-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
}

/* ── GRID ─────────────────────────────────────── */
#lrp-wrapper .lrp-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
#lrp-wrapper .lrp-row:last-child { margin-bottom: 0; }
#lrp-wrapper .lrp-field { display: flex; flex-direction: column; }
#lrp-wrapper .lrp-col-full  { flex: 1 1 100%; }
#lrp-wrapper .lrp-col-half  { flex: 1 1 calc(50% - 6px); min-width: 150px; }

/* ── LABEL ────────────────────────────────────── */
#lrp-wrapper .lrp-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 6px;
    display: block;
    text-transform: uppercase;
    letter-spacing: .5px;
}
#lrp-wrapper .lrp-optional {
    font-weight: 400;
    color: #bbb;
    text-transform: none;
    letter-spacing: 0;
}
#lrp-wrapper .lrp-req { color: #c00; }

/* ── INPUT BASE — estilo PedidosYa ───────────── */
#lrp-wrapper .lrp-input {
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    background: #f5f5f5;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    outline: none;
    transition: background .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
}
#lrp-wrapper .lrp-input::placeholder {
    color: #bbb;
}
#lrp-wrapper .lrp-input:focus {
    background: #efefef;
    box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}
#lrp-wrapper .lrp-input.lrp-error {
    background: #fff0f0;
    box-shadow: 0 0 0 2px rgba(200,0,0,.2);
}
#lrp-wrapper .lrp-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}
#lrp-wrapper .lrp-charcount {
    font-size: 11px;
    color: #ccc;
    text-align: right;
    margin-top: 4px;
}

/* ── TIPO DOC + NRO DOC UNIFICADOS ───────────── */
#lrp-wrapper .lrp-doc-group {
    display: flex;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .15s;
}
#lrp-wrapper .lrp-doc-group:focus-within {
    box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}
#lrp-wrapper .lrp-doc-group .lrp-doc-select {
    border: none;
    background: transparent;
    padding: 13px 12px 13px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #111;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
    width: 130px;
    -webkit-appearance: none;
    appearance: none;
    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 d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px;
}
#lrp-wrapper .lrp-doc-divider {
    width: 1px;
    background: #ddd;
    flex-shrink: 0;
    margin: 10px 0;
}
#lrp-wrapper .lrp-doc-group .lrp-doc-input {
    border: none;
    background: transparent;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #111;
    outline: none;
    flex: 1;
    min-width: 0;
}
#lrp-wrapper .lrp-doc-group .lrp-doc-input::placeholder {
    color: #bbb;
}

/* ── PILLS MENOR DE EDAD ──────────────────────── */
#lrp-wrapper .lrp-pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
#lrp-wrapper .lrp-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all .15s;
    user-select: none;
    border: 2px solid transparent;
}
#lrp-wrapper .lrp-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
#lrp-wrapper .lrp-pill:hover {
    background: #ebebeb;
}
#lrp-wrapper .lrp-pill.lrp-pill-selected {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}

/* ── RADIO VERTICAL — Producto/Servicio y Reclamo/Queja ── */
#lrp-wrapper .lrp-radio-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#lrp-wrapper .lrp-radio-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f5f5f5;
    transition: background .15s;
    user-select: none;
}
#lrp-wrapper .lrp-radio-item:hover {
    background: #ebebeb;
}
#lrp-wrapper .lrp-radio-item.lrp-radio-selected {
    background: #111;
}
#lrp-wrapper .lrp-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}
/* círculo visual */
#lrp-wrapper .lrp-radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, background .15s;
    background: #fff;
}
#lrp-wrapper .lrp-radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity .15s;
}
#lrp-wrapper .lrp-radio-item.lrp-radio-selected .lrp-radio-circle {
    border-color: #fff;
    background: #fff;
}
#lrp-wrapper .lrp-radio-item.lrp-radio-selected .lrp-radio-circle::after {
    background: #111;
    opacity: 1;
}
#lrp-wrapper .lrp-radio-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
    transition: color .15s;
}
#lrp-wrapper .lrp-radio-text span {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
    transition: color .15s;
}
#lrp-wrapper .lrp-radio-item.lrp-radio-selected .lrp-radio-text strong,
#lrp-wrapper .lrp-radio-item.lrp-radio-selected .lrp-radio-text span {
    color: #fff;
}
#lrp-wrapper .lrp-radio-item.lrp-radio-selected .lrp-radio-text span {
    color: rgba(255,255,255,.65);
}

/* radio horizontal (2 columnas) para producto/servicio */
#lrp-wrapper .lrp-radio-list.lrp-radio-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
}
#lrp-wrapper .lrp-radio-list.lrp-radio-horizontal .lrp-radio-item {
    flex: 1 1 calc(50% - 5px);
    min-width: 140px;
}

/* ── TUTOR BOX ────────────────────────────────── */
#lrp-wrapper .lrp-tutor-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 16px;
    margin-top: 10px;
}
#lrp-wrapper .lrp-tutor-title {
    font-size: 12px;
    font-weight: 700;
    color: #777;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
}

/* ── LEGAL ────────────────────────────────────── */
#lrp-wrapper .lrp-legal-box {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 24px;
}
#lrp-wrapper .lrp-legal-notices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
#lrp-wrapper .lrp-legal-notice {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
#lrp-wrapper .lrp-legal-icon {
    flex-shrink: 0;
    color: #aaa;
    font-size: 14px;
}
#lrp-wrapper .lrp-declaracion {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
}
#lrp-wrapper .lrp-declaracion input[type="checkbox"] {
    margin-top: 1px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    accent-color: #111;
}
#lrp-wrapper .lrp-declaracion a {
    color: #111;
    font-weight: 600;
}

/* ── BOTÓN ENVIAR ─────────────────────────────── */
#lrp-wrapper .lrp-submit-area {
    text-align: center;
}

#lrp-wrapper #lrp-submit-btn,
#lrp-wrapper .lrp-btn-submit,
div#lrp-wrapper button#lrp-submit-btn,
div#lrp-wrapper button.lrp-btn-submit {
    display: inline-block !important;
    background: #111111 !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 15px 52px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    min-width: 280px !important;
    letter-spacing: .2px !important;
    transition: background .2s, transform .1s !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
    text-transform: none !important;
    text-decoration: none !important;
    line-height: normal !important;
}
#lrp-wrapper #lrp-submit-btn:hover,
#lrp-wrapper .lrp-btn-submit:hover {
    background: #333 !important;
    background-color: #333 !important;
    transform: translateY(-1px) !important;
}
#lrp-wrapper #lrp-submit-btn:disabled,
#lrp-wrapper .lrp-btn-submit:disabled {
    opacity: .5 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ── ERROR ────────────────────────────────────── */
#lrp-wrapper .lrp-error-msg {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff0f0;
    border-radius: 8px;
    color: #c00;
    font-size: 13px;
    text-align: center;
}

/* ── MODAL ────────────────────────────────────── */
.lrp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99990;
    backdrop-filter: blur(3px);
}
.lrp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 16px;
    padding: 36px 28px 28px;
    width: 92%;
    max-width: 420px;
    z-index: 99999;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    text-align: center;
}
.lrp-modal-check {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.lrp-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111;
}
.lrp-modal-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.lrp-modal-data {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    text-align: left;
}
.lrp-modal-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 1px solid #ebebeb;
}
.lrp-modal-row:last-child { border: none; }
.lrp-modal-label { color: #888; }
.lrp-modal-val   { font-weight: 700; color: #111; }
.lrp-modal-corr  { font-size: 15px; letter-spacing: 1px; }
.lrp-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.lrp-btn-print {
    padding: 11px 22px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.lrp-btn-print:hover { background: #333; }
.lrp-btn-close {
    padding: 11px 22px;
    background: #f5f5f5;
    color: #444;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}
.lrp-btn-close:hover { background: #ebebeb; }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 560px) {
    #lrp-wrapper .lrp-col-half { flex: 1 1 100%; }
    #lrp-wrapper .lrp-radio-list.lrp-radio-horizontal .lrp-radio-item { flex: 1 1 100%; }
    #lrp-wrapper #lrp-submit-btn,
    #lrp-wrapper .lrp-btn-submit { min-width: 100% !important; width: 100% !important; }
    #lrp-wrapper .lrp-header-badge { display: none; }
}
