/* ══════════════════════════════════════════
   LIBRO DE RECLAMACIONES — Estilos
   ══════════════════════════════════════════ */

/* Aviso legal top */
.rl-aviso-legal {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.88rem;
    color: #5a4a00;
    margin-bottom: 24px;
    line-height: 1.5;
}
.rl-aviso-legal .rl-aviso-icon {
    font-size: 1.4rem;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Tabs */
.rl-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #e5e7eb;
}
.rl-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.rl-tab:hover { color: #E31837; }
.rl-tab.active { color: #E31837; border-bottom-color: #E31837; }

/* Tab content */
.rl-tab-content { display: none; }
.rl-tab-content.active { display: block; }

/* Card */
.rl-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    padding: 28px 32px;
    margin-top: 0;
}
@media(max-width:576px){ .rl-card { padding: 18px 14px; } }

/* Section labels */
.rl-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 16px;
    margin-top: 8px;
}
.rl-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #E31837;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Tipo radio options */
.rl-tipo-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.rl-tipo-option {
    flex: 1;
    min-width: 180px;
    cursor: pointer;
    margin: 0;
}
.rl-tipo-option input[type="radio"] { display: none; }
.rl-tipo-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color .2s, background .2s;
    text-align: center;
}
.rl-tipo-body i {
    font-size: 1.6rem;
    color: #9ca3af;
    margin-bottom: 4px;
    transition: color .2s;
}
.rl-tipo-body strong {
    font-size: 0.95rem;
    color: #1f2937;
    display: block;
}
.rl-tipo-body small {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.3;
}
.rl-tipo-option input:checked + .rl-tipo-body {
    border-color: #E31837;
    background: #fff5f5;
}
.rl-tipo-option input:checked + .rl-tipo-body i { color: #E31837; }
.rl-tipo-option:hover .rl-tipo-body {
    border-color: #E31837;
}

/* Char counter */
.rl-char-count { font-size: 0.77rem; float: right; margin-top: 3px; }

/* Privacy notice */
.rl-privacy-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 7px;
    padding: 11px 16px;
    font-size: 0.82rem;
    color: #0369a1;
    margin-bottom: 22px;
    margin-top: 6px;
    line-height: 1.5;
}

/* Submit button */
.rl-btn-submit {
    width: 100%;
    background: #E31837;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    box-shadow: 0 4px 14px rgba(227,24,55,.35);
}
.rl-btn-submit:hover { background: #c0132e; transform: translateY(-1px); }
.rl-btn-submit:active { transform: translateY(0); }
.rl-btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Buscar button */
.rl-btn-buscar {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.rl-btn-buscar:hover { background: #1e40af; }

/* Sidebar cards */
.rl-sidebar-card {
    border-radius: 10px;
    padding: 18px 20px;
}
.rl-sidebar-card h6 { font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; }
.rl-sidebar-card p  { font-size: 0.84rem; margin-bottom: 8px; }

.rl-sidebar-red  { background: #fff5f5; border-left: 4px solid #E31837; }
.rl-sidebar-red h6 { color: #E31837; }

.rl-sidebar-dark { background: #1f2937; color: #e5e7eb; border-left: 4px solid #374151; }
.rl-sidebar-dark h6 { color: #f9fafb; }
.rl-sidebar-dark p  { color: #9ca3af; }
.rl-sidebar-dark strong { color: #fff; }

.rl-sidebar-gold { background: #fffbeb; border-left: 4px solid #f59e0b; }
.rl-sidebar-gold h6 { color: #b45309; }

.rl-sidebar-outline { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }

/* WhatsApp button */
.rl-btn-wa {
    display: inline-flex;
    align-items: center;
    background: #25D366;
    color: #fff;
    border-radius: 7px;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.rl-btn-wa:hover { background: #1da851; color: #fff; text-decoration: none; }

/* Success page */
.rl-section-ok { min-height: 400px; }
.rl-success-icon { font-size: 4rem; color: #16a34a; }
.rl-codigo-box {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px 28px;
    display: inline-block;
    min-width: 280px;
}
.rl-codigo-label { display: block; font-size: 0.82rem; color: #6b7280; margin-bottom: 6px; }
.rl-codigo-numero {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #15803d;
    letter-spacing: 1px;
    font-family: monospace;
}
.rl-aviso-ok {
    background: #fef9c3;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.87rem;
    color: #713f12;
    display: inline-block;
}

/* Resultado buscar */
.rl-resultado-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
    background: #fff;
}
.rl-resultado-item .rl-res-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.rl-res-codigo  { font-weight: 800; font-family: monospace; font-size: 0.95rem; color: #1f2937; }
.rl-res-fecha   { font-size: 0.8rem; color: #6b7280; }
.rl-res-desc    { font-size: 0.85rem; color: #374151; margin-bottom: 0; }

.rl-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
}
.rl-badge-pendiente  { background:#fef3c7; color:#92400e; }
.rl-badge-en_proceso { background:#dbeafe; color:#1e40af; }
.rl-badge-cerrado    { background:#d1fae5; color:#065f46; }
.rl-badge-reclamo    { background:#fee2e2; color:#991b1b; }
.rl-badge-queja      { background:#ede9fe; color:#5b21b6; }
