/* Libro de Reclamaciones v2.0 - Frontend Styles */
.lrp-v2-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Header personalizable */
.lrp-v2-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lrp-v2-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lrp-v2-empresa-info strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.lrp-v2-ruc {
    font-size: 14px;
    opacity: 0.9;
    margin-left: 10px;
}

.lrp-v2-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
    font-style: italic;
}

/* Mensajes del sistema */
.lrp-v2-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

.lrp-v2-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lrp-v2-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lrp-v2-messages.loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Formulario */
.lrp-v2-form-wrapper {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    overflow: hidden;
}

.lrp-v2-form {
    padding: 40px;
}

/* Secciones */
.lrp-v2-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f8f9fa;
}

.lrp-v2-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.lrp-v2-section-title {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.lrp-v2-section-number {
    background: #3498db;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 15px;
    font-size: 16px;
}

/* Grid system */
.lrp-v2-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 20px -10px;
}

.lrp-v2-col-6 {
    flex: 0 0 50%;
    padding: 0 10px;
}

.lrp-v2-col-12 {
    flex: 0 0 100%;
    padding: 0 10px;
}

/* Campos del formulario */
.lrp-v2-field {
    margin-bottom: 20px;
}

.lrp-v2-label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.lrp-v2-required {
    color: #e74c3c;
    font-weight: 700;
}

.lrp-v2-input,
.lrp-v2-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.lrp-v2-input:focus,
.lrp-v2-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: #fafbfc;
}

.lrp-v2-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkboxes personalizados */
.lrp-v2-checkbox-field {
    margin-bottom: 20px;
}

.lrp-v2-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #34495e;
}

.lrp-v2-checkbox {
    display: none;
}

.lrp-v2-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.lrp-v2-checkbox:checked + .lrp-v2-checkmark {
    background: #3498db;
    border-color: #3498db;
}

.lrp-v2-checkbox:checked + .lrp-v2-checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Radio buttons personalizados */
.lrp-v2-radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lrp-v2-radio-label {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.lrp-v2-radio-label:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.lrp-v2-radio {
    display: none;
}

.lrp-v2-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.lrp-v2-radio:checked + .lrp-v2-radio-custom {
    border-color: #3498db;
}

.lrp-v2-radio:checked + .lrp-v2-radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background: #3498db;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lrp-v2-radio:checked ~ .lrp-v2-radio-content,
.lrp-v2-radio-label:has(.lrp-v2-radio:checked) {
    border-color: #3498db;
    background: #e3f2fd;
}

.lrp-v2-radio-content strong {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.lrp-v2-radio-content span {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.4;
}

/* Botón de envío */
.lrp-v2-submit-section {
    text-align: center;
    margin: 40px 0 30px 0;
}

.lrp-v2-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.lrp-v2-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.lrp-v2-submit-btn:active {
    transform: translateY(0);
}

.lrp-v2-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lrp-v2-btn-icon {
    font-size: 18px;
}

/* Texto legal */
.lrp-v2-legal {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

/* Footer personalizable */
.lrp-v2-footer {
    background: #f8f9fa;
    color: #6c757d;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.lrp-v2-footer h3 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 20px;
}

.lrp-v2-footer-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.lrp-v2-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.lrp-v2-footer-links li {
    margin-bottom: 8px;
}

.lrp-v2-footer-links a {
    color: #007bff;
    text-decoration: none;
}

.lrp-v2-footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lrp-v2-container {
        padding: 15px;
    }

    .lrp-v2-header {
        padding: 30px 20px;
    }

    .lrp-v2-title {
        font-size: 26px;
    }

    .lrp-v2-form {
        padding: 25px;
    }

    .lrp-v2-col-6 {
        flex: 0 0 100%;
    }

    .lrp-v2-section-title {
        font-size: 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .lrp-v2-section-number {
        margin-right: 0;
    }

    .lrp-v2-radio-label {
        padding: 15px;
    }

    .lrp-v2-submit-btn {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .lrp-v2-container {
        padding: 10px;
    }

    .lrp-v2-header {
        padding: 25px 15px;
    }

    .lrp-v2-title {
        font-size: 22px;
    }

    .lrp-v2-form {
        padding: 20px;
    }

    .lrp-v2-row {
        margin: 0 -5px 15px -5px;
    }

    .lrp-v2-col-6,
    .lrp-v2-col-12 {
        padding: 0 5px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.lrp-v2-section {
    animation: fadeIn 0.6s ease-out;
}

.lrp-v2-tutor-field {
    animation: fadeIn 0.3s ease-out;
}